xref: /rk3399_ARM-atf/plat/rockchip/rk3328/platform.mk (revision 0d5ec955b8f7900ca33abf88638d499742531159)
1*0d5ec955Stony.xie#
2*0d5ec955Stony.xie# Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3*0d5ec955Stony.xie#
4*0d5ec955Stony.xie# Redistribution and use in source and binary forms, with or without
5*0d5ec955Stony.xie# modification, are permitted provided that the following conditions are met:
6*0d5ec955Stony.xie#
7*0d5ec955Stony.xie# Redistributions of source code must retain the above copyright notice, this
8*0d5ec955Stony.xie# list of conditions and the following disclaimer.
9*0d5ec955Stony.xie#
10*0d5ec955Stony.xie# Redistributions in binary form must reproduce the above copyright notice,
11*0d5ec955Stony.xie# this list of conditions and the following disclaimer in the documentation
12*0d5ec955Stony.xie# and/or other materials provided with the distribution.
13*0d5ec955Stony.xie#
14*0d5ec955Stony.xie# Neither the name of ARM nor the names of its contributors may be used
15*0d5ec955Stony.xie# to endorse or promote products derived from this software without specific
16*0d5ec955Stony.xie# prior written permission.
17*0d5ec955Stony.xie#
18*0d5ec955Stony.xie# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19*0d5ec955Stony.xie# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20*0d5ec955Stony.xie# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21*0d5ec955Stony.xie# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22*0d5ec955Stony.xie# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23*0d5ec955Stony.xie# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24*0d5ec955Stony.xie# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25*0d5ec955Stony.xie# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26*0d5ec955Stony.xie# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27*0d5ec955Stony.xie# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28*0d5ec955Stony.xie# POSSIBILITY OF SUCH DAMAGE.
29*0d5ec955Stony.xie#
30*0d5ec955Stony.xie
31*0d5ec955Stony.xieRK_PLAT			:=	plat/rockchip
32*0d5ec955Stony.xieRK_PLAT_SOC		:=	${RK_PLAT}/${PLAT}
33*0d5ec955Stony.xieRK_PLAT_COMMON		:=	${RK_PLAT}/common
34*0d5ec955Stony.xie
35*0d5ec955Stony.xiePLAT_INCLUDES		:=	-Idrivers/arm/gic/common/			\
36*0d5ec955Stony.xie				-Idrivers/arm/gic/v2/			\
37*0d5ec955Stony.xie				-Iinclude/plat/common/				\
38*0d5ec955Stony.xie				-I${RK_PLAT_COMMON}/                            \
39*0d5ec955Stony.xie				-I${RK_PLAT_COMMON}/include/                    \
40*0d5ec955Stony.xie				-I${RK_PLAT_COMMON}/pmusram                     \
41*0d5ec955Stony.xie				-I${RK_PLAT_COMMON}/drivers/pmu/                \
42*0d5ec955Stony.xie				-I${RK_PLAT_COMMON}/drivers/parameter/		\
43*0d5ec955Stony.xie				-I${RK_PLAT_SOC}/				\
44*0d5ec955Stony.xie				-I${RK_PLAT_SOC}/drivers/pmu/			\
45*0d5ec955Stony.xie				-I${RK_PLAT_SOC}/drivers/soc/			\
46*0d5ec955Stony.xie				-I${RK_PLAT_SOC}/include/
47*0d5ec955Stony.xie
48*0d5ec955Stony.xieRK_GIC_SOURCES		:=	drivers/arm/gic/common/gic_common.c		\
49*0d5ec955Stony.xie				drivers/arm/gic/v2/gicv2_main.c			\
50*0d5ec955Stony.xie				drivers/arm/gic/v2/gicv2_helpers.c		\
51*0d5ec955Stony.xie				plat/common/plat_gicv2.c			\
52*0d5ec955Stony.xie				${RK_PLAT}/common/rockchip_gicv2.c
53*0d5ec955Stony.xie
54*0d5ec955Stony.xiePLAT_BL_COMMON_SOURCES	:=	lib/aarch64/xlat_tables.c			\
55*0d5ec955Stony.xie				plat/common/aarch64/plat_psci_common.c
56*0d5ec955Stony.xie
57*0d5ec955Stony.xieBL31_SOURCES		+=	${RK_GIC_SOURCES}				\
58*0d5ec955Stony.xie				drivers/arm/cci/cci.c				\
59*0d5ec955Stony.xie				drivers/console/console.S			\
60*0d5ec955Stony.xie				drivers/ti/uart/16550_console.S			\
61*0d5ec955Stony.xie				drivers/delay_timer/delay_timer.c		\
62*0d5ec955Stony.xie				drivers/delay_timer/generic_delay_timer.c	\
63*0d5ec955Stony.xie				lib/cpus/aarch64/aem_generic.S			\
64*0d5ec955Stony.xie				lib/cpus/aarch64/cortex_a53.S			\
65*0d5ec955Stony.xie				${RK_PLAT_COMMON}/drivers/parameter/ddr_parameter.c	\
66*0d5ec955Stony.xie				${RK_PLAT_COMMON}/aarch64/plat_helpers.S	\
67*0d5ec955Stony.xie				${RK_PLAT_COMMON}/bl31_plat_setup.c		\
68*0d5ec955Stony.xie				${RK_PLAT_COMMON}/pmusram/pmu_sram.c            \
69*0d5ec955Stony.xie				${RK_PLAT_COMMON}/pmusram/pmu_sram_cpus_on.S	\
70*0d5ec955Stony.xie				${RK_PLAT_COMMON}/plat_pm.c			\
71*0d5ec955Stony.xie				${RK_PLAT_COMMON}/plat_topology.c		\
72*0d5ec955Stony.xie				${RK_PLAT_COMMON}/aarch64/platform_common.c	\
73*0d5ec955Stony.xie				${RK_PLAT_SOC}/drivers/pmu/pmu.c		\
74*0d5ec955Stony.xie				${RK_PLAT_SOC}/drivers/soc/soc.c
75*0d5ec955Stony.xie
76*0d5ec955Stony.xieENABLE_PLAT_COMPAT 	:=      0
77*0d5ec955Stony.xie
78*0d5ec955Stony.xie$(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
79*0d5ec955Stony.xie$(eval $(call add_define,PLAT_SKIP_OPTEE_S_EL1_INT_REGISTER))
80