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 | |
Jorge Ramirez-Ortiz | a29d9a6 | 2017-06-28 10:11:31 +0200 | [diff] [blame] | 18 | NEED_BL33 := yes |
| 19 | |
| 20 | COLD_BOOT_SINGLE_CPU := 1 |
| 21 | PROGRAMMABLE_RESET_ADDRESS := 1 |
| 22 | CTX_INCLUDE_FPREGS := 1 |
| 23 | ENABLE_PLAT_COMPAT := 0 |
| 24 | ERRATA_A53_855873 := 1 |
| 25 | ERRATA_A53_835769 := 1 |
| 26 | ERRATA_A53_843419 := 1 |
David Cunado | c5b0c0f | 2017-10-31 23:19:21 +0000 | [diff] [blame] | 27 | ENABLE_SVE_FOR_NS := 0 |
Jorge Ramirez-Ortiz | a29d9a6 | 2017-06-28 10:11:31 +0200 | [diff] [blame] | 28 | |
| 29 | ARM_GIC_ARCH := 2 |
| 30 | $(eval $(call add_define,ARM_GIC_ARCH)) |
| 31 | |
| 32 | PLAT_PL061_MAX_GPIOS := 104 |
| 33 | $(eval $(call add_define,PLAT_PL061_MAX_GPIOS)) |
| 34 | |
| 35 | PLAT_INCLUDES := -Iplat/hisilicon/poplar/include \ |
| 36 | -Iinclude/plat/arm/common/ \ |
| 37 | -Iplat/hisilicon/poplar \ |
| 38 | -Iinclude/common/tbbr \ |
| 39 | -Iinclude/drivers/io |
| 40 | |
| 41 | PLAT_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 | |
| 54 | BL1_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 | |
| 66 | BL2_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 | |
| 77 | BL31_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 |