[openwrt/openwrt] mediatek: 5.15: enable arm arch timer for mt7629
LEDE Commits
lede-commits at lists.infradead.org
Wed Apr 13 22:35:48 PDT 2022
981213 pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e30424112ea0514c2b7b001ee5ed891fae202012
commit e30424112ea0514c2b7b001ee5ed891fae202012
Author: Chuanhong Guo <gch981213 at gmail.com>
AuthorDate: Sat Apr 9 13:28:26 2022 +0800
mediatek: 5.15: enable arm arch timer for mt7629
otherwise the system delay is completely broken.
Signed-off-by: Chuanhong Guo <gch981213 at gmail.com>
---
target/linux/mediatek/mt7629/config-5.15 | 2 ++
.../mediatek/patches-5.15/102-mt7629-enable-arch-timer.patch | 10 ++++++++++
2 files changed, 12 insertions(+)
diff --git a/target/linux/mediatek/mt7629/config-5.15 b/target/linux/mediatek/mt7629/config-5.15
index 6a6e69e582..7f4e90a72c 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 0000000000..7bee8e372a
--- /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"
More information about the lede-commits
mailing list