mediatek: 5.15: enable arm arch timer for mt7629
authorChuanhong Guo <gch981213@gmail.com>
Sat, 9 Apr 2022 05:28:26 +0000 (13:28 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Thu, 14 Apr 2022 05:35:12 +0000 (13:35 +0800)
otherwise the system delay is completely broken.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/mediatek/mt7629/config-5.15
target/linux/mediatek/patches-5.15/102-mt7629-enable-arch-timer.patch [new file with mode: 0644]

index 6a6e69e582f77321290be9e606ba5aeda9070286..7f4e90a72cb3879bd962571f500742d81669deeb 100644 (file)
@@ -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 (file)
index 0000000..7bee8e3
--- /dev/null
@@ -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"