diff options
author | Nishanth Menon <nm@ti.com> | 2014-04-11 11:11:59 -0400 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2014-05-05 15:33:14 -0400 |
commit | f0a6e654d8db2dfa3eb8b99380ad449d5e092c33 (patch) | |
tree | a0e0d70c6e34de98ba9d6997c207294e273135af | |
parent | add6f74b9baf6676c4465b99967c972c464e59cc (diff) |
bus: omap_l3_noc: move L3 master data structure out
Move the L3 master structure out of the static definition to enable
reuse for other SoCs.
Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Darren Etheridge <detheridge@ti.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
-rw-r--r-- | drivers/bus/omap_l3_noc.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/bus/omap_l3_noc.h b/drivers/bus/omap_l3_noc.h index 31984cf949cc..059c707fdc84 100644 --- a/drivers/bus/omap_l3_noc.h +++ b/drivers/bus/omap_l3_noc.h | |||
@@ -33,6 +33,16 @@ | |||
33 | 33 | ||
34 | #define NUM_OF_L3_MASTERS (sizeof(l3_masters)/sizeof(l3_masters[0])) | 34 | #define NUM_OF_L3_MASTERS (sizeof(l3_masters)/sizeof(l3_masters[0])) |
35 | 35 | ||
36 | /** | ||
37 | * struct l3_masters_data - L3 Master information | ||
38 | * @id: ID of the L3 Master | ||
39 | * @name: master name | ||
40 | */ | ||
41 | struct l3_masters_data { | ||
42 | u32 id; | ||
43 | char *name; | ||
44 | }; | ||
45 | |||
36 | static u32 l3_flagmux[L3_MODULES] = { | 46 | static u32 l3_flagmux[L3_MODULES] = { |
37 | 0x500, | 47 | 0x500, |
38 | 0x1000, | 48 | 0x1000, |
@@ -80,10 +90,7 @@ static u32 l3_targ_inst_clk3[] = { | |||
80 | 0x0 /* HOST CLK3 */ | 90 | 0x0 /* HOST CLK3 */ |
81 | }; | 91 | }; |
82 | 92 | ||
83 | static struct l3_masters_data { | 93 | static struct l3_masters_data l3_masters[] = { |
84 | u32 id; | ||
85 | char name[10]; | ||
86 | } l3_masters[] = { | ||
87 | { 0x0 , "MPU"}, | 94 | { 0x0 , "MPU"}, |
88 | { 0x10, "CS_ADP"}, | 95 | { 0x10, "CS_ADP"}, |
89 | { 0x14, "xxx"}, | 96 | { 0x14, "xxx"}, |