| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
include lib/xlat_tables_v2/xlat_tables.mk |
| 8 |
include lib/libfdt/libfdt.mk |
| 9 |
include drivers/arm/gic/v2/gicv2.mk |
| 10 |
|
| 11 |
AW_PLAT := plat/allwinner |
| 12 |
|
| 13 |
PLAT_INCLUDES := -Iinclude/plat/arm/common/aarch64 \ |
| 14 |
-I${AW_PLAT}/common/include \ |
| 15 |
-I${AW_PLAT}/${PLAT}/include |
| 16 |
|
| 17 |
PLAT_BL_COMMON_SOURCES := 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/allwinner/axp/common.c \ |
| 23 |
${GICV2_SOURCES} \ |
| 24 |
drivers/delay_timer/delay_timer.c \ |
| 25 |
drivers/delay_timer/generic_delay_timer.c \ |
| 26 |
lib/cpus/${ARCH}/cortex_a53.S \ |
| 27 |
plat/common/plat_gicv2.c \ |
| 28 |
plat/common/plat_psci_common.c \ |
| 29 |
${AW_PLAT}/common/sunxi_bl31_setup.c \ |
| 30 |
${AW_PLAT}/${PLAT}/sunxi_idle_states.c \ |
| 31 |
${AW_PLAT}/common/sunxi_pm.c \ |
| 32 |
${AW_PLAT}/${PLAT}/sunxi_power.c \ |
| 33 |
${AW_PLAT}/common/sunxi_security.c \ |
| 34 |
${AW_PLAT}/common/sunxi_topology.c |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
SUNXI_PSCI_USE_NATIVE ?= 1 |
| 43 |
SUNXI_PSCI_USE_SCPI ?= 1 |
| 44 |
|
| 45 |
$(eval $(call assert_boolean,SUNXI_PSCI_USE_NATIVE)) |
| 46 |
$(eval $(call assert_boolean,SUNXI_PSCI_USE_SCPI)) |
| 47 |
$(eval $(call add_define,SUNXI_PSCI_USE_NATIVE)) |
| 48 |
$(eval $(call add_define,SUNXI_PSCI_USE_SCPI)) |
| 49 |
|
| 50 |
ifeq (${SUNXI_PSCI_USE_NATIVE}${SUNXI_PSCI_USE_SCPI},00) |
| 51 |
$(error "At least one of SCPI or native PSCI ops must be enabled") |
| 52 |
endif |
| 53 |
|
| 54 |
ifeq (${SUNXI_PSCI_USE_NATIVE},1) |
| 55 |
BL31_SOURCES += ${AW_PLAT}/common/sunxi_cpu_ops.c \ |
| 56 |
${AW_PLAT}/common/sunxi_native_pm.c |
| 57 |
endif |
| 58 |
|
| 59 |
ifeq (${SUNXI_PSCI_USE_SCPI},1) |
| 60 |
BL31_SOURCES += drivers/allwinner/sunxi_msgbox.c \ |
| 61 |
drivers/arm/css/scpi/css_scpi.c \ |
| 62 |
${AW_PLAT}/common/sunxi_scpi_pm.c |
| 63 |
endif |
| 64 |
|
| 65 |
SUNXI_SETUP_REGULATORS ?= 1 |
| 66 |
$(eval $(call assert_boolean,SUNXI_SETUP_REGULATORS)) |
| 67 |
$(eval $(call add_define,SUNXI_SETUP_REGULATORS)) |
| 68 |
|
| 69 |
SUNXI_BL31_IN_DRAM ?= 0 |
| 70 |
$(eval $(call assert_boolean,SUNXI_BL31_IN_DRAM)) |
| 71 |
|
| 72 |
ifeq (${SUNXI_BL31_IN_DRAM},1) |
| 73 |
SUNXI_AMEND_DTB := 1 |
| 74 |
$(eval $(call add_define,SUNXI_BL31_IN_DRAM)) |
| 75 |
endif |
| 76 |
|
| 77 |
SUNXI_AMEND_DTB ?= 0 |
| 78 |
$(eval $(call assert_boolean,SUNXI_AMEND_DTB)) |
| 79 |
$(eval $(call add_define,SUNXI_AMEND_DTB)) |
| 80 |
|
| 81 |
ifeq (${SUNXI_AMEND_DTB},1) |
| 82 |
BL31_SOURCES += common/fdt_fixup.c \ |
| 83 |
${AW_PLAT}/common/sunxi_prepare_dtb.c |
| 84 |
endif |
| 85 |
|
| 86 |
|
| 87 |
COLD_BOOT_SINGLE_CPU := 1 |
| 88 |
|
| 89 |
|
| 90 |
ENABLE_SPE_FOR_NS := 0 |
| 91 |
|
| 92 |
|
| 93 |
ENABLE_SVE_FOR_NS := 0 |
| 94 |
|
| 95 |
|
| 96 |
ERRATA_A53_835769 := 1 |
| 97 |
ERRATA_A53_843419 := 1 |
| 98 |
ERRATA_A53_855873 := 1 |
| 99 |
ERRATA_A53_1530924 := 1 |
| 100 |
|
| 101 |
|
| 102 |
PRELOADED_BL33_BASE ?= 0x4a000000 |
| 103 |
|
| 104 |
|
| 105 |
PROGRAMMABLE_RESET_ADDRESS := 1 |
| 106 |
|
| 107 |
|
| 108 |
SEPARATE_CODE_AND_RODATA := 1 |
| 109 |
|
| 110 |
|
| 111 |
RESET_TO_BL31 := 1 |
| 112 |
|
| 113 |
|
| 114 |
WARMBOOT_ENABLE_DCACHE_EARLY := 1 |