diff options
Diffstat (limited to 'arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c')
-rw-r--r-- | arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c b/arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c index e4a7133ea3b3..13bde95b6790 100644 --- a/arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c +++ b/arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c | |||
@@ -89,6 +89,8 @@ static struct clkdm_dep gfx_sgx_wkdeps[] = { | |||
89 | 89 | ||
90 | /* 24XX-specific possible dependencies */ | 90 | /* 24XX-specific possible dependencies */ |
91 | 91 | ||
92 | #ifdef CONFIG_ARCH_OMAP2 | ||
93 | |||
92 | /* Wakeup dependency source arrays */ | 94 | /* Wakeup dependency source arrays */ |
93 | 95 | ||
94 | /* 2420/2430 PM_WKDEP_DSP: CORE, MPU, WKUP */ | 96 | /* 2420/2430 PM_WKDEP_DSP: CORE, MPU, WKUP */ |
@@ -168,10 +170,11 @@ static struct clkdm_dep core_24xx_wkdeps[] = { | |||
168 | { NULL }, | 170 | { NULL }, |
169 | }; | 171 | }; |
170 | 172 | ||
173 | #endif /* CONFIG_ARCH_OMAP2 */ | ||
171 | 174 | ||
172 | /* 2430-specific possible wakeup dependencies */ | 175 | /* 2430-specific possible wakeup dependencies */ |
173 | 176 | ||
174 | #ifdef CONFIG_ARCH_OMAP2430 | 177 | #ifdef CONFIG_SOC_OMAP2430 |
175 | 178 | ||
176 | /* 2430 PM_WKDEP_MDM: CORE, MPU, WKUP */ | 179 | /* 2430 PM_WKDEP_MDM: CORE, MPU, WKUP */ |
177 | static struct clkdm_dep mdm_2430_wkdeps[] = { | 180 | static struct clkdm_dep mdm_2430_wkdeps[] = { |
@@ -194,7 +197,7 @@ static struct clkdm_dep mdm_2430_wkdeps[] = { | |||
194 | { NULL }, | 197 | { NULL }, |
195 | }; | 198 | }; |
196 | 199 | ||
197 | #endif /* CONFIG_ARCH_OMAP2430 */ | 200 | #endif /* CONFIG_SOC_OMAP2430 */ |
198 | 201 | ||
199 | 202 | ||
200 | /* OMAP3-specific possible dependencies */ | 203 | /* OMAP3-specific possible dependencies */ |
@@ -450,7 +453,7 @@ static struct clockdomain cm_clkdm = { | |||
450 | * 2420-only clockdomains | 453 | * 2420-only clockdomains |
451 | */ | 454 | */ |
452 | 455 | ||
453 | #if defined(CONFIG_ARCH_OMAP2420) | 456 | #if defined(CONFIG_SOC_OMAP2420) |
454 | 457 | ||
455 | static struct clockdomain mpu_2420_clkdm = { | 458 | static struct clockdomain mpu_2420_clkdm = { |
456 | .name = "mpu_clkdm", | 459 | .name = "mpu_clkdm", |
@@ -514,14 +517,14 @@ static struct clockdomain dss_2420_clkdm = { | |||
514 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420), | 517 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420), |
515 | }; | 518 | }; |
516 | 519 | ||
517 | #endif /* CONFIG_ARCH_OMAP2420 */ | 520 | #endif /* CONFIG_SOC_OMAP2420 */ |
518 | 521 | ||
519 | 522 | ||
520 | /* | 523 | /* |
521 | * 2430-only clockdomains | 524 | * 2430-only clockdomains |
522 | */ | 525 | */ |
523 | 526 | ||
524 | #if defined(CONFIG_ARCH_OMAP2430) | 527 | #if defined(CONFIG_SOC_OMAP2430) |
525 | 528 | ||
526 | static struct clockdomain mpu_2430_clkdm = { | 529 | static struct clockdomain mpu_2430_clkdm = { |
527 | .name = "mpu_clkdm", | 530 | .name = "mpu_clkdm", |
@@ -600,7 +603,7 @@ static struct clockdomain dss_2430_clkdm = { | |||
600 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430), | 603 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430), |
601 | }; | 604 | }; |
602 | 605 | ||
603 | #endif /* CONFIG_ARCH_OMAP2430 */ | 606 | #endif /* CONFIG_SOC_OMAP2430 */ |
604 | 607 | ||
605 | 608 | ||
606 | /* | 609 | /* |
@@ -811,7 +814,7 @@ static struct clockdomain *clockdomains_omap2[] __initdata = { | |||
811 | &cm_clkdm, | 814 | &cm_clkdm, |
812 | &prm_clkdm, | 815 | &prm_clkdm, |
813 | 816 | ||
814 | #ifdef CONFIG_ARCH_OMAP2420 | 817 | #ifdef CONFIG_SOC_OMAP2420 |
815 | &mpu_2420_clkdm, | 818 | &mpu_2420_clkdm, |
816 | &iva1_2420_clkdm, | 819 | &iva1_2420_clkdm, |
817 | &dsp_2420_clkdm, | 820 | &dsp_2420_clkdm, |
@@ -821,7 +824,7 @@ static struct clockdomain *clockdomains_omap2[] __initdata = { | |||
821 | &dss_2420_clkdm, | 824 | &dss_2420_clkdm, |
822 | #endif | 825 | #endif |
823 | 826 | ||
824 | #ifdef CONFIG_ARCH_OMAP2430 | 827 | #ifdef CONFIG_SOC_OMAP2430 |
825 | &mpu_2430_clkdm, | 828 | &mpu_2430_clkdm, |
826 | &mdm_clkdm, | 829 | &mdm_clkdm, |
827 | &dsp_2430_clkdm, | 830 | &dsp_2430_clkdm, |
@@ -854,7 +857,12 @@ static struct clockdomain *clockdomains_omap2[] __initdata = { | |||
854 | NULL, | 857 | NULL, |
855 | }; | 858 | }; |
856 | 859 | ||
857 | void __init omap2_clockdomains_init(void) | 860 | void __init omap2xxx_clockdomains_init(void) |
861 | { | ||
862 | clkdm_init(clockdomains_omap2, clkdm_autodeps, &omap2_clkdm_operations); | ||
863 | } | ||
864 | |||
865 | void __init omap3xxx_clockdomains_init(void) | ||
858 | { | 866 | { |
859 | clkdm_init(clockdomains_omap2, clkdm_autodeps); | 867 | clkdm_init(clockdomains_omap2, clkdm_autodeps, &omap3_clkdm_operations); |
860 | } | 868 | } |