blob: 83a7992b3f3d00f5a7a29a19c18e2237ec282ba3 [file] [log] [blame]
Andre Przywaraa80490c2018-09-28 00:37:19 +01001#
Samuel Hollandfb23b102019-10-20 21:34:38 -05002# Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
Andre Przywaraa80490c2018-09-28 00:37:19 +01003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7include lib/xlat_tables_v2/xlat_tables.mk
8
9AW_PLAT := plat/allwinner
10
Samuel Holland252c1d12019-11-27 13:09:40 -060011PLAT_INCLUDES := -Iinclude/plat/arm/common/aarch64 \
Andre Przywaraa80490c2018-09-28 00:37:19 +010012 -I${AW_PLAT}/common/include \
13 -I${AW_PLAT}/${PLAT}/include
14
Andre Przywara41538932018-09-16 02:08:06 +010015include lib/libfdt/libfdt.mk
16
Julius Werner985ee0b2018-11-27 17:50:28 -080017PLAT_BL_COMMON_SOURCES := drivers/ti/uart/${ARCH}/16550_console.S \
Andre Przywaraa80490c2018-09-28 00:37:19 +010018 ${XLAT_TABLES_LIB_SRCS} \
19 ${AW_PLAT}/common/plat_helpers.S \
20 ${AW_PLAT}/common/sunxi_common.c
21
Samuel Hollandfb23b102019-10-20 21:34:38 -050022BL31_SOURCES += drivers/allwinner/axp/common.c \
Samuel Holland50cabf62018-10-21 12:24:16 -050023 drivers/allwinner/sunxi_msgbox.c \
Samuel Hollandfb23b102019-10-20 21:34:38 -050024 drivers/arm/gic/common/gic_common.c \
Andre Przywaraa80490c2018-09-28 00:37:19 +010025 drivers/arm/gic/v2/gicv2_helpers.c \
26 drivers/arm/gic/v2/gicv2_main.c \
27 drivers/delay_timer/delay_timer.c \
28 drivers/delay_timer/generic_delay_timer.c \
29 lib/cpus/${ARCH}/cortex_a53.S \
30 plat/common/plat_gicv2.c \
31 plat/common/plat_psci_common.c \
32 ${AW_PLAT}/common/sunxi_bl31_setup.c \
33 ${AW_PLAT}/common/sunxi_cpu_ops.c \
34 ${AW_PLAT}/common/sunxi_pm.c \
35 ${AW_PLAT}/${PLAT}/sunxi_power.c \
36 ${AW_PLAT}/common/sunxi_security.c \
37 ${AW_PLAT}/common/sunxi_topology.c
38
39# The bootloader is guaranteed to only run on CPU 0 by the boot ROM.
40COLD_BOOT_SINGLE_CPU := 1
41
Samuel Holland8f318532019-06-08 16:03:32 -050042# Do not enable SPE (not supported on ARM v8.0).
43ENABLE_SPE_FOR_LOWER_ELS := 0
44
45# Do not enable SVE (not supported on ARM v8.0).
46ENABLE_SVE_FOR_NS := 0
47
Andre Przywaraa80490c2018-09-28 00:37:19 +010048# Enable workarounds for Cortex-A53 errata. Allwinner uses at least r0p4.
49ERRATA_A53_835769 := 1
50ERRATA_A53_843419 := 1
51ERRATA_A53_855873 := 1
52
Andre Przywaraa80490c2018-09-28 00:37:19 +010053# The reset vector can be changed for each CPU.
54PROGRAMMABLE_RESET_ADDRESS := 1
55
56# Allow mapping read-only data as execute-never.
57SEPARATE_CODE_AND_RODATA := 1
58
Samuel Hollanded306a82019-10-27 14:07:52 -050059# Put NOBITS memory in SRAM A1, overwriting U-Boot's SPL.
60SEPARATE_NOBITS_REGION := 1
61
Andre Przywaraa80490c2018-09-28 00:37:19 +010062# BL31 gets loaded alongside BL33 (U-Boot) by U-Boot's SPL
63RESET_TO_BL31 := 1
Andre Przywara43060512018-10-11 22:14:30 +010064
Samuel Holland8f318532019-06-08 16:03:32 -050065# This platform is single-cluster and does not require coherency setup.
66WARMBOOT_ENABLE_DCACHE_EARLY := 1