Bryan O'Donoghue | 38c4561 | 2018-07-27 13:50:15 +0100 | [diff] [blame] | 1 | # |
Arvind Ram Prakash | 11b9b49 | 2022-11-22 14:41:00 -0600 | [diff] [blame^] | 2 | # Copyright (c) 2018-2023, ARM Limited and Contributors. All rights reserved. |
Bryan O'Donoghue | 38c4561 | 2018-07-27 13:50:15 +0100 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Jun Nie | 8cfd4b5 | 2019-06-13 11:38:24 +0800 | [diff] [blame] | 7 | # Include imx7 common |
| 8 | include plat/imx/imx7/common/imx7.mk |
Bryan O'Donoghue | 38c4561 | 2018-07-27 13:50:15 +0100 | [diff] [blame] | 9 | |
| 10 | # Platform |
Jun Nie | 8cfd4b5 | 2019-06-13 11:38:24 +0800 | [diff] [blame] | 11 | PLAT_INCLUDES += -Iplat/imx/imx7/warp7/include |
Bryan O'Donoghue | 59ca2f6 | 2018-10-26 14:19:43 +0100 | [diff] [blame] | 12 | |
Jun Nie | 8cfd4b5 | 2019-06-13 11:38:24 +0800 | [diff] [blame] | 13 | BL2_SOURCES += drivers/imx/usdhc/imx_usdhc.c \ |
| 14 | plat/imx/imx7/warp7/warp7_bl2_el3_setup.c |
Bryan O'Donoghue | 59ca2f6 | 2018-10-26 14:19:43 +0100 | [diff] [blame] | 15 | |
Bryan O'Donoghue | 38c4561 | 2018-07-27 13:50:15 +0100 | [diff] [blame] | 16 | # Build config flags |
| 17 | # ------------------ |
| 18 | |
Jun Nie | 8cfd4b5 | 2019-06-13 11:38:24 +0800 | [diff] [blame] | 19 | ARM_CORTEX_A7 := yes |
Bryan O'Donoghue | 38c4561 | 2018-07-27 13:50:15 +0100 | [diff] [blame] | 20 | WORKAROUND_CVE_2017_5715 := 0 |
| 21 | |
Bryan O'Donoghue | 38c4561 | 2018-07-27 13:50:15 +0100 | [diff] [blame] | 22 | RESET_TO_BL31 := 0 |
| 23 | |
| 24 | # Non-TF Boot ROM |
Arvind Ram Prakash | 11b9b49 | 2022-11-22 14:41:00 -0600 | [diff] [blame^] | 25 | RESET_TO_BL2 := 1 |
Bryan O'Donoghue | 38c4561 | 2018-07-27 13:50:15 +0100 | [diff] [blame] | 26 | |
| 27 | # Indicate single-core |
| 28 | COLD_BOOT_SINGLE_CPU := 1 |
| 29 | |
| 30 | # Have different sections for code and rodata |
| 31 | SEPARATE_CODE_AND_RODATA := 1 |
| 32 | |
| 33 | # Use Coherent memory |
| 34 | USE_COHERENT_MEM := 1 |
| 35 | |
Bryan O'Donoghue | 38c4561 | 2018-07-27 13:50:15 +0100 | [diff] [blame] | 36 | PLAT_WARP7_UART :=1 |
| 37 | $(eval $(call add_define,PLAT_WARP7_UART)) |