Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0a6e654 authored by Nishanth Menon's avatar Nishanth Menon
Browse files

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: default avatarNishanth Menon <nm@ti.com>
Acked-by: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: default avatarDarren Etheridge <detheridge@ti.com>
Tested-by: default avatarSekhar Nori <nsekhar@ti.com>
parent add6f74b
Loading
Loading
Loading
Loading
+11 −4
Original line number Original line Diff line number Diff line
@@ -33,6 +33,16 @@


#define NUM_OF_L3_MASTERS	(sizeof(l3_masters)/sizeof(l3_masters[0]))
#define NUM_OF_L3_MASTERS	(sizeof(l3_masters)/sizeof(l3_masters[0]))


/**
 * struct l3_masters_data - L3 Master information
 * @id:		ID of the L3 Master
 * @name:	master name
 */
struct l3_masters_data {
	u32 id;
	char *name;
};

static u32 l3_flagmux[L3_MODULES] = {
static u32 l3_flagmux[L3_MODULES] = {
	0x500,
	0x500,
	0x1000,
	0x1000,
@@ -80,10 +90,7 @@ static u32 l3_targ_inst_clk3[] = {
	0x0 /* HOST CLK3 */
	0x0 /* HOST CLK3 */
};
};


static struct l3_masters_data {
static struct l3_masters_data l3_masters[] = {
	u32 id;
	char name[10];
} l3_masters[] = {
	{ 0x0 , "MPU"},
	{ 0x0 , "MPU"},
	{ 0x10, "CS_ADP"},
	{ 0x10, "CS_ADP"},
	{ 0x14, "xxx"},
	{ 0x14, "xxx"},