Andre Przywara | 452b2b6 | 2018-09-28 00:37:19 +0100 | [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 | |
Andre Przywara | ea5fa47 | 2018-09-16 02:08:06 +0100 | [diff] [blame] | 16 | include lib/libfdt/libfdt.mk |
| 17 | |
Andre Przywara | 452b2b6 | 2018-09-28 00:37:19 +0100 | [diff] [blame] | 18 | PLAT_BL_COMMON_SOURCES := drivers/console/${ARCH}/console.S \ |
| 19 | drivers/ti/uart/${ARCH}/16550_console.S \ |
| 20 | ${XLAT_TABLES_LIB_SRCS} \ |
| 21 | ${AW_PLAT}/common/plat_helpers.S \ |
| 22 | ${AW_PLAT}/common/sunxi_common.c |
| 23 | |
| 24 | BL31_SOURCES += drivers/arm/gic/common/gic_common.c \ |
| 25 | 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. |
| 40 | COLD_BOOT_SINGLE_CPU := 1 |
| 41 | |
| 42 | # Enable workarounds for Cortex-A53 errata. Allwinner uses at least r0p4. |
| 43 | ERRATA_A53_835769 := 1 |
| 44 | ERRATA_A53_843419 := 1 |
| 45 | ERRATA_A53_855873 := 1 |
| 46 | |
| 47 | MULTI_CONSOLE_API := 1 |
| 48 | |
| 49 | # The reset vector can be changed for each CPU. |
| 50 | PROGRAMMABLE_RESET_ADDRESS := 1 |
| 51 | |
| 52 | # Allow mapping read-only data as execute-never. |
| 53 | SEPARATE_CODE_AND_RODATA := 1 |
| 54 | |
| 55 | # BL31 gets loaded alongside BL33 (U-Boot) by U-Boot's SPL |
| 56 | RESET_TO_BL31 := 1 |
Andre Przywara | 647a2e1 | 2018-10-11 22:14:30 +0100 | [diff] [blame] | 57 | |
| 58 | # We are short on memory, so save 3.5KB by not having an extra coherent page. |
| 59 | USE_COHERENT_MEM := 0 |