0056-arm-mediatek-make-a7-timer-work-Signed-off-by-John-C.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From f8cda0bc698706413b5dd6fde827f9a2601ac61b Mon Sep 17 00:00:00 2001
  2. From: John Crispin <blogic@openwrt.org>
  3. Date: Thu, 31 Mar 2016 06:07:01 +0200
  4. Subject: [PATCH 056/102] arm: mediatek: make a7 timer work Signed-off-by:
  5. John Crispin <blogic@openwrt.org>
  6. ---
  7. arch/arm/mach-mediatek/Kconfig | 1 +
  8. arch/arm/mach-mediatek/mediatek.c | 1 +
  9. 2 files changed, 2 insertions(+)
  10. --- a/arch/arm/mach-mediatek/Kconfig
  11. +++ b/arch/arm/mach-mediatek/Kconfig
  12. @@ -24,6 +24,7 @@ config MACH_MT6592
  13. config MACH_MT7623
  14. bool "MediaTek MT7623 SoCs support"
  15. default ARCH_MEDIATEK
  16. + select HAVE_ARM_ARCH_TIMER
  17. select MIGHT_HAVE_PCI
  18. config MACH_MT8127
  19. --- a/arch/arm/mach-mediatek/mediatek.c
  20. +++ b/arch/arm/mach-mediatek/mediatek.c
  21. @@ -29,6 +29,7 @@ static void __init mediatek_timer_init(v
  22. void __iomem *gpt_base;
  23. if (of_machine_is_compatible("mediatek,mt6589") ||
  24. + of_machine_is_compatible("mediatek,mt7623") ||
  25. of_machine_is_compatible("mediatek,mt8135") ||
  26. of_machine_is_compatible("mediatek,mt8127")) {
  27. /* turn on GPT6 which ungates arch timer clocks */