blob: d1315fc580a19e5f4798d3042d6ba67004820cb4 [file] [log] [blame]
Tony Xief6118cc2016-01-15 17:17:32 +08001#
dp-arm230011c2017-03-07 11:02:47 +00002# Copyright (c) 2016-2017, 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
7RK_PLAT := plat/rockchip
8RK_PLAT_SOC := ${RK_PLAT}/${PLAT}
9RK_PLAT_COMMON := ${RK_PLAT}/common
10
Heiko Stuebnerbbd0f5a2019-03-07 08:07:11 +010011include lib/libfdt/libfdt.mk
12
Tony Xief6118cc2016-01-15 17:17:32 +080013PLAT_INCLUDES := -I${RK_PLAT_COMMON}/ \
14 -I${RK_PLAT_COMMON}/include/ \
15 -I${RK_PLAT_COMMON}/pmusram \
16 -I${RK_PLAT_COMMON}/drivers/pmu/ \
17 -I${RK_PLAT_SOC}/ \
18 -I${RK_PLAT_SOC}/drivers/pmu/ \
19 -I${RK_PLAT_SOC}/drivers/soc/ \
20 -I${RK_PLAT_SOC}/drivers/ddr/ \
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
Soby Mathewcc037c12016-04-08 16:42:58 +010029PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \
30 lib/xlat_tables/aarch64/xlat_tables.c \
Antonio Nino Diaza64b1522018-10-16 16:39:12 +010031 plat/common/aarch64/crash_console_helpers.S \
Soby Mathewf6c41082016-05-03 12:31:18 +010032 plat/common/plat_psci_common.c
Tony Xief6118cc2016-01-15 17:17:32 +080033
34BL31_SOURCES += ${RK_GIC_SOURCES} \
35 drivers/arm/cci/cci.c \
Soby Mathew17231132016-08-08 12:33:06 +010036 drivers/ti/uart/aarch64/16550_console.S \
Tony Xief6118cc2016-01-15 17:17:32 +080037 drivers/delay_timer/delay_timer.c \
Antonio Nino Diaz2361fcc2016-05-05 15:25:02 +010038 drivers/delay_timer/generic_delay_timer.c \
Tony Xief6118cc2016-01-15 17:17:32 +080039 lib/cpus/aarch64/cortex_a53.S \
Heiko Stuebnerbbd0f5a2019-03-07 08:07:11 +010040 $(LIBFDT_SRCS) \
Tony Xief6118cc2016-01-15 17:17:32 +080041 ${RK_PLAT_COMMON}/aarch64/plat_helpers.S \
42 ${RK_PLAT_COMMON}/bl31_plat_setup.c \
Caesar Wang3e3c5b02016-05-25 19:03:04 +080043 ${RK_PLAT_COMMON}/params_setup.c \
Tony Xief6118cc2016-01-15 17:17:32 +080044 ${RK_PLAT_COMMON}/pmusram/pmu_sram_cpus_on.S \
Tony Xief6118cc2016-01-15 17:17:32 +080045 ${RK_PLAT_COMMON}/plat_pm.c \
46 ${RK_PLAT_COMMON}/plat_topology.c \
47 ${RK_PLAT_COMMON}/aarch64/platform_common.c \
Caesar Wangc1bf6462016-06-21 14:44:01 +080048 ${RK_PLAT_COMMON}/rockchip_sip_svc.c \
49 ${RK_PLAT_SOC}/plat_sip_calls.c \
Tony Xief6118cc2016-01-15 17:17:32 +080050 ${RK_PLAT_SOC}/drivers/pmu/pmu.c \
51 ${RK_PLAT_SOC}/drivers/soc/soc.c \
52 ${RK_PLAT_SOC}/drivers/ddr/ddr_rk3368.c \
53
Julius Wernerf39c8062017-08-02 16:31:04 -070054MULTI_CONSOLE_API := 1
Lin Huang30e43392017-05-04 16:02:45 +080055
Julius Wernerc7087782017-06-09 15:22:44 -070056include lib/coreboot/coreboot.mk
57
Lin Huang30e43392017-05-04 16:02:45 +080058$(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
David Cunadoc5b0c0f2017-10-31 23:19:21 +000059
60# Do not enable SVE
61ENABLE_SVE_FOR_NS := 0
Dimitris Papastamos8e5bd5e2018-01-24 16:41:14 +000062
63WORKAROUND_CVE_2017_5715 := 0