aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-12-19 16:54:35 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-12-19 16:54:35 -0500
commitdf0bcfe0f811a73077c06f75e440397e89ba58a4 (patch)
tree0d59d32430f337acda23a18b2e0116a2b9dcd51f /arch
parent215e83d971a04f04d191c7f702943412a19408fd (diff)
parenta2075a7aff5f469b91029c14f216dc169d1bd5f3 (diff)
Merge branch 'arm/common-kconfig-refactor+for-rmk' of git://git.linaro.org/people/dmart/linux-2.6-arm into devel-stable
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/Kconfig26
-rw-r--r--arch/arm/mach-exynos/Kconfig2
-rw-r--r--arch/arm/mach-imx/Kconfig2
-rw-r--r--arch/arm/mach-msm/Kconfig1
-rw-r--r--arch/arm/mach-omap2/Kconfig2
-rw-r--r--arch/arm/mach-realview/Kconfig9
-rw-r--r--arch/arm/mach-vexpress/Kconfig2
-rw-r--r--arch/arm/mm/Kconfig23
-rw-r--r--arch/arm/plat-mxc/Kconfig1
9 files changed, 56 insertions, 12 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index abba5b8c9d7..3ee1818540e 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -340,10 +340,12 @@ config ARCH_HIGHBANK
340 select ARM_AMBA 340 select ARM_AMBA
341 select ARM_GIC 341 select ARM_GIC
342 select ARM_TIMER_SP804 342 select ARM_TIMER_SP804
343 select CACHE_L2X0
343 select CLKDEV_LOOKUP 344 select CLKDEV_LOOKUP
344 select CPU_V7 345 select CPU_V7
345 select GENERIC_CLOCKEVENTS 346 select GENERIC_CLOCKEVENTS
346 select HAVE_ARM_SCU 347 select HAVE_ARM_SCU
348 select HAVE_SMP
347 select USE_OF 349 select USE_OF
348 help 350 help
349 Support for the Calxeda Highbank SoC based boards. 351 Support for the Calxeda Highbank SoC based boards.
@@ -361,6 +363,7 @@ config ARCH_CNS3XXX
361 select CPU_V6K 363 select CPU_V6K
362 select GENERIC_CLOCKEVENTS 364 select GENERIC_CLOCKEVENTS
363 select ARM_GIC 365 select ARM_GIC
366 select MIGHT_HAVE_CACHE_L2X0
364 select MIGHT_HAVE_PCI 367 select MIGHT_HAVE_PCI
365 select PCI_DOMAINS if PCI 368 select PCI_DOMAINS if PCI
366 help 369 help
@@ -381,6 +384,7 @@ config ARCH_PRIMA2
381 select GENERIC_CLOCKEVENTS 384 select GENERIC_CLOCKEVENTS
382 select CLKDEV_LOOKUP 385 select CLKDEV_LOOKUP
383 select GENERIC_IRQ_CHIP 386 select GENERIC_IRQ_CHIP
387 select MIGHT_HAVE_CACHE_L2X0
384 select USE_OF 388 select USE_OF
385 select ZONE_DMA 389 select ZONE_DMA
386 help 390 help
@@ -633,6 +637,8 @@ config ARCH_TEGRA
633 select GENERIC_GPIO 637 select GENERIC_GPIO
634 select HAVE_CLK 638 select HAVE_CLK
635 select HAVE_SCHED_CLOCK 639 select HAVE_SCHED_CLOCK
640 select HAVE_SMP
641 select MIGHT_HAVE_CACHE_L2X0
636 select ARCH_HAS_CPUFREQ 642 select ARCH_HAS_CPUFREQ
637 help 643 help
638 This enables support for NVIDIA Tegra based systems (Tegra APX, 644 This enables support for NVIDIA Tegra based systems (Tegra APX,
@@ -702,7 +708,9 @@ config ARCH_SHMOBILE
702 select HAVE_CLK 708 select HAVE_CLK
703 select CLKDEV_LOOKUP 709 select CLKDEV_LOOKUP
704 select HAVE_MACH_CLKDEV 710 select HAVE_MACH_CLKDEV
711 select HAVE_SMP
705 select GENERIC_CLOCKEVENTS 712 select GENERIC_CLOCKEVENTS
713 select MIGHT_HAVE_CACHE_L2X0
706 select NO_IOPORT 714 select NO_IOPORT
707 select SPARSE_IRQ 715 select SPARSE_IRQ
708 select MULTI_IRQ_HANDLER 716 select MULTI_IRQ_HANDLER
@@ -904,6 +912,8 @@ config ARCH_U8500
904 select CLKDEV_LOOKUP 912 select CLKDEV_LOOKUP
905 select ARCH_REQUIRE_GPIOLIB 913 select ARCH_REQUIRE_GPIOLIB
906 select ARCH_HAS_CPUFREQ 914 select ARCH_HAS_CPUFREQ
915 select HAVE_SMP
916 select MIGHT_HAVE_CACHE_L2X0
907 help 917 help
908 Support for ST-Ericsson's Ux500 architecture 918 Support for ST-Ericsson's Ux500 architecture
909 919
@@ -914,6 +924,7 @@ config ARCH_NOMADIK
914 select CPU_ARM926T 924 select CPU_ARM926T
915 select CLKDEV_LOOKUP 925 select CLKDEV_LOOKUP
916 select GENERIC_CLOCKEVENTS 926 select GENERIC_CLOCKEVENTS
927 select MIGHT_HAVE_CACHE_L2X0
917 select ARCH_REQUIRE_GPIOLIB 928 select ARCH_REQUIRE_GPIOLIB
918 help 929 help
919 Support for the Nomadik platform by ST-Ericsson 930 Support for the Nomadik platform by ST-Ericsson
@@ -973,6 +984,7 @@ config ARCH_ZYNQ
973 select ARM_GIC 984 select ARM_GIC
974 select ARM_AMBA 985 select ARM_AMBA
975 select ICST 986 select ICST
987 select MIGHT_HAVE_CACHE_L2X0
976 select USE_OF 988 select USE_OF
977 help 989 help
978 Support for Xilinx Zynq ARM Cortex A9 Platform 990 Support for Xilinx Zynq ARM Cortex A9 Platform
@@ -1434,14 +1446,20 @@ menu "Kernel Features"
1434 1446
1435source "kernel/time/Kconfig" 1447source "kernel/time/Kconfig"
1436 1448
1449config HAVE_SMP
1450 bool
1451 help
1452 This option should be selected by machines which have an SMP-
1453 capable CPU.
1454
1455 The only effect of this option is to make the SMP-related
1456 options available to the user for configuration.
1457
1437config SMP 1458config SMP
1438 bool "Symmetric Multi-Processing" 1459 bool "Symmetric Multi-Processing"
1439 depends on CPU_V6K || CPU_V7 1460 depends on CPU_V6K || CPU_V7
1440 depends on GENERIC_CLOCKEVENTS 1461 depends on GENERIC_CLOCKEVENTS
1441 depends on REALVIEW_EB_ARM11MP || REALVIEW_EB_A9MP || \ 1462 depends on HAVE_SMP
1442 MACH_REALVIEW_PB11MP || MACH_REALVIEW_PBX || ARCH_OMAP4 || \
1443 ARCH_EXYNOS4 || ARCH_TEGRA || ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || \
1444 ARCH_MSM_SCORPIONMP || ARCH_SHMOBILE || ARCH_HIGHBANK || SOC_IMX6Q
1445 depends on MMU 1463 depends on MMU
1446 select USE_GENERIC_SMP_HELPERS 1464 select USE_GENERIC_SMP_HELPERS
1447 select HAVE_ARM_SCU if !ARCH_MSM_SCORPIONMP 1465 select HAVE_ARM_SCU if !ARCH_MSM_SCORPIONMP
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index 724ec0f3560..e1efbca2a53 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -17,6 +17,8 @@ choice
17 17
18config ARCH_EXYNOS4 18config ARCH_EXYNOS4
19 bool "SAMSUNG EXYNOS4" 19 bool "SAMSUNG EXYNOS4"
20 select HAVE_SMP
21 select MIGHT_HAVE_CACHE_L2X0
20 help 22 help
21 Samsung EXYNOS4 SoCs based systems 23 Samsung EXYNOS4 SoCs based systems
22 24
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index c44aa974e79..188ecc00915 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -596,12 +596,12 @@ comment "i.MX6 family:"
596config SOC_IMX6Q 596config SOC_IMX6Q
597 bool "i.MX6 Quad support" 597 bool "i.MX6 Quad support"
598 select ARM_GIC 598 select ARM_GIC
599 select CACHE_L2X0
600 select CPU_V7 599 select CPU_V7
601 select HAVE_ARM_SCU 600 select HAVE_ARM_SCU
602 select HAVE_IMX_GPC 601 select HAVE_IMX_GPC
603 select HAVE_IMX_MMDC 602 select HAVE_IMX_MMDC
604 select HAVE_IMX_SRC 603 select HAVE_IMX_SRC
604 select HAVE_SMP
605 select USE_OF 605 select USE_OF
606 606
607 help 607 help
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig
index ebde97f5d5f..e6beaff7621 100644
--- a/arch/arm/mach-msm/Kconfig
+++ b/arch/arm/mach-msm/Kconfig
@@ -67,6 +67,7 @@ config MSM_SOC_REV_A
67 bool 67 bool
68config ARCH_MSM_SCORPIONMP 68config ARCH_MSM_SCORPIONMP
69 bool 69 bool
70 select HAVE_SMP
70 71
71config ARCH_MSM_ARM11 72config ARCH_MSM_ARM11
72 bool 73 bool
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index b6625130831..4f01533083c 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -43,8 +43,10 @@ config ARCH_OMAP4
43 bool "TI OMAP4" 43 bool "TI OMAP4"
44 default y 44 default y
45 depends on ARCH_OMAP2PLUS 45 depends on ARCH_OMAP2PLUS
46 select CACHE_L2X0
46 select CPU_V7 47 select CPU_V7
47 select ARM_GIC 48 select ARM_GIC
49 select HAVE_SMP
48 select LOCAL_TIMERS if SMP 50 select LOCAL_TIMERS if SMP
49 select PL310_ERRATA_588369 51 select PL310_ERRATA_588369
50 select PL310_ERRATA_727915 52 select PL310_ERRATA_727915
diff --git a/arch/arm/mach-realview/Kconfig b/arch/arm/mach-realview/Kconfig
index dba6d0c1fc1..c593be428b8 100644
--- a/arch/arm/mach-realview/Kconfig
+++ b/arch/arm/mach-realview/Kconfig
@@ -12,6 +12,8 @@ config REALVIEW_EB_A9MP
12 bool "Support Multicore Cortex-A9 Tile" 12 bool "Support Multicore Cortex-A9 Tile"
13 depends on MACH_REALVIEW_EB 13 depends on MACH_REALVIEW_EB
14 select CPU_V7 14 select CPU_V7
15 select HAVE_SMP
16 select MIGHT_HAVE_CACHE_L2X0
15 help 17 help
16 Enable support for the Cortex-A9MPCore tile fitted to the 18 Enable support for the Cortex-A9MPCore tile fitted to the
17 Realview(R) Emulation Baseboard platform. 19 Realview(R) Emulation Baseboard platform.
@@ -21,6 +23,8 @@ config REALVIEW_EB_ARM11MP
21 depends on MACH_REALVIEW_EB 23 depends on MACH_REALVIEW_EB
22 select CPU_V6K 24 select CPU_V6K
23 select ARCH_HAS_BARRIERS if SMP 25 select ARCH_HAS_BARRIERS if SMP
26 select HAVE_SMP
27 select MIGHT_HAVE_CACHE_L2X0
24 help 28 help
25 Enable support for the ARM11MPCore tile fitted to the Realview(R) 29 Enable support for the ARM11MPCore tile fitted to the Realview(R)
26 Emulation Baseboard platform. 30 Emulation Baseboard platform.
@@ -39,6 +43,8 @@ config MACH_REALVIEW_PB11MP
39 select CPU_V6K 43 select CPU_V6K
40 select ARM_GIC 44 select ARM_GIC
41 select HAVE_PATA_PLATFORM 45 select HAVE_PATA_PLATFORM
46 select HAVE_SMP
47 select MIGHT_HAVE_CACHE_L2X0
42 select ARCH_HAS_BARRIERS if SMP 48 select ARCH_HAS_BARRIERS if SMP
43 help 49 help
44 Include support for the ARM(R) RealView(R) Platform Baseboard for 50 Include support for the ARM(R) RealView(R) Platform Baseboard for
@@ -51,6 +57,7 @@ config MACH_REALVIEW_PB1176
51 select CPU_V6 57 select CPU_V6
52 select ARM_GIC 58 select ARM_GIC
53 select HAVE_TCM 59 select HAVE_TCM
60 select MIGHT_HAVE_CACHE_L2X0
54 help 61 help
55 Include support for the ARM(R) RealView(R) Platform Baseboard for 62 Include support for the ARM(R) RealView(R) Platform Baseboard for
56 ARM1176JZF-S. 63 ARM1176JZF-S.
@@ -78,6 +85,8 @@ config MACH_REALVIEW_PBX
78 bool "Support RealView(R) Platform Baseboard Explore" 85 bool "Support RealView(R) Platform Baseboard Explore"
79 select ARM_GIC 86 select ARM_GIC
80 select HAVE_PATA_PLATFORM 87 select HAVE_PATA_PLATFORM
88 select HAVE_SMP
89 select MIGHT_HAVE_CACHE_L2X0
81 select ARCH_SPARSEMEM_ENABLE if CPU_V7 && !REALVIEW_HIGH_PHYS_OFFSET 90 select ARCH_SPARSEMEM_ENABLE if CPU_V7 && !REALVIEW_HIGH_PHYS_OFFSET
82 select ZONE_DMA if SPARSEMEM 91 select ZONE_DMA if SPARSEMEM
83 help 92 help
diff --git a/arch/arm/mach-vexpress/Kconfig b/arch/arm/mach-vexpress/Kconfig
index 931148487f0..9b3d0fbaee7 100644
--- a/arch/arm/mach-vexpress/Kconfig
+++ b/arch/arm/mach-vexpress/Kconfig
@@ -8,5 +8,7 @@ config ARCH_VEXPRESS_CA9X4
8 select ARM_ERRATA_720789 8 select ARM_ERRATA_720789
9 select ARM_ERRATA_751472 9 select ARM_ERRATA_751472
10 select ARM_ERRATA_753970 10 select ARM_ERRATA_753970
11 select HAVE_SMP
12 select MIGHT_HAVE_CACHE_L2X0
11 13
12endmenu 14endmenu
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig
index 5cf7922ff5e..4cefb57d9ed 100644
--- a/arch/arm/mm/Kconfig
+++ b/arch/arm/mm/Kconfig
@@ -833,14 +833,23 @@ config CACHE_FEROCEON_L2_WRITETHROUGH
833 Say Y here to use the Feroceon L2 cache in writethrough mode. 833 Say Y here to use the Feroceon L2 cache in writethrough mode.
834 Unless you specifically require this, say N for writeback mode. 834 Unless you specifically require this, say N for writeback mode.
835 835
836config MIGHT_HAVE_CACHE_L2X0
837 bool
838 help
839 This option should be selected by machines which have a L2x0
840 or PL310 cache controller, but where its use is optional.
841
842 The only effect of this option is to make CACHE_L2X0 and
843 related options available to the user for configuration.
844
845 Boards or SoCs which always require the cache controller
846 support to be present should select CACHE_L2X0 directly
847 instead of this option, thus preventing the user from
848 inadvertently configuring a broken kernel.
849
836config CACHE_L2X0 850config CACHE_L2X0
837 bool "Enable the L2x0 outer cache controller" 851 bool "Enable the L2x0 outer cache controller" if MIGHT_HAVE_CACHE_L2X0
838 depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \ 852 default MIGHT_HAVE_CACHE_L2X0
839 REALVIEW_EB_A9MP || ARCH_IMX_V6_V7 || MACH_REALVIEW_PBX || \
840 ARCH_NOMADIK || ARCH_OMAP4 || ARCH_EXYNOS4 || ARCH_TEGRA || \
841 ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || ARCH_SHMOBILE || \
842 ARCH_PRIMA2 || ARCH_ZYNQ || ARCH_CNS3XXX || ARCH_HIGHBANK
843 default y
844 select OUTER_CACHE 853 select OUTER_CACHE
845 select OUTER_CACHE_SYNC 854 select OUTER_CACHE_SYNC
846 help 855 help
diff --git a/arch/arm/plat-mxc/Kconfig b/arch/arm/plat-mxc/Kconfig
index b3a1f2b3ada..b30708e28c1 100644
--- a/arch/arm/plat-mxc/Kconfig
+++ b/arch/arm/plat-mxc/Kconfig
@@ -20,6 +20,7 @@ config ARCH_IMX_V6_V7
20 bool "i.MX3, i.MX6" 20 bool "i.MX3, i.MX6"
21 select AUTO_ZRELADDR if !ZBOOT_ROM 21 select AUTO_ZRELADDR if !ZBOOT_ROM
22 select ARM_PATCH_PHYS_VIRT 22 select ARM_PATCH_PHYS_VIRT
23 select MIGHT_HAVE_CACHE_L2X0
23 help 24 help
24 This enables support for systems based on the Freescale i.MX3 and i.MX6 25 This enables support for systems based on the Freescale i.MX3 and i.MX6
25 family. 26 family.