diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-09-13 11:41:51 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2012-09-22 10:50:26 -0400 |
commit | 85077087d44fba222f61f22faa210b72cf4209ea (patch) | |
tree | 7b3ee6114123790a53f5dbd3d6f6b7de50d7b9fc /arch/arm/mach-mvebu | |
parent | 0bec30a7e3c2b044d232d679b049fd0c0421ea09 (diff) |
arm: mvebu: split Kconfig options for Armada 370 and XP
Until now, all the code for Armada 370 and XP was common, so we had a
single Kconfig option to support all boards using both SoCs. With the
addition of pinctrl drivers, this situation has changed: those two
SoCs are radically different in terms of pinctrl, so they have two
separate drivers. Since pinctrl drivers are typically select-ed from
the SoC Kconfig option, it makes sense to split the 370/XP option into
two separate options: one for Armada 370 and another for Armada XP.
We keep an hidden option selected by both ARMADA_370 and ARMADA_XP in
order to easily compile common code.
A followup patch actually makes use of this split to select the
appropriate pinctrl drivers.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Gregory Clement <gregory.clement@free-electrons.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/mach-mvebu')
-rw-r--r-- | arch/arm/mach-mvebu/Kconfig | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig index caa2c5e734fe..5540a8b83af8 100644 --- a/arch/arm/mach-mvebu/Kconfig +++ b/arch/arm/mach-mvebu/Kconfig | |||
@@ -3,13 +3,23 @@ if ARCH_MVEBU | |||
3 | menu "Marvell SOC with device tree" | 3 | menu "Marvell SOC with device tree" |
4 | 4 | ||
5 | config MACH_ARMADA_370_XP | 5 | config MACH_ARMADA_370_XP |
6 | bool "Marvell Armada 370 and Aramada XP boards" | 6 | bool |
7 | select ARMADA_370_XP_TIMER | 7 | select ARMADA_370_XP_TIMER |
8 | select CPU_V7 | 8 | select CPU_V7 |
9 | |||
10 | config MACH_ARMADA_370 | ||
11 | bool "Marvell Armada 370 boards" | ||
12 | select MACH_ARMADA_370_XP | ||
9 | help | 13 | help |
14 | Say 'Y' here if you want your kernel to support boards based | ||
15 | on the Marvell Armada 370 SoC with device tree. | ||
10 | 16 | ||
11 | Say 'Y' here if you want your kernel to support boards based on | 17 | config MACH_ARMADA_XP |
12 | Marvell Armada 370 or Armada XP with device tree. | 18 | bool "Marvell Armada XP boards" |
19 | select MACH_ARMADA_370_XP | ||
20 | help | ||
21 | Say 'Y' here if you want your kernel to support boards based | ||
22 | on the Marvell Armada XP SoC with device tree. | ||
13 | 23 | ||
14 | endmenu | 24 | endmenu |
15 | 25 | ||