XiaoDong Huang | 83f79a8 | 2019-06-13 10:55:50 +0800 | [diff] [blame] | 1 | # |
| 2 | #Copyright (c) 2019, ARM Limited and Contributors. All rights reserved. |
| 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 |
XiaoDong Huang | 83f79a8 | 2019-06-13 10:55:50 +0800 | [diff] [blame] | 8 | |
| 9 | RK_PLAT := plat/rockchip |
| 10 | RK_PLAT_SOC := ${RK_PLAT}/${PLAT} |
| 11 | RK_PLAT_COMMON := ${RK_PLAT}/common |
| 12 | |
| 13 | DISABLE_BIN_GENERATION := 1 |
| 14 | |
| 15 | PLAT_INCLUDES := -Idrivers/arm/gic/common/ \ |
| 16 | -Idrivers/arm/gic/v2/ \ |
| 17 | -Iinclude/plat/common/ \ |
| 18 | -I${RK_PLAT_COMMON}/ \ |
| 19 | -I${RK_PLAT_COMMON}/include/ \ |
| 20 | -I${RK_PLAT_COMMON}/drivers/parameter/ \ |
| 21 | -I${RK_PLAT_COMMON}/pmusram \ |
| 22 | -I${RK_PLAT_SOC}/ \ |
| 23 | -I${RK_PLAT_SOC}/drivers/pmu/ \ |
Heiko Stuebner | 9e56bec | 2019-10-09 12:15:56 +0200 | [diff] [blame] | 24 | -I${RK_PLAT_SOC}/drivers/secure/ \ |
XiaoDong Huang | 83f79a8 | 2019-06-13 10:55:50 +0800 | [diff] [blame] | 25 | -I${RK_PLAT_SOC}/drivers/soc/ \ |
| 26 | -I${RK_PLAT_SOC}/include/ |
| 27 | |
Heiko Stuebner | 6892dc3 | 2021-02-08 15:44:27 +0100 | [diff] [blame] | 28 | RK_GIC_SOURCES := ${GICV2_SOURCES} \ |
XiaoDong Huang | 83f79a8 | 2019-06-13 10:55:50 +0800 | [diff] [blame] | 29 | plat/common/plat_gicv2.c \ |
| 30 | plat/common/aarch64/crash_console_helpers.S \ |
| 31 | ${RK_PLAT}/common/rockchip_gicv2.c |
| 32 | |
Ambroise Vincent | 821ae24 | 2019-07-29 14:52:20 +0100 | [diff] [blame] | 33 | PLAT_BL_COMMON_SOURCES := lib/bl_aux_params/bl_aux_params.c \ |
| 34 | lib/xlat_tables/xlat_tables_common.c \ |
XiaoDong Huang | 83f79a8 | 2019-06-13 10:55:50 +0800 | [diff] [blame] | 35 | lib/xlat_tables/aarch64/xlat_tables.c \ |
| 36 | plat/common/plat_psci_common.c |
| 37 | |
Christoph Müllner | b4660d8 | 2020-11-20 22:06:16 +0100 | [diff] [blame] | 38 | ifneq (${ENABLE_STACK_PROTECTOR},0) |
| 39 | PLAT_BL_COMMON_SOURCES += ${RK_PLAT_COMMON}/rockchip_stack_protector.c |
| 40 | endif |
| 41 | |
XiaoDong Huang | 83f79a8 | 2019-06-13 10:55:50 +0800 | [diff] [blame] | 42 | BL31_SOURCES += ${RK_GIC_SOURCES} \ |
Ambroise Vincent | 821ae24 | 2019-07-29 14:52:20 +0100 | [diff] [blame] | 43 | common/desc_image_load.c \ |
XiaoDong Huang | 83f79a8 | 2019-06-13 10:55:50 +0800 | [diff] [blame] | 44 | drivers/arm/cci/cci.c \ |
| 45 | drivers/delay_timer/delay_timer.c \ |
| 46 | drivers/delay_timer/generic_delay_timer.c \ |
| 47 | drivers/ti/uart/aarch64/16550_console.S \ |
| 48 | lib/cpus/aarch64/cortex_a35.S \ |
| 49 | ${RK_PLAT_COMMON}/aarch64/plat_helpers.S \ |
| 50 | ${RK_PLAT_COMMON}/aarch64/platform_common.c \ |
| 51 | ${RK_PLAT_COMMON}/bl31_plat_setup.c \ |
XiaoDong Huang | 83f79a8 | 2019-06-13 10:55:50 +0800 | [diff] [blame] | 52 | ${RK_PLAT_COMMON}/params_setup.c \ |
| 53 | ${RK_PLAT_COMMON}/pmusram/cpus_on_fixed_addr.S \ |
| 54 | ${RK_PLAT_COMMON}/plat_pm.c \ |
| 55 | ${RK_PLAT_COMMON}/plat_topology.c \ |
| 56 | ${RK_PLAT_COMMON}/rockchip_sip_svc.c \ |
| 57 | ${RK_PLAT_SOC}/drivers/pmu/pmu.c \ |
Heiko Stuebner | 9e56bec | 2019-10-09 12:15:56 +0200 | [diff] [blame] | 58 | ${RK_PLAT_SOC}/drivers/secure/secure.c \ |
XiaoDong Huang | 83f79a8 | 2019-06-13 10:55:50 +0800 | [diff] [blame] | 59 | ${RK_PLAT_SOC}/drivers/soc/soc.c \ |
| 60 | ${RK_PLAT_SOC}/plat_sip_calls.c |
| 61 | |
Heiko Stuebner | 384127d | 2019-12-12 11:55:26 +0100 | [diff] [blame] | 62 | ifdef PLAT_RK_SECURE_DDR_MINILOADER |
| 63 | BL31_SOURCES += ${RK_PLAT_COMMON}/drivers/parameter/ddr_parameter.c |
| 64 | endif |
| 65 | |
XiaoDong Huang | 83f79a8 | 2019-06-13 10:55:50 +0800 | [diff] [blame] | 66 | ENABLE_PLAT_COMPAT := 0 |
| 67 | MULTI_CONSOLE_API := 1 |
| 68 | |
| 69 | include lib/libfdt/libfdt.mk |
| 70 | |
| 71 | $(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT)) |
| 72 | $(eval $(call add_define,PLAT_SKIP_OPTEE_S_EL1_INT_REGISTER)) |
| 73 | $(eval $(call add_define,PLAT_WARMBOOT_ADDR_NOT_ALIGN)) |