From: Chuanhong Guo Date: Sat, 9 Apr 2022 05:28:26 +0000 (+0800) Subject: mediatek: 5.15: enable arm arch timer for mt7629 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e30424112ea0514c2b7b001ee5ed891fae202012;p=openwrt%2Fstaging%2Frmilecki.git mediatek: 5.15: enable arm arch timer for mt7629 otherwise the system delay is completely broken. Signed-off-by: Chuanhong Guo --- diff --git a/target/linux/mediatek/mt7629/config-5.15 b/target/linux/mediatek/mt7629/config-5.15 index 6a6e69e582f..7f4e90a72cb 100644 --- a/target/linux/mediatek/mt7629/config-5.15 +++ b/target/linux/mediatek/mt7629/config-5.15 @@ -14,6 +14,8 @@ CONFIG_ARCH_SELECT_MEMORY_MODEL=y CONFIG_ARCH_SPARSEMEM_ENABLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARM=y +CONFIG_ARM_ARCH_TIMER=y +CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y CONFIG_ARM_GIC=y CONFIG_ARM_HAS_SG_CHAIN=y CONFIG_ARM_HEAVY_MB=y diff --git a/target/linux/mediatek/patches-5.15/102-mt7629-enable-arch-timer.patch b/target/linux/mediatek/patches-5.15/102-mt7629-enable-arch-timer.patch new file mode 100644 index 00000000000..7bee8e372ab --- /dev/null +++ b/target/linux/mediatek/patches-5.15/102-mt7629-enable-arch-timer.patch @@ -0,0 +1,10 @@ +--- a/arch/arm/mach-mediatek/Kconfig ++++ b/arch/arm/mach-mediatek/Kconfig +@@ -30,6 +30,7 @@ config MACH_MT7623 + config MACH_MT7629 + bool "MediaTek MT7629 SoCs support" + default ARCH_MEDIATEK ++ select HAVE_ARM_ARCH_TIMER + + config MACH_MT8127 + bool "MediaTek MT8127 SoCs support"