Commit 4c3ffffd authored by Stephen Boyd's avatar Stephen Boyd Committed by Arnd Bergmann

ARM: Push selects for TWD/SCU into machine entries

The TWD and SCU configs are selected by default as long as
MSM_SCORPIONMP is false and/or MCT is false. Implementing the
logic this way certainly saves lines in the Kconfig but it
precludes those machines which select MSM_SCORPIONMP or MCT from
participating in the single zImage effort because when those
machines are combined with other SMP capable machines the TWD and
SCU are no longer selected by default.

Push the select out to the machine entries so that we can compile
these machines together and still select the appropriate configs.

Cc: Barry Song <baohua.song@csr.com>
Acked-by: default avatarDavid Brown <davidb@codeaurora.org>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarPawel Moll <pawel.moll@arm.com>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
Acked-by: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Shiraz Hashim <shiraz.hashim@st.com>
Acked-by: default avatarSimon Horman <horms@verge.net.au>
Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Tony Lindgren <tony@atomide.com>
Acked-by: default avatarViresh Kumar <viresh.linux@gmail.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 494cc760
...@@ -637,6 +637,8 @@ config ARCH_SHMOBILE ...@@ -637,6 +637,8 @@ config ARCH_SHMOBILE
bool "Renesas SH-Mobile / R-Mobile" bool "Renesas SH-Mobile / R-Mobile"
select CLKDEV_LOOKUP select CLKDEV_LOOKUP
select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS
select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if LOCAL_TIMERS
select HAVE_CLK select HAVE_CLK
select HAVE_MACH_CLKDEV select HAVE_MACH_CLKDEV
select HAVE_SMP select HAVE_SMP
...@@ -1400,7 +1402,6 @@ config SMP ...@@ -1400,7 +1402,6 @@ config SMP
depends on GENERIC_CLOCKEVENTS depends on GENERIC_CLOCKEVENTS
depends on HAVE_SMP depends on HAVE_SMP
depends on MMU depends on MMU
select HAVE_ARM_SCU if !ARCH_MSM_SCORPIONMP
select USE_GENERIC_SMP_HELPERS select USE_GENERIC_SMP_HELPERS
help help
This enables support for systems with more than one CPU. If you have This enables support for systems with more than one CPU. If you have
...@@ -1525,7 +1526,6 @@ config LOCAL_TIMERS ...@@ -1525,7 +1526,6 @@ config LOCAL_TIMERS
bool "Use local timer interrupts" bool "Use local timer interrupts"
depends on SMP depends on SMP
default y default y
select HAVE_ARM_TWD if (!ARCH_MSM_SCORPIONMP && !EXYNOS4_MCT)
help help
Enable support for local timers on SMP platforms, rather then the Enable support for local timers on SMP platforms, rather then the
legacy IPI broadcast method. Local timers allows the system legacy IPI broadcast method. Local timers allows the system
......
...@@ -14,6 +14,7 @@ menu "SAMSUNG EXYNOS SoCs Support" ...@@ -14,6 +14,7 @@ menu "SAMSUNG EXYNOS SoCs Support"
config ARCH_EXYNOS4 config ARCH_EXYNOS4
bool "SAMSUNG EXYNOS4" bool "SAMSUNG EXYNOS4"
default y default y
select HAVE_ARM_SCU if SMP
select HAVE_SMP select HAVE_SMP
select MIGHT_HAVE_CACHE_L2X0 select MIGHT_HAVE_CACHE_L2X0
help help
...@@ -21,6 +22,7 @@ config ARCH_EXYNOS4 ...@@ -21,6 +22,7 @@ config ARCH_EXYNOS4
config ARCH_EXYNOS5 config ARCH_EXYNOS5
bool "SAMSUNG EXYNOS5" bool "SAMSUNG EXYNOS5"
select HAVE_ARM_SCU if SMP
select HAVE_SMP select HAVE_SMP
help help
Samsung EXYNOS5 (Cortex-A15) SoC based systems Samsung EXYNOS5 (Cortex-A15) SoC based systems
......
...@@ -12,6 +12,7 @@ config ARCH_HIGHBANK ...@@ -12,6 +12,7 @@ config ARCH_HIGHBANK
select CPU_V7 select CPU_V7
select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS
select HAVE_ARM_SCU select HAVE_ARM_SCU
select HAVE_ARM_TWD if LOCAL_TIMERS
select HAVE_SMP select HAVE_SMP
select MAILBOX select MAILBOX
select PL320_MBOX select PL320_MBOX
......
...@@ -811,7 +811,8 @@ config SOC_IMX6Q ...@@ -811,7 +811,8 @@ config SOC_IMX6Q
select ARM_GIC select ARM_GIC
select COMMON_CLK select COMMON_CLK
select CPU_V7 select CPU_V7
select HAVE_ARM_SCU select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if LOCAL_TIMERS
select HAVE_CAN_FLEXCAN if CAN select HAVE_CAN_FLEXCAN if CAN
select HAVE_IMX_GPC select HAVE_IMX_GPC
select HAVE_IMX_MMDC select HAVE_IMX_MMDC
......
...@@ -44,10 +44,10 @@ endchoice ...@@ -44,10 +44,10 @@ endchoice
config ARCH_MSM8X60 config ARCH_MSM8X60
bool "MSM8X60" bool "MSM8X60"
select ARCH_MSM_SCORPIONMP
select ARM_GIC select ARM_GIC
select CPU_V7 select CPU_V7
select GPIO_MSM_V2 select GPIO_MSM_V2
select HAVE_SMP
select MSM_GPIOMUX select MSM_GPIOMUX
select MSM_SCM if SMP select MSM_SCM if SMP
select MSM_V2_TLMM select MSM_V2_TLMM
...@@ -55,9 +55,9 @@ config ARCH_MSM8X60 ...@@ -55,9 +55,9 @@ config ARCH_MSM8X60
config ARCH_MSM8960 config ARCH_MSM8960
bool "MSM8960" bool "MSM8960"
select ARCH_MSM_SCORPIONMP
select ARM_GIC select ARM_GIC
select CPU_V7 select CPU_V7
select HAVE_SMP
select MSM_GPIOMUX select MSM_GPIOMUX
select MSM_SCM if SMP select MSM_SCM if SMP
select MSM_V2_TLMM select MSM_V2_TLMM
...@@ -68,9 +68,6 @@ config MSM_HAS_DEBUG_UART_HS ...@@ -68,9 +68,6 @@ config MSM_HAS_DEBUG_UART_HS
config MSM_SOC_REV_A config MSM_SOC_REV_A
bool bool
config ARCH_MSM_SCORPIONMP
bool
select HAVE_SMP
config ARCH_MSM_ARM11 config ARCH_MSM_ARM11
bool bool
......
...@@ -87,6 +87,8 @@ config ARCH_OMAP4 ...@@ -87,6 +87,8 @@ config ARCH_OMAP4
select ARM_GIC select ARM_GIC
select CACHE_L2X0 select CACHE_L2X0
select CPU_V7 select CPU_V7
select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if LOCAL_TIMERS
select HAVE_SMP select HAVE_SMP
select LOCAL_TIMERS if SMP select LOCAL_TIMERS if SMP
select OMAP_INTERCONNECT select OMAP_INTERCONNECT
......
...@@ -36,6 +36,7 @@ config ARCH_MARCO ...@@ -36,6 +36,7 @@ config ARCH_MARCO
default y default y
select ARM_GIC select ARM_GIC
select CPU_V7 select CPU_V7
select HAVE_ARM_SCU if SMP
select HAVE_SMP select HAVE_SMP
select SMP_ON_UP select SMP_ON_UP
help help
......
...@@ -12,6 +12,8 @@ config REALVIEW_EB_A9MP ...@@ -12,6 +12,8 @@ config REALVIEW_EB_A9MP
bool "Support Multicore Cortex-A9 Tile" bool "Support Multicore Cortex-A9 Tile"
depends on MACH_REALVIEW_EB depends on MACH_REALVIEW_EB
select CPU_V7 select CPU_V7
select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if LOCAL_TIMERS
select HAVE_SMP select HAVE_SMP
select MIGHT_HAVE_CACHE_L2X0 select MIGHT_HAVE_CACHE_L2X0
help help
...@@ -23,6 +25,8 @@ config REALVIEW_EB_ARM11MP ...@@ -23,6 +25,8 @@ config REALVIEW_EB_ARM11MP
depends on MACH_REALVIEW_EB depends on MACH_REALVIEW_EB
select ARCH_HAS_BARRIERS if SMP select ARCH_HAS_BARRIERS if SMP
select CPU_V6K select CPU_V6K
select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if LOCAL_TIMERS
select HAVE_SMP select HAVE_SMP
select MIGHT_HAVE_CACHE_L2X0 select MIGHT_HAVE_CACHE_L2X0
help help
...@@ -43,6 +47,8 @@ config MACH_REALVIEW_PB11MP ...@@ -43,6 +47,8 @@ config MACH_REALVIEW_PB11MP
select ARCH_HAS_BARRIERS if SMP select ARCH_HAS_BARRIERS if SMP
select ARM_GIC select ARM_GIC
select CPU_V6K select CPU_V6K
select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if LOCAL_TIMERS
select HAVE_PATA_PLATFORM select HAVE_PATA_PLATFORM
select HAVE_SMP select HAVE_SMP
select MIGHT_HAVE_CACHE_L2X0 select MIGHT_HAVE_CACHE_L2X0
...@@ -85,6 +91,8 @@ config MACH_REALVIEW_PBX ...@@ -85,6 +91,8 @@ config MACH_REALVIEW_PBX
bool "Support RealView(R) Platform Baseboard Explore" bool "Support RealView(R) Platform Baseboard Explore"
select ARCH_SPARSEMEM_ENABLE if CPU_V7 && !REALVIEW_HIGH_PHYS_OFFSET select ARCH_SPARSEMEM_ENABLE if CPU_V7 && !REALVIEW_HIGH_PHYS_OFFSET
select ARM_GIC select ARM_GIC
select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if LOCAL_TIMERS
select HAVE_PATA_PLATFORM select HAVE_PATA_PLATFORM
select HAVE_SMP select HAVE_SMP
select MIGHT_HAVE_CACHE_L2X0 select MIGHT_HAVE_CACHE_L2X0
......
...@@ -22,6 +22,8 @@ config ARCH_SPEAR13XX ...@@ -22,6 +22,8 @@ config ARCH_SPEAR13XX
select ARM_GIC select ARM_GIC
select CPU_V7 select CPU_V7
select GPIO_SPEAR_SPICS select GPIO_SPEAR_SPICS
select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if LOCAL_TIMERS
select HAVE_SMP select HAVE_SMP
select MIGHT_HAVE_CACHE_L2X0 select MIGHT_HAVE_CACHE_L2X0
select PINCTRL select PINCTRL
......
...@@ -7,6 +7,8 @@ config ARCH_TEGRA ...@@ -7,6 +7,8 @@ config ARCH_TEGRA
select CLKSRC_OF select CLKSRC_OF
select COMMON_CLK select COMMON_CLK
select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS
select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if LOCAL_TIMERS
select HAVE_CLK select HAVE_CLK
select HAVE_SMP select HAVE_SMP
select MIGHT_HAVE_CACHE_L2X0 select MIGHT_HAVE_CACHE_L2X0
......
...@@ -7,6 +7,8 @@ config ARCH_U8500 ...@@ -7,6 +7,8 @@ config ARCH_U8500
select CLKDEV_LOOKUP select CLKDEV_LOOKUP
select CPU_V7 select CPU_V7
select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS
select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if LOCAL_TIMERS
select HAVE_SMP select HAVE_SMP
select MIGHT_HAVE_CACHE_L2X0 select MIGHT_HAVE_CACHE_L2X0
help help
......
...@@ -9,6 +9,8 @@ config ARCH_VEXPRESS ...@@ -9,6 +9,8 @@ config ARCH_VEXPRESS
select COMMON_CLK_VERSATILE select COMMON_CLK_VERSATILE
select CPU_V7 select CPU_V7
select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS
select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if LOCAL_TIMERS
select HAVE_CLK select HAVE_CLK
select HAVE_PATA_PLATFORM select HAVE_PATA_PLATFORM
select HAVE_SMP select HAVE_SMP
......
...@@ -5,6 +5,8 @@ config ARCH_ZYNQ ...@@ -5,6 +5,8 @@ config ARCH_ZYNQ
select COMMON_CLK select COMMON_CLK
select CPU_V7 select CPU_V7
select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS
select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if LOCAL_TIMERS
select ICST select ICST
select MIGHT_HAVE_CACHE_L2X0 select MIGHT_HAVE_CACHE_L2X0
select USE_OF select USE_OF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment