blob: 213865b5337948ef88e7f584ded225c37afbffbb [file] [log] [blame]
tony.xie54973e72017-04-24 16:18:10 +08001#
2# Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3#
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 := -Idrivers/arm/gic/common/ \
36 -Idrivers/arm/gic/v2/ \
37 -Iinclude/plat/common/ \
38 -I${RK_PLAT_COMMON}/ \
39 -I${RK_PLAT_COMMON}/include/ \
40 -I${RK_PLAT_COMMON}/pmusram \
41 -I${RK_PLAT_COMMON}/drivers/pmu/ \
42 -I${RK_PLAT_COMMON}/drivers/parameter/ \
43 -I${RK_PLAT_SOC}/ \
44 -I${RK_PLAT_SOC}/drivers/pmu/ \
45 -I${RK_PLAT_SOC}/drivers/soc/ \
46 -I${RK_PLAT_SOC}/include/
47
48RK_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
49 drivers/arm/gic/v2/gicv2_main.c \
50 drivers/arm/gic/v2/gicv2_helpers.c \
51 plat/common/plat_gicv2.c \
52 ${RK_PLAT}/common/rockchip_gicv2.c
53
54PLAT_BL_COMMON_SOURCES := lib/aarch64/xlat_tables.c \
55 plat/common/aarch64/plat_psci_common.c
56
57BL31_SOURCES += ${RK_GIC_SOURCES} \
58 drivers/arm/cci/cci.c \
59 drivers/console/console.S \
60 drivers/ti/uart/16550_console.S \
61 drivers/delay_timer/delay_timer.c \
62 drivers/delay_timer/generic_delay_timer.c \
63 lib/cpus/aarch64/aem_generic.S \
64 lib/cpus/aarch64/cortex_a53.S \
65 ${RK_PLAT_COMMON}/drivers/parameter/ddr_parameter.c \
66 ${RK_PLAT_COMMON}/aarch64/plat_helpers.S \
67 ${RK_PLAT_COMMON}/bl31_plat_setup.c \
68 ${RK_PLAT_COMMON}/pmusram/pmu_sram.c \
69 ${RK_PLAT_COMMON}/pmusram/pmu_sram_cpus_on.S \
70 ${RK_PLAT_COMMON}/plat_pm.c \
71 ${RK_PLAT_COMMON}/plat_topology.c \
72 ${RK_PLAT_COMMON}/aarch64/platform_common.c \
73 ${RK_PLAT_SOC}/drivers/pmu/pmu.c \
74 ${RK_PLAT_SOC}/drivers/soc/soc.c
75
76ENABLE_PLAT_COMPAT := 0
77
78$(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
79$(eval $(call add_define,PLAT_SKIP_OPTEE_S_EL1_INT_REGISTER))