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 | |
| 7 | ENABLE_PLAT_COMPAT := 0 |
| 8 | |
| 9 | CSS_ENT_BASE := plat/arm/css/sgi |
| 10 | |
| 11 | INTERCONNECT_SOURCES := ${CSS_ENT_BASE}/sgi_interconnect.c |
| 12 | |
| 13 | PLAT_INCLUDES += -I${CSS_ENT_BASE}/include |
| 14 | |
| 15 | ENT_CPU_SOURCES := lib/cpus/aarch64/cortex_a75.S |
| 16 | |
| 17 | ENT_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \ |
| 18 | drivers/arm/gic/v3/gicv3_main.c \ |
| 19 | drivers/arm/gic/v3/gicv3_helpers.c \ |
| 20 | plat/common/plat_gicv3.c \ |
| 21 | plat/arm/common/arm_gicv3.c \ |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 22 | drivers/arm/gic/v3/gic600.c |
| 23 | |
| 24 | |
| 25 | PLAT_BL_COMMON_SOURCES += ${CSS_ENT_BASE}/sgi_plat.c \ |
| 26 | ${CSS_ENT_BASE}/aarch64/sgi_helper.S |
| 27 | |
| 28 | BL1_SOURCES += ${INTERCONNECT_SOURCES} \ |
| 29 | ${ENT_CPU_SOURCES} \ |
| 30 | ${CSS_ENT_BASE}/sgi_bl1_setup.c \ |
| 31 | ${CSS_ENT_BASE}/sgi_plat_config.c |
| 32 | |
Chandni Cherukuri | 771d644 | 2018-05-10 12:03:50 +0530 | [diff] [blame] | 33 | BL2_SOURCES += ${CSS_ENT_BASE}/sgi_security.c \ |
| 34 | ${CSS_ENT_BASE}/sgi_image_load.c |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 35 | |
| 36 | BL31_SOURCES += ${ENT_CPU_SOURCES} \ |
| 37 | ${INTERCONNECT_SOURCES} \ |
| 38 | ${ENT_GIC_SOURCES} \ |
| 39 | ${CSS_ENT_BASE}/sgi_bl31_setup.c \ |
| 40 | ${CSS_ENT_BASE}/sgi_topology.c \ |
| 41 | ${CSS_ENT_BASE}/sgi_plat_config.c |
| 42 | |
Sughosh Ganu | 18f513d | 2018-05-16 17:22:35 +0530 | [diff] [blame^] | 43 | ifeq (${RAS_EXTENSION},1) |
| 44 | BL31_SOURCES += ${CSS_ENT_BASE}/sgi_ras.c |
| 45 | endif |
| 46 | |
Chandni Cherukuri | c1b5b8a | 2018-05-10 10:16:42 +0530 | [diff] [blame] | 47 | # Add the FDT_SOURCES and options for Dynamic Config |
| 48 | FDT_SOURCES += ${CSS_ENT_BASE}/fdts/${PLAT}_tb_fw_config.dts |
| 49 | TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb |
| 50 | |
| 51 | # Add the TB_FW_CONFIG to FIP and specify the same to certtool |
| 52 | $(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config)) |
| 53 | |
| 54 | FDT_SOURCES += ${CSS_ENT_BASE}/fdts/${PLAT}.dts |
| 55 | HW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}.dtb |
| 56 | |
| 57 | # Add the HW_CONFIG to FIP and specify the same to certtool |
| 58 | $(eval $(call TOOL_ADD_PAYLOAD,${HW_CONFIG},--hw-config)) |
| 59 | |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 60 | $(eval $(call add_define,SGI_PLAT)) |
| 61 | |
| 62 | override CSS_LOAD_SCP_IMAGES := 0 |
| 63 | override NEED_BL2U := no |
| 64 | override ARM_BL31_IN_DRAM := 1 |
Sudipto Paul | c451010 | 2018-04-16 17:46:50 +0530 | [diff] [blame] | 65 | override ARM_PLAT_MT := 1 |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 66 | |
| 67 | # System coherency is managed in hardware |
| 68 | HW_ASSISTED_COHERENCY := 1 |
| 69 | |
| 70 | # When building for systems with hardware-assisted coherency, there's no need to |
| 71 | # use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too. |
| 72 | USE_COHERENT_MEM := 0 |
| 73 | |
| 74 | include plat/arm/common/arm_common.mk |
| 75 | include plat/arm/css/common/css_common.mk |
| 76 | include plat/arm/soc/common/soc_css.mk |
| 77 | include plat/arm/board/common/board_common.mk |