Nishanth Menon | 0192f89 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 1 | # |
Dave Gerlach | 3368995 | 2022-02-11 13:57:19 -0600 | [diff] [blame] | 2 | # Copyright (c) 2017-2022, ARM Limited and Contributors. All rights reserved. |
Nishanth Menon | 0192f89 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | # We don't use BL1 or BL2, so BL31 is the first image to execute |
| 8 | RESET_TO_BL31 := 1 |
| 9 | # Only one core starts up at first |
| 10 | COLD_BOOT_SINGLE_CPU := 1 |
| 11 | # We can choose where a core starts executing |
| 12 | PROGRAMMABLE_RESET_ADDRESS:= 1 |
| 13 | |
Nishanth Menon | b7a47ae | 2020-12-10 22:17:58 -0600 | [diff] [blame] | 14 | # ARM coherency is managed in hardware |
Andrew F. Davis | f86a5de | 2019-04-25 14:02:33 -0400 | [diff] [blame] | 15 | WARMBOOT_ENABLE_DCACHE_EARLY := 1 |
Nishanth Menon | 0192f89 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 16 | |
Nishanth Menon | 0192f89 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 17 | # A53 erratum for SoC. (enable them all) |
| 18 | ERRATA_A53_826319 := 1 |
| 19 | ERRATA_A53_835769 := 1 |
| 20 | ERRATA_A53_836870 := 1 |
| 21 | ERRATA_A53_843419 := 1 |
| 22 | ERRATA_A53_855873 := 1 |
Nishanth Menon | 3a285f0 | 2020-12-10 16:49:42 -0600 | [diff] [blame] | 23 | ERRATA_A53_1530924 := 1 |
Nishanth Menon | 0192f89 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 24 | |
Nishanth Menon | 4f9ef16 | 2018-06-22 06:36:29 -0500 | [diff] [blame] | 25 | # A72 Erratum for SoC |
| 26 | ERRATA_A72_859971 := 1 |
Nishanth Menon | b4251f1 | 2020-12-10 16:57:35 -0600 | [diff] [blame] | 27 | ERRATA_A72_1319367 := 1 |
Nishanth Menon | 4f9ef16 | 2018-06-22 06:36:29 -0500 | [diff] [blame] | 28 | |
Andrew F. Davis | 8d19f1c | 2019-05-14 15:38:11 -0500 | [diff] [blame] | 29 | CRASH_REPORTING := 1 |
Andrew F. Davis | 8d19f1c | 2019-05-14 15:38:11 -0500 | [diff] [blame] | 30 | |
Andrew F. Davis | 26e8912 | 2019-01-22 14:16:03 -0600 | [diff] [blame] | 31 | # Split out RO data into a non-executable section |
| 32 | SEPARATE_CODE_AND_RODATA := 1 |
| 33 | |
Andrew F. Davis | 4ab7e01 | 2019-01-04 16:04:01 -0600 | [diff] [blame] | 34 | # Generate a Position Independent Executable |
| 35 | ENABLE_PIE := 1 |
| 36 | |
Nishanth Menon | ce97604 | 2016-10-14 01:13:44 +0000 | [diff] [blame] | 37 | TI_16550_MDR_QUIRK := 1 |
| 38 | $(eval $(call add_define,TI_16550_MDR_QUIRK)) |
| 39 | |
Jan Kiszka | b99c078 | 2020-05-20 07:35:48 +0200 | [diff] [blame] | 40 | K3_USART := 0 |
| 41 | $(eval $(call add_define,K3_USART)) |
| 42 | |
Andreas Dannenberg | 5e6d140 | 2019-01-14 13:20:15 -0600 | [diff] [blame] | 43 | # Allow customizing the UART baud rate |
| 44 | K3_USART_BAUD := 115200 |
| 45 | $(eval $(call add_define,K3_USART_BAUD)) |
| 46 | |
Dave Gerlach | 3368995 | 2022-02-11 13:57:19 -0600 | [diff] [blame] | 47 | # Enable system suspend modes |
| 48 | K3_PM_SYSTEM_SUSPEND := 0 |
| 49 | $(eval $(call add_define,K3_PM_SYSTEM_SUSPEND)) |
| 50 | |
Nishanth Menon | 3ed1b28 | 2016-10-14 01:13:45 +0000 | [diff] [blame] | 51 | # Libraries |
| 52 | include lib/xlat_tables_v2/xlat_tables.mk |
| 53 | |
Nishanth Menon | 0192f89 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 54 | PLAT_INCLUDES += \ |
| 55 | -I${PLAT_PATH}/include \ |
Andrew F. Davis | 537d3ff | 2018-05-04 19:06:08 +0000 | [diff] [blame] | 56 | -I${PLAT_PATH}/common/drivers/sec_proxy \ |
Andrew F. Davis | a513b2a | 2018-05-04 19:06:09 +0000 | [diff] [blame] | 57 | -I${PLAT_PATH}/common/drivers/ti_sci \ |
Nishanth Menon | 0192f89 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 58 | |
Nishanth Menon | ce97604 | 2016-10-14 01:13:44 +0000 | [diff] [blame] | 59 | K3_CONSOLE_SOURCES += \ |
Nishanth Menon | ce97604 | 2016-10-14 01:13:44 +0000 | [diff] [blame] | 60 | drivers/ti/uart/aarch64/16550_console.S \ |
| 61 | ${PLAT_PATH}/common/k3_console.c \ |
| 62 | |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 63 | # Include GICv3 driver files |
| 64 | include drivers/arm/gic/v3/gicv3.mk |
| 65 | |
Nishanth Menon | f97ad37 | 2016-10-14 01:13:49 +0000 | [diff] [blame] | 66 | K3_GIC_SOURCES += \ |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 67 | ${GICV3_SOURCES} \ |
Nishanth Menon | f97ad37 | 2016-10-14 01:13:49 +0000 | [diff] [blame] | 68 | plat/common/plat_gicv3.c \ |
| 69 | ${PLAT_PATH}/common/k3_gicv3.c \ |
| 70 | |
Benjamin Fair | a42b61b | 2016-10-14 01:13:46 +0000 | [diff] [blame] | 71 | K3_PSCI_SOURCES += \ |
| 72 | plat/common/plat_psci_common.c \ |
| 73 | ${PLAT_PATH}/common/k3_psci.c \ |
| 74 | |
Andrew F. Davis | 537d3ff | 2018-05-04 19:06:08 +0000 | [diff] [blame] | 75 | K3_SEC_PROXY_SOURCES += \ |
| 76 | ${PLAT_PATH}/common/drivers/sec_proxy/sec_proxy.c \ |
| 77 | |
Andrew F. Davis | a513b2a | 2018-05-04 19:06:09 +0000 | [diff] [blame] | 78 | K3_TI_SCI_SOURCES += \ |
| 79 | ${PLAT_PATH}/common/drivers/ti_sci/ti_sci.c \ |
| 80 | |
Nishanth Menon | 0192f89 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 81 | PLAT_BL_COMMON_SOURCES += \ |
| 82 | lib/cpus/aarch64/cortex_a53.S \ |
Nishanth Menon | 4f9ef16 | 2018-06-22 06:36:29 -0500 | [diff] [blame] | 83 | lib/cpus/aarch64/cortex_a72.S \ |
Nishanth Menon | 3ed1b28 | 2016-10-14 01:13:45 +0000 | [diff] [blame] | 84 | ${XLAT_TABLES_LIB_SRCS} \ |
Nishanth Menon | ce97604 | 2016-10-14 01:13:44 +0000 | [diff] [blame] | 85 | ${K3_CONSOLE_SOURCES} \ |
Nishanth Menon | 0192f89 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 86 | |
| 87 | BL31_SOURCES += \ |
| 88 | ${PLAT_PATH}/common/k3_bl31_setup.c \ |
Benjamin Fair | f807a34 | 2016-10-18 14:32:06 -0500 | [diff] [blame] | 89 | ${PLAT_PATH}/common/k3_helpers.S \ |
Benjamin Fair | 42eea87 | 2016-10-14 01:13:47 +0000 | [diff] [blame] | 90 | ${PLAT_PATH}/common/k3_topology.c \ |
Nishanth Menon | f97ad37 | 2016-10-14 01:13:49 +0000 | [diff] [blame] | 91 | ${K3_GIC_SOURCES} \ |
Benjamin Fair | a42b61b | 2016-10-14 01:13:46 +0000 | [diff] [blame] | 92 | ${K3_PSCI_SOURCES} \ |
Andrew F. Davis | 537d3ff | 2018-05-04 19:06:08 +0000 | [diff] [blame] | 93 | ${K3_SEC_PROXY_SOURCES} \ |
Andrew F. Davis | a513b2a | 2018-05-04 19:06:09 +0000 | [diff] [blame] | 94 | ${K3_TI_SCI_SOURCES} \ |