blob: 46035714e78a8d7707e22b2f452cd77cc138a931 [file] [log] [blame]
Biju Das4ec2d8f2020-12-16 08:57:59 +00001#
2# Copyright (c) 2018-2020, Renesas Electronics Corporation. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7PROGRAMMABLE_RESET_ADDRESS := 0
8COLD_BOOT_SINGLE_CPU := 1
9ARM_CCI_PRODUCT_ID := 500
10TRUSTED_BOARD_BOOT := 1
11RESET_TO_BL31 := 1
12GENERATE_COT := 1
13BL2_AT_EL3 := 1
14ENABLE_SVE_FOR_NS := 0
15MULTI_CONSOLE_API := 1
16
17CRASH_REPORTING := 1
18HANDLE_EA_EL3_FIRST := 1
19
20$(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
21
22ifeq (${SPD},none)
23 SPD_NONE:=1
24 $(eval $(call add_define,SPD_NONE))
25endif
26
27# LSI setting common define
28RCAR_H3:=0
29RCAR_M3:=1
30RCAR_M3N:=2
31RCAR_E3:=3
32RCAR_H3N:=4
33RCAR_D3:=5
34RCAR_V3M:=6
35RCAR_AUTO:=99
36$(eval $(call add_define,RCAR_H3))
37$(eval $(call add_define,RCAR_M3))
38$(eval $(call add_define,RCAR_M3N))
39$(eval $(call add_define,RCAR_E3))
40$(eval $(call add_define,RCAR_H3N))
41$(eval $(call add_define,RCAR_D3))
42$(eval $(call add_define,RCAR_V3M))
43$(eval $(call add_define,RCAR_AUTO))
44RCAR_CUT_10:=0
45RCAR_CUT_11:=1
46RCAR_CUT_13:=3
47RCAR_CUT_20:=10
48RCAR_CUT_30:=20
49$(eval $(call add_define,RCAR_CUT_10))
50$(eval $(call add_define,RCAR_CUT_11))
51$(eval $(call add_define,RCAR_CUT_13))
52$(eval $(call add_define,RCAR_CUT_20))
53$(eval $(call add_define,RCAR_CUT_30))
54
55# Enable workarounds for selected Cortex-A53 erratas.
56ERRATA_A53_835769 := 1
57ERRATA_A53_843419 := 1
58ERRATA_A53_855873 := 1
59
60# Enable workarounds for selected Cortex-A57 erratas.
61ERRATA_A57_859972 := 1
62ERRATA_A57_813419 := 1
63
64PLAT_INCLUDES := -Iplat/renesas/common/include/registers \
65 -Iplat/renesas/common/include \
66 -Iplat/renesas/common
67
Biju Das5cd4e332020-12-16 09:43:41 +000068PLAT_BL_COMMON_SOURCES := drivers/renesas/common/iic_dvfs/iic_dvfs.c \
69 plat/renesas/common/rcar_common.c
70
Biju Das4ec2d8f2020-12-16 08:57:59 +000071RCAR_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
72 drivers/arm/gic/v2/gicv2_main.c \
73 drivers/arm/gic/v2/gicv2_helpers.c \
74 plat/common/plat_gicv2.c
75
76BL2_SOURCES += ${RCAR_GIC_SOURCES} \
77 lib/cpus/aarch64/cortex_a53.S \
78 lib/cpus/aarch64/cortex_a57.S \
79 ${LIBFDT_SRCS} \
80 common/desc_image_load.c \
Biju Das73e52b82020-12-16 10:36:17 +000081 drivers/renesas/common/console/rcar_printf.c \
82 drivers/renesas/common/scif/scif.S \
Biju Das4ec2d8f2020-12-16 08:57:59 +000083 drivers/renesas/common/common.c \
Biju Das030163c2020-12-16 10:05:41 +000084 drivers/renesas/common/io/io_emmcdrv.c \
85 drivers/renesas/common/io/io_memdrv.c \
86 drivers/renesas/common/io/io_rcar.c \
Biju Dasc9cf87a2020-12-16 11:11:09 +000087 drivers/renesas/common/auth/auth_mod.c \
Biju Dasc951a332020-12-16 11:02:59 +000088 drivers/renesas/common/dma/dma_driver.c \
Biju Das0520cdf2020-12-16 11:13:06 +000089 drivers/renesas/common/avs/avs_driver.c \
Biju Dasee13d8f2020-12-16 10:46:36 +000090 drivers/renesas/common/delay/micro_delay.c \
Biju Das4c325592020-12-16 09:53:19 +000091 drivers/renesas/common/emmc/emmc_interrupt.c \
92 drivers/renesas/common/emmc/emmc_utility.c \
93 drivers/renesas/common/emmc/emmc_mount.c \
94 drivers/renesas/common/emmc/emmc_init.c \
95 drivers/renesas/common/emmc/emmc_read.c \
96 drivers/renesas/common/emmc/emmc_cmd.c \
Biju Das50758f22020-12-16 11:00:21 +000097 drivers/renesas/common/watchdog/swdt.c \
Biju Das907c8652020-12-16 10:56:03 +000098 drivers/renesas/common/rom/rom_api.c \
Biju Das4ec2d8f2020-12-16 08:57:59 +000099 drivers/io/io_storage.c
100
101BL31_SOURCES += ${RCAR_GIC_SOURCES} \
102 lib/cpus/aarch64/cortex_a53.S \
103 lib/cpus/aarch64/cortex_a57.S \
104 plat/common/plat_psci_common.c \
Biju Das73e52b82020-12-16 10:36:17 +0000105 drivers/renesas/common/console/rcar_console.S \
106 drivers/renesas/common/console/rcar_printf.c \
Biju Dasee13d8f2020-12-16 10:46:36 +0000107 drivers/renesas/common/delay/micro_delay.c \
Biju Das112cc422020-12-16 10:27:45 +0000108 drivers/renesas/common/pwrc/call_sram.S \
109 drivers/renesas/common/pwrc/pwrc.c \
Biju Das4ec2d8f2020-12-16 08:57:59 +0000110 drivers/renesas/common/common.c \
111 drivers/arm/cci/cci.c
Biju Das5cd4e332020-12-16 09:43:41 +0000112
113include lib/xlat_tables_v2/xlat_tables.mk
114include drivers/auth/mbedtls/mbedtls_crypto.mk
115PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS}