Venkatesh Yadav Abbarapu | 9156ffd | 2020-01-22 21:23:20 -0700 | [diff] [blame] | 1 | # Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved. |
Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 2 | # |
| 3 | # SPDX-License-Identifier: BSD-3-Clause |
| 4 | |
| 5 | override PROGRAMMABLE_RESET_ADDRESS := 1 |
| 6 | PSCI_EXTENDED_STATE_ID := 1 |
| 7 | A53_DISABLE_NON_TEMPORAL_HINT := 0 |
| 8 | SEPARATE_CODE_AND_RODATA := 1 |
| 9 | override RESET_TO_BL31 := 1 |
| 10 | PL011_GENERIC_UART := 1 |
Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 11 | |
| 12 | ifdef 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 |
| 23 | endif |
| 24 | |
| 25 | ifdef 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)) |
| 32 | endif |
| 33 | |
Siva Durga Prasad Paladugu | cbc9005 | 2019-07-10 16:15:19 +0530 | [diff] [blame] | 34 | VERSAL_PLATFORM ?= silicon |
Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 35 | $(eval $(call add_define_val,VERSAL_PLATFORM,VERSAL_PLATFORM_ID_${VERSAL_PLATFORM})) |
| 36 | |
| 37 | VERSAL_CONSOLE ?= pl011 |
| 38 | $(eval $(call add_define_val,VERSAL_CONSOLE,VERSAL_CONSOLE_ID_${VERSAL_CONSOLE})) |
| 39 | |
Tejas Patel | 54d1319 | 2019-02-27 18:44:55 +0530 | [diff] [blame] | 40 | PLAT_INCLUDES := -Iinclude/plat/arm/common/ \ |
| 41 | -Iplat/xilinx/common/include/ \ |
Wendy Liang | a4494de | 2019-01-21 13:45:49 +0530 | [diff] [blame] | 42 | -Iplat/xilinx/common/ipi_mailbox_service/ \ |
Tejas Patel | 354fe57 | 2018-12-14 00:55:37 -0800 | [diff] [blame] | 43 | -Iplat/xilinx/versal/include/ \ |
| 44 | -Iplat/xilinx/versal/pm_service/ |
Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 45 | |
| 46 | PLAT_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 Patel | 54d1319 | 2019-02-27 18:44:55 +0530 | [diff] [blame] | 51 | drivers/arm/gic/v3/arm_gicv3_common.c \ |
| 52 | drivers/arm/gic/v3/gic500.c \ |
Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 53 | drivers/arm/gic/v3/gicv3_main.c \ |
| 54 | drivers/arm/gic/v3/gicv3_helpers.c \ |
| 55 | drivers/arm/pl011/aarch64/pl011_console.S \ |
Ambroise Vincent | 962109f | 2019-03-27 13:48:15 +0000 | [diff] [blame] | 56 | plat/common/aarch64/crash_console_helpers.S \ |
Tejas Patel | 54d1319 | 2019-02-27 18:44:55 +0530 | [diff] [blame] | 57 | plat/arm/common/arm_cci.c \ |
Venkatesh Yadav Abbarapu | 9156ffd | 2020-01-22 21:23:20 -0700 | [diff] [blame] | 58 | plat/arm/common/arm_common.c \ |
Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 59 | plat/common/plat_gicv3.c \ |
| 60 | plat/xilinx/versal/aarch64/versal_helpers.S \ |
| 61 | plat/xilinx/versal/aarch64/versal_common.c |
| 62 | |
Tejas Patel | 54d1319 | 2019-02-27 18:44:55 +0530 | [diff] [blame] | 63 | BL31_SOURCES += drivers/arm/cci/cci.c \ |
| 64 | lib/cpus/aarch64/cortex_a53.S \ |
Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 65 | lib/cpus/aarch64/cortex_a72.S \ |
| 66 | plat/common/plat_psci_common.c \ |
Tejas Patel | 354fe57 | 2018-12-14 00:55:37 -0800 | [diff] [blame] | 67 | plat/xilinx/common/ipi.c \ |
Venkatesh Yadav Abbarapu | 9156ffd | 2020-01-22 21:23:20 -0700 | [diff] [blame] | 68 | plat/xilinx/common/plat_startup.c \ |
Wendy Liang | a4494de | 2019-01-21 13:45:49 +0530 | [diff] [blame] | 69 | plat/xilinx/common/ipi_mailbox_service/ipi_mailbox_svc.c \ |
Tejas Patel | 354fe57 | 2018-12-14 00:55:37 -0800 | [diff] [blame] | 70 | plat/xilinx/common/pm_service/pm_ipi.c \ |
Siva Durga Prasad Paladugu | fe4af66 | 2018-09-25 18:44:58 +0530 | [diff] [blame] | 71 | plat/xilinx/versal/bl31_versal_setup.c \ |
| 72 | plat/xilinx/versal/plat_psci.c \ |
| 73 | plat/xilinx/versal/plat_versal.c \ |
| 74 | plat/xilinx/versal/plat_topology.c \ |
| 75 | plat/xilinx/versal/sip_svc_setup.c \ |
Tejas Patel | 354fe57 | 2018-12-14 00:55:37 -0800 | [diff] [blame] | 76 | plat/xilinx/versal/versal_gicv3.c \ |
| 77 | plat/xilinx/versal/versal_ipi.c \ |
| 78 | plat/xilinx/versal/pm_service/pm_svc_main.c \ |
Tejas Patel | 9d09ff9 | 2019-01-08 01:46:35 -0800 | [diff] [blame] | 79 | plat/xilinx/versal/pm_service/pm_api_sys.c \ |
Tejas Patel | 354fe57 | 2018-12-14 00:55:37 -0800 | [diff] [blame] | 80 | plat/xilinx/versal/pm_service/pm_client.c |