Andre Przywara | 452b2b6 | 2018-09-28 00:37:19 +0100 | [diff] [blame] | 1 | # |
Samuel Holland | 1dad265 | 2019-10-20 21:34:38 -0500 | [diff] [blame] | 2 | # Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved. |
Andre Przywara | 452b2b6 | 2018-09-28 00:37:19 +0100 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | include lib/xlat_tables_v2/xlat_tables.mk |
| 8 | |
| 9 | AW_PLAT := plat/allwinner |
| 10 | |
Samuel Holland | 4a02471 | 2019-11-27 13:09:40 -0600 | [diff] [blame] | 11 | PLAT_INCLUDES := -Iinclude/plat/arm/common/aarch64 \ |
Andre Przywara | 452b2b6 | 2018-09-28 00:37:19 +0100 | [diff] [blame] | 12 | -I${AW_PLAT}/common/include \ |
| 13 | -I${AW_PLAT}/${PLAT}/include |
| 14 | |
Andre Przywara | ea5fa47 | 2018-09-16 02:08:06 +0100 | [diff] [blame] | 15 | include lib/libfdt/libfdt.mk |
| 16 | |
Julius Werner | 6b88b65 | 2018-11-27 17:50:28 -0800 | [diff] [blame] | 17 | PLAT_BL_COMMON_SOURCES := drivers/ti/uart/${ARCH}/16550_console.S \ |
Andre Przywara | 452b2b6 | 2018-09-28 00:37:19 +0100 | [diff] [blame] | 18 | ${XLAT_TABLES_LIB_SRCS} \ |
| 19 | ${AW_PLAT}/common/plat_helpers.S \ |
| 20 | ${AW_PLAT}/common/sunxi_common.c |
| 21 | |
Samuel Holland | 1dad265 | 2019-10-20 21:34:38 -0500 | [diff] [blame] | 22 | BL31_SOURCES += drivers/allwinner/axp/common.c \ |
Samuel Holland | 7470370 | 2018-10-21 12:24:16 -0500 | [diff] [blame] | 23 | drivers/allwinner/sunxi_msgbox.c \ |
Samuel Holland | 103ee9b | 2018-10-21 12:41:03 -0500 | [diff] [blame] | 24 | drivers/arm/css/scpi/css_scpi.c \ |
Samuel Holland | 1dad265 | 2019-10-20 21:34:38 -0500 | [diff] [blame] | 25 | drivers/arm/gic/common/gic_common.c \ |
Andre Przywara | 452b2b6 | 2018-09-28 00:37:19 +0100 | [diff] [blame] | 26 | drivers/arm/gic/v2/gicv2_helpers.c \ |
| 27 | drivers/arm/gic/v2/gicv2_main.c \ |
| 28 | drivers/delay_timer/delay_timer.c \ |
| 29 | drivers/delay_timer/generic_delay_timer.c \ |
| 30 | lib/cpus/${ARCH}/cortex_a53.S \ |
| 31 | plat/common/plat_gicv2.c \ |
| 32 | plat/common/plat_psci_common.c \ |
| 33 | ${AW_PLAT}/common/sunxi_bl31_setup.c \ |
| 34 | ${AW_PLAT}/common/sunxi_cpu_ops.c \ |
| 35 | ${AW_PLAT}/common/sunxi_pm.c \ |
| 36 | ${AW_PLAT}/${PLAT}/sunxi_power.c \ |
| 37 | ${AW_PLAT}/common/sunxi_security.c \ |
| 38 | ${AW_PLAT}/common/sunxi_topology.c |
| 39 | |
| 40 | # The bootloader is guaranteed to only run on CPU 0 by the boot ROM. |
| 41 | COLD_BOOT_SINGLE_CPU := 1 |
| 42 | |
Samuel Holland | c47f00e | 2019-06-08 16:03:32 -0500 | [diff] [blame] | 43 | # Do not enable SPE (not supported on ARM v8.0). |
| 44 | ENABLE_SPE_FOR_LOWER_ELS := 0 |
| 45 | |
| 46 | # Do not enable SVE (not supported on ARM v8.0). |
| 47 | ENABLE_SVE_FOR_NS := 0 |
| 48 | |
Andre Przywara | 452b2b6 | 2018-09-28 00:37:19 +0100 | [diff] [blame] | 49 | # Enable workarounds for Cortex-A53 errata. Allwinner uses at least r0p4. |
| 50 | ERRATA_A53_835769 := 1 |
| 51 | ERRATA_A53_843419 := 1 |
| 52 | ERRATA_A53_855873 := 1 |
| 53 | |
Andre Przywara | 452b2b6 | 2018-09-28 00:37:19 +0100 | [diff] [blame] | 54 | # The reset vector can be changed for each CPU. |
| 55 | PROGRAMMABLE_RESET_ADDRESS := 1 |
| 56 | |
| 57 | # Allow mapping read-only data as execute-never. |
| 58 | SEPARATE_CODE_AND_RODATA := 1 |
| 59 | |
Samuel Holland | d00eaa2 | 2019-10-27 14:07:52 -0500 | [diff] [blame] | 60 | # Put NOBITS memory in SRAM A1, overwriting U-Boot's SPL. |
| 61 | SEPARATE_NOBITS_REGION := 1 |
| 62 | |
Andre Przywara | 452b2b6 | 2018-09-28 00:37:19 +0100 | [diff] [blame] | 63 | # BL31 gets loaded alongside BL33 (U-Boot) by U-Boot's SPL |
| 64 | RESET_TO_BL31 := 1 |
Andre Przywara | 647a2e1 | 2018-10-11 22:14:30 +0100 | [diff] [blame] | 65 | |
Samuel Holland | c47f00e | 2019-06-08 16:03:32 -0500 | [diff] [blame] | 66 | # This platform is single-cluster and does not require coherency setup. |
| 67 | WARMBOOT_ENABLE_DCACHE_EARLY := 1 |