blob: 044d9c97059464d9a128e04c7f51898f04e0fd4d [file] [log] [blame]
Antonio Nino Diaz493bf332016-12-14 14:31:32 +00001#
dp-arm230011c2017-03-07 11:02:47 +00002# Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
Soren Brinkmann76fcae32016-03-06 20:16:27 -08003#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are met:
6#
7# Redistributions of source code must retain the above copyright notice, this
8# list of conditions and the following disclaimer.
9#
10# Redistributions in binary form must reproduce the above copyright notice,
11# this list of conditions and the following disclaimer in the documentation
12# and/or other materials provided with the distribution.
13#
14# Neither the name of ARM nor the names of its contributors may be used
15# to endorse or promote products derived from this software without specific
16# prior written permission.
17#
18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28# POSSIBILITY OF SUCH DAMAGE.
29
Soren Brinkmannba8309d2017-04-06 11:44:27 -070030override ERRATA_A53_855873 := 1
Masahiro Yamada8cf895c2016-12-19 17:41:47 +090031override ENABLE_PLAT_COMPAT := 0
32override PROGRAMMABLE_RESET_ADDRESS := 1
Soren Brinkmann76fcae32016-03-06 20:16:27 -080033PSCI_EXTENDED_STATE_ID := 1
34A53_DISABLE_NON_TEMPORAL_HINT := 0
Soren Brinkmann6d1ba582016-07-08 14:45:14 -070035SEPARATE_CODE_AND_RODATA := 1
Masahiro Yamada8cf895c2016-12-19 17:41:47 +090036override RESET_TO_BL31 := 1
Soren Brinkmann76fcae32016-03-06 20:16:27 -080037
Soren Brinkmann4a9ca042016-04-14 10:27:00 -070038ifdef ZYNQMP_ATF_MEM_BASE
39 $(eval $(call add_define,ZYNQMP_ATF_MEM_BASE))
40
41 ifndef ZYNQMP_ATF_MEM_SIZE
42 $(error "ZYNQMP_ATF_BASE defined without ZYNQMP_ATF_SIZE")
43 endif
44 $(eval $(call add_define,ZYNQMP_ATF_MEM_SIZE))
Soren Brinkmann76fcae32016-03-06 20:16:27 -080045
Soren Brinkmann4a9ca042016-04-14 10:27:00 -070046 ifdef ZYNQMP_ATF_MEM_PROGBITS_SIZE
47 $(eval $(call add_define,ZYNQMP_ATF_MEM_PROGBITS_SIZE))
48 endif
Soren Brinkmann76fcae32016-03-06 20:16:27 -080049endif
50
Soren Brinkmann4a9ca042016-04-14 10:27:00 -070051ifdef ZYNQMP_BL32_MEM_BASE
52 $(eval $(call add_define,ZYNQMP_BL32_MEM_BASE))
53
54 ifndef ZYNQMP_BL32_MEM_SIZE
55 $(error "ZYNQMP_BL32_BASE defined without ZYNQMP_BL32_SIZE")
56 endif
57 $(eval $(call add_define,ZYNQMP_BL32_MEM_SIZE))
58endif
Soren Brinkmann76fcae32016-03-06 20:16:27 -080059
Soren Brinkmann99c0d7b2016-06-10 09:57:14 -070060ZYNQMP_CONSOLE ?= cadence
61$(eval $(call add_define_val,ZYNQMP_CONSOLE,ZYNQMP_CONSOLE_ID_${ZYNQMP_CONSOLE}))
62
Soren Brinkmann76fcae32016-03-06 20:16:27 -080063PLAT_INCLUDES := -Iinclude/plat/arm/common/ \
64 -Iinclude/plat/arm/common/aarch64/ \
65 -Iplat/xilinx/zynqmp/include/ \
66 -Iplat/xilinx/zynqmp/pm_service/
67
Soby Mathewcc037c12016-04-08 16:42:58 +010068PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \
69 lib/xlat_tables/aarch64/xlat_tables.c \
Soren Brinkmanne5bdcaa2016-06-22 09:02:56 -070070 drivers/delay_timer/delay_timer.c \
71 drivers/delay_timer/generic_delay_timer.c \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080072 drivers/arm/gic/common/gic_common.c \
73 drivers/arm/gic/v2/gicv2_main.c \
74 drivers/arm/gic/v2/gicv2_helpers.c \
Soby Mathew17231132016-08-08 12:33:06 +010075 drivers/cadence/uart/aarch64/cdns_console.S \
76 drivers/console/aarch64/console.S \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080077 plat/arm/common/aarch64/arm_helpers.S \
78 plat/arm/common/arm_cci.c \
Soby Mathew0eb965b2016-07-07 08:45:56 +010079 plat/arm/common/arm_common.c \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080080 plat/arm/common/arm_gicv2.c \
81 plat/common/plat_gicv2.c \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080082 plat/xilinx/zynqmp/aarch64/zynqmp_helpers.S \
83 plat/xilinx/zynqmp/aarch64/zynqmp_common.c
84
85BL31_SOURCES += drivers/arm/cci/cci.c \
86 lib/cpus/aarch64/aem_generic.S \
87 lib/cpus/aarch64/cortex_a53.S \
Soby Mathewf6c41082016-05-03 12:31:18 +010088 plat/common/plat_psci_common.c \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080089 plat/xilinx/zynqmp/bl31_zynqmp_setup.c \
90 plat/xilinx/zynqmp/plat_psci.c \
91 plat/xilinx/zynqmp/plat_zynqmp.c \
Michal Simekef8f5592015-06-15 14:22:50 +020092 plat/xilinx/zynqmp/plat_startup.c \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080093 plat/xilinx/zynqmp/plat_topology.c \
94 plat/xilinx/zynqmp/sip_svc_setup.c \
95 plat/xilinx/zynqmp/pm_service/pm_svc_main.c \
96 plat/xilinx/zynqmp/pm_service/pm_api_sys.c \
97 plat/xilinx/zynqmp/pm_service/pm_ipi.c \
98 plat/xilinx/zynqmp/pm_service/pm_client.c