Jacky Bai | 4d93d1d | 2020-07-02 14:39:58 +0800 | [diff] [blame] | 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 \ |
Jacky Bai | ba997cc | 2021-06-25 09:47:46 +0800 | [diff] [blame] | 26 | plat/imx/imx8ulp/apd_context.c \ |
Jacky Bai | 4d93d1d | 2020-07-02 14:39:58 +0800 | [diff] [blame] | 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 \ |
Jacky Bai | 7ec9451 | 2023-09-21 14:01:37 +0800 | [diff] [blame] | 35 | plat/imx/imx8ulp/xrdc/xrdc_core.c \ |
Pankaj Gupta | 862f57a | 2021-08-04 15:42:51 +0530 | [diff] [blame] | 36 | plat/imx/imx8ulp/imx8ulp_caam.c \ |
Jacky Bai | ba997cc | 2021-06-25 09:47:46 +0800 | [diff] [blame] | 37 | plat/imx/imx8ulp/dram.c \ |
Jacky Bai | 4d93d1d | 2020-07-02 14:39:58 +0800 | [diff] [blame] | 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 | BL32_BASE ?= 0xa6000000 |
| 62 | BL32_SIZE ?= 0x2000000 |
| 63 | $(eval $(call add_define,BL32_BASE)) |
| 64 | $(eval $(call add_define,BL32_SIZE)) |