blob: 87cf18704ac47712158665ab6e1c71135de0975f [file] [log] [blame]
XiaoDong Huang83f79a82019-06-13 10:55:50 +08001#
2#Copyright (c) 2019, ARM Limited and Contributors. All rights reserved.
3#
4#SPDX-License-Identifier: BSD-3-Clause
5#
6
7
8RK_PLAT := plat/rockchip
9RK_PLAT_SOC := ${RK_PLAT}/${PLAT}
10RK_PLAT_COMMON := ${RK_PLAT}/common
11
12DISABLE_BIN_GENERATION := 1
13
14PLAT_INCLUDES := -Idrivers/arm/gic/common/ \
15 -Idrivers/arm/gic/v2/ \
16 -Iinclude/plat/common/ \
17 -I${RK_PLAT_COMMON}/ \
18 -I${RK_PLAT_COMMON}/include/ \
19 -I${RK_PLAT_COMMON}/drivers/parameter/ \
20 -I${RK_PLAT_COMMON}/pmusram \
21 -I${RK_PLAT_SOC}/ \
22 -I${RK_PLAT_SOC}/drivers/pmu/ \
Heiko Stuebner9e56bec2019-10-09 12:15:56 +020023 -I${RK_PLAT_SOC}/drivers/secure/ \
XiaoDong Huang83f79a82019-06-13 10:55:50 +080024 -I${RK_PLAT_SOC}/drivers/soc/ \
25 -I${RK_PLAT_SOC}/include/
26
27RK_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
28 drivers/arm/gic/v2/gicv2_main.c \
29 drivers/arm/gic/v2/gicv2_helpers.c \
30 plat/common/plat_gicv2.c \
31 plat/common/aarch64/crash_console_helpers.S \
32 ${RK_PLAT}/common/rockchip_gicv2.c
33
Ambroise Vincent821ae242019-07-29 14:52:20 +010034PLAT_BL_COMMON_SOURCES := lib/bl_aux_params/bl_aux_params.c \
35 lib/xlat_tables/xlat_tables_common.c \
XiaoDong Huang83f79a82019-06-13 10:55:50 +080036 lib/xlat_tables/aarch64/xlat_tables.c \
37 plat/common/plat_psci_common.c
38
39BL31_SOURCES += ${RK_GIC_SOURCES} \
Ambroise Vincent821ae242019-07-29 14:52:20 +010040 common/desc_image_load.c \
XiaoDong Huang83f79a82019-06-13 10:55:50 +080041 drivers/arm/cci/cci.c \
42 drivers/delay_timer/delay_timer.c \
43 drivers/delay_timer/generic_delay_timer.c \
44 drivers/ti/uart/aarch64/16550_console.S \
45 lib/cpus/aarch64/cortex_a35.S \
46 ${RK_PLAT_COMMON}/aarch64/plat_helpers.S \
47 ${RK_PLAT_COMMON}/aarch64/platform_common.c \
48 ${RK_PLAT_COMMON}/bl31_plat_setup.c \
XiaoDong Huang83f79a82019-06-13 10:55:50 +080049 ${RK_PLAT_COMMON}/params_setup.c \
50 ${RK_PLAT_COMMON}/pmusram/cpus_on_fixed_addr.S \
51 ${RK_PLAT_COMMON}/plat_pm.c \
52 ${RK_PLAT_COMMON}/plat_topology.c \
53 ${RK_PLAT_COMMON}/rockchip_sip_svc.c \
54 ${RK_PLAT_SOC}/drivers/pmu/pmu.c \
Heiko Stuebner9e56bec2019-10-09 12:15:56 +020055 ${RK_PLAT_SOC}/drivers/secure/secure.c \
XiaoDong Huang83f79a82019-06-13 10:55:50 +080056 ${RK_PLAT_SOC}/drivers/soc/soc.c \
57 ${RK_PLAT_SOC}/plat_sip_calls.c
58
Heiko Stuebner384127d2019-12-12 11:55:26 +010059ifdef PLAT_RK_SECURE_DDR_MINILOADER
60BL31_SOURCES += ${RK_PLAT_COMMON}/drivers/parameter/ddr_parameter.c
61endif
62
XiaoDong Huang83f79a82019-06-13 10:55:50 +080063ENABLE_PLAT_COMPAT := 0
64MULTI_CONSOLE_API := 1
65
66include lib/libfdt/libfdt.mk
67
68$(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
69$(eval $(call add_define,PLAT_SKIP_OPTEE_S_EL1_INT_REGISTER))
70$(eval $(call add_define,PLAT_WARMBOOT_ADDR_NOT_ALIGN))