Heiko Stuebner | 87b9a3c | 2019-03-14 22:12:04 +0100 | [diff] [blame] | 1 | # |
Julius Werner | 65d5267 | 2019-05-24 20:37:58 -0700 | [diff] [blame] | 2 | # Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved. |
Heiko Stuebner | 87b9a3c | 2019-03-14 22:12:04 +0100 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Heiko Stuebner | 6892dc3 | 2021-02-08 15:44:27 +0100 | [diff] [blame] | 7 | include drivers/arm/gic/v2/gicv2.mk |
| 8 | |
Heiko Stuebner | 87b9a3c | 2019-03-14 22:12:04 +0100 | [diff] [blame] | 9 | ARM_CORTEX_A12 := yes |
| 10 | ARM_ARCH_MAJOR := 7 |
| 11 | |
| 12 | RK_PLAT := plat/rockchip |
| 13 | RK_PLAT_SOC := ${RK_PLAT}/${PLAT} |
| 14 | RK_PLAT_COMMON := ${RK_PLAT}/common |
| 15 | |
Christoph Müllner | 05ceda7 | 2019-04-24 09:52:54 +0200 | [diff] [blame] | 16 | DISABLE_BIN_GENERATION := 1 |
| 17 | |
Heiko Stuebner | 87b9a3c | 2019-03-14 22:12:04 +0100 | [diff] [blame] | 18 | PLAT_INCLUDES := -I${RK_PLAT_COMMON}/ \ |
| 19 | -I${RK_PLAT_COMMON}/include/ \ |
| 20 | -I${RK_PLAT_COMMON}/aarch32/ \ |
| 21 | -I${RK_PLAT_COMMON}/drivers/pmu/ \ |
| 22 | -I${RK_PLAT_SOC}/ \ |
| 23 | -I${RK_PLAT_SOC}/drivers/pmu/ \ |
| 24 | -I${RK_PLAT_SOC}/drivers/secure/ \ |
| 25 | -I${RK_PLAT_SOC}/drivers/soc/ \ |
| 26 | -I${RK_PLAT_SOC}/include/ \ |
| 27 | -I${RK_PLAT_SOC}/include/shared/ \ |
| 28 | |
Heiko Stuebner | 6892dc3 | 2021-02-08 15:44:27 +0100 | [diff] [blame] | 29 | RK_GIC_SOURCES := ${GICV2_SOURCES} \ |
Heiko Stuebner | 87b9a3c | 2019-03-14 22:12:04 +0100 | [diff] [blame] | 30 | plat/common/plat_gicv2.c \ |
| 31 | ${RK_PLAT}/common/rockchip_gicv2.c |
| 32 | |
Julius Werner | f1d230c | 2019-05-30 16:57:15 -0700 | [diff] [blame] | 33 | PLAT_BL_COMMON_SOURCES := common/desc_image_load.c \ |
| 34 | lib/bl_aux_params/bl_aux_params.c \ |
Julius Werner | 65d5267 | 2019-05-24 20:37:58 -0700 | [diff] [blame] | 35 | plat/common/aarch32/crash_console_helpers.S \ |
Heiko Stuebner | 87b9a3c | 2019-03-14 22:12:04 +0100 | [diff] [blame] | 36 | plat/common/plat_psci_common.c |
| 37 | |
| 38 | PLAT_BL_COMMON_SOURCES += lib/xlat_tables/xlat_tables_common.c \ |
| 39 | lib/xlat_tables/aarch32/xlat_tables.c |
| 40 | |
| 41 | BL32_SOURCES += ${RK_GIC_SOURCES} \ |
| 42 | drivers/arm/cci/cci.c \ |
| 43 | drivers/ti/uart/aarch32/16550_console.S \ |
| 44 | drivers/delay_timer/delay_timer.c \ |
| 45 | drivers/delay_timer/generic_delay_timer.c \ |
| 46 | lib/cpus/aarch32/cortex_a12.S \ |
Heiko Stuebner | 87b9a3c | 2019-03-14 22:12:04 +0100 | [diff] [blame] | 47 | ${RK_PLAT_COMMON}/aarch32/plat_helpers.S \ |
| 48 | ${RK_PLAT_COMMON}/params_setup.c \ |
| 49 | ${RK_PLAT_COMMON}/aarch32/pmu_sram_cpus_on.S \ |
| 50 | ${RK_PLAT_COMMON}/plat_pm.c \ |
| 51 | ${RK_PLAT_COMMON}/plat_topology.c \ |
| 52 | ${RK_PLAT_COMMON}/aarch32/platform_common.c \ |
| 53 | ${RK_PLAT_COMMON}/rockchip_sip_svc.c \ |
| 54 | ${RK_PLAT_SOC}/plat_sip_calls.c \ |
| 55 | ${RK_PLAT_SOC}/drivers/pmu/pmu.c \ |
| 56 | ${RK_PLAT_SOC}/drivers/secure/secure.c \ |
| 57 | ${RK_PLAT_SOC}/drivers/soc/soc.c \ |
| 58 | |
| 59 | MULTI_CONSOLE_API := 1 |
| 60 | |
| 61 | include lib/coreboot/coreboot.mk |
Heiko Stuebner | 6fd5b94 | 2019-04-24 20:26:51 +0200 | [diff] [blame] | 62 | include lib/libfdt/libfdt.mk |
Heiko Stuebner | 87b9a3c | 2019-03-14 22:12:04 +0100 | [diff] [blame] | 63 | |
| 64 | $(eval $(call add_define,PLAT_SP_MIN_EXTRA_LD_SCRIPT)) |
| 65 | |
| 66 | # Do not enable SVE |
| 67 | ENABLE_SVE_FOR_NS := 0 |
| 68 | |
| 69 | WORKAROUND_CVE_2017_5715 := 0 |