diff options
author | Paul Walmsley <paul@pwsan.com> | 2012-04-19 06:03:53 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-04-19 06:03:53 -0400 |
commit | 4308570581cbfeea4984a7bb33932e073a69cab1 (patch) | |
tree | 89b31ace6183ebec72bbc8f3333c85dbcbbec604 /arch/arm/mach-omap2 | |
parent | d69dc64801603a9b3cf360d6a26fce3f013c17a7 (diff) |
ARM: OMAP3: hwmod data: GPTIMER12 is attached to a separate interconnect
GPTIMER12 is attached to the L4 SEC interconnect, not directly to L4 WKUP.
Add the L4 SEC interconnect and attach GPTIMER12 to it.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c index 8b5eb4d59cb3..c36d41fbae51 100644 --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | |||
@@ -171,6 +171,7 @@ static struct omap_hwmod omap3xxx_l3_main_hwmod = { | |||
171 | }; | 171 | }; |
172 | 172 | ||
173 | static struct omap_hwmod omap3xxx_l4_wkup_hwmod; | 173 | static struct omap_hwmod omap3xxx_l4_wkup_hwmod; |
174 | static struct omap_hwmod omap3xxx_l4_sec_hwmod; | ||
174 | static struct omap_hwmod omap3xxx_uart1_hwmod; | 175 | static struct omap_hwmod omap3xxx_uart1_hwmod; |
175 | static struct omap_hwmod omap3xxx_uart2_hwmod; | 176 | static struct omap_hwmod omap3xxx_uart2_hwmod; |
176 | static struct omap_hwmod omap3xxx_uart3_hwmod; | 177 | static struct omap_hwmod omap3xxx_uart3_hwmod; |
@@ -532,6 +533,13 @@ static struct omap_hwmod omap3xxx_l4_per_hwmod = { | |||
532 | .flags = HWMOD_NO_IDLEST, | 533 | .flags = HWMOD_NO_IDLEST, |
533 | }; | 534 | }; |
534 | 535 | ||
536 | /* L4_WKUP -> L4_SEC interface */ | ||
537 | static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__l4_sec = { | ||
538 | .master = &omap3xxx_l4_wkup_hwmod, | ||
539 | .slave = &omap3xxx_l4_sec_hwmod, | ||
540 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
541 | }; | ||
542 | |||
535 | /* Slave interfaces on the L4_WKUP interconnect */ | 543 | /* Slave interfaces on the L4_WKUP interconnect */ |
536 | static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_slaves[] = { | 544 | static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_slaves[] = { |
537 | &omap3xxx_l4_core__l4_wkup, | 545 | &omap3xxx_l4_core__l4_wkup, |
@@ -546,6 +554,20 @@ static struct omap_hwmod omap3xxx_l4_wkup_hwmod = { | |||
546 | .flags = HWMOD_NO_IDLEST, | 554 | .flags = HWMOD_NO_IDLEST, |
547 | }; | 555 | }; |
548 | 556 | ||
557 | /* Slave interfaces on the L4_SEC interconnect */ | ||
558 | static struct omap_hwmod_ocp_if *omap3xxx_l4_sec_slaves[] = { | ||
559 | &omap3xxx_l4_wkup__l4_sec, | ||
560 | }; | ||
561 | |||
562 | /* L4 SEC */ | ||
563 | static struct omap_hwmod omap3xxx_l4_sec_hwmod = { | ||
564 | .name = "l4_sec", | ||
565 | .class = &l4_hwmod_class, | ||
566 | .slaves = omap3xxx_l4_sec_slaves, | ||
567 | .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_sec_slaves), | ||
568 | .flags = HWMOD_NO_IDLEST, | ||
569 | }; | ||
570 | |||
549 | /* Master interfaces on the MPU device */ | 571 | /* Master interfaces on the MPU device */ |
550 | static struct omap_hwmod_ocp_if *omap3xxx_mpu_masters[] = { | 572 | static struct omap_hwmod_ocp_if *omap3xxx_mpu_masters[] = { |
551 | &omap3xxx_mpu__l3_main, | 573 | &omap3xxx_mpu__l3_main, |
@@ -1141,8 +1163,8 @@ static struct omap_hwmod_addr_space omap3xxx_timer12_addrs[] = { | |||
1141 | }; | 1163 | }; |
1142 | 1164 | ||
1143 | /* l4_core -> timer12 */ | 1165 | /* l4_core -> timer12 */ |
1144 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer12 = { | 1166 | static struct omap_hwmod_ocp_if omap3xxx_l4_sec__timer12 = { |
1145 | .master = &omap3xxx_l4_core_hwmod, | 1167 | .master = &omap3xxx_l4_sec_hwmod, |
1146 | .slave = &omap3xxx_timer12_hwmod, | 1168 | .slave = &omap3xxx_timer12_hwmod, |
1147 | .clk = "gpt12_ick", | 1169 | .clk = "gpt12_ick", |
1148 | .addr = omap3xxx_timer12_addrs, | 1170 | .addr = omap3xxx_timer12_addrs, |
@@ -1151,7 +1173,7 @@ static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer12 = { | |||
1151 | 1173 | ||
1152 | /* timer12 slave port */ | 1174 | /* timer12 slave port */ |
1153 | static struct omap_hwmod_ocp_if *omap3xxx_timer12_slaves[] = { | 1175 | static struct omap_hwmod_ocp_if *omap3xxx_timer12_slaves[] = { |
1154 | &omap3xxx_l4_core__timer12, | 1176 | &omap3xxx_l4_sec__timer12, |
1155 | }; | 1177 | }; |
1156 | 1178 | ||
1157 | /* timer12 hwmod */ | 1179 | /* timer12 hwmod */ |