aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcm
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2014-04-15 08:37:19 -0400
committerMatt Porter <mporter@linaro.org>2014-04-25 08:51:30 -0400
commit1892bbcdd41b5e2582000ab21e9f6b734d005a71 (patch)
treeb151b09342de8a2c6bb54ff26816a4f65e2b118c /arch/arm/mach-bcm
parenta798c10faf62a505d24e5f6213fbaf904a39623f (diff)
ARM: bcm: clean up config and build targets
Currently CONFIG_ARCH_BCM_MOBILE is used to select all (both) Broadcom mobile SoC families. Instead, use that only as a config menu switch, and define specific symbols like ARCH_BCM_281XX to select a particular SoC family. If ARCH_BCM_MOBILE is selected, all of the SoCs will be selected by default, but this way each can be disabled individually as well. Note that BCM281xx and BCM21664 both require the SMC and L2 cache control code, so that code will be built based on ARCH_BCM_MOBILE. Signed-off-by: Alex Elder <elder@linaro.org> [mporter: added ARM: to the description] Signed-off-by: Matt Porter <mporter@linaro.org>
Diffstat (limited to 'arch/arm/mach-bcm')
-rw-r--r--arch/arm/mach-bcm/Kconfig28
-rw-r--r--arch/arm/mach-bcm/Makefile15
2 files changed, 36 insertions, 7 deletions
diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig
index 49c914cd9c7a..5f5740fc334f 100644
--- a/arch/arm/mach-bcm/Kconfig
+++ b/arch/arm/mach-bcm/Kconfig
@@ -10,7 +10,7 @@ if ARCH_BCM
10menu "Broadcom SoC Selection" 10menu "Broadcom SoC Selection"
11 11
12config ARCH_BCM_MOBILE 12config ARCH_BCM_MOBILE
13 bool "Broadcom Mobile SoC" if ARCH_MULTI_V7 13 bool "Broadcom Mobile SoC Support" if ARCH_MULTI_V7
14 depends on MMU 14 depends on MMU
15 select ARCH_REQUIRE_GPIOLIB 15 select ARCH_REQUIRE_GPIOLIB
16 select ARM_ERRATA_754322 16 select ARM_ERRATA_754322
@@ -23,9 +23,29 @@ config ARCH_BCM_MOBILE
23 select PINCTRL 23 select PINCTRL
24 help 24 help
25 This enables support for systems based on Broadcom mobile SoCs. 25 This enables support for systems based on Broadcom mobile SoCs.
26 It currently supports the 'BCM281XX' family, which includes 26
27 BCM11130, BCM11140, BCM11351, BCM28145 and 27if ARCH_BCM_MOBILE
28 BCM28155 variants. 28
29menu "Broadcom Mobile SoC Selection"
30
31config ARCH_BCM_281XX
32 bool "Broadcom BCM281XX SoC family"
33 default y
34 help
35 Enable support for the the BCM281XX family, which includes
36 BCM11130, BCM11140, BCM11351, BCM28145 and BCM28155
37 variants.
38
39config ARCH_BCM_21664
40 bool "Broadcom BCM21664 SoC family"
41 default y
42 help
43 Enable support for the the BCM21664 family, which includes
44 BCM21663 and BCM21664 variants.
45
46endmenu
47
48endif
29 49
30config ARCH_BCM2835 50config ARCH_BCM2835
31 bool "Broadcom BCM2835 family" if ARCH_MULTI_V6 51 bool "Broadcom BCM2835 family" if ARCH_MULTI_V6
diff --git a/arch/arm/mach-bcm/Makefile b/arch/arm/mach-bcm/Makefile
index a326b28c4406..7fb9b0402204 100644
--- a/arch/arm/mach-bcm/Makefile
+++ b/arch/arm/mach-bcm/Makefile
@@ -10,10 +10,19 @@
10# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details. 11# GNU General Public License for more details.
12 12
13obj-$(CONFIG_ARCH_BCM_MOBILE) := board_bcm281xx.o board_bcm21664.o \ 13# BCM281XX
14 bcm_kona_smc.o bcm_kona_smc_asm.o kona.o 14obj-$(CONFIG_ARCH_BCM_281XX) += board_bcm281xx.o
15obj-$(CONFIG_ARCH_BCM2835) += board_bcm2835.o 15
16# BCM21664
17obj-$(CONFIG_ARCH_BCM_21664) += board_bcm21664.o
16 18
19# BCM281XX and BCM21664 L2 cache control
20obj-$(CONFIG_ARCH_BCM_MOBILE) += bcm_kona_smc.o bcm_kona_smc_asm.o kona.o
17plus_sec := $(call as-instr,.arch_extension sec,+sec) 21plus_sec := $(call as-instr,.arch_extension sec,+sec)
18AFLAGS_bcm_kona_smc_asm.o :=-Wa,-march=armv7-a$(plus_sec) 22AFLAGS_bcm_kona_smc_asm.o :=-Wa,-march=armv7-a$(plus_sec)
23
24# BCM2835
25obj-$(CONFIG_ARCH_BCM2835) += board_bcm2835.o
26
27# BCM5301X
19obj-$(CONFIG_ARCH_BCM_5301X) += bcm_5301x.o 28obj-$(CONFIG_ARCH_BCM_5301X) += bcm_5301x.o