Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2018-2020, Renesas Electronics Corporation. All rights reserved. |
| 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 |
| 13 | BL2_AT_EL3 := 1 |
| 14 | ENABLE_SVE_FOR_NS := 0 |
| 15 | MULTI_CONSOLE_API := 1 |
| 16 | |
| 17 | CRASH_REPORTING := 1 |
| 18 | HANDLE_EA_EL3_FIRST := 1 |
| 19 | |
| 20 | $(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT)) |
| 21 | |
| 22 | ifeq (${SPD},none) |
| 23 | SPD_NONE:=1 |
| 24 | $(eval $(call add_define,SPD_NONE)) |
| 25 | endif |
| 26 | |
| 27 | # LSI setting common define |
| 28 | RCAR_H3:=0 |
| 29 | RCAR_M3:=1 |
| 30 | RCAR_M3N:=2 |
| 31 | RCAR_E3:=3 |
| 32 | RCAR_H3N:=4 |
| 33 | RCAR_D3:=5 |
| 34 | RCAR_V3M:=6 |
| 35 | RCAR_AUTO:=99 |
Biju Das | 54f6a43 | 2020-12-07 16:31:01 +0000 | [diff] [blame] | 36 | RZ_G2M:=100 |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 37 | $(eval $(call add_define,RCAR_H3)) |
| 38 | $(eval $(call add_define,RCAR_M3)) |
| 39 | $(eval $(call add_define,RCAR_M3N)) |
| 40 | $(eval $(call add_define,RCAR_E3)) |
| 41 | $(eval $(call add_define,RCAR_H3N)) |
| 42 | $(eval $(call add_define,RCAR_D3)) |
| 43 | $(eval $(call add_define,RCAR_V3M)) |
| 44 | $(eval $(call add_define,RCAR_AUTO)) |
Biju Das | 54f6a43 | 2020-12-07 16:31:01 +0000 | [diff] [blame] | 45 | $(eval $(call add_define,RZ_G2M)) |
| 46 | |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 47 | RCAR_CUT_10:=0 |
| 48 | RCAR_CUT_11:=1 |
| 49 | RCAR_CUT_13:=3 |
| 50 | RCAR_CUT_20:=10 |
| 51 | RCAR_CUT_30:=20 |
| 52 | $(eval $(call add_define,RCAR_CUT_10)) |
| 53 | $(eval $(call add_define,RCAR_CUT_11)) |
| 54 | $(eval $(call add_define,RCAR_CUT_13)) |
| 55 | $(eval $(call add_define,RCAR_CUT_20)) |
| 56 | $(eval $(call add_define,RCAR_CUT_30)) |
| 57 | |
| 58 | # Enable workarounds for selected Cortex-A53 erratas. |
| 59 | ERRATA_A53_835769 := 1 |
| 60 | ERRATA_A53_843419 := 1 |
| 61 | ERRATA_A53_855873 := 1 |
| 62 | |
| 63 | # Enable workarounds for selected Cortex-A57 erratas. |
| 64 | ERRATA_A57_859972 := 1 |
| 65 | ERRATA_A57_813419 := 1 |
| 66 | |
| 67 | PLAT_INCLUDES := -Iplat/renesas/common/include/registers \ |
| 68 | -Iplat/renesas/common/include \ |
| 69 | -Iplat/renesas/common |
| 70 | |
Biju Das | 5cd4e33 | 2020-12-16 09:43:41 +0000 | [diff] [blame] | 71 | PLAT_BL_COMMON_SOURCES := drivers/renesas/common/iic_dvfs/iic_dvfs.c \ |
| 72 | plat/renesas/common/rcar_common.c |
| 73 | |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 74 | RCAR_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \ |
| 75 | drivers/arm/gic/v2/gicv2_main.c \ |
| 76 | drivers/arm/gic/v2/gicv2_helpers.c \ |
| 77 | plat/common/plat_gicv2.c |
| 78 | |
| 79 | BL2_SOURCES += ${RCAR_GIC_SOURCES} \ |
| 80 | lib/cpus/aarch64/cortex_a53.S \ |
| 81 | lib/cpus/aarch64/cortex_a57.S \ |
| 82 | ${LIBFDT_SRCS} \ |
| 83 | common/desc_image_load.c \ |
Biju Das | a19da32 | 2020-12-16 11:21:33 +0000 | [diff] [blame] | 84 | plat/renesas/common/aarch64/platform_common.c \ |
| 85 | plat/renesas/common/aarch64/plat_helpers.S \ |
Biju Das | 4580328 | 2020-12-16 11:28:07 +0000 | [diff] [blame] | 86 | plat/renesas/common/bl2_interrupt_error.c \ |
| 87 | plat/renesas/common/bl2_secure_setting.c \ |
| 88 | plat/renesas/common/plat_storage.c \ |
| 89 | plat/renesas/common/bl2_plat_mem_params_desc.c \ |
| 90 | plat/renesas/common/plat_image_load.c \ |
| 91 | plat/renesas/common/bl2_cpg_init.c \ |
Biju Das | 73e52b8 | 2020-12-16 10:36:17 +0000 | [diff] [blame] | 92 | drivers/renesas/common/console/rcar_printf.c \ |
| 93 | drivers/renesas/common/scif/scif.S \ |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 94 | drivers/renesas/common/common.c \ |
Biju Das | 030163c | 2020-12-16 10:05:41 +0000 | [diff] [blame] | 95 | drivers/renesas/common/io/io_emmcdrv.c \ |
| 96 | drivers/renesas/common/io/io_memdrv.c \ |
| 97 | drivers/renesas/common/io/io_rcar.c \ |
Biju Das | c9cf87a | 2020-12-16 11:11:09 +0000 | [diff] [blame] | 98 | drivers/renesas/common/auth/auth_mod.c \ |
Biju Das | f0f30b0 | 2020-12-16 11:15:33 +0000 | [diff] [blame] | 99 | drivers/renesas/common/rpc/rpc_driver.c \ |
Biju Das | c951a33 | 2020-12-16 11:02:59 +0000 | [diff] [blame] | 100 | drivers/renesas/common/dma/dma_driver.c \ |
Biju Das | 0520cdf | 2020-12-16 11:13:06 +0000 | [diff] [blame] | 101 | drivers/renesas/common/avs/avs_driver.c \ |
Biju Das | ee13d8f | 2020-12-16 10:46:36 +0000 | [diff] [blame] | 102 | drivers/renesas/common/delay/micro_delay.c \ |
Biju Das | 4c32559 | 2020-12-16 09:53:19 +0000 | [diff] [blame] | 103 | drivers/renesas/common/emmc/emmc_interrupt.c \ |
| 104 | drivers/renesas/common/emmc/emmc_utility.c \ |
| 105 | drivers/renesas/common/emmc/emmc_mount.c \ |
| 106 | drivers/renesas/common/emmc/emmc_init.c \ |
| 107 | drivers/renesas/common/emmc/emmc_read.c \ |
| 108 | drivers/renesas/common/emmc/emmc_cmd.c \ |
Biju Das | 50758f2 | 2020-12-16 11:00:21 +0000 | [diff] [blame] | 109 | drivers/renesas/common/watchdog/swdt.c \ |
Biju Das | 907c865 | 2020-12-16 10:56:03 +0000 | [diff] [blame] | 110 | drivers/renesas/common/rom/rom_api.c \ |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 111 | drivers/io/io_storage.c |
| 112 | |
| 113 | BL31_SOURCES += ${RCAR_GIC_SOURCES} \ |
| 114 | lib/cpus/aarch64/cortex_a53.S \ |
| 115 | lib/cpus/aarch64/cortex_a57.S \ |
| 116 | plat/common/plat_psci_common.c \ |
Biju Das | 4580328 | 2020-12-16 11:28:07 +0000 | [diff] [blame] | 117 | plat/renesas/common/plat_topology.c \ |
Biju Das | a19da32 | 2020-12-16 11:21:33 +0000 | [diff] [blame] | 118 | plat/renesas/common/aarch64/plat_helpers.S \ |
| 119 | plat/renesas/common/aarch64/platform_common.c \ |
Biju Das | 4580328 | 2020-12-16 11:28:07 +0000 | [diff] [blame] | 120 | plat/renesas/common/bl31_plat_setup.c \ |
| 121 | plat/renesas/common/plat_pm.c \ |
Biju Das | 73e52b8 | 2020-12-16 10:36:17 +0000 | [diff] [blame] | 122 | drivers/renesas/common/console/rcar_console.S \ |
| 123 | drivers/renesas/common/console/rcar_printf.c \ |
Biju Das | ee13d8f | 2020-12-16 10:46:36 +0000 | [diff] [blame] | 124 | drivers/renesas/common/delay/micro_delay.c \ |
Biju Das | 112cc42 | 2020-12-16 10:27:45 +0000 | [diff] [blame] | 125 | drivers/renesas/common/pwrc/call_sram.S \ |
| 126 | drivers/renesas/common/pwrc/pwrc.c \ |
Biju Das | 4ec2d8f | 2020-12-16 08:57:59 +0000 | [diff] [blame] | 127 | drivers/renesas/common/common.c \ |
| 128 | drivers/arm/cci/cci.c |
Biju Das | 5cd4e33 | 2020-12-16 09:43:41 +0000 | [diff] [blame] | 129 | |
| 130 | include lib/xlat_tables_v2/xlat_tables.mk |
| 131 | include drivers/auth/mbedtls/mbedtls_crypto.mk |
| 132 | PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS} |