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