blob: 8db732cb6818b3c018c81bcac364a87f75e7c07c [file] [log] [blame]
Nishanth Menon1841c532016-10-14 01:13:34 +00001#
Dave Gerlacha9f46fa2022-02-11 13:57:19 -06002# Copyright (c) 2017-2022, ARM Limited and Contributors. All rights reserved.
Nishanth Menon1841c532016-10-14 01:13:34 +00003#
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
Nishanth Menonff7b75e2020-12-10 22:17:58 -060014# ARM coherency is managed in hardware
Andrew F. Davis65f7b812019-04-25 14:02:33 -040015WARMBOOT_ENABLE_DCACHE_EARLY := 1
Nishanth Menon1841c532016-10-14 01:13:34 +000016
Nishanth Menon1841c532016-10-14 01:13:34 +000017# A53 erratum for SoC. (enable them all)
18ERRATA_A53_826319 := 1
19ERRATA_A53_835769 := 1
20ERRATA_A53_836870 := 1
21ERRATA_A53_843419 := 1
22ERRATA_A53_855873 := 1
Nishanth Menonc3e23332020-12-10 16:49:42 -060023ERRATA_A53_1530924 := 1
Nishanth Menon1841c532016-10-14 01:13:34 +000024
Nishanth Menon7c088e72018-06-22 06:36:29 -050025# A72 Erratum for SoC
26ERRATA_A72_859971 := 1
Nishanth Menon60fba7c2020-12-10 16:57:35 -060027ERRATA_A72_1319367 := 1
Nishanth Menon7c088e72018-06-22 06:36:29 -050028
Andrew F. Davis93d5e142019-05-14 15:38:11 -050029CRASH_REPORTING := 1
Andrew F. Davis93d5e142019-05-14 15:38:11 -050030
Andrew Davisd2e1f6a2024-01-11 14:55:55 -060031NS_TIMER_SWITCH := 0
32
Andrew F. Davise2dc40a2019-01-22 14:16:03 -060033# Split out RO data into a non-executable section
34SEPARATE_CODE_AND_RODATA := 1
35
Andrew F. Davisff835a92019-01-04 16:04:01 -060036# Generate a Position Independent Executable
37ENABLE_PIE := 1
38
Nishanth Menonfff6ffc2016-10-14 01:13:44 +000039TI_16550_MDR_QUIRK := 1
40$(eval $(call add_define,TI_16550_MDR_QUIRK))
41
Jan Kiszka5621fe22020-05-20 07:35:48 +020042K3_USART := 0
43$(eval $(call add_define,K3_USART))
44
Andreas Dannenberg50b2f552019-01-14 13:20:15 -060045# Allow customizing the UART baud rate
46K3_USART_BAUD := 115200
47$(eval $(call add_define,K3_USART_BAUD))
48
Nishanth Menone67bfcf2016-10-14 01:13:45 +000049# Libraries
50include lib/xlat_tables_v2/xlat_tables.mk
51
Nishanth Menon1841c532016-10-14 01:13:34 +000052PLAT_INCLUDES += \
53 -I${PLAT_PATH}/include \
Andrew F. Davisd76fdd32018-05-04 19:06:08 +000054 -I${PLAT_PATH}/common/drivers/sec_proxy \
Andrew F. Davisb5c2e1c2018-05-04 19:06:09 +000055 -I${PLAT_PATH}/common/drivers/ti_sci \
Nishanth Menon1841c532016-10-14 01:13:34 +000056
Nishanth Menonfff6ffc2016-10-14 01:13:44 +000057K3_CONSOLE_SOURCES += \
Nishanth Menonfff6ffc2016-10-14 01:13:44 +000058 drivers/ti/uart/aarch64/16550_console.S \
59 ${PLAT_PATH}/common/k3_console.c \
60
Alexei Fedorova6ea06f2020-03-23 18:45:17 +000061# Include GICv3 driver files
62include drivers/arm/gic/v3/gicv3.mk
63
Nishanth Menon74e8cf42016-10-14 01:13:49 +000064K3_GIC_SOURCES += \
Alexei Fedorova6ea06f2020-03-23 18:45:17 +000065 ${GICV3_SOURCES} \
Nishanth Menon74e8cf42016-10-14 01:13:49 +000066 plat/common/plat_gicv3.c \
67 ${PLAT_PATH}/common/k3_gicv3.c \
68
Benjamin Fair2e9c9e82016-10-14 01:13:46 +000069K3_PSCI_SOURCES += \
70 plat/common/plat_psci_common.c \
71 ${PLAT_PATH}/common/k3_psci.c \
72
Andrew F. Davisd76fdd32018-05-04 19:06:08 +000073K3_SEC_PROXY_SOURCES += \
74 ${PLAT_PATH}/common/drivers/sec_proxy/sec_proxy.c \
75
Andrew F. Davisb5c2e1c2018-05-04 19:06:09 +000076K3_TI_SCI_SOURCES += \
77 ${PLAT_PATH}/common/drivers/ti_sci/ti_sci.c \
78
Nishanth Menon1841c532016-10-14 01:13:34 +000079PLAT_BL_COMMON_SOURCES += \
80 lib/cpus/aarch64/cortex_a53.S \
Nishanth Menon7c088e72018-06-22 06:36:29 -050081 lib/cpus/aarch64/cortex_a72.S \
Nishanth Menone67bfcf2016-10-14 01:13:45 +000082 ${XLAT_TABLES_LIB_SRCS} \
Nishanth Menonfff6ffc2016-10-14 01:13:44 +000083 ${K3_CONSOLE_SOURCES} \
Nishanth Menon1841c532016-10-14 01:13:34 +000084
85BL31_SOURCES += \
86 ${PLAT_PATH}/common/k3_bl31_setup.c \
Benjamin Fair89574712016-10-18 14:32:06 -050087 ${PLAT_PATH}/common/k3_helpers.S \
Benjamin Fair878bd5c2016-10-14 01:13:47 +000088 ${PLAT_PATH}/common/k3_topology.c \
Nishanth Menon74e8cf42016-10-14 01:13:49 +000089 ${K3_GIC_SOURCES} \
Benjamin Fair2e9c9e82016-10-14 01:13:46 +000090 ${K3_PSCI_SOURCES} \
Andrew F. Davisd76fdd32018-05-04 19:06:08 +000091 ${K3_SEC_PROXY_SOURCES} \
Andrew F. Davisb5c2e1c2018-05-04 19:06:09 +000092 ${K3_TI_SCI_SOURCES} \