blob: d203581509ce0802e1616da65e4bee4f6a9f3809 [file] [log] [blame]
Heiko Stuebner87b9a3c2019-03-14 22:12:04 +01001#
2# Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ARM_CORTEX_A12 := yes
8ARM_ARCH_MAJOR := 7
9
10RK_PLAT := plat/rockchip
11RK_PLAT_SOC := ${RK_PLAT}/${PLAT}
12RK_PLAT_COMMON := ${RK_PLAT}/common
13
Heiko Stuebner87b9a3c2019-03-14 22:12:04 +010014PLAT_INCLUDES := -I${RK_PLAT_COMMON}/ \
15 -I${RK_PLAT_COMMON}/include/ \
16 -I${RK_PLAT_COMMON}/aarch32/ \
17 -I${RK_PLAT_COMMON}/drivers/pmu/ \
18 -I${RK_PLAT_SOC}/ \
19 -I${RK_PLAT_SOC}/drivers/pmu/ \
20 -I${RK_PLAT_SOC}/drivers/secure/ \
21 -I${RK_PLAT_SOC}/drivers/soc/ \
22 -I${RK_PLAT_SOC}/include/ \
23 -I${RK_PLAT_SOC}/include/shared/ \
24
25RK_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
26 drivers/arm/gic/v2/gicv2_main.c \
27 drivers/arm/gic/v2/gicv2_helpers.c \
28 plat/common/plat_gicv2.c \
29 ${RK_PLAT}/common/rockchip_gicv2.c
30
31PLAT_BL_COMMON_SOURCES := plat/common/aarch32/crash_console_helpers.S \
32 plat/common/plat_psci_common.c
33
34PLAT_BL_COMMON_SOURCES += lib/xlat_tables/xlat_tables_common.c \
35 lib/xlat_tables/aarch32/xlat_tables.c
36
37BL32_SOURCES += ${RK_GIC_SOURCES} \
38 drivers/arm/cci/cci.c \
39 drivers/ti/uart/aarch32/16550_console.S \
40 drivers/delay_timer/delay_timer.c \
41 drivers/delay_timer/generic_delay_timer.c \
42 lib/cpus/aarch32/cortex_a12.S \
Heiko Stuebner87b9a3c2019-03-14 22:12:04 +010043 ${RK_PLAT_COMMON}/aarch32/plat_helpers.S \
44 ${RK_PLAT_COMMON}/params_setup.c \
45 ${RK_PLAT_COMMON}/aarch32/pmu_sram_cpus_on.S \
46 ${RK_PLAT_COMMON}/plat_pm.c \
47 ${RK_PLAT_COMMON}/plat_topology.c \
48 ${RK_PLAT_COMMON}/aarch32/platform_common.c \
49 ${RK_PLAT_COMMON}/rockchip_sip_svc.c \
50 ${RK_PLAT_SOC}/plat_sip_calls.c \
51 ${RK_PLAT_SOC}/drivers/pmu/pmu.c \
52 ${RK_PLAT_SOC}/drivers/secure/secure.c \
53 ${RK_PLAT_SOC}/drivers/soc/soc.c \
54
55MULTI_CONSOLE_API := 1
56
57include lib/coreboot/coreboot.mk
Heiko Stuebner6fd5b942019-04-24 20:26:51 +020058include lib/libfdt/libfdt.mk
Heiko Stuebner87b9a3c2019-03-14 22:12:04 +010059
60$(eval $(call add_define,PLAT_SP_MIN_EXTRA_LD_SCRIPT))
61
62# Do not enable SVE
63ENABLE_SVE_FOR_NS := 0
64
65WORKAROUND_CVE_2017_5715 := 0