blob: 818e3115fc7b8e6d85ffeb270eb9e13118611295 [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
Jorge Ramirez-Ortiza29d9a62017-06-28 10:11:31 +020018NEED_BL33 := yes
19
20COLD_BOOT_SINGLE_CPU := 1
21PROGRAMMABLE_RESET_ADDRESS := 1
22CTX_INCLUDE_FPREGS := 1
23ENABLE_PLAT_COMPAT := 0
24ERRATA_A53_855873 := 1
25ERRATA_A53_835769 := 1
26ERRATA_A53_843419 := 1
David Cunadoc5b0c0f2017-10-31 23:19:21 +000027ENABLE_SVE_FOR_NS := 0
Jorge Ramirez-Ortiza29d9a62017-06-28 10:11:31 +020028
29ARM_GIC_ARCH := 2
30$(eval $(call add_define,ARM_GIC_ARCH))
31
32PLAT_PL061_MAX_GPIOS := 104
33$(eval $(call add_define,PLAT_PL061_MAX_GPIOS))
34
35PLAT_INCLUDES := -Iplat/hisilicon/poplar/include \
36 -Iinclude/plat/arm/common/ \
37 -Iplat/hisilicon/poplar \
38 -Iinclude/common/tbbr \
39 -Iinclude/drivers/io
40
41PLAT_BL_COMMON_SOURCES := \
42 lib/aarch64/xlat_tables.c \
43 drivers/delay_timer/generic_delay_timer.c \
44 drivers/arm/gic/common/gic_common.c \
45 drivers/arm/gic/v2/gicv2_helpers.c \
46 drivers/delay_timer/delay_timer.c \
47 drivers/arm/pl011/pl011_console.S \
48 drivers/arm/gic/v2/gicv2_main.c \
49 plat/arm/common/aarch64/arm_helpers.S \
50 plat/arm/common/arm_gicv2.c \
51 plat/common/plat_gicv2.c \
52 plat/hisilicon/poplar/aarch64/platform_common.c
53
54BL1_SOURCES += \
55 lib/cpus/aarch64/cortex_a53.S \
56 drivers/arm/pl061/pl061_gpio.c \
57 drivers/io/io_storage.c \
58 drivers/io/io_block.c \
59 drivers/gpio/gpio.c \
60 drivers/io/io_fip.c \
61 drivers/io/io_memmap.c \
62 plat/hisilicon/poplar/bl1_plat_setup.c \
63 plat/hisilicon/poplar/plat_storage.c \
64
65
66BL2_SOURCES += \
67 drivers/arm/pl061/pl061_gpio.c \
68 drivers/io/io_storage.c \
69 drivers/io/io_block.c \
70 drivers/io/io_fip.c \
71 drivers/gpio/gpio.c \
72 drivers/io/io_memmap.c \
73 plat/hisilicon/poplar/bl2_plat_setup.c \
74 plat/hisilicon/poplar/plat_storage.c
75
76
77BL31_SOURCES += \
78 lib/cpus/aarch64/aem_generic.S \
79 lib/cpus/aarch64/cortex_a53.S \
80 plat/common/aarch64/plat_psci_common.c \
81 plat/hisilicon/poplar/bl31_plat_setup.c \
82 plat/hisilicon/poplar/plat_topology.c \
83 plat/hisilicon/poplar/plat_pm.c