blob: 5f19127d0ed2a24f519df7660c8bc05cf9d99c39 [file] [log] [blame]
Nishanth Menon1841c532016-10-14 01:13:34 +00001#
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
8RESET_TO_BL31 := 1
9# Only one core starts up at first
10COLD_BOOT_SINGLE_CPU := 1
11# We can choose where a core starts executing
12PROGRAMMABLE_RESET_ADDRESS:= 1
13
14# System coherency is managed in hardware
Andrew F. Davis903f13d2018-07-26 14:25:03 -050015WARMBOOT_ENABLE_DCACHE_EARLY:= 1
Nishanth Menon1841c532016-10-14 01:13:34 +000016USE_COHERENT_MEM := 0
17
18ERROR_DEPRECATED := 1
19ENABLE_PLAT_COMPAT := 0
20
21# A53 erratum for SoC. (enable them all)
22ERRATA_A53_826319 := 1
23ERRATA_A53_835769 := 1
24ERRATA_A53_836870 := 1
25ERRATA_A53_843419 := 1
26ERRATA_A53_855873 := 1
27
Nishanth Menonfff6ffc2016-10-14 01:13:44 +000028MULTI_CONSOLE_API := 1
29TI_16550_MDR_QUIRK := 1
30$(eval $(call add_define,TI_16550_MDR_QUIRK))
31
Nishanth Menone67bfcf2016-10-14 01:13:45 +000032# Libraries
33include lib/xlat_tables_v2/xlat_tables.mk
34
Nishanth Menon1841c532016-10-14 01:13:34 +000035PLAT_INCLUDES += \
36 -I${PLAT_PATH}/include \
37 -Iinclude/plat/arm/common/ \
38 -Iinclude/plat/arm/common/aarch64/ \
Andrew F. Davisd76fdd32018-05-04 19:06:08 +000039 -I${PLAT_PATH}/common/drivers/sec_proxy \
Nishanth Menon1841c532016-10-14 01:13:34 +000040
Nishanth Menonfff6ffc2016-10-14 01:13:44 +000041K3_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 Menon74e8cf42016-10-14 01:13:49 +000046K3_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 Fair2e9c9e82016-10-14 01:13:46 +000053K3_PSCI_SOURCES += \
54 plat/common/plat_psci_common.c \
55 ${PLAT_PATH}/common/k3_psci.c \
56
Andrew F. Davisd76fdd32018-05-04 19:06:08 +000057K3_SEC_PROXY_SOURCES += \
58 ${PLAT_PATH}/common/drivers/sec_proxy/sec_proxy.c \
59
Nishanth Menon1841c532016-10-14 01:13:34 +000060PLAT_BL_COMMON_SOURCES += \
Nishanth Menone67bfcf2016-10-14 01:13:45 +000061 plat/arm/common/arm_common.c \
Nishanth Menon1841c532016-10-14 01:13:34 +000062 lib/cpus/aarch64/cortex_a53.S \
Nishanth Menone67bfcf2016-10-14 01:13:45 +000063 ${XLAT_TABLES_LIB_SRCS} \
Nishanth Menonfff6ffc2016-10-14 01:13:44 +000064 ${K3_CONSOLE_SOURCES} \
Nishanth Menon1841c532016-10-14 01:13:34 +000065
66BL31_SOURCES += \
67 ${PLAT_PATH}/common/k3_bl31_setup.c \
Benjamin Fair89574712016-10-18 14:32:06 -050068 ${PLAT_PATH}/common/k3_helpers.S \
Benjamin Fair878bd5c2016-10-14 01:13:47 +000069 ${PLAT_PATH}/common/k3_topology.c \
Nishanth Menon74e8cf42016-10-14 01:13:49 +000070 ${K3_GIC_SOURCES} \
Benjamin Fair2e9c9e82016-10-14 01:13:46 +000071 ${K3_PSCI_SOURCES} \
Andrew F. Davisd76fdd32018-05-04 19:06:08 +000072 ${K3_SEC_PROXY_SOURCES} \