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

# System coherency is managed in hardware
15
HW_ASSISTED_COHERENCY	:=	1
16
17
18
19
20
21
22
23
24
USE_COHERENT_MEM	:=	0

# 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

25
26
27
28
# Leave the caches enabled on core powerdown path
TI_AM65X_WORKAROUND	:=	1
$(eval $(call add_define,TI_AM65X_WORKAROUND))

29
30
31
32
MULTI_CONSOLE_API	:=	1
TI_16550_MDR_QUIRK	:=	1
$(eval $(call add_define,TI_16550_MDR_QUIRK))

33
34
35
# Libraries
include lib/xlat_tables_v2/xlat_tables.mk

36
37
PLAT_INCLUDES		+=	\
				-I${PLAT_PATH}/include			\
38
				-I${PLAT_PATH}/common/drivers/sec_proxy	\
39
				-I${PLAT_PATH}/common/drivers/ti_sci	\
40

41
42
43
44
K3_CONSOLE_SOURCES	+=	\
				drivers/ti/uart/aarch64/16550_console.S	\
				${PLAT_PATH}/common/k3_console.c	\

45
46
47
48
49
50
51
K3_GIC_SOURCES		+=	\
				drivers/arm/gic/common/gic_common.c	\
				drivers/arm/gic/v3/gicv3_main.c		\
				drivers/arm/gic/v3/gicv3_helpers.c	\
				plat/common/plat_gicv3.c		\
				${PLAT_PATH}/common/k3_gicv3.c		\

Benjamin Fair's avatar
Benjamin Fair committed
52
53
54
55
K3_PSCI_SOURCES		+=	\
				plat/common/plat_psci_common.c		\
				${PLAT_PATH}/common/k3_psci.c		\

56
57
58
K3_SEC_PROXY_SOURCES	+=	\
				${PLAT_PATH}/common/drivers/sec_proxy/sec_proxy.c \

59
60
61
K3_TI_SCI_SOURCES	+=	\
				${PLAT_PATH}/common/drivers/ti_sci/ti_sci.c \

62
63
PLAT_BL_COMMON_SOURCES	+=	\
				lib/cpus/aarch64/cortex_a53.S		\
64
				${XLAT_TABLES_LIB_SRCS}			\
65
				${K3_CONSOLE_SOURCES}			\
66
67
68

BL31_SOURCES		+=	\
				${PLAT_PATH}/common/k3_bl31_setup.c	\
69
				${PLAT_PATH}/common/k3_helpers.S	\
70
				${PLAT_PATH}/common/k3_topology.c	\
71
				${K3_GIC_SOURCES}			\
Benjamin Fair's avatar
Benjamin Fair committed
72
				${K3_PSCI_SOURCES}			\
73
				${K3_SEC_PROXY_SOURCES}			\
74
				${K3_TI_SCI_SOURCES}			\