From 46946036de35a38b6ab8b1e9d05bfa87b43a0eb4 Mon Sep 17 00:00:00 2001 From: Yidi Lin Date: Fri, 26 Mar 2021 15:53:20 +0800 Subject: [PATCH] mediatek: mt8192: move timer driver to common folder The timer driver can be shared with mt8195. Move the the timer driver to common/. Signed-off-by: Yidi Lin Change-Id: I84c97ab9cc9b469f35e0f44dd8e7b2b95f1b3926 --- plat/mediatek/{mt8192 => common}/drivers/timer/mt_timer.c | 0 plat/mediatek/{mt8192 => common}/drivers/timer/mt_timer.h | 0 plat/mediatek/mt8192/platform.mk | 8 ++++---- 3 files changed, 4 insertions(+), 4 deletions(-) rename plat/mediatek/{mt8192 => common}/drivers/timer/mt_timer.c (100%) rename plat/mediatek/{mt8192 => common}/drivers/timer/mt_timer.h (100%) diff --git a/plat/mediatek/mt8192/drivers/timer/mt_timer.c b/plat/mediatek/common/drivers/timer/mt_timer.c similarity index 100% rename from plat/mediatek/mt8192/drivers/timer/mt_timer.c rename to plat/mediatek/common/drivers/timer/mt_timer.c diff --git a/plat/mediatek/mt8192/drivers/timer/mt_timer.h b/plat/mediatek/common/drivers/timer/mt_timer.h similarity index 100% rename from plat/mediatek/mt8192/drivers/timer/mt_timer.h rename to plat/mediatek/common/drivers/timer/mt_timer.h diff --git a/plat/mediatek/mt8192/platform.mk b/plat/mediatek/mt8192/platform.mk index e1657a721..11d97790c 100644 --- a/plat/mediatek/mt8192/platform.mk +++ b/plat/mediatek/mt8192/platform.mk @@ -9,6 +9,7 @@ MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT} PLAT_INCLUDES := -I${MTK_PLAT}/common/ \ -I${MTK_PLAT}/common/drivers/gic600/ \ + -I${MTK_PLAT}/common/drivers/timer/ \ -I${MTK_PLAT}/common/drivers/uart/ \ -I${MTK_PLAT}/common/lpm/ \ -I${MTK_PLAT_SOC}/include/ \ @@ -20,8 +21,7 @@ PLAT_INCLUDES := -I${MTK_PLAT}/common/ \ -I${MTK_PLAT_SOC}/drivers/pmic/ \ -I${MTK_PLAT_SOC}/drivers/ptp3/ \ -I${MTK_PLAT_SOC}/drivers/rtc/ \ - -I${MTK_PLAT_SOC}/drivers/spmc/ \ - -I${MTK_PLAT_SOC}/drivers/timer/ + -I${MTK_PLAT_SOC}/drivers/spmc/ GICV3_SUPPORT_GIC600 := 1 include drivers/arm/gic/v3/gicv3.mk @@ -44,6 +44,7 @@ BL31_SOURCES += common/desc_image_load.c \ ${MTK_PLAT}/common/drivers/gic600/mt_gic_v3.c \ ${MTK_PLAT}/common/drivers/pmic_wrap/pmic_wrap_init_v2.c \ ${MTK_PLAT}/common/drivers/rtc/rtc_common.c \ + ${MTK_PLAT}/common/drivers/timer/mt_timer.c \ ${MTK_PLAT}/common/drivers/uart/uart.c \ ${MTK_PLAT}/common/lpm/mt_lp_rm.c \ ${MTK_PLAT}/common/mtk_cirq.c \ @@ -67,8 +68,7 @@ BL31_SOURCES += common/desc_image_load.c \ ${MTK_PLAT_SOC}/drivers/mcdi/mt_lp_irqremain.c \ ${MTK_PLAT_SOC}/drivers/mcdi/mt_mcdi.c \ ${MTK_PLAT_SOC}/drivers/ptp3/mtk_ptp3_main.c \ - ${MTK_PLAT_SOC}/drivers/spmc/mtspmc.c \ - ${MTK_PLAT_SOC}/drivers/timer/mt_timer.c + ${MTK_PLAT_SOC}/drivers/spmc/mtspmc.c # Build SPM drivers include ${MTK_PLAT_SOC}/drivers/spm/build.mk -- GitLab