Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 1 | # |
Ambroise Vincent | 322971d | 2019-04-11 13:45:18 +0100 | [diff] [blame] | 2 | # Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Chris Kay | f9c4cf4 | 2019-04-23 16:31:06 +0100 | [diff] [blame] | 7 | CSS_USE_SCMI_SDS_DRIVER := 1 |
| 8 | |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 9 | CSS_SGM_BASE := plat/arm/css/sgm |
| 10 | |
| 11 | PLAT_INCLUDES := -I${CSS_SGM_BASE}/include |
| 12 | |
| 13 | PLAT_BL_COMMON_SOURCES := ${CSS_SGM_BASE}/sgm_mmap_config.c \ |
| 14 | ${CSS_SGM_BASE}/aarch64/css_sgm_helpers.S |
| 15 | |
| 16 | SECURITY_SOURCES := drivers/arm/tzc/tzc_dmc500.c \ |
Ambroise Vincent | 322971d | 2019-04-11 13:45:18 +0100 | [diff] [blame] | 17 | plat/arm/common/arm_tzc_dmc500.c \ |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 18 | ${CSS_SGM_BASE}/sgm_security.c |
| 19 | |
| 20 | SGM_CPU_SOURCES := lib/cpus/aarch64/cortex_a55.S \ |
| 21 | lib/cpus/aarch64/cortex_a75.S |
| 22 | |
| 23 | INTERCONNECT_SOURCES := ${CSS_SGM_BASE}/sgm_interconnect.c |
| 24 | |
| 25 | SGM_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 \ |
| 30 | drivers/arm/gic/v3/gic600.c \ |
| 31 | drivers/arm/gic/v3/arm_gicv3_common.c |
| 32 | |
| 33 | BL1_SOURCES += $(SGM_CPU_SOURCES) \ |
| 34 | ${INTERCONNECT_SOURCES} \ |
Ambroise Vincent | 322971d | 2019-04-11 13:45:18 +0100 | [diff] [blame] | 35 | ${CSS_SGM_BASE}/sgm_bl1_setup.c \ |
Aditya Angadi | 20b4841 | 2019-04-16 11:29:14 +0530 | [diff] [blame] | 36 | ${CSS_SGM_BASE}/sgm_plat_config.c \ |
| 37 | drivers/arm/sp805/sp805.c |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 38 | |
Ambroise Vincent | 322971d | 2019-04-11 13:45:18 +0100 | [diff] [blame] | 39 | BL2_SOURCES += ${SECURITY_SOURCES} \ |
| 40 | ${CSS_SGM_BASE}/sgm_plat_config.c |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 41 | |
| 42 | BL2U_SOURCES += ${SECURITY_SOURCES} |
| 43 | |
| 44 | BL31_SOURCES += $(SGM_CPU_SOURCES) \ |
| 45 | ${INTERCONNECT_SOURCES} \ |
| 46 | ${SECURITY_SOURCES} \ |
| 47 | ${SGM_GIC_SOURCES} \ |
Ambroise Vincent | 322971d | 2019-04-11 13:45:18 +0100 | [diff] [blame] | 48 | ${CSS_SGM_BASE}/sgm_topology.c \ |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 49 | ${CSS_SGM_BASE}/sgm_bl31_setup.c \ |
| 50 | ${CSS_SGM_BASE}/sgm_plat_config.c |
| 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 | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 57 | # sgm uses CCI-500 as Cache Coherent Interconnect |
| 58 | ARM_CCI_PRODUCT_ID := 500 |
| 59 | |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 60 | # System coherency is managed in hardware |
| 61 | HW_ASSISTED_COHERENCY := 1 |
| 62 | |
| 63 | # When building for systems with hardware-assisted coherency, there's no need to |
| 64 | # use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too. |
| 65 | USE_COHERENT_MEM := 0 |
| 66 | |
| 67 | override ARM_PLAT_MT := 1 |
| 68 | |
| 69 | $(eval $(call add_define,SGM_PLAT)) |
| 70 | |
| 71 | include plat/arm/common/arm_common.mk |
| 72 | include plat/arm/board/common/board_common.mk |
| 73 | include plat/arm/css/common/css_common.mk |
| 74 | include plat/arm/soc/common/soc_css.mk |