-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blackfin: scb: Add system crossbar init code.
If SCB exists in select blackfin cpu, developer can change the SCB priority in kernel configuration. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Steven Miao <realmz6@gmail.com>
- Loading branch information
Steven Miao
committed
Sep 13, 2013
1 parent
6e46645
commit 24a70cf
Showing
7 changed files
with
1,331 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* arch/blackfin/mach-common/scb-init.c - reprogram system cross bar priority | ||
* | ||
* Copyright 2012 Analog Devices Inc. | ||
* | ||
* Licensed under the GPL-2 or later. | ||
*/ | ||
|
||
#define SCB_SLOT_OFFSET 24 | ||
#define SCB_MI_MAX_SLOT 32 | ||
|
||
struct scb_mi_prio { | ||
unsigned long scb_mi_arbr; | ||
unsigned long scb_mi_arbw; | ||
unsigned char scb_mi_slots; | ||
unsigned char scb_mi_prio[SCB_MI_MAX_SLOT]; | ||
}; | ||
|
||
extern struct scb_mi_prio scb_data[]; | ||
|
||
extern void init_scb(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.