Debian Codegraph @

plat/nxp/s32/s32g274ardb2/platform.mk

raw
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 # Flag to apply S32 erratum ERR051700. This erratum applies to all S32
19 # revisions.
20 S32_ERRATA_LIST += ERRATA_S32_051700
21
22 PLAT_INCLUDES = \
23 -I${PLAT_S32G274ARDB2}/include
24
25 PROGRAMMABLE_RESET_ADDRESS := 1
26
27 COLD_BOOT_SINGLE_CPU := 0
28
29 ENABLE_SVE_FOR_NS := 0
30
31 RESET_TO_BL2 := 1
32
33 INIT_UNUSED_NS_EL2 := 1
34
35 ERRATA_A53_855873 := 1
36 ERRATA_A53_836870 := 1
37 ERRATA_A53_1530924 := 1
38 ERRATA_SPECULATIVE_AT := 1
39 ERRATA_S32_051700 := 1
40
41 # Selecting Drivers for SoC
42 $(eval $(call SET_NXP_MAKE_FLAG,CONSOLE_NEEDED,BL_COMM))
43 $(eval $(call SET_NXP_MAKE_FLAG,CLK_NEEDED,BL_COMM))
44
45 include ${PLAT_DRIVERS_PATH}/drivers.mk
46
47 BL_COMMON_SOURCES += \
48 ${PLAT_S32G274ARDB2}/plat_console.c \
49 ${PLAT_S32G274ARDB2}/plat_helpers.S \
50
51 BL2_SOURCES += \
52 ${BL_COMMON_SOURCES} \
53 ${PLAT_S32G274ARDB2}/plat_bl2_el3_setup.c \
54 ${PLAT_S32G274ARDB2}/plat_bl2_image_desc.c \
55 ${PLAT_S32G274ARDB2}/plat_io_storage.c \
56 ${PLAT_S32G274ARDB2}/s32cc_ncore.c \
57 common/desc_image_load.c \
58 drivers/io/io_fip.c \
59 drivers/io/io_memmap.c \
60 drivers/io/io_storage.c \
61 lib/cpus/aarch64/cortex_a53.S \
62
63 BL31_SOURCES += \
64 ${GICV3_SOURCES} \
65 ${PLAT_S32G274ARDB2}/plat_bl31_setup.c \
66 ${PLAT_S32G274ARDB2}/s32g2_psci.c \
67 ${PLAT_S32G274ARDB2}/s32g2_soc.c \
68 ${XLAT_TABLES_LIB_SRCS} \
69 lib/cpus/aarch64/cortex_a53.S \
70 plat/common/plat_gicv3.c \
71 plat/common/plat_psci_common.c \
72
73 # process all errata flags
74 $(eval $(call default_zeros, $(S32_ERRATA_LIST)))
75 $(eval $(call add_defines, $(S32_ERRATA_LIST)))
76 $(eval $(call assert_booleans, $(S32_ERRATA_LIST)))