diff options
author | Olof Johansson <olof@lixom.net> | 2015-12-22 16:10:00 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2015-12-22 16:10:00 -0500 |
commit | 8907dbaa363de87e5c6f48070e3d8b639477d5ba (patch) | |
tree | 8c3e0245a7bd10535e5fab6d2da99de6824f5851 /arch/arm/mach-bcm | |
parent | 9cdac4a20a963d946f3ce13e6dd4943a780f5b54 (diff) | |
parent | e324654294907a420ab3773efe8849a935f37bf0 (diff) |
Merge branch 'treewide/cleanup' into next/soc
Merge in cleanup to avoid internal conflicts with newly added code.
* treewide/cleanup:
ARM: use "depends on" for SoC configs instead of "if" after prompt
ARM/clocksource: use automatic DT probing for ux500 PRCMU
ARM: use const and __initconst for smp_operations
ARM: hisi: do not export smp_operations structures
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-bcm')
-rw-r--r-- | arch/arm/mach-bcm/Kconfig | 27 | ||||
-rw-r--r-- | arch/arm/mach-bcm/bcm63xx_smp.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-bcm/platsmp-brcmstb.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-bcm/platsmp.c | 2 |
4 files changed, 21 insertions, 12 deletions
diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig index 0207736674d6..c9723d82cb30 100644 --- a/arch/arm/mach-bcm/Kconfig +++ b/arch/arm/mach-bcm/Kconfig | |||
@@ -1,5 +1,6 @@ | |||
1 | menuconfig ARCH_BCM | 1 | menuconfig ARCH_BCM |
2 | bool "Broadcom SoC Support" if ARCH_MULTI_V6_V7 | 2 | bool "Broadcom SoC Support" |
3 | depends on ARCH_MULTI_V6_V7 | ||
3 | help | 4 | help |
4 | This enables support for Broadcom ARM based SoC chips | 5 | This enables support for Broadcom ARM based SoC chips |
5 | 6 | ||
@@ -27,7 +28,8 @@ config ARCH_BCM_IPROC | |||
27 | Currently supported SoCs are Cygnus. | 28 | Currently supported SoCs are Cygnus. |
28 | 29 | ||
29 | config ARCH_BCM_CYGNUS | 30 | config ARCH_BCM_CYGNUS |
30 | bool "Broadcom Cygnus Support" if ARCH_MULTI_V7 | 31 | bool "Broadcom Cygnus Support" |
32 | depends on ARCH_MULTI_V7 | ||
31 | select ARCH_BCM_IPROC | 33 | select ARCH_BCM_IPROC |
32 | help | 34 | help |
33 | Enable support for the Cygnus family, | 35 | Enable support for the Cygnus family, |
@@ -36,7 +38,8 @@ config ARCH_BCM_CYGNUS | |||
36 | BCM58300, BCM58302, BCM58303, BCM58305. | 38 | BCM58300, BCM58302, BCM58303, BCM58305. |
37 | 39 | ||
38 | config ARCH_BCM_NSP | 40 | config ARCH_BCM_NSP |
39 | bool "Broadcom Northstar Plus SoC Support" if ARCH_MULTI_V7 | 41 | bool "Broadcom Northstar Plus SoC Support" |
42 | depends on ARCH_MULTI_V7 | ||
40 | select ARCH_BCM_IPROC | 43 | select ARCH_BCM_IPROC |
41 | select ARM_ERRATA_754322 | 44 | select ARM_ERRATA_754322 |
42 | select ARM_ERRATA_775420 | 45 | select ARM_ERRATA_775420 |
@@ -52,7 +55,8 @@ config ARCH_BCM_NSP | |||
52 | NAND flash, SATA and several other IO controllers. | 55 | NAND flash, SATA and several other IO controllers. |
53 | 56 | ||
54 | config ARCH_BCM_5301X | 57 | config ARCH_BCM_5301X |
55 | bool "Broadcom BCM470X / BCM5301X ARM SoC" if ARCH_MULTI_V7 | 58 | bool "Broadcom BCM470X / BCM5301X ARM SoC" |
59 | depends on ARCH_MULTI_V7 | ||
56 | select ARCH_BCM_IPROC | 60 | select ARCH_BCM_IPROC |
57 | select ARM_ERRATA_754322 | 61 | select ARM_ERRATA_754322 |
58 | select ARM_ERRATA_775420 | 62 | select ARM_ERRATA_775420 |
@@ -89,7 +93,8 @@ config ARCH_BCM_MOBILE | |||
89 | This enables support for systems based on Broadcom mobile SoCs. | 93 | This enables support for systems based on Broadcom mobile SoCs. |
90 | 94 | ||
91 | config ARCH_BCM_281XX | 95 | config ARCH_BCM_281XX |
92 | bool "Broadcom BCM281XX SoC family" if ARCH_MULTI_V7 | 96 | bool "Broadcom BCM281XX SoC family" |
97 | depends on ARCH_MULTI_V7 | ||
93 | select ARCH_BCM_MOBILE | 98 | select ARCH_BCM_MOBILE |
94 | select HAVE_SMP | 99 | select HAVE_SMP |
95 | help | 100 | help |
@@ -98,7 +103,8 @@ config ARCH_BCM_281XX | |||
98 | variants. | 103 | variants. |
99 | 104 | ||
100 | config ARCH_BCM_21664 | 105 | config ARCH_BCM_21664 |
101 | bool "Broadcom BCM21664 SoC family" if ARCH_MULTI_V7 | 106 | bool "Broadcom BCM21664 SoC family" |
107 | depends on ARCH_MULTI_V7 | ||
102 | select ARCH_BCM_MOBILE | 108 | select ARCH_BCM_MOBILE |
103 | select HAVE_SMP | 109 | select HAVE_SMP |
104 | help | 110 | help |
@@ -129,7 +135,8 @@ config ARCH_BCM_MOBILE_SMP | |||
129 | comment "Other Architectures" | 135 | comment "Other Architectures" |
130 | 136 | ||
131 | config ARCH_BCM2835 | 137 | config ARCH_BCM2835 |
132 | bool "Broadcom BCM2835 family" if ARCH_MULTI_V6 | 138 | bool "Broadcom BCM2835 family" |
139 | depends on ARCH_MULTI_V6 | ||
133 | select ARCH_REQUIRE_GPIOLIB | 140 | select ARCH_REQUIRE_GPIOLIB |
134 | select ARM_AMBA | 141 | select ARM_AMBA |
135 | select ARM_ERRATA_411920 | 142 | select ARM_ERRATA_411920 |
@@ -142,7 +149,8 @@ config ARCH_BCM2835 | |||
142 | used in the Raspberry Pi and Roku 2 devices. | 149 | used in the Raspberry Pi and Roku 2 devices. |
143 | 150 | ||
144 | config ARCH_BCM_63XX | 151 | config ARCH_BCM_63XX |
145 | bool "Broadcom BCM63xx DSL SoC" if ARCH_MULTI_V7 | 152 | bool "Broadcom BCM63xx DSL SoC" |
153 | depends on ARCH_MULTI_V7 | ||
146 | depends on MMU | 154 | depends on MMU |
147 | select ARM_ERRATA_754322 | 155 | select ARM_ERRATA_754322 |
148 | select ARM_ERRATA_764369 if SMP | 156 | select ARM_ERRATA_764369 if SMP |
@@ -159,7 +167,8 @@ config ARCH_BCM_63XX | |||
159 | the BCM63138 variant. | 167 | the BCM63138 variant. |
160 | 168 | ||
161 | config ARCH_BRCMSTB | 169 | config ARCH_BRCMSTB |
162 | bool "Broadcom BCM7XXX based boards" if ARCH_MULTI_V7 | 170 | bool "Broadcom BCM7XXX based boards" |
171 | depends on ARCH_MULTI_V7 | ||
163 | select ARM_GIC | 172 | select ARM_GIC |
164 | select ARM_ERRATA_798181 if SMP | 173 | select ARM_ERRATA_798181 if SMP |
165 | select HAVE_ARM_ARCH_TIMER | 174 | select HAVE_ARM_ARCH_TIMER |
diff --git a/arch/arm/mach-bcm/bcm63xx_smp.c b/arch/arm/mach-bcm/bcm63xx_smp.c index 19be90421f4d..9b6727ed68cd 100644 --- a/arch/arm/mach-bcm/bcm63xx_smp.c +++ b/arch/arm/mach-bcm/bcm63xx_smp.c | |||
@@ -161,7 +161,7 @@ static void __init bcm63138_smp_prepare_cpus(unsigned int max_cpus) | |||
161 | } | 161 | } |
162 | } | 162 | } |
163 | 163 | ||
164 | struct smp_operations bcm63138_smp_ops __initdata = { | 164 | static const struct smp_operations bcm63138_smp_ops __initconst = { |
165 | .smp_prepare_cpus = bcm63138_smp_prepare_cpus, | 165 | .smp_prepare_cpus = bcm63138_smp_prepare_cpus, |
166 | .smp_boot_secondary = bcm63138_smp_boot_secondary, | 166 | .smp_boot_secondary = bcm63138_smp_boot_secondary, |
167 | }; | 167 | }; |
diff --git a/arch/arm/mach-bcm/platsmp-brcmstb.c b/arch/arm/mach-bcm/platsmp-brcmstb.c index 44d6bddf7a4e..40dc8448445e 100644 --- a/arch/arm/mach-bcm/platsmp-brcmstb.c +++ b/arch/arm/mach-bcm/platsmp-brcmstb.c | |||
@@ -356,7 +356,7 @@ static int brcmstb_boot_secondary(unsigned int cpu, struct task_struct *idle) | |||
356 | return 0; | 356 | return 0; |
357 | } | 357 | } |
358 | 358 | ||
359 | static struct smp_operations brcmstb_smp_ops __initdata = { | 359 | static const struct smp_operations brcmstb_smp_ops __initconst = { |
360 | .smp_prepare_cpus = brcmstb_cpu_ctrl_setup, | 360 | .smp_prepare_cpus = brcmstb_cpu_ctrl_setup, |
361 | .smp_boot_secondary = brcmstb_boot_secondary, | 361 | .smp_boot_secondary = brcmstb_boot_secondary, |
362 | #ifdef CONFIG_HOTPLUG_CPU | 362 | #ifdef CONFIG_HOTPLUG_CPU |
diff --git a/arch/arm/mach-bcm/platsmp.c b/arch/arm/mach-bcm/platsmp.c index ea4201e6d0c9..575defcc53f9 100644 --- a/arch/arm/mach-bcm/platsmp.c +++ b/arch/arm/mach-bcm/platsmp.c | |||
@@ -276,7 +276,7 @@ out: | |||
276 | return ret; | 276 | return ret; |
277 | } | 277 | } |
278 | 278 | ||
279 | static struct smp_operations bcm_smp_ops __initdata = { | 279 | static const struct smp_operations bcm_smp_ops __initconst = { |
280 | .smp_prepare_cpus = bcm_smp_prepare_cpus, | 280 | .smp_prepare_cpus = bcm_smp_prepare_cpus, |
281 | .smp_boot_secondary = kona_boot_secondary, | 281 | .smp_boot_secondary = kona_boot_secondary, |
282 | }; | 282 | }; |