Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 1 | # |
Alexei Fedorov | 2f13d6c | 2020-02-21 10:17:26 +0000 | [diff] [blame] | 2 | # Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved. |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 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 | CSS_ENT_BASE := plat/arm/css/sgi |
| 10 | |
Sughosh Ganu | 3f7e79d | 2018-05-16 18:48:56 +0530 | [diff] [blame] | 11 | RAS_EXTENSION := 0 |
| 12 | |
Sughosh Ganu | 3f7e79d | 2018-05-16 18:48:56 +0530 | [diff] [blame] | 13 | SDEI_SUPPORT := 0 |
| 14 | |
| 15 | EL3_EXCEPTION_HANDLING := 0 |
| 16 | |
| 17 | HANDLE_EA_EL3_FIRST := 0 |
| 18 | |
Vijayenthiran Subramaniam | bc48991 | 2019-12-26 17:45:58 +0530 | [diff] [blame] | 19 | CSS_SGI_CHIP_COUNT := 1 |
| 20 | |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 21 | INTERCONNECT_SOURCES := ${CSS_ENT_BASE}/sgi_interconnect.c |
| 22 | |
| 23 | PLAT_INCLUDES += -I${CSS_ENT_BASE}/include |
| 24 | |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 25 | ENT_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 \ |
Alexei Fedorov | 2f13d6c | 2020-02-21 10:17:26 +0000 | [diff] [blame] | 28 | drivers/arm/gic/v3/gicdv3_helpers.c \ |
| 29 | drivers/arm/gic/v3/gicrv3_helpers.c \ |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 30 | plat/common/plat_gicv3.c \ |
| 31 | plat/arm/common/arm_gicv3.c \ |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 32 | drivers/arm/gic/v3/gic600.c |
| 33 | |
| 34 | |
| 35 | PLAT_BL_COMMON_SOURCES += ${CSS_ENT_BASE}/sgi_plat.c \ |
| 36 | ${CSS_ENT_BASE}/aarch64/sgi_helper.S |
| 37 | |
Aditya Angadi | 20b4841 | 2019-04-16 11:29:14 +0530 | [diff] [blame] | 38 | BL1_SOURCES += ${INTERCONNECT_SOURCES} \ |
| 39 | drivers/arm/sbsa/sbsa.c |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 40 | |
Vijayenthiran Subramaniam | 22141b6 | 2018-10-25 22:20:24 +0530 | [diff] [blame] | 41 | BL2_SOURCES += ${CSS_ENT_BASE}/sgi_image_load.c |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 42 | |
Chandni Cherukuri | a3f6613 | 2018-08-10 11:17:58 +0530 | [diff] [blame] | 43 | BL31_SOURCES += ${INTERCONNECT_SOURCES} \ |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 44 | ${ENT_GIC_SOURCES} \ |
| 45 | ${CSS_ENT_BASE}/sgi_bl31_setup.c \ |
Chandni Cherukuri | a5d44ec | 2018-08-14 15:25:34 +0530 | [diff] [blame] | 46 | ${CSS_ENT_BASE}/sgi_topology.c |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 47 | |
Sughosh Ganu | 18f513d | 2018-05-16 17:22:35 +0530 | [diff] [blame] | 48 | ifeq (${RAS_EXTENSION},1) |
| 49 | BL31_SOURCES += ${CSS_ENT_BASE}/sgi_ras.c |
| 50 | endif |
| 51 | |
Deepak Pandey | b0971f9 | 2018-05-25 12:43:30 +0530 | [diff] [blame] | 52 | ifneq (${RESET_TO_BL31},0) |
Sandrine Bailleux | 1e32d32 | 2019-01-07 15:35:37 +0100 | [diff] [blame] | 53 | $(error "Using BL31 as the reset vector is not supported on ${PLAT} platform. \ |
Deepak Pandey | b0971f9 | 2018-05-25 12:43:30 +0530 | [diff] [blame] | 54 | Please set RESET_TO_BL31 to 0.") |
| 55 | endif |
| 56 | |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 57 | $(eval $(call add_define,SGI_PLAT)) |
| 58 | |
Vijayenthiran Subramaniam | bc48991 | 2019-12-26 17:45:58 +0530 | [diff] [blame] | 59 | $(eval $(call add_define,CSS_SGI_CHIP_COUNT)) |
| 60 | |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 61 | override CSS_LOAD_SCP_IMAGES := 0 |
| 62 | override NEED_BL2U := no |
| 63 | override ARM_BL31_IN_DRAM := 1 |
Sudipto Paul | c451010 | 2018-04-16 17:46:50 +0530 | [diff] [blame] | 64 | override ARM_PLAT_MT := 1 |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 65 | |
| 66 | # System coherency is managed in hardware |
| 67 | HW_ASSISTED_COHERENCY := 1 |
| 68 | |
| 69 | # When building for systems with hardware-assisted coherency, there's no need to |
| 70 | # use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too. |
| 71 | USE_COHERENT_MEM := 0 |
| 72 | |
| 73 | include plat/arm/common/arm_common.mk |
| 74 | include plat/arm/css/common/css_common.mk |
| 75 | include plat/arm/soc/common/soc_css.mk |
| 76 | include plat/arm/board/common/board_common.mk |