Abdellatif El Khlifi | ad9b8e5 | 2021-04-21 17:20:43 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2021, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | # Making sure the diphda platform type is specified |
| 8 | ifeq ($(filter ${TARGET_PLATFORM}, fpga fvp),) |
| 9 | $(error TARGET_PLATFORM must be fpga or fvp) |
| 10 | endif |
| 11 | |
| 12 | DIPHDA_CPU_LIBS +=lib/cpus/aarch64/cortex_a35.S |
| 13 | |
| 14 | PLAT_INCLUDES := -Iplat/arm/board/diphda/common/include \ |
| 15 | -Iplat/arm/board/diphda/include \ |
| 16 | -Iinclude/plat/arm/common \ |
| 17 | -Iinclude/plat/arm/css/common/aarch64 |
| 18 | |
Abdellatif El Khlifi | def0602 | 2021-05-10 12:38:41 +0100 | [diff] [blame] | 19 | |
| 20 | DIPHDA_FW_NVCTR_VAL := 255 |
| 21 | TFW_NVCTR_VAL := ${DIPHDA_FW_NVCTR_VAL} |
| 22 | NTFW_NVCTR_VAL := ${DIPHDA_FW_NVCTR_VAL} |
| 23 | |
Abdellatif El Khlifi | ad9b8e5 | 2021-04-21 17:20:43 +0100 | [diff] [blame] | 24 | override NEED_BL1 := no |
| 25 | |
| 26 | override NEED_BL2 := yes |
| 27 | FIP_BL2_ARGS := tb-fw |
| 28 | |
| 29 | override NEED_BL2U := no |
| 30 | override NEED_BL31 := yes |
| 31 | NEED_BL32 := yes |
| 32 | override NEED_BL33 := yes |
| 33 | |
| 34 | # Include GICv2 driver files |
| 35 | include drivers/arm/gic/v2/gicv2.mk |
| 36 | |
| 37 | DIPHDA_GIC_SOURCES := ${GICV2_SOURCES} \ |
| 38 | plat/common/plat_gicv2.c \ |
| 39 | plat/arm/common/arm_gicv2.c |
| 40 | |
| 41 | |
| 42 | BL2_SOURCES += plat/arm/board/diphda/common/diphda_security.c \ |
| 43 | plat/arm/board/diphda/common/diphda_err.c \ |
| 44 | plat/arm/board/diphda/common/diphda_trusted_boot.c \ |
| 45 | lib/utils/mem_region.c \ |
| 46 | plat/arm/board/diphda/common/diphda_helpers.S \ |
| 47 | plat/arm/board/diphda/common/diphda_plat.c \ |
| 48 | plat/arm/board/diphda/common/diphda_bl2_mem_params_desc.c \ |
| 49 | ${DIPHDA_CPU_LIBS} \ |
| 50 | |
| 51 | |
| 52 | BL31_SOURCES += drivers/cfi/v2m/v2m_flash.c \ |
| 53 | lib/utils/mem_region.c \ |
| 54 | plat/arm/board/diphda/common/diphda_helpers.S \ |
| 55 | plat/arm/board/diphda/common/diphda_topology.c \ |
| 56 | plat/arm/board/diphda/common/diphda_security.c \ |
| 57 | plat/arm/board/diphda/common/diphda_plat.c \ |
| 58 | plat/arm/board/diphda/common/diphda_pm.c \ |
| 59 | ${DIPHDA_CPU_LIBS} \ |
| 60 | ${DIPHDA_GIC_SOURCES} |
| 61 | |
| 62 | |
| 63 | FDT_SOURCES += plat/arm/board/diphda/common/fdts/diphda_spmc_manifest.dts |
| 64 | DIPHDA_TOS_FW_CONFIG := ${BUILD_PLAT}/fdts/diphda_spmc_manifest.dtb |
| 65 | |
| 66 | # Add the SPMC manifest to FIP and specify the same to certtool |
| 67 | $(eval $(call TOOL_ADD_PAYLOAD,${DIPHDA_TOS_FW_CONFIG},--tos-fw-config,${DIPHDA_TOS_FW_CONFIG})) |
| 68 | |
| 69 | # Adding TARGET_PLATFORM as a GCC define (-D option) |
| 70 | $(eval $(call add_define,TARGET_PLATFORM_$(call uppercase,${TARGET_PLATFORM}))) |
| 71 | |
Abdellatif El Khlifi | def0602 | 2021-05-10 12:38:41 +0100 | [diff] [blame] | 72 | # Adding DIPHDA_FW_NVCTR_VAL as a GCC define (-D option) |
| 73 | $(eval $(call add_define,DIPHDA_FW_NVCTR_VAL)) |
| 74 | |
Abdellatif El Khlifi | ad9b8e5 | 2021-04-21 17:20:43 +0100 | [diff] [blame] | 75 | include plat/arm/common/arm_common.mk |
| 76 | include plat/arm/board/common/board_common.mk |