blob: 5d7fd697f4769c9800e6255b3ce6d0b6414b2f10 [file] [log] [blame]
Venkatesh Yadav Abbarapu9156ffd2020-01-22 21:23:20 -07001# Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +05302#
3# SPDX-License-Identifier: BSD-3-Clause
4
5override PROGRAMMABLE_RESET_ADDRESS := 1
6PSCI_EXTENDED_STATE_ID := 1
7A53_DISABLE_NON_TEMPORAL_HINT := 0
8SEPARATE_CODE_AND_RODATA := 1
9override RESET_TO_BL31 := 1
10PL011_GENERIC_UART := 1
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +053011
12ifdef VERSAL_ATF_MEM_BASE
13 $(eval $(call add_define,VERSAL_ATF_MEM_BASE))
14
15 ifndef VERSAL_ATF_MEM_SIZE
16 $(error "VERSAL_ATF_BASE defined without VERSAL_ATF_SIZE")
17 endif
18 $(eval $(call add_define,VERSAL_ATF_MEM_SIZE))
19
20 ifdef VERSAL_ATF_MEM_PROGBITS_SIZE
21 $(eval $(call add_define,VERSAL_ATF_MEM_PROGBITS_SIZE))
22 endif
23endif
24
25ifdef VERSAL_BL32_MEM_BASE
26 $(eval $(call add_define,VERSAL_BL32_MEM_BASE))
27
28 ifndef VERSAL_BL32_MEM_SIZE
29 $(error "VERSAL_BL32_BASE defined without VERSAL_BL32_SIZE")
30 endif
31 $(eval $(call add_define,VERSAL_BL32_MEM_SIZE))
32endif
33
Siva Durga Prasad Paladugucbc90052019-07-10 16:15:19 +053034VERSAL_PLATFORM ?= silicon
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +053035$(eval $(call add_define_val,VERSAL_PLATFORM,VERSAL_PLATFORM_ID_${VERSAL_PLATFORM}))
36
37VERSAL_CONSOLE ?= pl011
38$(eval $(call add_define_val,VERSAL_CONSOLE,VERSAL_CONSOLE_ID_${VERSAL_CONSOLE}))
39
Tejas Patel54d13192019-02-27 18:44:55 +053040PLAT_INCLUDES := -Iinclude/plat/arm/common/ \
41 -Iplat/xilinx/common/include/ \
Wendy Lianga4494de2019-01-21 13:45:49 +053042 -Iplat/xilinx/common/ipi_mailbox_service/ \
Tejas Patel354fe572018-12-14 00:55:37 -080043 -Iplat/xilinx/versal/include/ \
44 -Iplat/xilinx/versal/pm_service/
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +053045
46PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \
47 lib/xlat_tables/aarch64/xlat_tables.c \
48 drivers/delay_timer/delay_timer.c \
49 drivers/delay_timer/generic_delay_timer.c \
50 drivers/arm/gic/common/gic_common.c \
Tejas Patel54d13192019-02-27 18:44:55 +053051 drivers/arm/gic/v3/arm_gicv3_common.c \
52 drivers/arm/gic/v3/gic500.c \
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +053053 drivers/arm/gic/v3/gicv3_main.c \
54 drivers/arm/gic/v3/gicv3_helpers.c \
Alexei Fedorov2f13d6c2020-02-21 10:17:26 +000055 drivers/arm/gic/v3/gicdv3_helpers.c \
56 drivers/arm/gic/v3/gicrv3_helpers.c \
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +053057 drivers/arm/pl011/aarch64/pl011_console.S \
Ambroise Vincent962109f2019-03-27 13:48:15 +000058 plat/common/aarch64/crash_console_helpers.S \
Tejas Patel54d13192019-02-27 18:44:55 +053059 plat/arm/common/arm_cci.c \
Venkatesh Yadav Abbarapu9156ffd2020-01-22 21:23:20 -070060 plat/arm/common/arm_common.c \
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +053061 plat/common/plat_gicv3.c \
62 plat/xilinx/versal/aarch64/versal_helpers.S \
63 plat/xilinx/versal/aarch64/versal_common.c
64
Tejas Patel54d13192019-02-27 18:44:55 +053065BL31_SOURCES += drivers/arm/cci/cci.c \
66 lib/cpus/aarch64/cortex_a53.S \
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +053067 lib/cpus/aarch64/cortex_a72.S \
68 plat/common/plat_psci_common.c \
Tejas Patel354fe572018-12-14 00:55:37 -080069 plat/xilinx/common/ipi.c \
Venkatesh Yadav Abbarapu9156ffd2020-01-22 21:23:20 -070070 plat/xilinx/common/plat_startup.c \
Wendy Lianga4494de2019-01-21 13:45:49 +053071 plat/xilinx/common/ipi_mailbox_service/ipi_mailbox_svc.c \
Tejas Patel354fe572018-12-14 00:55:37 -080072 plat/xilinx/common/pm_service/pm_ipi.c \
Siva Durga Prasad Paladugufe4af662018-09-25 18:44:58 +053073 plat/xilinx/versal/bl31_versal_setup.c \
74 plat/xilinx/versal/plat_psci.c \
75 plat/xilinx/versal/plat_versal.c \
76 plat/xilinx/versal/plat_topology.c \
77 plat/xilinx/versal/sip_svc_setup.c \
Tejas Patel354fe572018-12-14 00:55:37 -080078 plat/xilinx/versal/versal_gicv3.c \
79 plat/xilinx/versal/versal_ipi.c \
80 plat/xilinx/versal/pm_service/pm_svc_main.c \
Tejas Patel9d09ff92019-01-08 01:46:35 -080081 plat/xilinx/versal/pm_service/pm_api_sys.c \
Tejas Patel354fe572018-12-14 00:55:37 -080082 plat/xilinx/versal/pm_service/pm_client.c