blob: e6c62def01218c719977f00adc81c59b3ffe1b90 [file] [log] [blame]
Tony Xief6118cc2016-01-15 17:17:32 +08001#
Julius Werner65d52672019-05-24 20:37:58 -07002# Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved.
Tony Xief6118cc2016-01-15 17:17:32 +08003#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Tony Xief6118cc2016-01-15 17:17:32 +08005#
6
Heiko Stuebner6892dc32021-02-08 15:44:27 +01007include drivers/arm/gic/v2/gicv2.mk
8
Tony Xief6118cc2016-01-15 17:17:32 +08009RK_PLAT := plat/rockchip
10RK_PLAT_SOC := ${RK_PLAT}/${PLAT}
11RK_PLAT_COMMON := ${RK_PLAT}/common
12
Christoph Müllner05ceda72019-04-24 09:52:54 +020013DISABLE_BIN_GENERATION := 1
14
Tony Xief6118cc2016-01-15 17:17:32 +080015PLAT_INCLUDES := -I${RK_PLAT_COMMON}/ \
16 -I${RK_PLAT_COMMON}/include/ \
Heiko Stuebner385476e2019-03-05 13:46:41 +010017 -I${RK_PLAT_COMMON}/aarch64/ \
Tony Xief6118cc2016-01-15 17:17:32 +080018 -I${RK_PLAT_COMMON}/drivers/pmu/ \
19 -I${RK_PLAT_SOC}/ \
20 -I${RK_PLAT_SOC}/drivers/pmu/ \
21 -I${RK_PLAT_SOC}/drivers/soc/ \
22 -I${RK_PLAT_SOC}/drivers/ddr/ \
23 -I${RK_PLAT_SOC}/include/
24
Heiko Stuebner6892dc32021-02-08 15:44:27 +010025RK_GIC_SOURCES := ${GICV2_SOURCES} \
Tony Xief6118cc2016-01-15 17:17:32 +080026 plat/common/plat_gicv2.c \
27 ${RK_PLAT}/common/rockchip_gicv2.c
28
Julius Wernerf1d230c2019-05-30 16:57:15 -070029PLAT_BL_COMMON_SOURCES := common/desc_image_load.c \
30 lib/bl_aux_params/bl_aux_params.c \
Julius Werner65d52672019-05-24 20:37:58 -070031 lib/xlat_tables/xlat_tables_common.c \
Soby Mathewcc037c12016-04-08 16:42:58 +010032 lib/xlat_tables/aarch64/xlat_tables.c \
Antonio Nino Diaza64b1522018-10-16 16:39:12 +010033 plat/common/aarch64/crash_console_helpers.S \
Soby Mathewf6c41082016-05-03 12:31:18 +010034 plat/common/plat_psci_common.c
Tony Xief6118cc2016-01-15 17:17:32 +080035
Christoph Müllnerb4660d82020-11-20 22:06:16 +010036ifneq (${ENABLE_STACK_PROTECTOR},0)
37PLAT_BL_COMMON_SOURCES += ${RK_PLAT_COMMON}/rockchip_stack_protector.c
38endif
39
Tony Xief6118cc2016-01-15 17:17:32 +080040BL31_SOURCES += ${RK_GIC_SOURCES} \
41 drivers/arm/cci/cci.c \
Soby Mathew17231132016-08-08 12:33:06 +010042 drivers/ti/uart/aarch64/16550_console.S \
Tony Xief6118cc2016-01-15 17:17:32 +080043 drivers/delay_timer/delay_timer.c \
Antonio Nino Diaz2361fcc2016-05-05 15:25:02 +010044 drivers/delay_timer/generic_delay_timer.c \
Tony Xief6118cc2016-01-15 17:17:32 +080045 lib/cpus/aarch64/cortex_a53.S \
Tony Xief6118cc2016-01-15 17:17:32 +080046 ${RK_PLAT_COMMON}/aarch64/plat_helpers.S \
47 ${RK_PLAT_COMMON}/bl31_plat_setup.c \
Caesar Wang3e3c5b02016-05-25 19:03:04 +080048 ${RK_PLAT_COMMON}/params_setup.c \
Heiko Stuebner385476e2019-03-05 13:46:41 +010049 ${RK_PLAT_COMMON}/aarch64/pmu_sram_cpus_on.S \
Tony Xief6118cc2016-01-15 17:17:32 +080050 ${RK_PLAT_COMMON}/plat_pm.c \
51 ${RK_PLAT_COMMON}/plat_topology.c \
52 ${RK_PLAT_COMMON}/aarch64/platform_common.c \
Caesar Wangc1bf6462016-06-21 14:44:01 +080053 ${RK_PLAT_COMMON}/rockchip_sip_svc.c \
54 ${RK_PLAT_SOC}/plat_sip_calls.c \
Tony Xief6118cc2016-01-15 17:17:32 +080055 ${RK_PLAT_SOC}/drivers/pmu/pmu.c \
56 ${RK_PLAT_SOC}/drivers/soc/soc.c \
57 ${RK_PLAT_SOC}/drivers/ddr/ddr_rk3368.c \
58
Julius Wernerc7087782017-06-09 15:22:44 -070059include lib/coreboot/coreboot.mk
Heiko Stuebner6fd5b942019-04-24 20:26:51 +020060include lib/libfdt/libfdt.mk
Julius Wernerc7087782017-06-09 15:22:44 -070061
Lin Huang30e43392017-05-04 16:02:45 +080062$(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
David Cunadoc5b0c0f2017-10-31 23:19:21 +000063
64# Do not enable SVE
65ENABLE_SVE_FOR_NS := 0
Dimitris Papastamos8e5bd5e2018-01-24 16:41:14 +000066
67WORKAROUND_CVE_2017_5715 := 0