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 | |
| 32 | ARM_GIC_ARCH := 2 |
| 33 | $(eval $(call add_define,ARM_GIC_ARCH)) |
| 34 | |
| 35 | PLAT_PL061_MAX_GPIOS := 104 |
| 36 | $(eval $(call add_define,PLAT_PL061_MAX_GPIOS)) |
| 37 | |
| 38 | PLAT_INCLUDES := -Iplat/hisilicon/poplar/include \ |
| 39 | -Iinclude/plat/arm/common/ \ |
| 40 | -Iplat/hisilicon/poplar \ |
| 41 | -Iinclude/common/tbbr \ |
Victor Chong | 539408d | 2018-01-03 01:53:08 +0900 | [diff] [blame] | 42 | -Iinclude/drivers/synopsys \ |
Jorge Ramirez-Ortiz | a29d9a6 | 2017-06-28 10:11:31 +0200 | [diff] [blame] | 43 | -Iinclude/drivers/io |
| 44 | |
| 45 | PLAT_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 | |
| 58 | BL1_SOURCES += \ |
| 59 | lib/cpus/aarch64/cortex_a53.S \ |
| 60 | drivers/arm/pl061/pl061_gpio.c \ |
Victor Chong | 539408d | 2018-01-03 01:53:08 +0900 | [diff] [blame] | 61 | drivers/emmc/emmc.c \ |
| 62 | drivers/synopsys/emmc/dw_mmc.c \ |
Jorge Ramirez-Ortiz | a29d9a6 | 2017-06-28 10:11:31 +0200 | [diff] [blame] | 63 | 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 | |
| 72 | BL2_SOURCES += \ |
| 73 | drivers/arm/pl061/pl061_gpio.c \ |
Victor Chong | 539408d | 2018-01-03 01:53:08 +0900 | [diff] [blame] | 74 | drivers/emmc/emmc.c \ |
| 75 | drivers/synopsys/emmc/dw_mmc.c \ |
Jorge Ramirez-Ortiz | a29d9a6 | 2017-06-28 10:11:31 +0200 | [diff] [blame] | 76 | 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 | |
| 85 | BL31_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 |