blob: ee1507e5d68aba05c3bad789a74c80ca334e4559 [file] [log] [blame]
Ghennadi Procopciuca9fee052024-01-30 16:19:47 +02001#
2# Copyright 2024 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7include drivers/arm/gic/v3/gicv3.mk
8include lib/xlat_tables_v2/xlat_tables.mk
9
10PLAT_DRIVERS_PATH := drivers/nxp
11PLAT_COMMON_PATH := plat/nxp/common
12PLAT_S32G274ARDB2 := plat/nxp/s32/s32g274ardb2
13
14CONSOLE := LINFLEX
15
16include ${PLAT_COMMON_PATH}/plat_make_helper/plat_build_macros.mk
17
18PLAT_INCLUDES = \
19 -I${PLAT_S32G274ARDB2}/include
20
21PROGRAMMABLE_RESET_ADDRESS := 1
22
23COLD_BOOT_SINGLE_CPU := 0
24
25ENABLE_SVE_FOR_NS := 0
26
27RESET_TO_BL2 := 1
28
29INIT_UNUSED_NS_EL2 := 1
30
31ERRATA_A53_855873 := 1
32ERRATA_A53_836870 := 1
33ERRATA_A53_1530924 := 1
34ERRATA_SPECULATIVE_AT := 1
35
36# Selecting Drivers for SoC
37$(eval $(call SET_NXP_MAKE_FLAG,CONSOLE_NEEDED,BL_COMM))
38
39include ${PLAT_DRIVERS_PATH}/drivers.mk
40
41
42BL_COMMON_SOURCES += \
43 ${PLAT_S32G274ARDB2}/plat_console.c \
44 ${PLAT_S32G274ARDB2}/plat_helpers.S \
45
46BL2_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 Procopciuc1e38cff2024-01-26 15:29:08 +020057BL31_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 \