Samuel Holland | 7438320 | 2017-08-12 04:07:39 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. |
| 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 | |
| 11 | PLAT_INCLUDES := -Iinclude/plat/arm/common/ \ |
| 12 | -Iinclude/plat/arm/common/aarch64 \ |
| 13 | -I${AW_PLAT}/common/include \ |
| 14 | -I${AW_PLAT}/${PLAT}/include |
| 15 | |
| 16 | PLAT_BL_COMMON_SOURCES := drivers/console/${ARCH}/console.S \ |
| 17 | drivers/ti/uart/${ARCH}/16550_console.S \ |
| 18 | ${XLAT_TABLES_LIB_SRCS} \ |
| 19 | ${AW_PLAT}/common/plat_helpers.S \ |
| 20 | ${AW_PLAT}/common/sunxi_common.c |
| 21 | |
| 22 | BL31_SOURCES += drivers/arm/gic/common/gic_common.c \ |
| 23 | drivers/arm/gic/v2/gicv2_helpers.c \ |
| 24 | drivers/arm/gic/v2/gicv2_main.c \ |
| 25 | drivers/delay_timer/delay_timer.c \ |
| 26 | drivers/delay_timer/generic_delay_timer.c \ |
| 27 | lib/cpus/${ARCH}/cortex_a53.S \ |
| 28 | plat/common/plat_gicv2.c \ |
| 29 | plat/common/plat_psci_common.c \ |
| 30 | ${AW_PLAT}/common/sunxi_bl31_setup.c \ |
Samuel Holland | 321c0ab | 2017-08-12 04:07:39 -0500 | [diff] [blame] | 31 | ${AW_PLAT}/common/sunxi_cpu_ops.c \ |
Samuel Holland | 7438320 | 2017-08-12 04:07:39 -0500 | [diff] [blame] | 32 | ${AW_PLAT}/common/sunxi_pm.c \ |
Icenowy Zheng | 7508bef | 2018-07-21 20:41:12 +0800 | [diff] [blame] | 33 | ${AW_PLAT}/sun50i_a64/sunxi_power.c \ |
Andre Przywara | 1381547 | 2018-06-01 02:01:39 +0100 | [diff] [blame] | 34 | ${AW_PLAT}/common/sunxi_security.c \ |
Samuel Holland | 7438320 | 2017-08-12 04:07:39 -0500 | [diff] [blame] | 35 | ${AW_PLAT}/common/sunxi_topology.c |
| 36 | |
| 37 | # The bootloader is guaranteed to only run on CPU 0 by the boot ROM. |
| 38 | COLD_BOOT_SINGLE_CPU := 1 |
| 39 | |
| 40 | # Enable workarounds for Cortex-A53 errata. Allwinner uses at least r0p4. |
| 41 | ERRATA_A53_835769 := 1 |
| 42 | ERRATA_A53_843419 := 1 |
| 43 | ERRATA_A53_855873 := 1 |
| 44 | |
| 45 | # Disable the PSCI platform compatibility layer. |
| 46 | ENABLE_PLAT_COMPAT := 0 |
| 47 | |
| 48 | MULTI_CONSOLE_API := 1 |
| 49 | |
| 50 | # Prohibit using deprecated interfaces. We rely on this for this platform. |
| 51 | ERROR_DEPRECATED := 1 |
| 52 | |
| 53 | # The reset vector can be changed for each CPU. |
| 54 | PROGRAMMABLE_RESET_ADDRESS := 1 |
| 55 | |
| 56 | # Allow mapping read-only data as execute-never. |
| 57 | SEPARATE_CODE_AND_RODATA := 1 |
| 58 | |
| 59 | # BL31 gets loaded alongside BL33 (U-Boot) by U-Boot's SPL |
| 60 | RESET_TO_BL31 := 1 |