blob: 74d255cba50f78f80e7b9f80e4e2077c7dba88b8 [file] [log] [blame]
Nariman Poushin0ece80f2018-02-26 06:52:04 +00001#
2# Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Chandni Cherukurid61a7052018-08-01 15:58:48 +05307CSS_USE_SCMI_SDS_DRIVER := 1
8
Nariman Poushin0ece80f2018-02-26 06:52:04 +00009ENABLE_PLAT_COMPAT := 0
10
11CSS_ENT_BASE := plat/arm/css/sgi
12
Sughosh Ganu3f7e79d2018-05-16 18:48:56 +053013RAS_EXTENSION := 0
14
15ENABLE_SPM := 0
16
17SDEI_SUPPORT := 0
18
19EL3_EXCEPTION_HANDLING := 0
20
21HANDLE_EA_EL3_FIRST := 0
22
Nariman Poushin0ece80f2018-02-26 06:52:04 +000023INTERCONNECT_SOURCES := ${CSS_ENT_BASE}/sgi_interconnect.c
24
25PLAT_INCLUDES += -I${CSS_ENT_BASE}/include
26
27ENT_CPU_SOURCES := lib/cpus/aarch64/cortex_a75.S
28
29ENT_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
30 drivers/arm/gic/v3/gicv3_main.c \
31 drivers/arm/gic/v3/gicv3_helpers.c \
32 plat/common/plat_gicv3.c \
33 plat/arm/common/arm_gicv3.c \
Nariman Poushin0ece80f2018-02-26 06:52:04 +000034 drivers/arm/gic/v3/gic600.c
35
36
37PLAT_BL_COMMON_SOURCES += ${CSS_ENT_BASE}/sgi_plat.c \
38 ${CSS_ENT_BASE}/aarch64/sgi_helper.S
39
40BL1_SOURCES += ${INTERCONNECT_SOURCES} \
41 ${ENT_CPU_SOURCES} \
42 ${CSS_ENT_BASE}/sgi_bl1_setup.c \
43 ${CSS_ENT_BASE}/sgi_plat_config.c
44
Chandni Cherukuri771d6442018-05-10 12:03:50 +053045BL2_SOURCES += ${CSS_ENT_BASE}/sgi_security.c \
46 ${CSS_ENT_BASE}/sgi_image_load.c
Nariman Poushin0ece80f2018-02-26 06:52:04 +000047
48BL31_SOURCES += ${ENT_CPU_SOURCES} \
49 ${INTERCONNECT_SOURCES} \
50 ${ENT_GIC_SOURCES} \
51 ${CSS_ENT_BASE}/sgi_bl31_setup.c \
52 ${CSS_ENT_BASE}/sgi_topology.c \
53 ${CSS_ENT_BASE}/sgi_plat_config.c
54
Sughosh Ganu18f513d2018-05-16 17:22:35 +053055ifeq (${RAS_EXTENSION},1)
56BL31_SOURCES += ${CSS_ENT_BASE}/sgi_ras.c
57endif
58
Chandni Cherukuric1b5b8a2018-05-10 10:16:42 +053059# Add the FDT_SOURCES and options for Dynamic Config
60FDT_SOURCES += ${CSS_ENT_BASE}/fdts/${PLAT}_tb_fw_config.dts
61TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb
62
63# Add the TB_FW_CONFIG to FIP and specify the same to certtool
64$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config))
65
66FDT_SOURCES += ${CSS_ENT_BASE}/fdts/${PLAT}.dts
67HW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}.dtb
68
69# Add the HW_CONFIG to FIP and specify the same to certtool
70$(eval $(call TOOL_ADD_PAYLOAD,${HW_CONFIG},--hw-config))
71
Nariman Poushin0ece80f2018-02-26 06:52:04 +000072$(eval $(call add_define,SGI_PLAT))
73
74override CSS_LOAD_SCP_IMAGES := 0
75override NEED_BL2U := no
76override ARM_BL31_IN_DRAM := 1
Sudipto Paulc4510102018-04-16 17:46:50 +053077override ARM_PLAT_MT := 1
Nariman Poushin0ece80f2018-02-26 06:52:04 +000078
79# System coherency is managed in hardware
80HW_ASSISTED_COHERENCY := 1
81
82# When building for systems with hardware-assisted coherency, there's no need to
83# use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too.
84USE_COHERENT_MEM := 0
85
86include plat/arm/common/arm_common.mk
87include plat/arm/css/common/css_common.mk
88include plat/arm/soc/common/soc_css.mk
89include plat/arm/board/common/board_common.mk