Skip to contentSkip to conversation

ARM: mediatek: enable gpt6 on boot up to make arch timer work on mt7623

PATCH New John Crispin 2 participants 2 messages Apr 7, 2016 – Apr 20, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: mediatek: enable gpt6 on boot up to make arch timer work on mt7623

GPT6 needs to be enabled on MT7623 for the arch timer to work.

---
 arch/arm/mach-mediatek/mediatek.c |    1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-mediatek/mediatek.c +1 -0
index 9c2e38d..a6e3c98 100644
@@ -29,6 +29,7 @@ static void __init mediatek_timer_init(void)
 	void __iomem *gpt_base;
 
 	if (of_machine_is_compatible("mediatek,mt6589") ||
+	    of_machine_is_compatible("mediatek,mt7623") ||
 	    of_machine_is_compatible("mediatek,mt8135") ||
 	    of_machine_is_compatible("mediatek,mt8127")) {
 		/* turn on GPT6 which ungates arch timer clocks */
Signature · 1 line
1.7.10.4
maintainer
#1 lore raw

PATCH 1/1 ARM: mediatek: enable gpt6 on boot up to make arch timer work on mt7623

Quoted 13 lines · John Crispin

GPT6 needs to be enabled on MT7623 for the arch timer to work.

---
  arch/arm/mach-mediatek/mediatek.c |    1 +
  1 file changed, 1 insertion(+)
arch/arm/mach-mediatek/mediatek.c +0 -0
index 9c2e38d..a6e3c98 100644

arch/arm/mach-mediatek/mediatek.c static void __init mediatek_timer_init(void) · line 35

Quoted 7 lines
arch/arm/mach-mediatek/mediatek.c +1 -0
@@ -29,6 +29,7 @@ static void __init mediatek_timer_init(void)
  	void __iomem *gpt_base;
 
  	if (of_machine_is_compatible("mediatek,mt6589") ||
+	    of_machine_is_compatible("mediatek,mt7623") ||
  	    of_machine_is_compatible("mediatek,mt8135") ||
  	    of_machine_is_compatible("mediatek,mt8127")) {
  		/* turn on GPT6 which ungates arch timer clocks */

Applied thanks.