diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-01-26 22:13:13 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-01-29 12:14:23 -0500 |
commit | 98fa3d8aeabf7a039cc920a9c2ffebc6b4648e2b (patch) | |
tree | 8e2112bea42e5cca4f8394274309e30f83b55fc1 | |
parent | 56ef28acf122d30b137851aa6a599ba48319a6b0 (diff) |
OMAP2+ powerdomains/clockdomains: prepare for multi-OMAP configs
Convert CONFIG_ARCH_OMAP34XX to CONFIG_ARCH_OMAP3, and
CONFIG_ARCH_OMAP24XX to CONFIG_ARCH_OMAP2, in preparation for Tony's
multi-OMAP patches.
While here, update some copyrights, convert instances of "34xx" to
"3xxx" where applicable, and convert preprocessor directives of the
form
#if defined(CONFIG_ARCH_OMAP2) | defined(CONFIG_ARCH_OMAP3)
to
#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
for standardization.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/clockdomains.h | 50 | ||||
-rw-r--r-- | arch/arm/mach-omap2/powerdomains.h | 16 | ||||
-rw-r--r-- | arch/arm/mach-omap2/powerdomains34xx.h | 14 |
3 files changed, 40 insertions, 40 deletions
diff --git a/arch/arm/mach-omap2/clockdomains.h b/arch/arm/mach-omap2/clockdomains.h index fb026dabfc3..7db6298493f 100644 --- a/arch/arm/mach-omap2/clockdomains.h +++ b/arch/arm/mach-omap2/clockdomains.h | |||
@@ -1,8 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * OMAP2/3 clockdomains | 2 | * OMAP2/3 clockdomains |
3 | * | 3 | * |
4 | * Copyright (C) 2008 Texas Instruments, Inc. | 4 | * Copyright (C) 2008-2009 Texas Instruments, Inc. |
5 | * Copyright (C) 2008-2009 Nokia Corporation | 5 | * Copyright (C) 2008-2010 Nokia Corporation |
6 | * | 6 | * |
7 | * Written by Paul Walmsley and Jouni Högander | 7 | * Written by Paul Walmsley and Jouni Högander |
8 | * | 8 | * |
@@ -196,9 +196,9 @@ static struct clkdm_dep mdm_2430_wkdeps[] = { | |||
196 | #endif /* CONFIG_ARCH_OMAP2430 */ | 196 | #endif /* CONFIG_ARCH_OMAP2430 */ |
197 | 197 | ||
198 | 198 | ||
199 | /* 34XX-specific possible dependencies */ | 199 | /* OMAP3-specific possible dependencies */ |
200 | 200 | ||
201 | #ifdef CONFIG_ARCH_OMAP34XX | 201 | #ifdef CONFIG_ARCH_OMAP3 |
202 | 202 | ||
203 | /* 3430: PM_WKDEP_PER: CORE, IVA2, MPU, WKUP */ | 203 | /* 3430: PM_WKDEP_PER: CORE, IVA2, MPU, WKUP */ |
204 | static struct clkdm_dep per_wkdeps[] = { | 204 | static struct clkdm_dep per_wkdeps[] = { |
@@ -251,7 +251,7 @@ static struct clkdm_dep usbhost_wkdeps[] = { | |||
251 | }; | 251 | }; |
252 | 252 | ||
253 | /* 3430 PM_WKDEP_MPU: CORE, IVA2, DSS, PER */ | 253 | /* 3430 PM_WKDEP_MPU: CORE, IVA2, DSS, PER */ |
254 | static struct clkdm_dep mpu_34xx_wkdeps[] = { | 254 | static struct clkdm_dep mpu_3xxx_wkdeps[] = { |
255 | { | 255 | { |
256 | .clkdm_name = "core_l3_clkdm", | 256 | .clkdm_name = "core_l3_clkdm", |
257 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430) | 257 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430) |
@@ -349,7 +349,7 @@ static struct clkdm_dep neon_wkdeps[] = { | |||
349 | }; | 349 | }; |
350 | 350 | ||
351 | 351 | ||
352 | /* Sleep dependency source arrays for 34xx-specific clkdms - 34XX only */ | 352 | /* Sleep dependency source arrays for OMAP3-specific clkdms */ |
353 | 353 | ||
354 | /* 3430: CM_SLEEPDEP_DSS: MPU, IVA */ | 354 | /* 3430: CM_SLEEPDEP_DSS: MPU, IVA */ |
355 | static struct clkdm_dep dss_sleepdeps[] = { | 355 | static struct clkdm_dep dss_sleepdeps[] = { |
@@ -413,7 +413,7 @@ static struct clkdm_dep gfx_sgx_sleepdeps[] = { | |||
413 | { NULL }, | 413 | { NULL }, |
414 | }; | 414 | }; |
415 | 415 | ||
416 | #endif /* CONFIG_ARCH_OMAP34XX */ | 416 | #endif /* CONFIG_ARCH_OMAP3 */ |
417 | 417 | ||
418 | 418 | ||
419 | /* | 419 | /* |
@@ -425,7 +425,7 @@ static struct clkdm_dep gfx_sgx_sleepdeps[] = { | |||
425 | * sys_clkout/sys_clkout2. | 425 | * sys_clkout/sys_clkout2. |
426 | */ | 426 | */ |
427 | 427 | ||
428 | #if defined(CONFIG_ARCH_OMAP24XX) | defined(CONFIG_ARCH_OMAP34XX) | 428 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
429 | 429 | ||
430 | /* This is an implicit clockdomain - it is never defined as such in TRM */ | 430 | /* This is an implicit clockdomain - it is never defined as such in TRM */ |
431 | static struct clockdomain wkup_clkdm = { | 431 | static struct clockdomain wkup_clkdm = { |
@@ -626,18 +626,18 @@ static struct clockdomain dss_2430_clkdm = { | |||
626 | 626 | ||
627 | 627 | ||
628 | /* | 628 | /* |
629 | * 34xx clockdomains | 629 | * OMAP3 clockdomains |
630 | */ | 630 | */ |
631 | 631 | ||
632 | #if defined(CONFIG_ARCH_OMAP34XX) | 632 | #if defined(CONFIG_ARCH_OMAP3) |
633 | 633 | ||
634 | static struct clockdomain mpu_34xx_clkdm = { | 634 | static struct clockdomain mpu_3xxx_clkdm = { |
635 | .name = "mpu_clkdm", | 635 | .name = "mpu_clkdm", |
636 | .pwrdm = { .name = "mpu_pwrdm" }, | 636 | .pwrdm = { .name = "mpu_pwrdm" }, |
637 | .flags = CLKDM_CAN_HWSUP | CLKDM_CAN_FORCE_WAKEUP, | 637 | .flags = CLKDM_CAN_HWSUP | CLKDM_CAN_FORCE_WAKEUP, |
638 | .clkstctrl_reg = OMAP34XX_CM_REGADDR(MPU_MOD, OMAP2_CM_CLKSTCTRL), | 638 | .clkstctrl_reg = OMAP34XX_CM_REGADDR(MPU_MOD, OMAP2_CM_CLKSTCTRL), |
639 | .dep_bit = OMAP3430_EN_MPU_SHIFT, | 639 | .dep_bit = OMAP3430_EN_MPU_SHIFT, |
640 | .wkdep_srcs = mpu_34xx_wkdeps, | 640 | .wkdep_srcs = mpu_3xxx_wkdeps, |
641 | .clktrctrl_mask = OMAP3430_CLKTRCTRL_MPU_MASK, | 641 | .clktrctrl_mask = OMAP3430_CLKTRCTRL_MPU_MASK, |
642 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430), | 642 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430), |
643 | }; | 643 | }; |
@@ -706,10 +706,10 @@ static struct clockdomain d2d_clkdm = { | |||
706 | 706 | ||
707 | /* | 707 | /* |
708 | * XXX add usecounting for clkdm dependencies, otherwise the presence | 708 | * XXX add usecounting for clkdm dependencies, otherwise the presence |
709 | * of a single dep bit for core_l3_34xx_clkdm and core_l4_34xx_clkdm | 709 | * of a single dep bit for core_l3_3xxx_clkdm and core_l4_3xxx_clkdm |
710 | * could cause trouble | 710 | * could cause trouble |
711 | */ | 711 | */ |
712 | static struct clockdomain core_l3_34xx_clkdm = { | 712 | static struct clockdomain core_l3_3xxx_clkdm = { |
713 | .name = "core_l3_clkdm", | 713 | .name = "core_l3_clkdm", |
714 | .pwrdm = { .name = "core_pwrdm" }, | 714 | .pwrdm = { .name = "core_pwrdm" }, |
715 | .flags = CLKDM_CAN_HWSUP, | 715 | .flags = CLKDM_CAN_HWSUP, |
@@ -721,10 +721,10 @@ static struct clockdomain core_l3_34xx_clkdm = { | |||
721 | 721 | ||
722 | /* | 722 | /* |
723 | * XXX add usecounting for clkdm dependencies, otherwise the presence | 723 | * XXX add usecounting for clkdm dependencies, otherwise the presence |
724 | * of a single dep bit for core_l3_34xx_clkdm and core_l4_34xx_clkdm | 724 | * of a single dep bit for core_l3_3xxx_clkdm and core_l4_3xxx_clkdm |
725 | * could cause trouble | 725 | * could cause trouble |
726 | */ | 726 | */ |
727 | static struct clockdomain core_l4_34xx_clkdm = { | 727 | static struct clockdomain core_l4_3xxx_clkdm = { |
728 | .name = "core_l4_clkdm", | 728 | .name = "core_l4_clkdm", |
729 | .pwrdm = { .name = "core_pwrdm" }, | 729 | .pwrdm = { .name = "core_pwrdm" }, |
730 | .flags = CLKDM_CAN_HWSUP, | 730 | .flags = CLKDM_CAN_HWSUP, |
@@ -735,7 +735,7 @@ static struct clockdomain core_l4_34xx_clkdm = { | |||
735 | }; | 735 | }; |
736 | 736 | ||
737 | /* Another case of bit name collisions between several registers: EN_DSS */ | 737 | /* Another case of bit name collisions between several registers: EN_DSS */ |
738 | static struct clockdomain dss_34xx_clkdm = { | 738 | static struct clockdomain dss_3xxx_clkdm = { |
739 | .name = "dss_clkdm", | 739 | .name = "dss_clkdm", |
740 | .pwrdm = { .name = "dss_pwrdm" }, | 740 | .pwrdm = { .name = "dss_pwrdm" }, |
741 | .flags = CLKDM_CAN_HWSUP_SWSUP, | 741 | .flags = CLKDM_CAN_HWSUP_SWSUP, |
@@ -829,12 +829,12 @@ static struct clockdomain dpll5_clkdm = { | |||
829 | .omap_chip = OMAP_CHIP_INIT(CHIP_GE_OMAP3430ES2), | 829 | .omap_chip = OMAP_CHIP_INIT(CHIP_GE_OMAP3430ES2), |
830 | }; | 830 | }; |
831 | 831 | ||
832 | #endif /* CONFIG_ARCH_OMAP34XX */ | 832 | #endif /* CONFIG_ARCH_OMAP3 */ |
833 | 833 | ||
834 | #include "clockdomains44xx.h" | 834 | #include "clockdomains44xx.h" |
835 | 835 | ||
836 | /* | 836 | /* |
837 | * Clockdomain hwsup dependencies (34XX only) | 837 | * Clockdomain hwsup dependencies (OMAP3 only) |
838 | */ | 838 | */ |
839 | 839 | ||
840 | static struct clkdm_autodep clkdm_autodeps[] = { | 840 | static struct clkdm_autodep clkdm_autodeps[] = { |
@@ -857,7 +857,7 @@ static struct clkdm_autodep clkdm_autodeps[] = { | |||
857 | 857 | ||
858 | static struct clockdomain *clockdomains_omap[] = { | 858 | static struct clockdomain *clockdomains_omap[] = { |
859 | 859 | ||
860 | #if defined(CONFIG_ARCH_OMAP24XX) | defined(CONFIG_ARCH_OMAP34XX) | 860 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
861 | &wkup_clkdm, | 861 | &wkup_clkdm, |
862 | &cm_clkdm, | 862 | &cm_clkdm, |
863 | &prm_clkdm, | 863 | &prm_clkdm, |
@@ -883,16 +883,16 @@ static struct clockdomain *clockdomains_omap[] = { | |||
883 | &dss_2430_clkdm, | 883 | &dss_2430_clkdm, |
884 | #endif | 884 | #endif |
885 | 885 | ||
886 | #ifdef CONFIG_ARCH_OMAP34XX | 886 | #ifdef CONFIG_ARCH_OMAP3 |
887 | &mpu_34xx_clkdm, | 887 | &mpu_3xxx_clkdm, |
888 | &neon_clkdm, | 888 | &neon_clkdm, |
889 | &iva2_clkdm, | 889 | &iva2_clkdm, |
890 | &gfx_3430es1_clkdm, | 890 | &gfx_3430es1_clkdm, |
891 | &sgx_clkdm, | 891 | &sgx_clkdm, |
892 | &d2d_clkdm, | 892 | &d2d_clkdm, |
893 | &core_l3_34xx_clkdm, | 893 | &core_l3_3xxx_clkdm, |
894 | &core_l4_34xx_clkdm, | 894 | &core_l4_3xxx_clkdm, |
895 | &dss_34xx_clkdm, | 895 | &dss_3xxx_clkdm, |
896 | &cam_clkdm, | 896 | &cam_clkdm, |
897 | &usbhost_clkdm, | 897 | &usbhost_clkdm, |
898 | &per_clkdm, | 898 | &per_clkdm, |
diff --git a/arch/arm/mach-omap2/powerdomains.h b/arch/arm/mach-omap2/powerdomains.h index faa8fc952d9..105cbcaefd3 100644 --- a/arch/arm/mach-omap2/powerdomains.h +++ b/arch/arm/mach-omap2/powerdomains.h | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | /* | 24 | /* |
25 | * This file contains all of the powerdomains that have some element | 25 | * This file contains all of the powerdomains that have some element |
26 | * of software control for the OMAP24xx and OMAP34XX chips. | 26 | * of software control for the OMAP24xx and OMAP34xx chips. |
27 | * | 27 | * |
28 | * This is not an exhaustive listing of powerdomains on the chips; only | 28 | * This is not an exhaustive listing of powerdomains on the chips; only |
29 | * powerdomains that can be controlled in software. | 29 | * powerdomains that can be controlled in software. |
@@ -60,7 +60,7 @@ | |||
60 | 60 | ||
61 | /* OMAP2/3-common powerdomains */ | 61 | /* OMAP2/3-common powerdomains */ |
62 | 62 | ||
63 | #if defined(CONFIG_ARCH_OMAP24XX) | defined(CONFIG_ARCH_OMAP34XX) | 63 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
64 | 64 | ||
65 | /* | 65 | /* |
66 | * The GFX powerdomain is not present on 3430ES2, but currently we do not | 66 | * The GFX powerdomain is not present on 3430ES2, but currently we do not |
@@ -94,12 +94,12 @@ static struct powerdomain wkup_omap2_pwrdm = { | |||
94 | /* As powerdomains are added or removed above, this list must also be changed */ | 94 | /* As powerdomains are added or removed above, this list must also be changed */ |
95 | static struct powerdomain *powerdomains_omap[] __initdata = { | 95 | static struct powerdomain *powerdomains_omap[] __initdata = { |
96 | 96 | ||
97 | #if defined(CONFIG_ARCH_OMAP24XX) | defined(CONFIG_ARCH_OMAP34XX) | 97 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
98 | &wkup_omap2_pwrdm, | 98 | &wkup_omap2_pwrdm, |
99 | &gfx_omap2_pwrdm, | 99 | &gfx_omap2_pwrdm, |
100 | #endif | 100 | #endif |
101 | 101 | ||
102 | #ifdef CONFIG_ARCH_OMAP24XX | 102 | #ifdef CONFIG_ARCH_OMAP2 |
103 | &dsp_pwrdm, | 103 | &dsp_pwrdm, |
104 | &mpu_24xx_pwrdm, | 104 | &mpu_24xx_pwrdm, |
105 | &core_24xx_pwrdm, | 105 | &core_24xx_pwrdm, |
@@ -109,12 +109,12 @@ static struct powerdomain *powerdomains_omap[] __initdata = { | |||
109 | &mdm_pwrdm, | 109 | &mdm_pwrdm, |
110 | #endif | 110 | #endif |
111 | 111 | ||
112 | #ifdef CONFIG_ARCH_OMAP34XX | 112 | #ifdef CONFIG_ARCH_OMAP3 |
113 | &iva2_pwrdm, | 113 | &iva2_pwrdm, |
114 | &mpu_34xx_pwrdm, | 114 | &mpu_3xxx_pwrdm, |
115 | &neon_pwrdm, | 115 | &neon_pwrdm, |
116 | &core_34xx_pre_es3_1_pwrdm, | 116 | &core_3xxx_pre_es3_1_pwrdm, |
117 | &core_34xx_es3_1_pwrdm, | 117 | &core_3xxx_es3_1_pwrdm, |
118 | &cam_pwrdm, | 118 | &cam_pwrdm, |
119 | &dss_pwrdm, | 119 | &dss_pwrdm, |
120 | &per_pwrdm, | 120 | &per_pwrdm, |
diff --git a/arch/arm/mach-omap2/powerdomains34xx.h b/arch/arm/mach-omap2/powerdomains34xx.h index 28228ef20e8..186c0132466 100644 --- a/arch/arm/mach-omap2/powerdomains34xx.h +++ b/arch/arm/mach-omap2/powerdomains34xx.h | |||
@@ -1,8 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * OMAP34XX powerdomain definitions | 2 | * OMAP3 powerdomain definitions |
3 | * | 3 | * |
4 | * Copyright (C) 2007-2008 Texas Instruments, Inc. | 4 | * Copyright (C) 2007-2008 Texas Instruments, Inc. |
5 | * Copyright (C) 2007-2009 Nokia Corporation | 5 | * Copyright (C) 2007-2010 Nokia Corporation |
6 | * | 6 | * |
7 | * Written by Paul Walmsley | 7 | * Written by Paul Walmsley |
8 | * Debugging and integration fixes by Jouni Högander | 8 | * Debugging and integration fixes by Jouni Högander |
@@ -32,7 +32,7 @@ | |||
32 | * 34XX-specific powerdomains, dependencies | 32 | * 34XX-specific powerdomains, dependencies |
33 | */ | 33 | */ |
34 | 34 | ||
35 | #ifdef CONFIG_ARCH_OMAP34XX | 35 | #ifdef CONFIG_ARCH_OMAP3 |
36 | 36 | ||
37 | /* | 37 | /* |
38 | * Powerdomains | 38 | * Powerdomains |
@@ -59,7 +59,7 @@ static struct powerdomain iva2_pwrdm = { | |||
59 | }, | 59 | }, |
60 | }; | 60 | }; |
61 | 61 | ||
62 | static struct powerdomain mpu_34xx_pwrdm = { | 62 | static struct powerdomain mpu_3xxx_pwrdm = { |
63 | .name = "mpu_pwrdm", | 63 | .name = "mpu_pwrdm", |
64 | .prcm_offs = MPU_MOD, | 64 | .prcm_offs = MPU_MOD, |
65 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430), | 65 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430), |
@@ -75,7 +75,7 @@ static struct powerdomain mpu_34xx_pwrdm = { | |||
75 | }, | 75 | }, |
76 | }; | 76 | }; |
77 | 77 | ||
78 | static struct powerdomain core_34xx_pre_es3_1_pwrdm = { | 78 | static struct powerdomain core_3xxx_pre_es3_1_pwrdm = { |
79 | .name = "core_pwrdm", | 79 | .name = "core_pwrdm", |
80 | .prcm_offs = CORE_MOD, | 80 | .prcm_offs = CORE_MOD, |
81 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430ES1 | | 81 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430ES1 | |
@@ -93,7 +93,7 @@ static struct powerdomain core_34xx_pre_es3_1_pwrdm = { | |||
93 | }, | 93 | }, |
94 | }; | 94 | }; |
95 | 95 | ||
96 | static struct powerdomain core_34xx_es3_1_pwrdm = { | 96 | static struct powerdomain core_3xxx_es3_1_pwrdm = { |
97 | .name = "core_pwrdm", | 97 | .name = "core_pwrdm", |
98 | .prcm_offs = CORE_MOD, | 98 | .prcm_offs = CORE_MOD, |
99 | .omap_chip = OMAP_CHIP_INIT(CHIP_GE_OMAP3430ES3_1), | 99 | .omap_chip = OMAP_CHIP_INIT(CHIP_GE_OMAP3430ES3_1), |
@@ -243,7 +243,7 @@ static struct powerdomain dpll5_pwrdm = { | |||
243 | }; | 243 | }; |
244 | 244 | ||
245 | 245 | ||
246 | #endif /* CONFIG_ARCH_OMAP34XX */ | 246 | #endif /* CONFIG_ARCH_OMAP3 */ |
247 | 247 | ||
248 | 248 | ||
249 | #endif | 249 | #endif |