diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-09-16 21:38:39 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-10-14 22:10:15 -0400 |
commit | c5a0d4977f00ca18c49d46fdaff4b2cfeaa4eb28 (patch) | |
tree | 2bea7a21542264bbb6b11b6ea5e31139e9ff45f3 /arch/arm/mach-imx/Kconfig | |
parent | 69ac71d370b21cc52a2afd06f3a6d6d1da5edc75 (diff) |
ARM: imx: enable multi-platform build
It enables multi-platform build for imx. With ARCH_MULTI_* options
coming to play, ARCH_MXC becomes an user invisible option, while
ARCH_IMX_V4_V5 and ARCH_IMX_V6_V7 get removed. Both imx_v4_v5_defconfig
and imx_v6_v7_defconfig get updated to adopt the changes.
AUTO_ZRELADDR and ARM_PATCH_PHYS_VIRT are selected by ARCH_MXC now to
save the duplication.
Headers timex.h and uncompress.h are not needed for multi-platform
build. Remove them.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/Kconfig')
-rw-r--r-- | arch/arm/mach-imx/Kconfig | 59 |
1 files changed, 28 insertions, 31 deletions
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 05ded3748d78..892631f1e4c8 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig | |||
@@ -1,4 +1,20 @@ | |||
1 | if ARCH_MXC | 1 | config ARCH_MXC |
2 | def_bool y if ARCH_MULTI_V4_V5 || ARCH_MULTI_V6_V7 | ||
3 | select ARCH_REQUIRE_GPIOLIB | ||
4 | select ARM_PATCH_PHYS_VIRT | ||
5 | select AUTO_ZRELADDR if !ZBOOT_ROM | ||
6 | select CLKDEV_LOOKUP | ||
7 | select CLKSRC_MMIO | ||
8 | select GENERIC_CLOCKEVENTS | ||
9 | select GENERIC_IRQ_CHIP | ||
10 | select MULTI_IRQ_HANDLER | ||
11 | select SPARSE_IRQ | ||
12 | select USE_OF | ||
13 | help | ||
14 | Support for Freescale MXC/iMX-based family of processors | ||
15 | |||
16 | menu "Freescale i.MX support" | ||
17 | depends on ARCH_MXC | ||
2 | 18 | ||
3 | config MXC_IRQ_PRIOR | 19 | config MXC_IRQ_PRIOR |
4 | bool "Use IRQ priority" | 20 | bool "Use IRQ priority" |
@@ -161,21 +177,7 @@ config SOC_IMX51 | |||
161 | select PINCTRL_IMX51 | 177 | select PINCTRL_IMX51 |
162 | select SOC_IMX5 | 178 | select SOC_IMX5 |
163 | 179 | ||
164 | menu "Freescale MXC Implementations" | 180 | if ARCH_MULTI_V4T |
165 | |||
166 | choice | ||
167 | prompt "Freescale CPU family:" | ||
168 | default ARCH_IMX_V6_V7 | ||
169 | |||
170 | config ARCH_IMX_V4_V5 | ||
171 | bool "i.MX1, i.MX21, i.MX25, i.MX27" | ||
172 | select ARM_PATCH_PHYS_VIRT | ||
173 | select AUTO_ZRELADDR if !ZBOOT_ROM | ||
174 | help | ||
175 | This enables support for systems based on the Freescale i.MX ARMv4 | ||
176 | and ARMv5 SoCs | ||
177 | |||
178 | if ARCH_IMX_V4_V5 | ||
179 | 181 | ||
180 | comment "MX1 platforms:" | 182 | comment "MX1 platforms:" |
181 | config MACH_MXLADS | 183 | config MACH_MXLADS |
@@ -204,6 +206,10 @@ config MACH_APF9328 | |||
204 | help | 206 | help |
205 | Say Yes here if you are using the Armadeus APF9328 development board | 207 | Say Yes here if you are using the Armadeus APF9328 development board |
206 | 208 | ||
209 | endif | ||
210 | |||
211 | if ARCH_MULTI_V5 | ||
212 | |||
207 | comment "MX21 platforms:" | 213 | comment "MX21 platforms:" |
208 | 214 | ||
209 | config MACH_MX21ADS | 215 | config MACH_MX21ADS |
@@ -455,16 +461,7 @@ config MACH_IMX27_DT | |||
455 | 461 | ||
456 | endif | 462 | endif |
457 | 463 | ||
458 | config ARCH_IMX_V6_V7 | 464 | if ARCH_MULTI_V6 |
459 | bool "i.MX3, i.MX5, i.MX6" | ||
460 | select ARM_PATCH_PHYS_VIRT | ||
461 | select AUTO_ZRELADDR if !ZBOOT_ROM | ||
462 | select MIGHT_HAVE_CACHE_L2X0 | ||
463 | help | ||
464 | This enables support for systems based on the Freescale i.MX3, i.MX5 | ||
465 | and i.MX6 family. | ||
466 | |||
467 | if ARCH_IMX_V6_V7 | ||
468 | 465 | ||
469 | comment "MX31 platforms:" | 466 | comment "MX31 platforms:" |
470 | 467 | ||
@@ -729,6 +726,10 @@ config MACH_VPR200 | |||
729 | Include support for VPR200 platform. This includes specific | 726 | Include support for VPR200 platform. This includes specific |
730 | configurations for the board and its peripherals. | 727 | configurations for the board and its peripherals. |
731 | 728 | ||
729 | endif | ||
730 | |||
731 | if ARCH_MULTI_V7 | ||
732 | |||
732 | comment "i.MX5 platforms:" | 733 | comment "i.MX5 platforms:" |
733 | 734 | ||
734 | config MACH_MX50_RDP | 735 | config MACH_MX50_RDP |
@@ -847,10 +848,6 @@ config SOC_IMX6Q | |||
847 | 848 | ||
848 | endif | 849 | endif |
849 | 850 | ||
850 | endchoice | ||
851 | |||
852 | endmenu | ||
853 | |||
854 | source "arch/arm/mach-imx/devices/Kconfig" | 851 | source "arch/arm/mach-imx/devices/Kconfig" |
855 | 852 | ||
856 | endif | 853 | endmenu |