Tony Xie | f6118cc | 2016-01-15 17:17:32 +0800 | [diff] [blame] | 1 | # |
dp-arm | 230011c | 2017-03-07 11:02:47 +0000 | [diff] [blame] | 2 | # Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. |
Tony Xie | f6118cc | 2016-01-15 17:17:32 +0800 | [diff] [blame] | 3 | # |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
Tony Xie | f6118cc | 2016-01-15 17:17:32 +0800 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | RK_PLAT := plat/rockchip |
| 8 | RK_PLAT_SOC := ${RK_PLAT}/${PLAT} |
| 9 | RK_PLAT_COMMON := ${RK_PLAT}/common |
| 10 | |
Christoph Müllner | 05ceda7 | 2019-04-24 09:52:54 +0200 | [diff] [blame] | 11 | DISABLE_BIN_GENERATION := 1 |
| 12 | |
Tony Xie | f6118cc | 2016-01-15 17:17:32 +0800 | [diff] [blame] | 13 | PLAT_INCLUDES := -I${RK_PLAT_COMMON}/ \ |
| 14 | -I${RK_PLAT_COMMON}/include/ \ |
Heiko Stuebner | 385476e | 2019-03-05 13:46:41 +0100 | [diff] [blame] | 15 | -I${RK_PLAT_COMMON}/aarch64/ \ |
Tony Xie | f6118cc | 2016-01-15 17:17:32 +0800 | [diff] [blame] | 16 | -I${RK_PLAT_COMMON}/drivers/pmu/ \ |
| 17 | -I${RK_PLAT_SOC}/ \ |
| 18 | -I${RK_PLAT_SOC}/drivers/pmu/ \ |
| 19 | -I${RK_PLAT_SOC}/drivers/soc/ \ |
| 20 | -I${RK_PLAT_SOC}/drivers/ddr/ \ |
| 21 | -I${RK_PLAT_SOC}/include/ |
| 22 | |
| 23 | RK_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \ |
| 24 | drivers/arm/gic/v2/gicv2_main.c \ |
| 25 | drivers/arm/gic/v2/gicv2_helpers.c \ |
| 26 | plat/common/plat_gicv2.c \ |
| 27 | ${RK_PLAT}/common/rockchip_gicv2.c |
| 28 | |
Soby Mathew | cc037c1 | 2016-04-08 16:42:58 +0100 | [diff] [blame] | 29 | PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \ |
| 30 | lib/xlat_tables/aarch64/xlat_tables.c \ |
Antonio Nino Diaz | a64b152 | 2018-10-16 16:39:12 +0100 | [diff] [blame] | 31 | plat/common/aarch64/crash_console_helpers.S \ |
Soby Mathew | f6c4108 | 2016-05-03 12:31:18 +0100 | [diff] [blame] | 32 | plat/common/plat_psci_common.c |
Tony Xie | f6118cc | 2016-01-15 17:17:32 +0800 | [diff] [blame] | 33 | |
| 34 | BL31_SOURCES += ${RK_GIC_SOURCES} \ |
| 35 | drivers/arm/cci/cci.c \ |
Soby Mathew | 1723113 | 2016-08-08 12:33:06 +0100 | [diff] [blame] | 36 | drivers/ti/uart/aarch64/16550_console.S \ |
Tony Xie | f6118cc | 2016-01-15 17:17:32 +0800 | [diff] [blame] | 37 | drivers/delay_timer/delay_timer.c \ |
Antonio Nino Diaz | 2361fcc | 2016-05-05 15:25:02 +0100 | [diff] [blame] | 38 | drivers/delay_timer/generic_delay_timer.c \ |
Tony Xie | f6118cc | 2016-01-15 17:17:32 +0800 | [diff] [blame] | 39 | lib/cpus/aarch64/cortex_a53.S \ |
Tony Xie | f6118cc | 2016-01-15 17:17:32 +0800 | [diff] [blame] | 40 | ${RK_PLAT_COMMON}/aarch64/plat_helpers.S \ |
| 41 | ${RK_PLAT_COMMON}/bl31_plat_setup.c \ |
Caesar Wang | 3e3c5b0 | 2016-05-25 19:03:04 +0800 | [diff] [blame] | 42 | ${RK_PLAT_COMMON}/params_setup.c \ |
Heiko Stuebner | 385476e | 2019-03-05 13:46:41 +0100 | [diff] [blame] | 43 | ${RK_PLAT_COMMON}/aarch64/pmu_sram_cpus_on.S \ |
Tony Xie | f6118cc | 2016-01-15 17:17:32 +0800 | [diff] [blame] | 44 | ${RK_PLAT_COMMON}/plat_pm.c \ |
| 45 | ${RK_PLAT_COMMON}/plat_topology.c \ |
| 46 | ${RK_PLAT_COMMON}/aarch64/platform_common.c \ |
Caesar Wang | c1bf646 | 2016-06-21 14:44:01 +0800 | [diff] [blame] | 47 | ${RK_PLAT_COMMON}/rockchip_sip_svc.c \ |
| 48 | ${RK_PLAT_SOC}/plat_sip_calls.c \ |
Tony Xie | f6118cc | 2016-01-15 17:17:32 +0800 | [diff] [blame] | 49 | ${RK_PLAT_SOC}/drivers/pmu/pmu.c \ |
| 50 | ${RK_PLAT_SOC}/drivers/soc/soc.c \ |
| 51 | ${RK_PLAT_SOC}/drivers/ddr/ddr_rk3368.c \ |
| 52 | |
Julius Werner | f39c806 | 2017-08-02 16:31:04 -0700 | [diff] [blame] | 53 | MULTI_CONSOLE_API := 1 |
Lin Huang | 30e4339 | 2017-05-04 16:02:45 +0800 | [diff] [blame] | 54 | |
Julius Werner | c708778 | 2017-06-09 15:22:44 -0700 | [diff] [blame] | 55 | include lib/coreboot/coreboot.mk |
Heiko Stuebner | 6fd5b94 | 2019-04-24 20:26:51 +0200 | [diff] [blame] | 56 | include lib/libfdt/libfdt.mk |
Julius Werner | c708778 | 2017-06-09 15:22:44 -0700 | [diff] [blame] | 57 | |
Lin Huang | 30e4339 | 2017-05-04 16:02:45 +0800 | [diff] [blame] | 58 | $(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT)) |
David Cunado | c5b0c0f | 2017-10-31 23:19:21 +0000 | [diff] [blame] | 59 | |
| 60 | # Do not enable SVE |
| 61 | ENABLE_SVE_FOR_NS := 0 |
Dimitris Papastamos | 8e5bd5e | 2018-01-24 16:41:14 +0000 | [diff] [blame] | 62 | |
| 63 | WORKAROUND_CVE_2017_5715 := 0 |