Antonio Nino Diaz | 493bf33 | 2016-12-14 14:31:32 +0000 | [diff] [blame] | 1 | # |
Rajan Vaja | 0ac2be1 | 2018-01-17 02:39:21 -0800 | [diff] [blame] | 2 | # Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 3 | # |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 5 | |
Soren Brinkmann | ba8309d | 2017-04-06 11:44:27 -0700 | [diff] [blame] | 6 | override ERRATA_A53_855873 := 1 |
Masahiro Yamada | 8cf895c | 2016-12-19 17:41:47 +0900 | [diff] [blame] | 7 | override ENABLE_PLAT_COMPAT := 0 |
| 8 | override PROGRAMMABLE_RESET_ADDRESS := 1 |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 9 | PSCI_EXTENDED_STATE_ID := 1 |
| 10 | A53_DISABLE_NON_TEMPORAL_HINT := 0 |
Soren Brinkmann | 6d1ba58 | 2016-07-08 14:45:14 -0700 | [diff] [blame] | 11 | SEPARATE_CODE_AND_RODATA := 1 |
Siva Durga Prasad Paladugu | efd431b | 2018-04-30 20:12:12 +0530 | [diff] [blame] | 12 | ZYNQMP_WDT_RESTART := 0 |
Masahiro Yamada | 8cf895c | 2016-12-19 17:41:47 +0900 | [diff] [blame] | 13 | override RESET_TO_BL31 := 1 |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 14 | |
David Cunado | c5b0c0f | 2017-10-31 23:19:21 +0000 | [diff] [blame] | 15 | # Do not enable SVE |
| 16 | ENABLE_SVE_FOR_NS := 0 |
| 17 | |
Dimitris Papastamos | 8e5bd5e | 2018-01-24 16:41:14 +0000 | [diff] [blame] | 18 | WORKAROUND_CVE_2017_5715 := 0 |
| 19 | |
Siva Durga Prasad Paladugu | 9cfc47c | 2018-08-13 16:40:04 +0530 | [diff] [blame] | 20 | ARM_XLAT_TABLES_LIB_V1 := 1 |
| 21 | $(eval $(call assert_boolean,ARM_XLAT_TABLES_LIB_V1)) |
| 22 | $(eval $(call add_define,ARM_XLAT_TABLES_LIB_V1)) |
| 23 | |
Soren Brinkmann | 4a9ca04 | 2016-04-14 10:27:00 -0700 | [diff] [blame] | 24 | ifdef ZYNQMP_ATF_MEM_BASE |
| 25 | $(eval $(call add_define,ZYNQMP_ATF_MEM_BASE)) |
| 26 | |
| 27 | ifndef ZYNQMP_ATF_MEM_SIZE |
| 28 | $(error "ZYNQMP_ATF_BASE defined without ZYNQMP_ATF_SIZE") |
| 29 | endif |
| 30 | $(eval $(call add_define,ZYNQMP_ATF_MEM_SIZE)) |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 31 | |
Soren Brinkmann | 4a9ca04 | 2016-04-14 10:27:00 -0700 | [diff] [blame] | 32 | ifdef ZYNQMP_ATF_MEM_PROGBITS_SIZE |
| 33 | $(eval $(call add_define,ZYNQMP_ATF_MEM_PROGBITS_SIZE)) |
| 34 | endif |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 35 | endif |
| 36 | |
Soren Brinkmann | 4a9ca04 | 2016-04-14 10:27:00 -0700 | [diff] [blame] | 37 | ifdef ZYNQMP_BL32_MEM_BASE |
| 38 | $(eval $(call add_define,ZYNQMP_BL32_MEM_BASE)) |
| 39 | |
| 40 | ifndef ZYNQMP_BL32_MEM_SIZE |
| 41 | $(error "ZYNQMP_BL32_BASE defined without ZYNQMP_BL32_SIZE") |
| 42 | endif |
| 43 | $(eval $(call add_define,ZYNQMP_BL32_MEM_SIZE)) |
| 44 | endif |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 45 | |
Soren Brinkmann | 99c0d7b | 2016-06-10 09:57:14 -0700 | [diff] [blame] | 46 | ZYNQMP_CONSOLE ?= cadence |
| 47 | $(eval $(call add_define_val,ZYNQMP_CONSOLE,ZYNQMP_CONSOLE_ID_${ZYNQMP_CONSOLE})) |
| 48 | |
Siva Durga Prasad Paladugu | efd431b | 2018-04-30 20:12:12 +0530 | [diff] [blame] | 49 | ifdef ZYNQMP_WDT_RESTART |
| 50 | $(eval $(call add_define,ZYNQMP_WDT_RESTART)) |
| 51 | endif |
| 52 | |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 53 | PLAT_INCLUDES := -Iinclude/plat/arm/common/ \ |
| 54 | -Iinclude/plat/arm/common/aarch64/ \ |
| 55 | -Iplat/xilinx/zynqmp/include/ \ |
Wendy Liang | f8fec36 | 2017-09-06 09:39:55 -0700 | [diff] [blame] | 56 | -Iplat/xilinx/zynqmp/pm_service/ \ |
| 57 | -Iplat/xilinx/zynqmp/ipi_mailbox_service/ |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 58 | |
Soby Mathew | cc037c1 | 2016-04-08 16:42:58 +0100 | [diff] [blame] | 59 | PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \ |
| 60 | lib/xlat_tables/aarch64/xlat_tables.c \ |
Soren Brinkmann | e5bdcaa | 2016-06-22 09:02:56 -0700 | [diff] [blame] | 61 | drivers/delay_timer/delay_timer.c \ |
| 62 | drivers/delay_timer/generic_delay_timer.c \ |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 63 | drivers/arm/gic/common/gic_common.c \ |
| 64 | drivers/arm/gic/v2/gicv2_main.c \ |
| 65 | drivers/arm/gic/v2/gicv2_helpers.c \ |
Soby Mathew | 1723113 | 2016-08-08 12:33:06 +0100 | [diff] [blame] | 66 | drivers/cadence/uart/aarch64/cdns_console.S \ |
| 67 | drivers/console/aarch64/console.S \ |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 68 | plat/arm/common/aarch64/arm_helpers.S \ |
| 69 | plat/arm/common/arm_cci.c \ |
Soby Mathew | 0eb965b | 2016-07-07 08:45:56 +0100 | [diff] [blame] | 70 | plat/arm/common/arm_common.c \ |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 71 | plat/arm/common/arm_gicv2.c \ |
| 72 | plat/common/plat_gicv2.c \ |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 73 | plat/xilinx/zynqmp/aarch64/zynqmp_helpers.S \ |
| 74 | plat/xilinx/zynqmp/aarch64/zynqmp_common.c |
| 75 | |
| 76 | BL31_SOURCES += drivers/arm/cci/cci.c \ |
| 77 | lib/cpus/aarch64/aem_generic.S \ |
| 78 | lib/cpus/aarch64/cortex_a53.S \ |
Soby Mathew | f6c4108 | 2016-05-03 12:31:18 +0100 | [diff] [blame] | 79 | plat/common/plat_psci_common.c \ |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 80 | plat/xilinx/zynqmp/bl31_zynqmp_setup.c \ |
| 81 | plat/xilinx/zynqmp/plat_psci.c \ |
| 82 | plat/xilinx/zynqmp/plat_zynqmp.c \ |
Michal Simek | ef8f559 | 2015-06-15 14:22:50 +0200 | [diff] [blame] | 83 | plat/xilinx/zynqmp/plat_startup.c \ |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 84 | plat/xilinx/zynqmp/plat_topology.c \ |
| 85 | plat/xilinx/zynqmp/sip_svc_setup.c \ |
Wendy Liang | 3aebacf | 2017-09-13 11:02:42 -0700 | [diff] [blame] | 86 | plat/xilinx/zynqmp/zynqmp_ipi.c \ |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 87 | plat/xilinx/zynqmp/pm_service/pm_svc_main.c \ |
| 88 | plat/xilinx/zynqmp/pm_service/pm_api_sys.c \ |
Rajan Vaja | 0ac2be1 | 2018-01-17 02:39:21 -0800 | [diff] [blame] | 89 | plat/xilinx/zynqmp/pm_service/pm_api_pinctrl.c \ |
Rajan Vaja | 5529a01 | 2018-01-17 02:39:23 -0800 | [diff] [blame] | 90 | plat/xilinx/zynqmp/pm_service/pm_api_ioctl.c \ |
Rajan Vaja | 3511613 | 2018-01-17 02:39:25 -0800 | [diff] [blame] | 91 | plat/xilinx/zynqmp/pm_service/pm_api_clock.c \ |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 92 | plat/xilinx/zynqmp/pm_service/pm_ipi.c \ |
Wendy Liang | f8fec36 | 2017-09-06 09:39:55 -0700 | [diff] [blame] | 93 | plat/xilinx/zynqmp/pm_service/pm_client.c \ |
| 94 | plat/xilinx/zynqmp/ipi_mailbox_service/ipi_mailbox_svc.c |