blob: 43204469608342ebd948e555d8de95973da95fa4 [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#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are met:
6#
7# Redistributions of source code must retain the above copyright notice, this
8# list of conditions and the following disclaimer.
9#
10# Redistributions in binary form must reproduce the above copyright notice,
11# this list of conditions and the following disclaimer in the documentation
12# and/or other materials provided with the distribution.
13#
14# Neither the name of ARM nor the names of its contributors may be used
15# to endorse or promote products derived from this software without specific
16# prior written permission.
17#
18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28# POSSIBILITY OF SUCH DAMAGE.
29#
30
31RK_PLAT := plat/rockchip
32RK_PLAT_SOC := ${RK_PLAT}/${PLAT}
33RK_PLAT_COMMON := ${RK_PLAT}/common
34
35PLAT_INCLUDES := -I${RK_PLAT_COMMON}/ \
36 -I${RK_PLAT_COMMON}/include/ \
37 -I${RK_PLAT_COMMON}/pmusram \
38 -I${RK_PLAT_COMMON}/drivers/pmu/ \
39 -I${RK_PLAT_SOC}/ \
40 -I${RK_PLAT_SOC}/drivers/pmu/ \
41 -I${RK_PLAT_SOC}/drivers/soc/ \
42 -I${RK_PLAT_SOC}/drivers/ddr/ \
43 -I${RK_PLAT_SOC}/include/
44
45RK_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
46 drivers/arm/gic/v2/gicv2_main.c \
47 drivers/arm/gic/v2/gicv2_helpers.c \
48 plat/common/plat_gicv2.c \
49 ${RK_PLAT}/common/rockchip_gicv2.c
50
Soby Mathewcc037c12016-04-08 16:42:58 +010051PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \
52 lib/xlat_tables/aarch64/xlat_tables.c \
Soby Mathewf6c41082016-05-03 12:31:18 +010053 plat/common/plat_psci_common.c
Tony Xief6118cc2016-01-15 17:17:32 +080054
55BL31_SOURCES += ${RK_GIC_SOURCES} \
56 drivers/arm/cci/cci.c \
Soby Mathew17231132016-08-08 12:33:06 +010057 drivers/console/aarch64/console.S \
58 drivers/ti/uart/aarch64/16550_console.S \
Tony Xief6118cc2016-01-15 17:17:32 +080059 drivers/delay_timer/delay_timer.c \
Antonio Nino Diaz2361fcc2016-05-05 15:25:02 +010060 drivers/delay_timer/generic_delay_timer.c \
Tony Xief6118cc2016-01-15 17:17:32 +080061 lib/cpus/aarch64/cortex_a53.S \
Tony Xief6118cc2016-01-15 17:17:32 +080062 ${RK_PLAT_COMMON}/aarch64/plat_helpers.S \
63 ${RK_PLAT_COMMON}/bl31_plat_setup.c \
Caesar Wang3e3c5b02016-05-25 19:03:04 +080064 ${RK_PLAT_COMMON}/params_setup.c \
Tony Xief6118cc2016-01-15 17:17:32 +080065 ${RK_PLAT_COMMON}/pmusram/pmu_sram_cpus_on.S \
66 ${RK_PLAT_COMMON}/pmusram/pmu_sram.c \
Tony Xief6118cc2016-01-15 17:17:32 +080067 ${RK_PLAT_COMMON}/plat_pm.c \
68 ${RK_PLAT_COMMON}/plat_topology.c \
69 ${RK_PLAT_COMMON}/aarch64/platform_common.c \
Caesar Wangc1bf6462016-06-21 14:44:01 +080070 ${RK_PLAT_COMMON}/rockchip_sip_svc.c \
71 ${RK_PLAT_SOC}/plat_sip_calls.c \
Tony Xief6118cc2016-01-15 17:17:32 +080072 ${RK_PLAT_SOC}/drivers/pmu/pmu.c \
73 ${RK_PLAT_SOC}/drivers/soc/soc.c \
74 ${RK_PLAT_SOC}/drivers/ddr/ddr_rk3368.c \
75
76ENABLE_PLAT_COMPAT := 0