blob: 510785ad79670ec945c869da6fd5039eaa46a3e0 [file] [log] [blame]
Jacky Bai4d93d1d2020-07-02 14:39:58 +08001#
2# Copyright 2021-2024 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7# Translation tables library
8include lib/xlat_tables_v2/xlat_tables.mk
9
10# Include GICv3 driver files
11include drivers/arm/gic/v3/gicv3.mk
12
13PLAT_INCLUDES := -Iplat/imx/imx8ulp/include \
14 -Iplat/imx/common/include \
15 -Iplat/imx/imx8ulp/upower
16
17IMX_GIC_SOURCES := ${GICV3_SOURCES} \
18 plat/common/plat_gicv3.c \
19 plat/common/plat_psci_common.c \
20 plat/imx/common/plat_imx8_gic.c
21
22BL31_SOURCES += plat/imx/common/lpuart_console.S \
23 plat/imx/common/imx8_helpers.S \
24 plat/imx/imx8ulp/imx8ulp_bl31_setup.c \
25 plat/imx/imx8ulp/imx8ulp_psci.c \
26 plat/imx/common/imx8_topology.c \
27 plat/imx/common/imx_sip_svc.c \
28 plat/imx/common/imx_sip_handler.c \
29 plat/imx/common/imx_bl31_common.c \
30 plat/common/plat_psci_common.c \
31 lib/cpus/aarch64/cortex_a35.S \
32 drivers/delay_timer/delay_timer.c \
33 drivers/delay_timer/generic_delay_timer.c \
Jacky Bai7ec94512023-09-21 14:01:37 +080034 plat/imx/imx8ulp/xrdc/xrdc_core.c \
Pankaj Gupta862f57a2021-08-04 15:42:51 +053035 plat/imx/imx8ulp/imx8ulp_caam.c \
Jacky Bai4d93d1d2020-07-02 14:39:58 +080036 drivers/scmi-msg/base.c \
37 drivers/scmi-msg/entry.c \
38 drivers/scmi-msg/smt.c \
39 drivers/scmi-msg/power_domain.c \
40 drivers/scmi-msg/sensor.c \
41 plat/imx/imx8ulp/scmi/scmi.c \
42 plat/imx/imx8ulp/scmi/scmi_pd.c \
43 plat/imx/imx8ulp/scmi/scmi_sensor.c \
44 plat/imx/imx8ulp/upower/upower_api.c \
45 plat/imx/imx8ulp/upower/upower_hal.c \
46 ${XLAT_TABLES_LIB_SRCS} \
47 ${IMX_GIC_SOURCES}
48
49ifeq ($(findstring clang,$(notdir $(CC))),)
50 TF_CFLAGS_aarch64 += -fno-strict-aliasing
51endif
52
53USE_COHERENT_MEM := 1
54RESET_TO_BL31 := 1
55SEPARATE_NOBITS_REGION := 1
56SEPARATE_RWDATA_REGION := 1
57PROGRAMMABLE_RESET_ADDRESS := 1
58COLD_BOOT_SINGLE_CPU := 1
59BL32_BASE ?= 0xa6000000
60BL32_SIZE ?= 0x2000000
61$(eval $(call add_define,BL32_BASE))
62$(eval $(call add_define,BL32_SIZE))