blob: 980f5850097c19094221eb908e61980b5e855a79 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#
2# Copyright (C) 2012-2015 Broadcom Corporation
3#
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
13# Cygnus
14obj-$(CONFIG_ARCH_BCM_CYGNUS) += bcm_cygnus.o
15
16# Northstar Plus
17obj-$(CONFIG_ARCH_BCM_NSP) += bcm_nsp.o
18
19ifeq ($(CONFIG_ARCH_BCM_NSP),y)
20obj-$(CONFIG_SMP) += platsmp.o
21endif
22
23# BCM281XX
24obj-$(CONFIG_ARCH_BCM_281XX) += board_bcm281xx.o
25
26# BCM21664
27obj-$(CONFIG_ARCH_BCM_21664) += board_bcm21664.o
28
29# BCM23550
30obj-$(CONFIG_ARCH_BCM_23550) += board_bcm23550.o
31
32# BCM281XX, BCM21664 and BCM23550 SMP support
33obj-$(CONFIG_ARCH_BCM_MOBILE_SMP) += platsmp.o
34
35# BCM281XX and BCM21664 L2 cache control
36obj-$(CONFIG_ARCH_BCM_MOBILE_L2_CACHE) += kona_l2_cache.o
37
38# Support for secure monitor traps
39obj-$(CONFIG_ARCH_BCM_MOBILE_SMC) += bcm_kona_smc.o
40ifeq ($(call as-instr,.arch_extension sec,as_has_sec),as_has_sec)
41CFLAGS_bcm_kona_smc.o += -Wa,-march=armv7-a+sec -DREQUIRES_SEC
42endif
43
44# BCM2835
45obj-$(CONFIG_ARCH_BCM2835) += board_bcm2835.o
46
47# BCM5301X
48obj-$(CONFIG_ARCH_BCM_5301X) += bcm_5301x.o
49ifeq ($(CONFIG_ARCH_BCM_5301X),y)
50obj-$(CONFIG_SMP) += platsmp.o
51endif
52
53# BCM63XXx
54ifeq ($(CONFIG_ARCH_BCM_63XX),y)
55obj-y += bcm63xx.o
56obj-$(CONFIG_SMP) += bcm63xx_smp.o bcm63xx_pmb.o
57endif
58
59ifeq ($(CONFIG_ARCH_BRCMSTB),y)
60CFLAGS_platsmp-brcmstb.o += -march=armv7-a
61obj-y += brcmstb.o
62obj-$(CONFIG_SMP) += platsmp-brcmstb.o
63endif