xref: /aosp_15_r20/external/arm-trusted-firmware/plat/rockchip/rk3288/platform.mk (revision 54fd6939e177f8ff529b10183254802c76df6d08)
1#
2# Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7include drivers/arm/gic/v2/gicv2.mk
8
9ARM_CORTEX_A12		:=	yes
10ARM_ARCH_MAJOR		:=	7
11
12RK_PLAT			:=	plat/rockchip
13RK_PLAT_SOC		:=	${RK_PLAT}/${PLAT}
14RK_PLAT_COMMON		:=	${RK_PLAT}/common
15
16DISABLE_BIN_GENERATION	:=	1
17
18PLAT_INCLUDES		:=	-I${RK_PLAT_COMMON}/				\
19				-I${RK_PLAT_COMMON}/include/			\
20				-I${RK_PLAT_COMMON}/aarch32/			\
21				-I${RK_PLAT_COMMON}/drivers/pmu/		\
22				-I${RK_PLAT_SOC}/				\
23				-I${RK_PLAT_SOC}/drivers/pmu/			\
24				-I${RK_PLAT_SOC}/drivers/secure/		\
25				-I${RK_PLAT_SOC}/drivers/soc/			\
26				-I${RK_PLAT_SOC}/include/			\
27				-I${RK_PLAT_SOC}/include/shared/		\
28
29RK_GIC_SOURCES         :=	${GICV2_SOURCES}				\
30				plat/common/plat_gicv2.c			\
31				${RK_PLAT}/common/rockchip_gicv2.c
32
33PLAT_BL_COMMON_SOURCES	:=	lib/bl_aux_params/bl_aux_params.c		\
34				plat/common/aarch32/crash_console_helpers.S	\
35				plat/common/plat_psci_common.c
36
37PLAT_BL_COMMON_SOURCES	+=	lib/xlat_tables/xlat_tables_common.c		\
38				lib/xlat_tables/aarch32/xlat_tables.c
39
40BL32_SOURCES		+=	${RK_GIC_SOURCES}				\
41				drivers/arm/cci/cci.c				\
42				drivers/ti/uart/aarch32/16550_console.S		\
43				drivers/delay_timer/delay_timer.c		\
44				drivers/delay_timer/generic_delay_timer.c	\
45				lib/cpus/aarch32/cortex_a12.S			\
46				${RK_PLAT_COMMON}/aarch32/plat_helpers.S	\
47				${RK_PLAT_COMMON}/params_setup.c		\
48				${RK_PLAT_COMMON}/aarch32/pmu_sram_cpus_on.S	\
49				${RK_PLAT_COMMON}/plat_pm.c			\
50				${RK_PLAT_COMMON}/plat_topology.c		\
51				${RK_PLAT_COMMON}/aarch32/platform_common.c	\
52				${RK_PLAT_COMMON}/rockchip_sip_svc.c		\
53				${RK_PLAT_SOC}/plat_sip_calls.c			\
54				${RK_PLAT_SOC}/drivers/pmu/pmu.c		\
55				${RK_PLAT_SOC}/drivers/secure/secure.c		\
56				${RK_PLAT_SOC}/drivers/soc/soc.c		\
57
58MULTI_CONSOLE_API	:=	1
59
60include lib/coreboot/coreboot.mk
61include lib/libfdt/libfdt.mk
62
63$(eval $(call add_define,PLAT_SP_MIN_EXTRA_LD_SCRIPT))
64
65# Do not enable SVE
66ENABLE_SVE_FOR_NS	:=	0
67
68WORKAROUND_CVE_2017_5715	:=	0
69