blob: bed8e99abd193e04d2435fb5e968a1ac086cf15e [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 +00009CSS_ENT_BASE := plat/arm/css/sgi
10
Sughosh Ganu3f7e79d2018-05-16 18:48:56 +053011RAS_EXTENSION := 0
12
13ENABLE_SPM := 0
14
15SDEI_SUPPORT := 0
16
17EL3_EXCEPTION_HANDLING := 0
18
19HANDLE_EA_EL3_FIRST := 0
20
Nariman Poushin0ece80f2018-02-26 06:52:04 +000021INTERCONNECT_SOURCES := ${CSS_ENT_BASE}/sgi_interconnect.c
22
23PLAT_INCLUDES += -I${CSS_ENT_BASE}/include
24
Nariman Poushin0ece80f2018-02-26 06:52:04 +000025ENT_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
26 drivers/arm/gic/v3/gicv3_main.c \
27 drivers/arm/gic/v3/gicv3_helpers.c \
28 plat/common/plat_gicv3.c \
29 plat/arm/common/arm_gicv3.c \
Nariman Poushin0ece80f2018-02-26 06:52:04 +000030 drivers/arm/gic/v3/gic600.c
31
32
33PLAT_BL_COMMON_SOURCES += ${CSS_ENT_BASE}/sgi_plat.c \
34 ${CSS_ENT_BASE}/aarch64/sgi_helper.S
35
Chandni Cherukuria5d44ec2018-08-14 15:25:34 +053036BL1_SOURCES += ${INTERCONNECT_SOURCES}
Nariman Poushin0ece80f2018-02-26 06:52:04 +000037
Chandni Cherukuri771d6442018-05-10 12:03:50 +053038BL2_SOURCES += ${CSS_ENT_BASE}/sgi_security.c \
39 ${CSS_ENT_BASE}/sgi_image_load.c
Nariman Poushin0ece80f2018-02-26 06:52:04 +000040
Chandni Cherukuria3f66132018-08-10 11:17:58 +053041BL31_SOURCES += ${INTERCONNECT_SOURCES} \
Nariman Poushin0ece80f2018-02-26 06:52:04 +000042 ${ENT_GIC_SOURCES} \
43 ${CSS_ENT_BASE}/sgi_bl31_setup.c \
Chandni Cherukuria5d44ec2018-08-14 15:25:34 +053044 ${CSS_ENT_BASE}/sgi_topology.c
Nariman Poushin0ece80f2018-02-26 06:52:04 +000045
Sughosh Ganu18f513d2018-05-16 17:22:35 +053046ifeq (${RAS_EXTENSION},1)
47BL31_SOURCES += ${CSS_ENT_BASE}/sgi_ras.c
48endif
49
Chandni Cherukuric1b5b8a2018-05-10 10:16:42 +053050# Add the FDT_SOURCES and options for Dynamic Config
51FDT_SOURCES += ${CSS_ENT_BASE}/fdts/${PLAT}_tb_fw_config.dts
52TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb
53
54# Add the TB_FW_CONFIG to FIP and specify the same to certtool
55$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config))
56
57FDT_SOURCES += ${CSS_ENT_BASE}/fdts/${PLAT}.dts
58HW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}.dtb
59
60# Add the HW_CONFIG to FIP and specify the same to certtool
61$(eval $(call TOOL_ADD_PAYLOAD,${HW_CONFIG},--hw-config))
62
Deepak Pandeyb0971f92018-05-25 12:43:30 +053063ifneq (${RESET_TO_BL31},0)
64 $(error "Using BL31 as the reset vector is not supported on ${PLATFORM} platform. \
65 Please set RESET_TO_BL31 to 0.")
66endif
67
Nariman Poushin0ece80f2018-02-26 06:52:04 +000068$(eval $(call add_define,SGI_PLAT))
69
70override CSS_LOAD_SCP_IMAGES := 0
71override NEED_BL2U := no
72override ARM_BL31_IN_DRAM := 1
Sudipto Paulc4510102018-04-16 17:46:50 +053073override ARM_PLAT_MT := 1
Nariman Poushin0ece80f2018-02-26 06:52:04 +000074
75# System coherency is managed in hardware
76HW_ASSISTED_COHERENCY := 1
77
78# When building for systems with hardware-assisted coherency, there's no need to
79# use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too.
80USE_COHERENT_MEM := 0
81
82include plat/arm/common/arm_common.mk
83include plat/arm/css/common/css_common.mk
84include plat/arm/soc/common/soc_css.mk
85include plat/arm/board/common/board_common.mk