blob: 2dbbac6e7124866ba5cb843decc263dfff782ce2 [file] [log] [blame]
Jorge Ramirez-Ortiza29d9a62017-06-28 10:11:31 +02001#
2# Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Victor Chong662556a2017-10-28 01:59:41 +09007# On Poplar, the TSP can execute from TZC secure area in DRAM.
8POPLAR_TSP_RAM_LOCATION := dram
9ifeq (${POPLAR_TSP_RAM_LOCATION}, dram)
10 POPLAR_TSP_RAM_LOCATION_ID = POPLAR_DRAM_ID
11else ifeq (${HIKEY960_TSP_RAM_LOCATION}, sram)
12 POPLAR_TSP_RAM_LOCATION_ID := POPLAR_SRAM_ID
13else
14 $(error "Currently unsupported POPLAR_TSP_RAM_LOCATION value")
15endif
16$(eval $(call add_define,POPLAR_TSP_RAM_LOCATION_ID))
17
Victor Chongf0c7c612018-01-16 00:29:47 +090018POPLAR_RECOVERY := 0
19$(eval $(call add_define,POPLAR_RECOVERY))
20
Jorge Ramirez-Ortiza29d9a62017-06-28 10:11:31 +020021NEED_BL33 := yes
22
23COLD_BOOT_SINGLE_CPU := 1
24PROGRAMMABLE_RESET_ADDRESS := 1
25CTX_INCLUDE_FPREGS := 1
26ENABLE_PLAT_COMPAT := 0
27ERRATA_A53_855873 := 1
28ERRATA_A53_835769 := 1
29ERRATA_A53_843419 := 1
David Cunadoc5b0c0f2017-10-31 23:19:21 +000030ENABLE_SVE_FOR_NS := 0
Jorge Ramirez-Ortiza29d9a62017-06-28 10:11:31 +020031
32ARM_GIC_ARCH := 2
33$(eval $(call add_define,ARM_GIC_ARCH))
34
35PLAT_PL061_MAX_GPIOS := 104
36$(eval $(call add_define,PLAT_PL061_MAX_GPIOS))
37
38PLAT_INCLUDES := -Iplat/hisilicon/poplar/include \
39 -Iinclude/plat/arm/common/ \
40 -Iplat/hisilicon/poplar \
41 -Iinclude/common/tbbr \
Victor Chong539408d2018-01-03 01:53:08 +090042 -Iinclude/drivers/synopsys \
Jorge Ramirez-Ortiza29d9a62017-06-28 10:11:31 +020043 -Iinclude/drivers/io
44
45PLAT_BL_COMMON_SOURCES := \
46 lib/aarch64/xlat_tables.c \
47 drivers/delay_timer/generic_delay_timer.c \
48 drivers/arm/gic/common/gic_common.c \
49 drivers/arm/gic/v2/gicv2_helpers.c \
50 drivers/delay_timer/delay_timer.c \
51 drivers/arm/pl011/pl011_console.S \
52 drivers/arm/gic/v2/gicv2_main.c \
53 plat/arm/common/aarch64/arm_helpers.S \
54 plat/arm/common/arm_gicv2.c \
55 plat/common/plat_gicv2.c \
56 plat/hisilicon/poplar/aarch64/platform_common.c
57
58BL1_SOURCES += \
59 lib/cpus/aarch64/cortex_a53.S \
60 drivers/arm/pl061/pl061_gpio.c \
Victor Chong539408d2018-01-03 01:53:08 +090061 drivers/emmc/emmc.c \
62 drivers/synopsys/emmc/dw_mmc.c \
Jorge Ramirez-Ortiza29d9a62017-06-28 10:11:31 +020063 drivers/io/io_storage.c \
64 drivers/io/io_block.c \
65 drivers/gpio/gpio.c \
66 drivers/io/io_fip.c \
67 drivers/io/io_memmap.c \
68 plat/hisilicon/poplar/bl1_plat_setup.c \
69 plat/hisilicon/poplar/plat_storage.c \
70
71
72BL2_SOURCES += \
73 drivers/arm/pl061/pl061_gpio.c \
Victor Chong539408d2018-01-03 01:53:08 +090074 drivers/emmc/emmc.c \
75 drivers/synopsys/emmc/dw_mmc.c \
Jorge Ramirez-Ortiza29d9a62017-06-28 10:11:31 +020076 drivers/io/io_storage.c \
77 drivers/io/io_block.c \
78 drivers/io/io_fip.c \
79 drivers/gpio/gpio.c \
80 drivers/io/io_memmap.c \
81 plat/hisilicon/poplar/bl2_plat_setup.c \
82 plat/hisilicon/poplar/plat_storage.c
83
84
85BL31_SOURCES += \
86 lib/cpus/aarch64/aem_generic.S \
87 lib/cpus/aarch64/cortex_a53.S \
88 plat/common/aarch64/plat_psci_common.c \
89 plat/hisilicon/poplar/bl31_plat_setup.c \
90 plat/hisilicon/poplar/plat_topology.c \
91 plat/hisilicon/poplar/plat_pm.c