Debian Codegraph @

plat/imx/imx8m/imx8mq/platform.mk

raw
1 #
2 # Copyright (c) 2018-2023, ARM Limited and Contributors. All rights reserved.
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 PLAT_INCLUDES := -Iplat/imx/common/include \
11 -Iplat/imx/imx8m/include \
12 -Iplat/imx/imx8m/imx8mq/include
13
14 # Include GICv3 driver files
15 include drivers/arm/gic/v3/gicv3.mk
16
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
23 IMX_GIC_SOURCES := ${GICV3_SOURCES} \
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 \
31 plat/imx/imx8m/gpc_common.c \
32 plat/imx/imx8m/imx_aipstz.c \
33 plat/imx/imx8m/imx8m_caam.c \
34 plat/imx/imx8m/imx8m_ccm.c \
35 plat/imx/imx8m/imx8m_psci_common.c \
36 plat/imx/imx8m/imx8mq/gpc.c \
37 plat/imx/common/imx8_topology.c \
38 plat/imx/common/imx_sip_handler.c \
39 plat/imx/common/imx_sip_svc.c \
40 plat/imx/common/imx_uart_console.S \
41 lib/cpus/aarch64/cortex_a53.S \
42 drivers/arm/tzc/tzc380.c \
43 drivers/delay_timer/delay_timer.c \
44 drivers/delay_timer/generic_delay_timer.c \
45 ${XLAT_TABLES_LIB_SRCS} \
46 ${IMX_GIC_SOURCES}
47
48 ENABLE_PIE := 1
49 USE_COHERENT_MEM := 1
50 RESET_TO_BL31 := 1
51 A53_DISABLE_NON_TEMPORAL_HINT := 0
52 WARMBOOT_ENABLE_DCACHE_EARLY := 1
53
54 ERRATA_A53_835769 := 1
55 ERRATA_A53_843419 := 1
56 ERRATA_A53_855873 := 1
57
58 IMX_DRAM_RETENTION ?= 0
59 $(eval $(call assert_boolean,IMX_DRAM_RETENTION))
60 $(eval $(call add_define,IMX_DRAM_RETENTION))
61
62 ifeq (${IMX_DRAM_RETENTION},1)
63 BL31_SOURCES += ${IMX_DRAM_SOURCES}
64 endif
65
66 ifneq (${PRELOADED_BL33_BASE},)
67 $(eval $(call add_define_val,PLAT_NS_IMAGE_OFFSET,${PRELOADED_BL33_BASE}))
68 endif
69
70 BL32_BASE ?= 0xfe000000
71 $(eval $(call add_define,BL32_BASE))
72
73 BL32_SIZE ?= 0x2000000
74 $(eval $(call add_define,BL32_SIZE))
75
76 IMX_BOOT_UART_BASE ?= 0x30860000
77 ifeq (${IMX_BOOT_UART_BASE},auto)
78 override IMX_BOOT_UART_BASE := 0
79 endif
80 $(eval $(call add_define,IMX_BOOT_UART_BASE))
81
82 ifeq (${SPD},trusty)
83 BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
84 endif