blob: 3caa1082f482cd8d5c8ef967fb2c0a484876b7f0 [file] [log] [blame]
tony.xie54973e72017-04-24 16:18:10 +08001#
2# Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3#
dp-armd91aaae2017-05-10 15:16:15 +01004# SPDX-License-Identifier: BSD-3-Clause
tony.xie54973e72017-04-24 16:18:10 +08005#
6
7RK_PLAT := plat/rockchip
8RK_PLAT_SOC := ${RK_PLAT}/${PLAT}
9RK_PLAT_COMMON := ${RK_PLAT}/common
10
11PLAT_INCLUDES := -Idrivers/arm/gic/common/ \
12 -Idrivers/arm/gic/v2/ \
tony.xie54973e72017-04-24 16:18:10 +080013 -I${RK_PLAT_COMMON}/ \
14 -I${RK_PLAT_COMMON}/include/ \
Heiko Stuebner385476e2019-03-05 13:46:41 +010015 -I${RK_PLAT_COMMON}/aarch64/ \
tony.xie54973e72017-04-24 16:18:10 +080016 -I${RK_PLAT_COMMON}/drivers/pmu/ \
17 -I${RK_PLAT_COMMON}/drivers/parameter/ \
18 -I${RK_PLAT_SOC}/ \
19 -I${RK_PLAT_SOC}/drivers/pmu/ \
20 -I${RK_PLAT_SOC}/drivers/soc/ \
21 -I${RK_PLAT_SOC}/include/
22
23RK_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
24 drivers/arm/gic/v2/gicv2_main.c \
25 drivers/arm/gic/v2/gicv2_helpers.c \
26 plat/common/plat_gicv2.c \
27 ${RK_PLAT}/common/rockchip_gicv2.c
28
Antonio Nino Diaz58230902018-09-24 17:16:20 +010029PLAT_BL_COMMON_SOURCES := lib/xlat_tables/aarch64/xlat_tables.c \
30 lib/xlat_tables/xlat_tables_common.c \
Antonio Nino Diaza64b1522018-10-16 16:39:12 +010031 plat/common/aarch64/crash_console_helpers.S \
Antonio Nino Diaz58230902018-09-24 17:16:20 +010032 plat/common/plat_psci_common.c
tony.xie54973e72017-04-24 16:18:10 +080033
34BL31_SOURCES += ${RK_GIC_SOURCES} \
35 drivers/arm/cci/cci.c \
Antonio Nino Diaz58230902018-09-24 17:16:20 +010036 drivers/ti/uart/aarch64/16550_console.S \
tony.xie54973e72017-04-24 16:18:10 +080037 drivers/delay_timer/delay_timer.c \
38 drivers/delay_timer/generic_delay_timer.c \
39 lib/cpus/aarch64/aem_generic.S \
40 lib/cpus/aarch64/cortex_a53.S \
41 ${RK_PLAT_COMMON}/drivers/parameter/ddr_parameter.c \
42 ${RK_PLAT_COMMON}/aarch64/plat_helpers.S \
43 ${RK_PLAT_COMMON}/bl31_plat_setup.c \
Heiko Stuebner385476e2019-03-05 13:46:41 +010044 ${RK_PLAT_COMMON}/aarch64/pmu_sram_cpus_on.S \
tony.xie54973e72017-04-24 16:18:10 +080045 ${RK_PLAT_COMMON}/plat_pm.c \
46 ${RK_PLAT_COMMON}/plat_topology.c \
47 ${RK_PLAT_COMMON}/aarch64/platform_common.c \
48 ${RK_PLAT_SOC}/drivers/pmu/pmu.c \
49 ${RK_PLAT_SOC}/drivers/soc/soc.c
50
Julius Wernerf39c8062017-08-02 16:31:04 -070051MULTI_CONSOLE_API := 1
tony.xie54973e72017-04-24 16:18:10 +080052
Julius Wernerc7087782017-06-09 15:22:44 -070053include lib/coreboot/coreboot.mk
Heiko Stuebner6fd5b942019-04-24 20:26:51 +020054include lib/libfdt/libfdt.mk
Julius Wernerc7087782017-06-09 15:22:44 -070055
tony.xie54973e72017-04-24 16:18:10 +080056$(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
57$(eval $(call add_define,PLAT_SKIP_OPTEE_S_EL1_INT_REGISTER))
David Cunadoc5b0c0f2017-10-31 23:19:21 +000058
59# Do not enable SVE
60ENABLE_SVE_FOR_NS := 0
Dimitris Papastamos8e5bd5e2018-01-24 16:41:14 +000061
62WORKAROUND_CVE_2017_5715 := 0