Varun Wadekar | 921b906 | 2015-08-25 17:03:14 +0530 | [diff] [blame] | 1 | # |
Varun Wadekar | be57abb | 2019-01-03 10:44:22 -0800 | [diff] [blame] | 2 | # Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved. |
Varun Wadekar | bf601c2 | 2018-06-12 16:55:06 -0700 | [diff] [blame] | 3 | # Copyright (c) 2020, NVIDIA Corporation. All rights reserved. |
Varun Wadekar | 921b906 | 2015-08-25 17:03:14 +0530 | [diff] [blame] | 4 | # |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 5 | # SPDX-License-Identifier: BSD-3-Clause |
Varun Wadekar | 921b906 | 2015-08-25 17:03:14 +0530 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | # platform configs |
Varun Wadekar | a0f2697 | 2016-03-11 17:18:51 -0800 | [diff] [blame] | 9 | ENABLE_ROC_FOR_ORDERING_CLIENT_REQUESTS := 1 |
| 10 | $(eval $(call add_define,ENABLE_ROC_FOR_ORDERING_CLIENT_REQUESTS)) |
| 11 | |
Varun Wadekar | ad2824f | 2016-03-28 13:44:35 -0700 | [diff] [blame] | 12 | ENABLE_CHIP_VERIFICATION_HARNESS := 0 |
| 13 | $(eval $(call add_define,ENABLE_CHIP_VERIFICATION_HARNESS)) |
| 14 | |
Varun Wadekar | 94701ff | 2016-05-23 11:47:34 -0700 | [diff] [blame] | 15 | RESET_TO_BL31 := 1 |
| 16 | |
| 17 | PROGRAMMABLE_RESET_ADDRESS := 1 |
| 18 | |
| 19 | COLD_BOOT_SINGLE_CPU := 1 |
| 20 | |
Varun Wadekar | 0ed6270 | 2018-06-20 14:30:59 -0700 | [diff] [blame] | 21 | RELOCATE_BL32_IMAGE := 1 |
| 22 | |
Varun Wadekar | 921b906 | 2015-08-25 17:03:14 +0530 | [diff] [blame] | 23 | # platform settings |
Varun Wadekar | 94d8532 | 2015-11-30 12:05:04 -0800 | [diff] [blame] | 24 | TZDRAM_BASE := 0x30000000 |
Varun Wadekar | 921b906 | 2015-08-25 17:03:14 +0530 | [diff] [blame] | 25 | $(eval $(call add_define,TZDRAM_BASE)) |
| 26 | |
| 27 | PLATFORM_CLUSTER_COUNT := 2 |
| 28 | $(eval $(call add_define,PLATFORM_CLUSTER_COUNT)) |
| 29 | |
| 30 | PLATFORM_MAX_CPUS_PER_CLUSTER := 4 |
| 31 | $(eval $(call add_define,PLATFORM_MAX_CPUS_PER_CLUSTER)) |
| 32 | |
Jeetesh Burman | 29e03be | 2018-05-31 14:15:30 +0530 | [diff] [blame^] | 33 | MAX_XLAT_TABLES := 25 |
Varun Wadekar | 921b906 | 2015-08-25 17:03:14 +0530 | [diff] [blame] | 34 | $(eval $(call add_define,MAX_XLAT_TABLES)) |
| 35 | |
Jeetesh Burman | 29e03be | 2018-05-31 14:15:30 +0530 | [diff] [blame^] | 36 | MAX_MMAP_REGIONS := 27 |
Varun Wadekar | 921b906 | 2015-08-25 17:03:14 +0530 | [diff] [blame] | 37 | $(eval $(call add_define,MAX_MMAP_REGIONS)) |
| 38 | |
| 39 | # platform files |
| 40 | PLAT_INCLUDES += -I${SOC_DIR}/drivers/include |
| 41 | |
Varun Wadekar | 50a3303 | 2017-11-15 15:46:38 -0800 | [diff] [blame] | 42 | BL31_SOURCES += drivers/ti/uart/aarch64/16550_console.S \ |
| 43 | lib/cpus/aarch64/denver.S \ |
Varun Wadekar | 921b906 | 2015-08-25 17:03:14 +0530 | [diff] [blame] | 44 | lib/cpus/aarch64/cortex_a57.S \ |
Jeetesh Burman | 29e03be | 2018-05-31 14:15:30 +0530 | [diff] [blame^] | 45 | ${COMMON_DIR}/drivers/bpmp_ipc/intf.c \ |
| 46 | ${COMMON_DIR}/drivers/bpmp_ipc/ivc.c \ |
Varun Wadekar | ee25e82 | 2017-06-28 14:38:19 -0700 | [diff] [blame] | 47 | ${COMMON_DIR}/drivers/gpcdma/gpcdma.c \ |
Pritesh Raithatha | c88654f | 2017-01-02 20:11:32 +0530 | [diff] [blame] | 48 | ${COMMON_DIR}/drivers/memctrl/memctrl_v2.c \ |
Varun Wadekar | bd2b414 | 2016-12-12 16:46:44 -0800 | [diff] [blame] | 49 | ${COMMON_DIR}/drivers/smmu/smmu.c \ |
Varun Wadekar | a0352ab | 2017-03-14 14:24:35 -0700 | [diff] [blame] | 50 | ${SOC_DIR}/drivers/mce/mce.c \ |
| 51 | ${SOC_DIR}/drivers/mce/ari.c \ |
| 52 | ${SOC_DIR}/drivers/mce/nvg.c \ |
| 53 | ${SOC_DIR}/drivers/mce/aarch64/nvg_helpers.S \ |
Pritesh Raithatha | 9eb5db5 | 2017-01-02 19:42:31 +0530 | [diff] [blame] | 54 | ${SOC_DIR}/plat_memctrl.c \ |
Varun Wadekar | 921b906 | 2015-08-25 17:03:14 +0530 | [diff] [blame] | 55 | ${SOC_DIR}/plat_psci_handlers.c \ |
| 56 | ${SOC_DIR}/plat_setup.c \ |
| 57 | ${SOC_DIR}/plat_secondary.c \ |
Varun Wadekar | 93bed2a | 2016-03-18 13:07:33 -0700 | [diff] [blame] | 58 | ${SOC_DIR}/plat_sip_calls.c \ |
Pritesh Raithatha | c88654f | 2017-01-02 20:11:32 +0530 | [diff] [blame] | 59 | ${SOC_DIR}/plat_smmu.c \ |
Varun Wadekar | 93bed2a | 2016-03-18 13:07:33 -0700 | [diff] [blame] | 60 | ${SOC_DIR}/plat_trampoline.S |
Pritesh Raithatha | 9eb5db5 | 2017-01-02 19:42:31 +0530 | [diff] [blame] | 61 | |
Varun Wadekar | b01d3bb | 2017-07-25 13:29:52 -0700 | [diff] [blame] | 62 | # Enable workarounds for selected Cortex-A57 erratas. |
| 63 | A57_DISABLE_NON_TEMPORAL_HINT := 1 |
| 64 | ERRATA_A57_806969 := 1 |
| 65 | ERRATA_A57_813419 := 1 |
| 66 | ERRATA_A57_813420 := 1 |
| 67 | ERRATA_A57_826974 := 1 |
| 68 | ERRATA_A57_826977 := 1 |
| 69 | ERRATA_A57_828024 := 1 |
| 70 | ERRATA_A57_829520 := 1 |
| 71 | ERRATA_A57_833471 := 1 |
Varun Wadekar | bf601c2 | 2018-06-12 16:55:06 -0700 | [diff] [blame] | 72 | |
| 73 | # Enable higher performance Non-cacheable load forwarding |
| 74 | A57_ENABLE_NONCACHEABLE_LOAD_FWD := 1 |