blob: f20f5157e96267f42e3d490175b27fa4830c5232 [file] [log] [blame]
Andre Przywara452b2b62018-09-28 00:37:19 +01001#
2# Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7include lib/xlat_tables_v2/xlat_tables.mk
8
9AW_PLAT := plat/allwinner
10
11PLAT_INCLUDES := -Iinclude/plat/arm/common \
12 -Iinclude/plat/arm/common/aarch64 \
13 -I${AW_PLAT}/common/include \
14 -I${AW_PLAT}/${PLAT}/include
15
Andre Przywaraea5fa472018-09-16 02:08:06 +010016include lib/libfdt/libfdt.mk
17
Julius Werner6b88b652018-11-27 17:50:28 -080018PLAT_BL_COMMON_SOURCES := drivers/ti/uart/${ARCH}/16550_console.S \
Andre Przywara452b2b62018-09-28 00:37:19 +010019 ${XLAT_TABLES_LIB_SRCS} \
20 ${AW_PLAT}/common/plat_helpers.S \
21 ${AW_PLAT}/common/sunxi_common.c
22
23BL31_SOURCES += drivers/arm/gic/common/gic_common.c \
24 drivers/arm/gic/v2/gicv2_helpers.c \
25 drivers/arm/gic/v2/gicv2_main.c \
26 drivers/delay_timer/delay_timer.c \
27 drivers/delay_timer/generic_delay_timer.c \
28 lib/cpus/${ARCH}/cortex_a53.S \
29 plat/common/plat_gicv2.c \
30 plat/common/plat_psci_common.c \
31 ${AW_PLAT}/common/sunxi_bl31_setup.c \
32 ${AW_PLAT}/common/sunxi_cpu_ops.c \
33 ${AW_PLAT}/common/sunxi_pm.c \
34 ${AW_PLAT}/${PLAT}/sunxi_power.c \
35 ${AW_PLAT}/common/sunxi_security.c \
36 ${AW_PLAT}/common/sunxi_topology.c
37
38# The bootloader is guaranteed to only run on CPU 0 by the boot ROM.
39COLD_BOOT_SINGLE_CPU := 1
40
41# Enable workarounds for Cortex-A53 errata. Allwinner uses at least r0p4.
42ERRATA_A53_835769 := 1
43ERRATA_A53_843419 := 1
44ERRATA_A53_855873 := 1
45
46MULTI_CONSOLE_API := 1
47
48# The reset vector can be changed for each CPU.
49PROGRAMMABLE_RESET_ADDRESS := 1
50
51# Allow mapping read-only data as execute-never.
52SEPARATE_CODE_AND_RODATA := 1
53
54# BL31 gets loaded alongside BL33 (U-Boot) by U-Boot's SPL
55RESET_TO_BL31 := 1
Andre Przywara647a2e12018-10-11 22:14:30 +010056
57# We are short on memory, so save 3.5KB by not having an extra coherent page.
58USE_COHERENT_MEM := 0