blob: bd3d8d36171374c62f8f675fa5e92f9d261ea87a [file] [log] [blame]
Bryan O'Donoghue38c45612018-07-27 13:50:15 +01001#
Arvind Ram Prakash11b9b492022-11-22 14:41:00 -06002# Copyright (c) 2018-2023, ARM Limited and Contributors. All rights reserved.
Bryan O'Donoghue38c45612018-07-27 13:50:15 +01003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Jun Nie8cfd4b52019-06-13 11:38:24 +08007# Include imx7 common
8include plat/imx/imx7/common/imx7.mk
Bryan O'Donoghue38c45612018-07-27 13:50:15 +01009
10# Platform
Jun Nie8cfd4b52019-06-13 11:38:24 +080011PLAT_INCLUDES += -Iplat/imx/imx7/warp7/include
Bryan O'Donoghue59ca2f62018-10-26 14:19:43 +010012
Jun Nie8cfd4b52019-06-13 11:38:24 +080013BL2_SOURCES += drivers/imx/usdhc/imx_usdhc.c \
14 plat/imx/imx7/warp7/warp7_bl2_el3_setup.c
Bryan O'Donoghue59ca2f62018-10-26 14:19:43 +010015
Bryan O'Donoghue38c45612018-07-27 13:50:15 +010016# Build config flags
17# ------------------
18
Jun Nie8cfd4b52019-06-13 11:38:24 +080019ARM_CORTEX_A7 := yes
Bryan O'Donoghue38c45612018-07-27 13:50:15 +010020WORKAROUND_CVE_2017_5715 := 0
21
Bryan O'Donoghue38c45612018-07-27 13:50:15 +010022RESET_TO_BL31 := 0
23
24# Non-TF Boot ROM
Arvind Ram Prakash11b9b492022-11-22 14:41:00 -060025RESET_TO_BL2 := 1
Bryan O'Donoghue38c45612018-07-27 13:50:15 +010026
27# Indicate single-core
28COLD_BOOT_SINGLE_CPU := 1
29
30# Have different sections for code and rodata
31SEPARATE_CODE_AND_RODATA := 1
32
33# Use Coherent memory
34USE_COHERENT_MEM := 1
35
Bryan O'Donoghue38c45612018-07-27 13:50:15 +010036PLAT_WARP7_UART :=1
37$(eval $(call add_define,PLAT_WARP7_UART))