Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Chandni Cherukuri | d61a705 | 2018-08-01 15:58:48 +0530 | [diff] [blame] | 7 | CSS_USE_SCMI_SDS_DRIVER := 1 |
| 8 | |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 9 | ENABLE_PLAT_COMPAT := 0 |
| 10 | |
| 11 | CSS_ENT_BASE := plat/arm/css/sgi |
| 12 | |
Sughosh Ganu | 3f7e79d | 2018-05-16 18:48:56 +0530 | [diff] [blame] | 13 | RAS_EXTENSION := 0 |
| 14 | |
| 15 | ENABLE_SPM := 0 |
| 16 | |
| 17 | SDEI_SUPPORT := 0 |
| 18 | |
| 19 | EL3_EXCEPTION_HANDLING := 0 |
| 20 | |
| 21 | HANDLE_EA_EL3_FIRST := 0 |
| 22 | |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 23 | INTERCONNECT_SOURCES := ${CSS_ENT_BASE}/sgi_interconnect.c |
| 24 | |
| 25 | PLAT_INCLUDES += -I${CSS_ENT_BASE}/include |
| 26 | |
| 27 | ENT_CPU_SOURCES := lib/cpus/aarch64/cortex_a75.S |
| 28 | |
| 29 | ENT_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 Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 34 | drivers/arm/gic/v3/gic600.c |
| 35 | |
| 36 | |
| 37 | PLAT_BL_COMMON_SOURCES += ${CSS_ENT_BASE}/sgi_plat.c \ |
| 38 | ${CSS_ENT_BASE}/aarch64/sgi_helper.S |
| 39 | |
| 40 | BL1_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 Cherukuri | 771d644 | 2018-05-10 12:03:50 +0530 | [diff] [blame] | 45 | BL2_SOURCES += ${CSS_ENT_BASE}/sgi_security.c \ |
| 46 | ${CSS_ENT_BASE}/sgi_image_load.c |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 47 | |
| 48 | BL31_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 Ganu | 18f513d | 2018-05-16 17:22:35 +0530 | [diff] [blame] | 55 | ifeq (${RAS_EXTENSION},1) |
| 56 | BL31_SOURCES += ${CSS_ENT_BASE}/sgi_ras.c |
| 57 | endif |
| 58 | |
Chandni Cherukuri | c1b5b8a | 2018-05-10 10:16:42 +0530 | [diff] [blame] | 59 | # Add the FDT_SOURCES and options for Dynamic Config |
| 60 | FDT_SOURCES += ${CSS_ENT_BASE}/fdts/${PLAT}_tb_fw_config.dts |
| 61 | TB_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 | |
| 66 | FDT_SOURCES += ${CSS_ENT_BASE}/fdts/${PLAT}.dts |
| 67 | HW_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 Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 72 | $(eval $(call add_define,SGI_PLAT)) |
| 73 | |
| 74 | override CSS_LOAD_SCP_IMAGES := 0 |
| 75 | override NEED_BL2U := no |
| 76 | override ARM_BL31_IN_DRAM := 1 |
Sudipto Paul | c451010 | 2018-04-16 17:46:50 +0530 | [diff] [blame] | 77 | override ARM_PLAT_MT := 1 |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 78 | |
| 79 | # System coherency is managed in hardware |
| 80 | HW_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. |
| 84 | USE_COHERENT_MEM := 0 |
| 85 | |
| 86 | include plat/arm/common/arm_common.mk |
| 87 | include plat/arm/css/common/css_common.mk |
| 88 | include plat/arm/soc/common/soc_css.mk |
| 89 | include plat/arm/board/common/board_common.mk |