plat_common.mk 2.21 KB
Newer Older
1
#
2
# Copyright (c) 2017-2020, ARM Limited and Contributors. All rights reserved.
3
4
5
6
7
8
9
10
11
12
13
#
# 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

14
# ARM coherency is managed in hardware
15
WARMBOOT_ENABLE_DCACHE_EARLY :=	1
16
17
18
19
20
21
22

# 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
23
ERRATA_A53_1530924	:=	1
24

25
26
# A72 Erratum for SoC
ERRATA_A72_859971	:=	1
27
ERRATA_A72_1319367	:=	1
28

29
30
31
CRASH_REPORTING		:= 1
HANDLE_EA_EL3_FIRST	:= 1

32
33
34
# Split out RO data into a non-executable section
SEPARATE_CODE_AND_RODATA :=    1

35
36
37
# Generate a Position Independent Executable
ENABLE_PIE		:=	1

38
39
40
TI_16550_MDR_QUIRK	:=	1
$(eval $(call add_define,TI_16550_MDR_QUIRK))

41
42
43
K3_USART		:=	0
$(eval $(call add_define,K3_USART))

44
45
46
47
# Allow customizing the UART baud rate
K3_USART_BAUD		:=	115200
$(eval $(call add_define,K3_USART_BAUD))

48
49
50
# Libraries
include lib/xlat_tables_v2/xlat_tables.mk

51
52
PLAT_INCLUDES		+=	\
				-I${PLAT_PATH}/include			\
53
				-I${PLAT_PATH}/common/drivers/sec_proxy	\
54
				-I${PLAT_PATH}/common/drivers/ti_sci	\
55

56
57
58
59
K3_CONSOLE_SOURCES	+=	\
				drivers/ti/uart/aarch64/16550_console.S	\
				${PLAT_PATH}/common/k3_console.c	\

60
61
62
# Include GICv3 driver files
include drivers/arm/gic/v3/gicv3.mk

63
K3_GIC_SOURCES		+=	\
64
				${GICV3_SOURCES}			\
65
66
67
				plat/common/plat_gicv3.c		\
				${PLAT_PATH}/common/k3_gicv3.c		\

Benjamin Fair's avatar
Benjamin Fair committed
68
69
70
71
K3_PSCI_SOURCES		+=	\
				plat/common/plat_psci_common.c		\
				${PLAT_PATH}/common/k3_psci.c		\

72
73
74
K3_SEC_PROXY_SOURCES	+=	\
				${PLAT_PATH}/common/drivers/sec_proxy/sec_proxy.c \

75
76
77
K3_TI_SCI_SOURCES	+=	\
				${PLAT_PATH}/common/drivers/ti_sci/ti_sci.c \

78
79
PLAT_BL_COMMON_SOURCES	+=	\
				lib/cpus/aarch64/cortex_a53.S		\
80
				lib/cpus/aarch64/cortex_a72.S		\
81
				${XLAT_TABLES_LIB_SRCS}			\
82
				${K3_CONSOLE_SOURCES}			\
83
84
85

BL31_SOURCES		+=	\
				${PLAT_PATH}/common/k3_bl31_setup.c	\
86
				${PLAT_PATH}/common/k3_helpers.S	\
87
				${PLAT_PATH}/common/k3_topology.c	\
88
				${K3_GIC_SOURCES}			\
Benjamin Fair's avatar
Benjamin Fair committed
89
				${K3_PSCI_SOURCES}			\
90
				${K3_SEC_PROXY_SOURCES}			\
91
				${K3_TI_SCI_SOURCES}			\