Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 1 | # |
Manish V Badarkhe | 37f97b6 | 2022-01-08 22:40:46 +0000 | [diff] [blame] | 2 | # Copyright (c) 2018-2022, Renesas Electronics Corporation. All rights reserved. |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | PROGRAMMABLE_RESET_ADDRESS := 0 |
| 8 | COLD_BOOT_SINGLE_CPU := 1 |
| 9 | ARM_CCI_PRODUCT_ID := 500 |
| 10 | TRUSTED_BOARD_BOOT := 1 |
| 11 | RESET_TO_BL31 := 1 |
| 12 | GENERATE_COT := 1 |
Arvind Ram Prakash | 11b9b49 | 2022-11-22 14:41:00 -0600 | [diff] [blame] | 13 | RESET_TO_BL2 := 1 |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 14 | ENABLE_SVE_FOR_NS := 0 |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 15 | |
| 16 | CRASH_REPORTING := 1 |
Manish Pandey | 0e3379d | 2022-10-10 11:43:08 +0100 | [diff] [blame] | 17 | HANDLE_EA_EL3_FIRST_NS := 1 |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 18 | |
Manish V Badarkhe | 37f97b6 | 2022-01-08 22:40:46 +0000 | [diff] [blame] | 19 | # This option gets enabled automatically if the TRUSTED_BOARD_BOOT |
| 20 | # is set via root Makefile, but Renesas support Trusted-Boot without |
| 21 | # Crypto module. |
| 22 | override CRYPTO_SUPPORT := 0 |
| 23 | |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 24 | $(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT)) |
| 25 | |
| 26 | ifeq (${SPD},none) |
| 27 | SPD_NONE:=1 |
| 28 | $(eval $(call add_define,SPD_NONE)) |
| 29 | endif |
| 30 | |
| 31 | # LSI setting common define |
| 32 | RCAR_H3:=0 |
| 33 | RCAR_M3:=1 |
| 34 | RCAR_M3N:=2 |
| 35 | RCAR_E3:=3 |
| 36 | RCAR_H3N:=4 |
| 37 | RCAR_D3:=5 |
| 38 | RCAR_V3M:=6 |
| 39 | RCAR_AUTO:=99 |
Biju Das | 54f6a43 | 2020-12-07 16:31:01 +0000 | [diff] [blame] | 40 | RZ_G2M:=100 |
Lad Prabhakar | 9c86f41 | 2021-04-19 16:59:55 +0100 | [diff] [blame] | 41 | RZ_G2H:=101 |
Lad Prabhakar | ed2e11d | 2021-04-19 17:03:56 +0100 | [diff] [blame] | 42 | RZ_G2N:=102 |
Lad Prabhakar | 8347284 | 2021-03-19 10:53:23 +0000 | [diff] [blame] | 43 | RZ_G2E:=103 |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 44 | $(eval $(call add_define,RCAR_H3)) |
| 45 | $(eval $(call add_define,RCAR_M3)) |
| 46 | $(eval $(call add_define,RCAR_M3N)) |
| 47 | $(eval $(call add_define,RCAR_E3)) |
| 48 | $(eval $(call add_define,RCAR_H3N)) |
| 49 | $(eval $(call add_define,RCAR_D3)) |
| 50 | $(eval $(call add_define,RCAR_V3M)) |
| 51 | $(eval $(call add_define,RCAR_AUTO)) |
Biju Das | 54f6a43 | 2020-12-07 16:31:01 +0000 | [diff] [blame] | 52 | $(eval $(call add_define,RZ_G2M)) |
Lad Prabhakar | 9c86f41 | 2021-04-19 16:59:55 +0100 | [diff] [blame] | 53 | $(eval $(call add_define,RZ_G2H)) |
Lad Prabhakar | ed2e11d | 2021-04-19 17:03:56 +0100 | [diff] [blame] | 54 | $(eval $(call add_define,RZ_G2N)) |
Lad Prabhakar | 8347284 | 2021-03-19 10:53:23 +0000 | [diff] [blame] | 55 | $(eval $(call add_define,RZ_G2E)) |
Biju Das | 54f6a43 | 2020-12-07 16:31:01 +0000 | [diff] [blame] | 56 | |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 57 | RCAR_CUT_10:=0 |
| 58 | RCAR_CUT_11:=1 |
| 59 | RCAR_CUT_13:=3 |
| 60 | RCAR_CUT_20:=10 |
| 61 | RCAR_CUT_30:=20 |
| 62 | $(eval $(call add_define,RCAR_CUT_10)) |
| 63 | $(eval $(call add_define,RCAR_CUT_11)) |
| 64 | $(eval $(call add_define,RCAR_CUT_13)) |
| 65 | $(eval $(call add_define,RCAR_CUT_20)) |
| 66 | $(eval $(call add_define,RCAR_CUT_30)) |
| 67 | |
| 68 | # Enable workarounds for selected Cortex-A53 erratas. |
| 69 | ERRATA_A53_835769 := 1 |
| 70 | ERRATA_A53_843419 := 1 |
| 71 | ERRATA_A53_855873 := 1 |
Toshiyuki Ogasahara | 44289fb | 2021-07-12 19:28:58 +0900 | [diff] [blame] | 72 | ERRATA_A53_1530924 := 1 |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 73 | |
| 74 | # Enable workarounds for selected Cortex-A57 erratas. |
| 75 | ERRATA_A57_859972 := 1 |
| 76 | ERRATA_A57_813419 := 1 |
Toshiyuki Ogasahara | 44289fb | 2021-07-12 19:28:58 +0900 | [diff] [blame] | 77 | ERRATA_A57_1319537 := 1 |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 78 | |
| 79 | PLAT_INCLUDES := -Iplat/renesas/common/include/registers \ |
| 80 | -Iplat/renesas/common/include \ |
| 81 | -Iplat/renesas/common |
| 82 | |
Biju Das | 5cd4e33 | 2020-12-16 09:43:41 +0000 | [diff] [blame] | 83 | PLAT_BL_COMMON_SOURCES := drivers/renesas/common/iic_dvfs/iic_dvfs.c \ |
| 84 | plat/renesas/common/rcar_common.c |
| 85 | |
Toshiyuki Ogasahara | a2f9c18 | 2021-07-12 19:43:45 +0900 | [diff] [blame] | 86 | include drivers/arm/gic/v2/gicv2.mk |
| 87 | RCAR_GIC_SOURCES := ${GICV2_SOURCES} \ |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 88 | plat/common/plat_gicv2.c |
| 89 | |
| 90 | BL2_SOURCES += ${RCAR_GIC_SOURCES} \ |
| 91 | lib/cpus/aarch64/cortex_a53.S \ |
| 92 | lib/cpus/aarch64/cortex_a57.S \ |
| 93 | ${LIBFDT_SRCS} \ |
| 94 | common/desc_image_load.c \ |
Biju Das | a19da32 | 2020-12-16 11:21:33 +0000 | [diff] [blame] | 95 | plat/renesas/common/aarch64/platform_common.c \ |
| 96 | plat/renesas/common/aarch64/plat_helpers.S \ |
Biju Das | 4580328 | 2020-12-16 11:28:07 +0000 | [diff] [blame] | 97 | plat/renesas/common/bl2_interrupt_error.c \ |
| 98 | plat/renesas/common/bl2_secure_setting.c \ |
| 99 | plat/renesas/common/plat_storage.c \ |
| 100 | plat/renesas/common/bl2_plat_mem_params_desc.c \ |
| 101 | plat/renesas/common/plat_image_load.c \ |
| 102 | plat/renesas/common/bl2_cpg_init.c \ |
Biju Das | 73e52b8 | 2020-12-16 10:36:17 +0000 | [diff] [blame] | 103 | drivers/renesas/common/console/rcar_printf.c \ |
| 104 | drivers/renesas/common/scif/scif.S \ |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 105 | drivers/renesas/common/common.c \ |
Biju Das | 030163c | 2020-12-16 10:05:41 +0000 | [diff] [blame] | 106 | drivers/renesas/common/io/io_emmcdrv.c \ |
| 107 | drivers/renesas/common/io/io_memdrv.c \ |
| 108 | drivers/renesas/common/io/io_rcar.c \ |
Biju Das | c9cf87a | 2020-12-16 11:11:09 +0000 | [diff] [blame] | 109 | drivers/renesas/common/auth/auth_mod.c \ |
Biju Das | f0f30b0 | 2020-12-16 11:15:33 +0000 | [diff] [blame] | 110 | drivers/renesas/common/rpc/rpc_driver.c \ |
Biju Das | c951a33 | 2020-12-16 11:02:59 +0000 | [diff] [blame] | 111 | drivers/renesas/common/dma/dma_driver.c \ |
Biju Das | 0520cdf | 2020-12-16 11:13:06 +0000 | [diff] [blame] | 112 | drivers/renesas/common/avs/avs_driver.c \ |
Biju Das | ee13d8f | 2020-12-16 10:46:36 +0000 | [diff] [blame] | 113 | drivers/renesas/common/delay/micro_delay.c \ |
Biju Das | 4c32559 | 2020-12-16 09:53:19 +0000 | [diff] [blame] | 114 | drivers/renesas/common/emmc/emmc_interrupt.c \ |
| 115 | drivers/renesas/common/emmc/emmc_utility.c \ |
| 116 | drivers/renesas/common/emmc/emmc_mount.c \ |
| 117 | drivers/renesas/common/emmc/emmc_init.c \ |
| 118 | drivers/renesas/common/emmc/emmc_read.c \ |
| 119 | drivers/renesas/common/emmc/emmc_cmd.c \ |
Biju Das | 50758f2 | 2020-12-16 11:00:21 +0000 | [diff] [blame] | 120 | drivers/renesas/common/watchdog/swdt.c \ |
Biju Das | 907c865 | 2020-12-16 10:56:03 +0000 | [diff] [blame] | 121 | drivers/renesas/common/rom/rom_api.c \ |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 122 | drivers/io/io_storage.c |
| 123 | |
| 124 | BL31_SOURCES += ${RCAR_GIC_SOURCES} \ |
| 125 | lib/cpus/aarch64/cortex_a53.S \ |
| 126 | lib/cpus/aarch64/cortex_a57.S \ |
| 127 | plat/common/plat_psci_common.c \ |
Biju Das | 4580328 | 2020-12-16 11:28:07 +0000 | [diff] [blame] | 128 | plat/renesas/common/plat_topology.c \ |
Biju Das | a19da32 | 2020-12-16 11:21:33 +0000 | [diff] [blame] | 129 | plat/renesas/common/aarch64/plat_helpers.S \ |
| 130 | plat/renesas/common/aarch64/platform_common.c \ |
Biju Das | 4580328 | 2020-12-16 11:28:07 +0000 | [diff] [blame] | 131 | plat/renesas/common/bl31_plat_setup.c \ |
| 132 | plat/renesas/common/plat_pm.c \ |
Biju Das | 73e52b8 | 2020-12-16 10:36:17 +0000 | [diff] [blame] | 133 | drivers/renesas/common/console/rcar_console.S \ |
| 134 | drivers/renesas/common/console/rcar_printf.c \ |
Biju Das | ee13d8f | 2020-12-16 10:46:36 +0000 | [diff] [blame] | 135 | drivers/renesas/common/delay/micro_delay.c \ |
Biju Das | 112cc42 | 2020-12-16 10:27:45 +0000 | [diff] [blame] | 136 | drivers/renesas/common/pwrc/call_sram.S \ |
| 137 | drivers/renesas/common/pwrc/pwrc.c \ |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 138 | drivers/renesas/common/common.c \ |
| 139 | drivers/arm/cci/cci.c |
Biju Das | 5cd4e33 | 2020-12-16 09:43:41 +0000 | [diff] [blame] | 140 | |
| 141 | include lib/xlat_tables_v2/xlat_tables.mk |
Biju Das | 5cd4e33 | 2020-12-16 09:43:41 +0000 | [diff] [blame] | 142 | PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS} |