| 1 |
# |
| 2 |
# Copyright 2021-2024 NXP |
| 3 |
# |
| 4 |
# SPDX-License-Identifier: BSD-3-Clause |
| 5 |
# |
| 6 |
|
| 7 |
# Translation tables library |
| 8 |
include lib/xlat_tables_v2/xlat_tables.mk |
| 9 |
|
| 10 |
# Include GICv3 driver files |
| 11 |
include drivers/arm/gic/v3/gicv3.mk |
| 12 |
|
| 13 |
PLAT_INCLUDES := -Iplat/imx/imx8ulp/include \ |
| 14 |
-Iplat/imx/common/include \ |
| 15 |
-Iplat/imx/imx8ulp/upower |
| 16 |
|
| 17 |
IMX_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 |
|
| 22 |
BL31_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/imx8ulp/apd_context.c \ |
| 27 |
plat/imx/common/imx8_topology.c \ |
| 28 |
plat/imx/common/imx_sip_svc.c \ |
| 29 |
plat/imx/common/imx_sip_handler.c \ |
| 30 |
plat/imx/common/imx_bl31_common.c \ |
| 31 |
plat/common/plat_psci_common.c \ |
| 32 |
lib/cpus/aarch64/cortex_a35.S \ |
| 33 |
drivers/delay_timer/delay_timer.c \ |
| 34 |
drivers/delay_timer/generic_delay_timer.c \ |
| 35 |
plat/imx/imx8ulp/xrdc/xrdc_core.c \ |
| 36 |
plat/imx/imx8ulp/imx8ulp_caam.c \ |
| 37 |
plat/imx/imx8ulp/dram.c \ |
| 38 |
drivers/scmi-msg/base.c \ |
| 39 |
drivers/scmi-msg/entry.c \ |
| 40 |
drivers/scmi-msg/smt.c \ |
| 41 |
drivers/scmi-msg/power_domain.c \ |
| 42 |
drivers/scmi-msg/sensor.c \ |
| 43 |
plat/imx/imx8ulp/scmi/scmi.c \ |
| 44 |
plat/imx/imx8ulp/scmi/scmi_pd.c \ |
| 45 |
plat/imx/imx8ulp/scmi/scmi_sensor.c \ |
| 46 |
plat/imx/imx8ulp/upower/upower_api.c \ |
| 47 |
plat/imx/imx8ulp/upower/upower_hal.c \ |
| 48 |
${XLAT_TABLES_LIB_SRCS} \ |
| 49 |
${IMX_GIC_SOURCES} |
| 50 |
|
| 51 |
ifeq ($(findstring clang,$(notdir $(CC))),) |
| 52 |
TF_CFLAGS_aarch64 += -fno-strict-aliasing |
| 53 |
endif |
| 54 |
|
| 55 |
USE_COHERENT_MEM := 1 |
| 56 |
RESET_TO_BL31 := 1 |
| 57 |
SEPARATE_NOBITS_REGION := 1 |
| 58 |
SEPARATE_RWDATA_REGION := 1 |
| 59 |
PROGRAMMABLE_RESET_ADDRESS := 1 |
| 60 |
COLD_BOOT_SINGLE_CPU := 1 |
| 61 |
WARMBOOT_ENABLE_DCACHE_EARLY := 1 |
| 62 |
BL32_BASE ?= 0xa6000000 |
| 63 |
BL32_SIZE ?= 0x2000000 |
| 64 |
$(eval $(call add_define,BL32_BASE)) |
| 65 |
$(eval $(call add_define,BL32_SIZE)) |
| 66 |
|
| 67 |
ifeq (${SPD},trusty) |
| 68 |
BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1 |
| 69 |
endif |