diff options
author | Benoit Cousson <b-cousson@ti.com> | 2011-07-09 21:14:27 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2011-07-09 21:14:27 -0400 |
commit | 9b4021befe59e53454d2fe0a4d22e269f1e843b1 (patch) | |
tree | 18c1a817cbd958cf86ad42176af2d8931d7ea870 | |
parent | 273b9465bc68d4f4bcdedc34411b231e26b48416 (diff) |
OMAP4: hwmod data: Fix L3 interconnect data order and alignement
Change the position of the ocp_if structure to match the template.
Remove unneeded comma at the end of address space flag field.
Remove USER_SDMA since this ocp link is only from the l3_main_1
path that is accessible only from the MPU in that case and not
the SDMA.
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index a93c4552a571..f1138e48b24b 100644 --- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c | |||
@@ -216,6 +216,12 @@ static struct omap_hwmod omap44xx_l3_instr_hwmod = { | |||
216 | }; | 216 | }; |
217 | 217 | ||
218 | /* l3_main_1 interface data */ | 218 | /* l3_main_1 interface data */ |
219 | static struct omap_hwmod_irq_info omap44xx_l3_main_1_irqs[] = { | ||
220 | { .name = "dbg_err", .irq = 9 + OMAP44XX_IRQ_GIC_START }, | ||
221 | { .name = "app_err", .irq = 10 + OMAP44XX_IRQ_GIC_START }, | ||
222 | { .irq = -1 } | ||
223 | }; | ||
224 | |||
219 | /* dsp -> l3_main_1 */ | 225 | /* dsp -> l3_main_1 */ |
220 | static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = { | 226 | static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = { |
221 | .master = &omap44xx_dsp_hwmod, | 227 | .master = &omap44xx_dsp_hwmod, |
@@ -264,18 +270,11 @@ static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = { | |||
264 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 270 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
265 | }; | 271 | }; |
266 | 272 | ||
267 | /* L3 target configuration and error log registers */ | ||
268 | static struct omap_hwmod_irq_info omap44xx_l3_targ_irqs[] = { | ||
269 | { .irq = 9 + OMAP44XX_IRQ_GIC_START }, | ||
270 | { .irq = 10 + OMAP44XX_IRQ_GIC_START }, | ||
271 | { .irq = -1 } | ||
272 | }; | ||
273 | |||
274 | static struct omap_hwmod_addr_space omap44xx_l3_main_1_addrs[] = { | 273 | static struct omap_hwmod_addr_space omap44xx_l3_main_1_addrs[] = { |
275 | { | 274 | { |
276 | .pa_start = 0x44000000, | 275 | .pa_start = 0x44000000, |
277 | .pa_end = 0x44000fff, | 276 | .pa_end = 0x44000fff, |
278 | .flags = ADDR_TYPE_RT, | 277 | .flags = ADDR_TYPE_RT |
279 | }, | 278 | }, |
280 | { } | 279 | { } |
281 | }; | 280 | }; |
@@ -286,7 +285,7 @@ static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = { | |||
286 | .slave = &omap44xx_l3_main_1_hwmod, | 285 | .slave = &omap44xx_l3_main_1_hwmod, |
287 | .clk = "l3_div_ck", | 286 | .clk = "l3_div_ck", |
288 | .addr = omap44xx_l3_main_1_addrs, | 287 | .addr = omap44xx_l3_main_1_addrs, |
289 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 288 | .user = OCP_USER_MPU, |
290 | }; | 289 | }; |
291 | 290 | ||
292 | /* l3_main_1 slave ports */ | 291 | /* l3_main_1 slave ports */ |
@@ -303,9 +302,9 @@ static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = { | |||
303 | static struct omap_hwmod omap44xx_l3_main_1_hwmod = { | 302 | static struct omap_hwmod omap44xx_l3_main_1_hwmod = { |
304 | .name = "l3_main_1", | 303 | .name = "l3_main_1", |
305 | .class = &omap44xx_l3_hwmod_class, | 304 | .class = &omap44xx_l3_hwmod_class, |
306 | .mpu_irqs = omap44xx_l3_targ_irqs, | ||
307 | .slaves = omap44xx_l3_main_1_slaves, | 305 | .slaves = omap44xx_l3_main_1_slaves, |
308 | .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves), | 306 | .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves), |
307 | .mpu_irqs = omap44xx_l3_main_1_irqs, | ||
309 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | 308 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
310 | }; | 309 | }; |
311 | 310 | ||
@@ -354,7 +353,7 @@ static struct omap_hwmod_addr_space omap44xx_l3_main_2_addrs[] = { | |||
354 | { | 353 | { |
355 | .pa_start = 0x44800000, | 354 | .pa_start = 0x44800000, |
356 | .pa_end = 0x44801fff, | 355 | .pa_end = 0x44801fff, |
357 | .flags = ADDR_TYPE_RT, | 356 | .flags = ADDR_TYPE_RT |
358 | }, | 357 | }, |
359 | { } | 358 | { } |
360 | }; | 359 | }; |
@@ -365,7 +364,7 @@ static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = { | |||
365 | .slave = &omap44xx_l3_main_2_hwmod, | 364 | .slave = &omap44xx_l3_main_2_hwmod, |
366 | .clk = "l3_div_ck", | 365 | .clk = "l3_div_ck", |
367 | .addr = omap44xx_l3_main_2_addrs, | 366 | .addr = omap44xx_l3_main_2_addrs, |
368 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 367 | .user = OCP_USER_MPU, |
369 | }; | 368 | }; |
370 | 369 | ||
371 | /* l4_cfg -> l3_main_2 */ | 370 | /* l4_cfg -> l3_main_2 */ |
@@ -409,7 +408,7 @@ static struct omap_hwmod_addr_space omap44xx_l3_main_3_addrs[] = { | |||
409 | { | 408 | { |
410 | .pa_start = 0x45000000, | 409 | .pa_start = 0x45000000, |
411 | .pa_end = 0x45000fff, | 410 | .pa_end = 0x45000fff, |
412 | .flags = ADDR_TYPE_RT, | 411 | .flags = ADDR_TYPE_RT |
413 | }, | 412 | }, |
414 | { } | 413 | { } |
415 | }; | 414 | }; |
@@ -420,7 +419,7 @@ static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = { | |||
420 | .slave = &omap44xx_l3_main_3_hwmod, | 419 | .slave = &omap44xx_l3_main_3_hwmod, |
421 | .clk = "l3_div_ck", | 420 | .clk = "l3_div_ck", |
422 | .addr = omap44xx_l3_main_3_addrs, | 421 | .addr = omap44xx_l3_main_3_addrs, |
423 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 422 | .user = OCP_USER_MPU, |
424 | }; | 423 | }; |
425 | 424 | ||
426 | /* l3_main_2 -> l3_main_3 */ | 425 | /* l3_main_2 -> l3_main_3 */ |