blob: 53d93c326ba11e3dfa19a6c2f26b3e62b5105247 [file] [log] [blame]
Antonio Nino Diaz493bf332016-12-14 14:31:32 +00001#
Rajan Vaja0ac2be12018-01-17 02:39:21 -08002# Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
Soren Brinkmann76fcae32016-03-06 20:16:27 -08003#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Soren Brinkmann76fcae32016-03-06 20:16:27 -08005
Soren Brinkmannba8309d2017-04-06 11:44:27 -07006override ERRATA_A53_855873 := 1
Masahiro Yamada8cf895c2016-12-19 17:41:47 +09007override PROGRAMMABLE_RESET_ADDRESS := 1
Soren Brinkmann76fcae32016-03-06 20:16:27 -08008PSCI_EXTENDED_STATE_ID := 1
9A53_DISABLE_NON_TEMPORAL_HINT := 0
Soren Brinkmann6d1ba582016-07-08 14:45:14 -070010SEPARATE_CODE_AND_RODATA := 1
Siva Durga Prasad Paladuguefd431b2018-04-30 20:12:12 +053011ZYNQMP_WDT_RESTART := 0
Masahiro Yamada8cf895c2016-12-19 17:41:47 +090012override RESET_TO_BL31 := 1
Soren Brinkmann76fcae32016-03-06 20:16:27 -080013
David Cunadoc5b0c0f2017-10-31 23:19:21 +000014# Do not enable SVE
15ENABLE_SVE_FOR_NS := 0
16
Dimitris Papastamos8e5bd5e2018-01-24 16:41:14 +000017WORKAROUND_CVE_2017_5715 := 0
18
Siva Durga Prasad Paladugu9cfc47c2018-08-13 16:40:04 +053019ARM_XLAT_TABLES_LIB_V1 := 1
20$(eval $(call assert_boolean,ARM_XLAT_TABLES_LIB_V1))
21$(eval $(call add_define,ARM_XLAT_TABLES_LIB_V1))
22
Soren Brinkmann4a9ca042016-04-14 10:27:00 -070023ifdef ZYNQMP_ATF_MEM_BASE
24 $(eval $(call add_define,ZYNQMP_ATF_MEM_BASE))
25
26 ifndef ZYNQMP_ATF_MEM_SIZE
27 $(error "ZYNQMP_ATF_BASE defined without ZYNQMP_ATF_SIZE")
28 endif
29 $(eval $(call add_define,ZYNQMP_ATF_MEM_SIZE))
Soren Brinkmann76fcae32016-03-06 20:16:27 -080030
Soren Brinkmann4a9ca042016-04-14 10:27:00 -070031 ifdef ZYNQMP_ATF_MEM_PROGBITS_SIZE
32 $(eval $(call add_define,ZYNQMP_ATF_MEM_PROGBITS_SIZE))
33 endif
Soren Brinkmann76fcae32016-03-06 20:16:27 -080034endif
35
Soren Brinkmann4a9ca042016-04-14 10:27:00 -070036ifdef ZYNQMP_BL32_MEM_BASE
37 $(eval $(call add_define,ZYNQMP_BL32_MEM_BASE))
38
39 ifndef ZYNQMP_BL32_MEM_SIZE
40 $(error "ZYNQMP_BL32_BASE defined without ZYNQMP_BL32_SIZE")
41 endif
42 $(eval $(call add_define,ZYNQMP_BL32_MEM_SIZE))
43endif
Soren Brinkmann76fcae32016-03-06 20:16:27 -080044
Soren Brinkmann99c0d7b2016-06-10 09:57:14 -070045ZYNQMP_CONSOLE ?= cadence
46$(eval $(call add_define_val,ZYNQMP_CONSOLE,ZYNQMP_CONSOLE_ID_${ZYNQMP_CONSOLE}))
47
Siva Durga Prasad Paladuguefd431b2018-04-30 20:12:12 +053048ifdef ZYNQMP_WDT_RESTART
49$(eval $(call add_define,ZYNQMP_WDT_RESTART))
50endif
51
Soren Brinkmann76fcae32016-03-06 20:16:27 -080052PLAT_INCLUDES := -Iinclude/plat/arm/common/ \
53 -Iinclude/plat/arm/common/aarch64/ \
54 -Iplat/xilinx/zynqmp/include/ \
Wendy Liangf8fec362017-09-06 09:39:55 -070055 -Iplat/xilinx/zynqmp/pm_service/ \
56 -Iplat/xilinx/zynqmp/ipi_mailbox_service/
Soren Brinkmann76fcae32016-03-06 20:16:27 -080057
Soby Mathewcc037c12016-04-08 16:42:58 +010058PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \
59 lib/xlat_tables/aarch64/xlat_tables.c \
Soren Brinkmanne5bdcaa2016-06-22 09:02:56 -070060 drivers/delay_timer/delay_timer.c \
61 drivers/delay_timer/generic_delay_timer.c \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080062 drivers/arm/gic/common/gic_common.c \
63 drivers/arm/gic/v2/gicv2_main.c \
64 drivers/arm/gic/v2/gicv2_helpers.c \
Soby Mathew17231132016-08-08 12:33:06 +010065 drivers/cadence/uart/aarch64/cdns_console.S \
66 drivers/console/aarch64/console.S \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080067 plat/arm/common/aarch64/arm_helpers.S \
68 plat/arm/common/arm_cci.c \
Soby Mathew0eb965b2016-07-07 08:45:56 +010069 plat/arm/common/arm_common.c \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080070 plat/arm/common/arm_gicv2.c \
71 plat/common/plat_gicv2.c \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080072 plat/xilinx/zynqmp/aarch64/zynqmp_helpers.S \
73 plat/xilinx/zynqmp/aarch64/zynqmp_common.c
74
75BL31_SOURCES += drivers/arm/cci/cci.c \
76 lib/cpus/aarch64/aem_generic.S \
77 lib/cpus/aarch64/cortex_a53.S \
Soby Mathewf6c41082016-05-03 12:31:18 +010078 plat/common/plat_psci_common.c \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080079 plat/xilinx/zynqmp/bl31_zynqmp_setup.c \
80 plat/xilinx/zynqmp/plat_psci.c \
81 plat/xilinx/zynqmp/plat_zynqmp.c \
Michal Simekef8f5592015-06-15 14:22:50 +020082 plat/xilinx/zynqmp/plat_startup.c \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080083 plat/xilinx/zynqmp/plat_topology.c \
84 plat/xilinx/zynqmp/sip_svc_setup.c \
Wendy Liang3aebacf2017-09-13 11:02:42 -070085 plat/xilinx/zynqmp/zynqmp_ipi.c \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080086 plat/xilinx/zynqmp/pm_service/pm_svc_main.c \
87 plat/xilinx/zynqmp/pm_service/pm_api_sys.c \
Rajan Vaja0ac2be12018-01-17 02:39:21 -080088 plat/xilinx/zynqmp/pm_service/pm_api_pinctrl.c \
Rajan Vaja5529a012018-01-17 02:39:23 -080089 plat/xilinx/zynqmp/pm_service/pm_api_ioctl.c \
Rajan Vaja35116132018-01-17 02:39:25 -080090 plat/xilinx/zynqmp/pm_service/pm_api_clock.c \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080091 plat/xilinx/zynqmp/pm_service/pm_ipi.c \
Wendy Liangf8fec362017-09-06 09:39:55 -070092 plat/xilinx/zynqmp/pm_service/pm_client.c \
93 plat/xilinx/zynqmp/ipi_mailbox_service/ipi_mailbox_svc.c