Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 1 | # |
Jacky Bai | 0d07920 | 2020-01-07 16:44:46 +0800 | [diff] [blame] | 2 | # Copyright (c) 2018-2023, ARM Limited and Contributors. All rights reserved. |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Ji Luo | e329b3d | 2020-02-20 23:47:21 +0800 | [diff] [blame] | 7 | # Translation tables library |
| 8 | include lib/xlat_tables_v2/xlat_tables.mk |
| 9 | |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 10 | PLAT_INCLUDES := -Iplat/imx/common/include \ |
| 11 | -Iplat/imx/imx8m/include \ |
| 12 | -Iplat/imx/imx8m/imx8mq/include |
| 13 | |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 14 | # Include GICv3 driver files |
| 15 | include drivers/arm/gic/v3/gicv3.mk |
| 16 | |
Jacky Bai | 0d07920 | 2020-01-07 16:44:46 +0800 | [diff] [blame] | 17 | IMX_DRAM_SOURCES := plat/imx/imx8m/ddr/dram.c \ |
| 18 | plat/imx/imx8m/ddr/clock.c \ |
| 19 | plat/imx/imx8m/ddr/dram_retention.c \ |
| 20 | plat/imx/imx8m/ddr/ddr4_dvfs.c \ |
| 21 | plat/imx/imx8m/ddr/lpddr4_dvfs.c |
| 22 | |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 23 | IMX_GIC_SOURCES := ${GICV3_SOURCES} \ |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 24 | plat/common/plat_gicv3.c \ |
| 25 | plat/common/plat_psci_common.c \ |
| 26 | plat/imx/common/plat_imx8_gic.c |
| 27 | |
| 28 | BL31_SOURCES += plat/imx/common/imx8_helpers.S \ |
| 29 | plat/imx/imx8m/imx8mq/imx8mq_bl31_setup.c \ |
| 30 | plat/imx/imx8m/imx8mq/imx8mq_psci.c \ |
Jacky Bai | f7dc401 | 2019-03-06 16:58:18 +0800 | [diff] [blame] | 31 | plat/imx/imx8m/gpc_common.c \ |
Jacky Bai | 91c6d32 | 2019-05-21 20:24:52 +0800 | [diff] [blame] | 32 | plat/imx/imx8m/imx_aipstz.c \ |
Jacky Bai | 3bf04a5 | 2019-06-12 17:41:47 +0800 | [diff] [blame] | 33 | plat/imx/imx8m/imx8m_caam.c \ |
Jacky Bai | f7dc401 | 2019-03-06 16:58:18 +0800 | [diff] [blame] | 34 | plat/imx/imx8m/imx8m_psci_common.c \ |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 35 | plat/imx/imx8m/imx8mq/gpc.c \ |
| 36 | plat/imx/common/imx8_topology.c \ |
Leonard Crestez | 402bd52 | 2019-05-08 22:29:21 +0300 | [diff] [blame] | 37 | plat/imx/common/imx_sip_handler.c \ |
| 38 | plat/imx/common/imx_sip_svc.c \ |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 39 | plat/imx/common/imx_uart_console.S \ |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 40 | lib/cpus/aarch64/cortex_a53.S \ |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 41 | drivers/arm/tzc/tzc380.c \ |
Jacky Bai | f7dc401 | 2019-03-06 16:58:18 +0800 | [diff] [blame] | 42 | drivers/delay_timer/delay_timer.c \ |
| 43 | drivers/delay_timer/generic_delay_timer.c \ |
Ji Luo | e329b3d | 2020-02-20 23:47:21 +0800 | [diff] [blame] | 44 | ${XLAT_TABLES_LIB_SRCS} \ |
Jacky Bai | 0d07920 | 2020-01-07 16:44:46 +0800 | [diff] [blame] | 45 | ${IMX_DRAM_SOURCES} \ |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 46 | ${IMX_GIC_SOURCES} |
| 47 | |
Lucas Stach | d36013e | 2022-12-08 16:44:00 +0100 | [diff] [blame] | 48 | ENABLE_PIE := 1 |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 49 | USE_COHERENT_MEM := 1 |
| 50 | RESET_TO_BL31 := 1 |
| 51 | A53_DISABLE_NON_TEMPORAL_HINT := 0 |
Jacky Bai | a940799 | 2020-01-08 16:56:01 +0800 | [diff] [blame] | 52 | WARMBOOT_ENABLE_DCACHE_EARLY := 1 |
Anson Huang | 0f03da6 | 2019-01-24 11:00:14 +0800 | [diff] [blame] | 53 | |
| 54 | ERRATA_A53_835769 := 1 |
| 55 | ERRATA_A53_843419 := 1 |
| 56 | ERRATA_A53_855873 := 1 |
Jacky Bai | 2a763ba | 2019-07-18 13:34:09 +0800 | [diff] [blame] | 57 | |
| 58 | BL32_BASE ?= 0xfe000000 |
| 59 | $(eval $(call add_define,BL32_BASE)) |
| 60 | |
| 61 | BL32_SIZE ?= 0x2000000 |
| 62 | $(eval $(call add_define,BL32_SIZE)) |
Ji Luo | e329b3d | 2020-02-20 23:47:21 +0800 | [diff] [blame] | 63 | |
Lucas Stach | 1f78315 | 2022-12-08 15:54:26 +0100 | [diff] [blame] | 64 | IMX_BOOT_UART_BASE ?= 0x30860000 |
| 65 | $(eval $(call add_define,IMX_BOOT_UART_BASE)) |
| 66 | |
Ji Luo | e329b3d | 2020-02-20 23:47:21 +0800 | [diff] [blame] | 67 | ifeq (${SPD},trusty) |
| 68 | BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1 |
| 69 | endif |