• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7RK_PLAT			:=	plat/rockchip
8RK_PLAT_SOC		:=	${RK_PLAT}/${PLAT}
9RK_PLAT_COMMON		:=	${RK_PLAT}/common
10
11PLAT_INCLUDES		:=	-I${RK_PLAT_COMMON}/				\
12				-I${RK_PLAT_COMMON}/include/			\
13				-I${RK_PLAT_COMMON}/pmusram			\
14				-I${RK_PLAT_COMMON}/drivers/pmu/			\
15				-I${RK_PLAT_SOC}/				\
16				-I${RK_PLAT_SOC}/drivers/pmu/			\
17				-I${RK_PLAT_SOC}/drivers/soc/			\
18				-I${RK_PLAT_SOC}/drivers/ddr/			\
19				-I${RK_PLAT_SOC}/include/
20
21RK_GIC_SOURCES         :=	drivers/arm/gic/common/gic_common.c		\
22				drivers/arm/gic/v2/gicv2_main.c			\
23				drivers/arm/gic/v2/gicv2_helpers.c		\
24				plat/common/plat_gicv2.c			\
25				${RK_PLAT}/common/rockchip_gicv2.c
26
27PLAT_BL_COMMON_SOURCES	:=	lib/xlat_tables/xlat_tables_common.c		\
28				lib/xlat_tables/aarch64/xlat_tables.c		\
29				plat/common/plat_psci_common.c
30
31BL31_SOURCES		+=	${RK_GIC_SOURCES}				\
32				drivers/arm/cci/cci.c				\
33				drivers/console/aarch64/console.S		\
34				drivers/ti/uart/aarch64/16550_console.S		\
35				drivers/delay_timer/delay_timer.c		\
36				drivers/delay_timer/generic_delay_timer.c	\
37				lib/cpus/aarch64/cortex_a53.S			\
38				${RK_PLAT_COMMON}/aarch64/plat_helpers.S	\
39				${RK_PLAT_COMMON}/bl31_plat_setup.c		\
40				${RK_PLAT_COMMON}/params_setup.c                \
41				${RK_PLAT_COMMON}/pmusram/pmu_sram_cpus_on.S		\
42				${RK_PLAT_COMMON}/plat_pm.c			\
43				${RK_PLAT_COMMON}/plat_topology.c		\
44				${RK_PLAT_COMMON}/aarch64/platform_common.c	\
45				${RK_PLAT_COMMON}/rockchip_sip_svc.c		\
46				${RK_PLAT_SOC}/plat_sip_calls.c			\
47				${RK_PLAT_SOC}/drivers/pmu/pmu.c		\
48				${RK_PLAT_SOC}/drivers/soc/soc.c		\
49				${RK_PLAT_SOC}/drivers/ddr/ddr_rk3368.c		\
50
51ENABLE_PLAT_COMPAT	:=      0
52
53$(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
54