blob: febff29f493ad5e9a5431ccb01e279892fa12cfa [file] [log] [blame]
Soren Brinkmann76fcae32016-03-06 20:16:27 -08001# Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved.
2#
3# Redistribution and use in source and binary forms, with or without
4# modification, are permitted provided that the following conditions are met:
5#
6# Redistributions of source code must retain the above copyright notice, this
7# list of conditions and the following disclaimer.
8#
9# Redistributions in binary form must reproduce the above copyright notice,
10# this list of conditions and the following disclaimer in the documentation
11# and/or other materials provided with the distribution.
12#
13# Neither the name of ARM nor the names of its contributors may be used
14# to endorse or promote products derived from this software without specific
15# prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
21# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27# POSSIBILITY OF SUCH DAMAGE.
28
29ENABLE_PLAT_COMPAT := 0
30PROGRAMMABLE_RESET_ADDRESS := 1
31PSCI_EXTENDED_STATE_ID := 1
32A53_DISABLE_NON_TEMPORAL_HINT := 0
33
34ZYNQMP_ATF_LOCATION ?= tsram
35ifeq (${ZYNQMP_ATF_LOCATION}, tsram)
36 ZYNQMP_ATF_LOCATION_ID := ZYNQMP_IN_TRUSTED_SRAM
37else ifeq (${ZYNQMP_ATF_LOCATION}, tdram)
38 ZYNQMP_ATF_LOCATION_ID := ZYNQMP_IN_TRUSTED_DRAM
39else
40 $(error "Unsupported ZYNQMP_ATF_LOCATION value")
41endif
42
43# On ZYNQMP, the TSP can execute either from Trusted SRAM or Trusted DRAM.
44# Trusted SRAM is the default.
45ZYNQMP_TSP_RAM_LOCATION ?= tsram
46ifeq (${ZYNQMP_TSP_RAM_LOCATION}, tsram)
47 ZYNQMP_TSP_RAM_LOCATION_ID := ZYNQMP_IN_TRUSTED_SRAM
48else ifeq (${ZYNQMP_TSP_RAM_LOCATION}, tdram)
49 ZYNQMP_TSP_RAM_LOCATION_ID := ZYNQMP_IN_TRUSTED_DRAM
50else
51 $(error "Unsupported ZYNQMP_TSP_RAM_LOCATION value")
52endif
53
54# Process flags
55$(eval $(call add_define,ZYNQMP_ATF_LOCATION_ID))
56$(eval $(call add_define,ZYNQMP_TSP_RAM_LOCATION_ID))
57
58PLAT_INCLUDES := -Iinclude/plat/arm/common/ \
59 -Iinclude/plat/arm/common/aarch64/ \
60 -Iplat/xilinx/zynqmp/include/ \
61 -Iplat/xilinx/zynqmp/pm_service/
62
Soby Mathewcc037c12016-04-08 16:42:58 +010063PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \
64 lib/xlat_tables/aarch64/xlat_tables.c \
Soren Brinkmann76fcae32016-03-06 20:16:27 -080065 drivers/arm/gic/common/gic_common.c \
66 drivers/arm/gic/v2/gicv2_main.c \
67 drivers/arm/gic/v2/gicv2_helpers.c \
68 drivers/cadence/uart/cdns_console.S \
69 drivers/console/console.S \
70 plat/arm/common/aarch64/arm_common.c \
71 plat/arm/common/aarch64/arm_helpers.S \
72 plat/arm/common/arm_cci.c \
73 plat/arm/common/arm_gicv2.c \
74 plat/common/plat_gicv2.c \
75 plat/common/aarch64/plat_common.c \
76 plat/xilinx/zynqmp/aarch64/zynqmp_helpers.S \
77 plat/xilinx/zynqmp/aarch64/zynqmp_common.c
78
79BL31_SOURCES += drivers/arm/cci/cci.c \
80 lib/cpus/aarch64/aem_generic.S \
81 lib/cpus/aarch64/cortex_a53.S \
82 plat/common/aarch64/plat_psci_common.c \
83 plat/common/aarch64/platform_mp_stack.S \
84 plat/xilinx/zynqmp/bl31_zynqmp_setup.c \
85 plat/xilinx/zynqmp/plat_psci.c \
86 plat/xilinx/zynqmp/plat_zynqmp.c \
87 plat/xilinx/zynqmp/plat_topology.c \
88 plat/xilinx/zynqmp/sip_svc_setup.c \
89 plat/xilinx/zynqmp/pm_service/pm_svc_main.c \
90 plat/xilinx/zynqmp/pm_service/pm_api_sys.c \
91 plat/xilinx/zynqmp/pm_service/pm_ipi.c \
92 plat/xilinx/zynqmp/pm_service/pm_client.c
93
94ifneq (${RESET_TO_BL31},1)
95 $(error "Using BL31 as the reset vector is only one option supported on ZynqMP. Please set RESET_TO_BL31 to 1.")
96endif