blob: 7d665151c77204e6ac34acb5af0ede3078c79797 [file] [log] [blame]
Christian Daudt8ac49e02012-11-19 09:46:10 -08001#
Jon Mason1f3e9a62015-08-26 18:35:28 -04002# Copyright (C) 2012-2015 Broadcom Corporation
Christian Daudt8ac49e02012-11-19 09:46:10 -08003#
4# This program is free software; you can redistribute it and/or
5# modify it under the terms of the GNU General Public License as
6# published by the Free Software Foundation version 2.
7#
8# This program is distributed "as is" WITHOUT ANY WARRANTY of any
9# kind, whether express or implied; without even the implied warranty
10# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12
Jonathan Richardson1b475f82014-08-15 12:52:00 -070013# Cygnus
14obj-$(CONFIG_ARCH_BCM_CYGNUS) += bcm_cygnus.o
15
Jon Mason1f3e9a62015-08-26 18:35:28 -040016# Northstar Plus
Kapil Hali97890822015-12-01 11:24:08 -050017obj-$(CONFIG_ARCH_BCM_NSP) += bcm_nsp.o
18
19ifeq ($(CONFIG_ARCH_BCM_NSP),y)
20obj-$(CONFIG_SMP) += platsmp.o
21endif
Jon Mason1f3e9a62015-08-26 18:35:28 -040022
Alex Elder1892bbc2014-04-15 07:37:19 -050023# BCM281XX
24obj-$(CONFIG_ARCH_BCM_281XX) += board_bcm281xx.o
Markus Mayerd30fe622014-02-20 16:16:11 -080025
Alex Elder1892bbc2014-04-15 07:37:19 -050026# BCM21664
27obj-$(CONFIG_ARCH_BCM_21664) += board_bcm21664.o
28
Alex Elder9a5a1102014-06-30 17:15:37 -050029# BCM281XX and BCM21664 SMP support
Kapil Hali97890822015-12-01 11:24:08 -050030obj-$(CONFIG_ARCH_BCM_MOBILE_SMP) += platsmp.o
Alex Elder9a5a1102014-06-30 17:15:37 -050031
Alex Elder1892bbc2014-04-15 07:37:19 -050032# BCM281XX and BCM21664 L2 cache control
Alex Eldereeda4cb2014-04-21 16:53:11 -050033obj-$(CONFIG_ARCH_BCM_MOBILE_L2_CACHE) += kona_l2_cache.o
Alex Elder7b5fe9c2014-04-21 16:53:07 -050034
35# Support for secure monitor traps
Alex Elder8b9c5502014-04-21 16:53:09 -050036obj-$(CONFIG_ARCH_BCM_MOBILE_SMC) += bcm_kona_smc.o
37ifeq ($(call as-instr,.arch_extension sec,as_has_sec),as_has_sec)
38CFLAGS_bcm_kona_smc.o += -Wa,-march=armv7-a+sec -DREQUIRES_SEC
39endif
Alex Elder1892bbc2014-04-15 07:37:19 -050040
41# BCM2835
42obj-$(CONFIG_ARCH_BCM2835) += board_bcm2835.o
43
44# BCM5301X
Hauke Mehrtens5b293eb2014-02-04 00:01:43 +010045obj-$(CONFIG_ARCH_BCM_5301X) += bcm_5301x.o
Jon Mason99498902015-12-01 11:24:09 -050046ifeq ($(CONFIG_ARCH_BCM_5301X),y)
47obj-$(CONFIG_SMP) += platsmp.o
48endif
Marc Carino4fbe66d2014-01-16 15:00:42 -080049
Florian Fainellidc6aec62014-02-20 15:53:13 -080050# BCM63XXx
Florian Fainellied5cd812014-08-14 19:37:45 -070051ifeq ($(CONFIG_ARCH_BCM_63XX),y)
Florian Fainellied5cd812014-08-14 19:37:45 -070052obj-y += bcm63xx.o
Florian Fainelliffb910d2015-07-07 18:17:01 -070053obj-$(CONFIG_SMP) += bcm63xx_smp.o bcm63xx_pmb.o
Florian Fainellied5cd812014-08-14 19:37:45 -070054endif
Florian Fainellidc6aec62014-02-20 15:53:13 -080055
Marc Carino4fbe66d2014-01-16 15:00:42 -080056ifeq ($(CONFIG_ARCH_BRCMSTB),y)
Brian Norris62639c22014-09-05 16:31:04 -070057CFLAGS_platsmp-brcmstb.o += -march=armv7-a
Marc Carino4fbe66d2014-01-16 15:00:42 -080058obj-y += brcmstb.o
Russell King02b4e272015-05-19 17:06:44 +010059obj-$(CONFIG_SMP) += platsmp-brcmstb.o
Marc Carino4fbe66d2014-01-16 15:00:42 -080060endif