Nishanth Menon | 1841c53 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. |
| 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 | |
| 14 | # System coherency is managed in hardware |
Andrew F. Davis | 903f13d | 2018-07-26 14:25:03 -0500 | [diff] [blame] | 15 | WARMBOOT_ENABLE_DCACHE_EARLY:= 1 |
Nishanth Menon | 1841c53 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 16 | USE_COHERENT_MEM := 0 |
| 17 | |
| 18 | ERROR_DEPRECATED := 1 |
| 19 | ENABLE_PLAT_COMPAT := 0 |
| 20 | |
| 21 | # A53 erratum for SoC. (enable them all) |
| 22 | ERRATA_A53_826319 := 1 |
| 23 | ERRATA_A53_835769 := 1 |
| 24 | ERRATA_A53_836870 := 1 |
| 25 | ERRATA_A53_843419 := 1 |
| 26 | ERRATA_A53_855873 := 1 |
| 27 | |
Nishanth Menon | fff6ffc | 2016-10-14 01:13:44 +0000 | [diff] [blame] | 28 | MULTI_CONSOLE_API := 1 |
| 29 | TI_16550_MDR_QUIRK := 1 |
| 30 | $(eval $(call add_define,TI_16550_MDR_QUIRK)) |
| 31 | |
Nishanth Menon | e67bfcf | 2016-10-14 01:13:45 +0000 | [diff] [blame] | 32 | # Libraries |
| 33 | include lib/xlat_tables_v2/xlat_tables.mk |
| 34 | |
Nishanth Menon | 1841c53 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 35 | PLAT_INCLUDES += \ |
| 36 | -I${PLAT_PATH}/include \ |
| 37 | -Iinclude/plat/arm/common/ \ |
| 38 | -Iinclude/plat/arm/common/aarch64/ \ |
Andrew F. Davis | d76fdd3 | 2018-05-04 19:06:08 +0000 | [diff] [blame^] | 39 | -I${PLAT_PATH}/common/drivers/sec_proxy \ |
Nishanth Menon | 1841c53 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 40 | |
Nishanth Menon | fff6ffc | 2016-10-14 01:13:44 +0000 | [diff] [blame] | 41 | K3_CONSOLE_SOURCES += \ |
| 42 | drivers/console/aarch64/console.S \ |
| 43 | drivers/ti/uart/aarch64/16550_console.S \ |
| 44 | ${PLAT_PATH}/common/k3_console.c \ |
| 45 | |
Nishanth Menon | 74e8cf4 | 2016-10-14 01:13:49 +0000 | [diff] [blame] | 46 | K3_GIC_SOURCES += \ |
| 47 | drivers/arm/gic/common/gic_common.c \ |
| 48 | drivers/arm/gic/v3/gicv3_main.c \ |
| 49 | drivers/arm/gic/v3/gicv3_helpers.c \ |
| 50 | plat/common/plat_gicv3.c \ |
| 51 | ${PLAT_PATH}/common/k3_gicv3.c \ |
| 52 | |
Benjamin Fair | 2e9c9e8 | 2016-10-14 01:13:46 +0000 | [diff] [blame] | 53 | K3_PSCI_SOURCES += \ |
| 54 | plat/common/plat_psci_common.c \ |
| 55 | ${PLAT_PATH}/common/k3_psci.c \ |
| 56 | |
Andrew F. Davis | d76fdd3 | 2018-05-04 19:06:08 +0000 | [diff] [blame^] | 57 | K3_SEC_PROXY_SOURCES += \ |
| 58 | ${PLAT_PATH}/common/drivers/sec_proxy/sec_proxy.c \ |
| 59 | |
Nishanth Menon | 1841c53 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 60 | PLAT_BL_COMMON_SOURCES += \ |
Nishanth Menon | e67bfcf | 2016-10-14 01:13:45 +0000 | [diff] [blame] | 61 | plat/arm/common/arm_common.c \ |
Nishanth Menon | 1841c53 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 62 | lib/cpus/aarch64/cortex_a53.S \ |
Nishanth Menon | e67bfcf | 2016-10-14 01:13:45 +0000 | [diff] [blame] | 63 | ${XLAT_TABLES_LIB_SRCS} \ |
Nishanth Menon | fff6ffc | 2016-10-14 01:13:44 +0000 | [diff] [blame] | 64 | ${K3_CONSOLE_SOURCES} \ |
Nishanth Menon | 1841c53 | 2016-10-14 01:13:34 +0000 | [diff] [blame] | 65 | |
| 66 | BL31_SOURCES += \ |
| 67 | ${PLAT_PATH}/common/k3_bl31_setup.c \ |
Benjamin Fair | 8957471 | 2016-10-18 14:32:06 -0500 | [diff] [blame] | 68 | ${PLAT_PATH}/common/k3_helpers.S \ |
Benjamin Fair | 878bd5c | 2016-10-14 01:13:47 +0000 | [diff] [blame] | 69 | ${PLAT_PATH}/common/k3_topology.c \ |
Nishanth Menon | 74e8cf4 | 2016-10-14 01:13:49 +0000 | [diff] [blame] | 70 | ${K3_GIC_SOURCES} \ |
Benjamin Fair | 2e9c9e8 | 2016-10-14 01:13:46 +0000 | [diff] [blame] | 71 | ${K3_PSCI_SOURCES} \ |
Andrew F. Davis | d76fdd3 | 2018-05-04 19:06:08 +0000 | [diff] [blame^] | 72 | ${K3_SEC_PROXY_SOURCES} \ |