diff options
author | sricharan <r.sricharan@ti.com> | 2011-02-08 11:43:37 -0500 |
---|---|---|
committer | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2011-03-09 06:53:56 -0500 |
commit | 4bb194dc9471c79caa1952ecdb31148074ac1abf (patch) | |
tree | 82d4c951ef43df0eba0e94a9034b5bfa01254a36 /arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | |
parent | 0640b436e410290193f554dcfd777bcdeee59697 (diff) |
OMAP3: hwmod_data: Add address space and irq in L3 hwmod.
Add the address spaces, irqs of the l3 interconnect to the
hwmod data. The hwmod changes are aligned with Benoit Cousson.
Signed-off-by: sricharan <r.sricharan@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Benoit Cousson <b-cousson@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_3xxx_data.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c index e2792cf9c54d..2539e469c1e0 100644 --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | |||
@@ -100,10 +100,26 @@ static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per = { | |||
100 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 100 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
101 | }; | 101 | }; |
102 | 102 | ||
103 | /* L3 taret configuration and error log registers */ | ||
104 | static struct omap_hwmod_irq_info omap3xxx_l3_main_irqs[] = { | ||
105 | { .irq = INT_34XX_L3_DBG_IRQ }, | ||
106 | { .irq = INT_34XX_L3_APP_IRQ }, | ||
107 | }; | ||
108 | |||
109 | static struct omap_hwmod_addr_space omap3xxx_l3_main_addrs[] = { | ||
110 | { | ||
111 | .pa_start = 0x68000000, | ||
112 | .pa_end = 0x6800ffff, | ||
113 | .flags = ADDR_TYPE_RT, | ||
114 | }, | ||
115 | }; | ||
116 | |||
103 | /* MPU -> L3 interface */ | 117 | /* MPU -> L3 interface */ |
104 | static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main = { | 118 | static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main = { |
105 | .master = &omap3xxx_mpu_hwmod, | 119 | .master = &omap3xxx_mpu_hwmod, |
106 | .slave = &omap3xxx_l3_main_hwmod, | 120 | .slave = &omap3xxx_l3_main_hwmod, |
121 | .addr = omap3xxx_l3_main_addrs, | ||
122 | .addr_cnt = ARRAY_SIZE(omap3xxx_l3_main_addrs), | ||
107 | .user = OCP_USER_MPU, | 123 | .user = OCP_USER_MPU, |
108 | }; | 124 | }; |
109 | 125 | ||
@@ -135,6 +151,8 @@ static struct omap_hwmod_ocp_if *omap3xxx_l3_main_masters[] = { | |||
135 | static struct omap_hwmod omap3xxx_l3_main_hwmod = { | 151 | static struct omap_hwmod omap3xxx_l3_main_hwmod = { |
136 | .name = "l3_main", | 152 | .name = "l3_main", |
137 | .class = &l3_hwmod_class, | 153 | .class = &l3_hwmod_class, |
154 | .mpu_irqs = omap3xxx_l3_main_irqs, | ||
155 | .mpu_irqs_cnt = ARRAY_SIZE(omap3xxx_l3_main_irqs), | ||
138 | .masters = omap3xxx_l3_main_masters, | 156 | .masters = omap3xxx_l3_main_masters, |
139 | .masters_cnt = ARRAY_SIZE(omap3xxx_l3_main_masters), | 157 | .masters_cnt = ARRAY_SIZE(omap3xxx_l3_main_masters), |
140 | .slaves = omap3xxx_l3_main_slaves, | 158 | .slaves = omap3xxx_l3_main_slaves, |