Ghennadi Procopciuc | a9fee05 | 2024-01-30 16:19:47 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2024 NXP |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | include drivers/arm/gic/v3/gicv3.mk |
| 8 | include lib/xlat_tables_v2/xlat_tables.mk |
| 9 | |
| 10 | PLAT_DRIVERS_PATH := drivers/nxp |
| 11 | PLAT_COMMON_PATH := plat/nxp/common |
| 12 | PLAT_S32G274ARDB2 := plat/nxp/s32/s32g274ardb2 |
| 13 | |
| 14 | CONSOLE := LINFLEX |
| 15 | |
| 16 | include ${PLAT_COMMON_PATH}/plat_make_helper/plat_build_macros.mk |
| 17 | |
| 18 | PLAT_INCLUDES = \ |
| 19 | -I${PLAT_S32G274ARDB2}/include |
| 20 | |
| 21 | PROGRAMMABLE_RESET_ADDRESS := 1 |
| 22 | |
| 23 | COLD_BOOT_SINGLE_CPU := 0 |
| 24 | |
| 25 | ENABLE_SVE_FOR_NS := 0 |
| 26 | |
| 27 | RESET_TO_BL2 := 1 |
| 28 | |
| 29 | INIT_UNUSED_NS_EL2 := 1 |
| 30 | |
| 31 | ERRATA_A53_855873 := 1 |
| 32 | ERRATA_A53_836870 := 1 |
| 33 | ERRATA_A53_1530924 := 1 |
| 34 | ERRATA_SPECULATIVE_AT := 1 |
| 35 | |
| 36 | # Selecting Drivers for SoC |
| 37 | $(eval $(call SET_NXP_MAKE_FLAG,CONSOLE_NEEDED,BL_COMM)) |
| 38 | |
| 39 | include ${PLAT_DRIVERS_PATH}/drivers.mk |
| 40 | |
| 41 | |
| 42 | BL_COMMON_SOURCES += \ |
| 43 | ${PLAT_S32G274ARDB2}/plat_console.c \ |
| 44 | ${PLAT_S32G274ARDB2}/plat_helpers.S \ |
| 45 | |
| 46 | BL2_SOURCES += \ |
| 47 | ${BL_COMMON_SOURCES} \ |
| 48 | ${PLAT_S32G274ARDB2}/plat_bl2_el3_setup.c \ |
| 49 | ${PLAT_S32G274ARDB2}/plat_bl2_image_desc.c \ |
| 50 | ${PLAT_S32G274ARDB2}/plat_io_storage.c \ |
| 51 | common/desc_image_load.c \ |
| 52 | drivers/io/io_fip.c \ |
| 53 | drivers/io/io_memmap.c \ |
| 54 | drivers/io/io_storage.c \ |
| 55 | lib/cpus/aarch64/cortex_a53.S \ |
| 56 | |
Ghennadi Procopciuc | 1e38cff | 2024-01-26 15:29:08 +0200 | [diff] [blame] | 57 | BL31_SOURCES += \ |
| 58 | ${GICV3_SOURCES} \ |
| 59 | ${PLAT_S32G274ARDB2}/plat_bl31_setup.c \ |
| 60 | ${PLAT_S32G274ARDB2}/s32g2_psci.c \ |
| 61 | ${PLAT_S32G274ARDB2}/s32g2_soc.c \ |
| 62 | ${XLAT_TABLES_LIB_SRCS} \ |
| 63 | lib/cpus/aarch64/cortex_a53.S \ |
| 64 | plat/common/plat_gicv3.c \ |
| 65 | plat/common/plat_psci_common.c \ |