2016-10-14 02:13:34 +01:00
|
|
|
#
|
2022-02-11 19:57:19 +00:00
|
|
|
# Copyright (c) 2017-2022, ARM Limited and Contributors. All rights reserved.
|
2016-10-14 02:13:34 +01:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#
|
|
|
|
|
|
|
|
# We don't use BL1 or BL2, so BL31 is the first image to execute
|
|
|
|
RESET_TO_BL31 := 1
|
|
|
|
# Only one core starts up at first
|
|
|
|
COLD_BOOT_SINGLE_CPU := 1
|
|
|
|
# We can choose where a core starts executing
|
|
|
|
PROGRAMMABLE_RESET_ADDRESS:= 1
|
|
|
|
|
2020-12-11 04:17:58 +00:00
|
|
|
# ARM coherency is managed in hardware
|
2019-04-25 19:02:33 +01:00
|
|
|
WARMBOOT_ENABLE_DCACHE_EARLY := 1
|
2016-10-14 02:13:34 +01:00
|
|
|
|
|
|
|
# A53 erratum for SoC. (enable them all)
|
|
|
|
ERRATA_A53_826319 := 1
|
|
|
|
ERRATA_A53_835769 := 1
|
|
|
|
ERRATA_A53_836870 := 1
|
|
|
|
ERRATA_A53_843419 := 1
|
|
|
|
ERRATA_A53_855873 := 1
|
2020-12-10 22:49:42 +00:00
|
|
|
ERRATA_A53_1530924 := 1
|
2016-10-14 02:13:34 +01:00
|
|
|
|
2018-06-22 12:36:29 +01:00
|
|
|
# A72 Erratum for SoC
|
|
|
|
ERRATA_A72_859971 := 1
|
2020-12-10 22:57:35 +00:00
|
|
|
ERRATA_A72_1319367 := 1
|
2018-06-22 12:36:29 +01:00
|
|
|
|
2019-05-14 21:38:11 +01:00
|
|
|
CRASH_REPORTING := 1
|
|
|
|
HANDLE_EA_EL3_FIRST := 1
|
|
|
|
|
2019-01-22 20:16:03 +00:00
|
|
|
# Split out RO data into a non-executable section
|
|
|
|
SEPARATE_CODE_AND_RODATA := 1
|
|
|
|
|
2019-01-04 22:04:01 +00:00
|
|
|
# Generate a Position Independent Executable
|
|
|
|
ENABLE_PIE := 1
|
|
|
|
|
2016-10-14 02:13:44 +01:00
|
|
|
TI_16550_MDR_QUIRK := 1
|
|
|
|
$(eval $(call add_define,TI_16550_MDR_QUIRK))
|
|
|
|
|
2020-05-20 06:35:48 +01:00
|
|
|
K3_USART := 0
|
|
|
|
$(eval $(call add_define,K3_USART))
|
|
|
|
|
2019-01-14 19:20:15 +00:00
|
|
|
# Allow customizing the UART baud rate
|
|
|
|
K3_USART_BAUD := 115200
|
|
|
|
$(eval $(call add_define,K3_USART_BAUD))
|
|
|
|
|
2022-02-11 19:57:19 +00:00
|
|
|
# Enable system suspend modes
|
|
|
|
K3_PM_SYSTEM_SUSPEND := 0
|
|
|
|
$(eval $(call add_define,K3_PM_SYSTEM_SUSPEND))
|
|
|
|
|
2016-10-14 02:13:45 +01:00
|
|
|
# Libraries
|
|
|
|
include lib/xlat_tables_v2/xlat_tables.mk
|
|
|
|
|
2016-10-14 02:13:34 +01:00
|
|
|
PLAT_INCLUDES += \
|
|
|
|
-I${PLAT_PATH}/include \
|
2018-05-04 20:06:08 +01:00
|
|
|
-I${PLAT_PATH}/common/drivers/sec_proxy \
|
2018-05-04 20:06:09 +01:00
|
|
|
-I${PLAT_PATH}/common/drivers/ti_sci \
|
2016-10-14 02:13:34 +01:00
|
|
|
|
2016-10-14 02:13:44 +01:00
|
|
|
K3_CONSOLE_SOURCES += \
|
|
|
|
drivers/ti/uart/aarch64/16550_console.S \
|
|
|
|
${PLAT_PATH}/common/k3_console.c \
|
|
|
|
|
2020-03-23 18:45:17 +00:00
|
|
|
# Include GICv3 driver files
|
|
|
|
include drivers/arm/gic/v3/gicv3.mk
|
|
|
|
|
2016-10-14 02:13:49 +01:00
|
|
|
K3_GIC_SOURCES += \
|
2020-03-23 18:45:17 +00:00
|
|
|
${GICV3_SOURCES} \
|
2016-10-14 02:13:49 +01:00
|
|
|
plat/common/plat_gicv3.c \
|
|
|
|
${PLAT_PATH}/common/k3_gicv3.c \
|
|
|
|
|
2016-10-14 02:13:46 +01:00
|
|
|
K3_PSCI_SOURCES += \
|
|
|
|
plat/common/plat_psci_common.c \
|
|
|
|
${PLAT_PATH}/common/k3_psci.c \
|
|
|
|
|
2018-05-04 20:06:08 +01:00
|
|
|
K3_SEC_PROXY_SOURCES += \
|
|
|
|
${PLAT_PATH}/common/drivers/sec_proxy/sec_proxy.c \
|
|
|
|
|
2018-05-04 20:06:09 +01:00
|
|
|
K3_TI_SCI_SOURCES += \
|
|
|
|
${PLAT_PATH}/common/drivers/ti_sci/ti_sci.c \
|
|
|
|
|
2016-10-14 02:13:34 +01:00
|
|
|
PLAT_BL_COMMON_SOURCES += \
|
|
|
|
lib/cpus/aarch64/cortex_a53.S \
|
2018-06-22 12:36:29 +01:00
|
|
|
lib/cpus/aarch64/cortex_a72.S \
|
2016-10-14 02:13:45 +01:00
|
|
|
${XLAT_TABLES_LIB_SRCS} \
|
2016-10-14 02:13:44 +01:00
|
|
|
${K3_CONSOLE_SOURCES} \
|
2016-10-14 02:13:34 +01:00
|
|
|
|
|
|
|
BL31_SOURCES += \
|
|
|
|
${PLAT_PATH}/common/k3_bl31_setup.c \
|
2016-10-18 20:32:06 +01:00
|
|
|
${PLAT_PATH}/common/k3_helpers.S \
|
2016-10-14 02:13:47 +01:00
|
|
|
${PLAT_PATH}/common/k3_topology.c \
|
2016-10-14 02:13:49 +01:00
|
|
|
${K3_GIC_SOURCES} \
|
2016-10-14 02:13:46 +01:00
|
|
|
${K3_PSCI_SOURCES} \
|
2018-05-04 20:06:08 +01:00
|
|
|
${K3_SEC_PROXY_SOURCES} \
|
2018-05-04 20:06:09 +01:00
|
|
|
${K3_TI_SCI_SOURCES} \
|