tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. |
| 3 | # |
dp-arm | d91aaae | 2017-05-10 15:16:15 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
tony.xie | 54973e7 | 2017-04-24 16:18:10 +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 | |
| 11 | PLAT_INCLUDES := -Idrivers/arm/gic/common/ \ |
| 12 | -Idrivers/arm/gic/v2/ \ |
| 13 | -Iinclude/plat/common/ \ |
| 14 | -I${RK_PLAT_COMMON}/ \ |
| 15 | -I${RK_PLAT_COMMON}/include/ \ |
| 16 | -I${RK_PLAT_COMMON}/pmusram \ |
| 17 | -I${RK_PLAT_COMMON}/drivers/pmu/ \ |
| 18 | -I${RK_PLAT_COMMON}/drivers/parameter/ \ |
| 19 | -I${RK_PLAT_SOC}/ \ |
| 20 | -I${RK_PLAT_SOC}/drivers/pmu/ \ |
| 21 | -I${RK_PLAT_SOC}/drivers/soc/ \ |
| 22 | -I${RK_PLAT_SOC}/include/ |
| 23 | |
| 24 | RK_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \ |
| 25 | drivers/arm/gic/v2/gicv2_main.c \ |
| 26 | drivers/arm/gic/v2/gicv2_helpers.c \ |
| 27 | plat/common/plat_gicv2.c \ |
| 28 | ${RK_PLAT}/common/rockchip_gicv2.c |
| 29 | |
Antonio Nino Diaz | 5823090 | 2018-09-24 17:16:20 +0100 | [diff] [blame] | 30 | PLAT_BL_COMMON_SOURCES := lib/xlat_tables/aarch64/xlat_tables.c \ |
| 31 | lib/xlat_tables/xlat_tables_common.c \ |
| 32 | plat/common/plat_psci_common.c |
tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 33 | |
| 34 | BL31_SOURCES += ${RK_GIC_SOURCES} \ |
| 35 | drivers/arm/cci/cci.c \ |
Antonio Nino Diaz | 5823090 | 2018-09-24 17:16:20 +0100 | [diff] [blame] | 36 | drivers/console/aarch64/console.S \ |
| 37 | drivers/ti/uart/aarch64/16550_console.S \ |
tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 38 | drivers/delay_timer/delay_timer.c \ |
| 39 | drivers/delay_timer/generic_delay_timer.c \ |
| 40 | lib/cpus/aarch64/aem_generic.S \ |
| 41 | lib/cpus/aarch64/cortex_a53.S \ |
| 42 | ${RK_PLAT_COMMON}/drivers/parameter/ddr_parameter.c \ |
| 43 | ${RK_PLAT_COMMON}/aarch64/plat_helpers.S \ |
| 44 | ${RK_PLAT_COMMON}/bl31_plat_setup.c \ |
tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 45 | ${RK_PLAT_COMMON}/pmusram/pmu_sram_cpus_on.S \ |
| 46 | ${RK_PLAT_COMMON}/plat_pm.c \ |
| 47 | ${RK_PLAT_COMMON}/plat_topology.c \ |
| 48 | ${RK_PLAT_COMMON}/aarch64/platform_common.c \ |
| 49 | ${RK_PLAT_SOC}/drivers/pmu/pmu.c \ |
| 50 | ${RK_PLAT_SOC}/drivers/soc/soc.c |
| 51 | |
Julius Werner | f39c806 | 2017-08-02 16:31:04 -0700 | [diff] [blame] | 52 | MULTI_CONSOLE_API := 1 |
tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 53 | |
Julius Werner | c708778 | 2017-06-09 15:22:44 -0700 | [diff] [blame] | 54 | include lib/coreboot/coreboot.mk |
| 55 | |
tony.xie | 54973e7 | 2017-04-24 16:18:10 +0800 | [diff] [blame] | 56 | $(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT)) |
| 57 | $(eval $(call add_define,PLAT_SKIP_OPTEE_S_EL1_INT_REGISTER)) |
David Cunado | c5b0c0f | 2017-10-31 23:19:21 +0000 | [diff] [blame] | 58 | |
| 59 | # Do not enable SVE |
| 60 | ENABLE_SVE_FOR_NS := 0 |
Dimitris Papastamos | 8e5bd5e | 2018-01-24 16:41:14 +0000 | [diff] [blame] | 61 | |
| 62 | WORKAROUND_CVE_2017_5715 := 0 |