mediatek: update patches
[openwrt/staging/chunkeey.git] / target / linux / mediatek / patches-4.4 / 0064-arm-mediatek-make-a7-timer-work.patch
1 From cf070892e774e76e1bd969020d8e7f31af1d2e3d 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 64/91] arm: mediatek: make a7 timer work Signed-off-by: John
5 Crispin <blogic@openwrt.org>
6
7 ---
8 arch/arm/mach-mediatek/Kconfig | 1 +
9 arch/arm/mach-mediatek/mediatek.c | 1 +
10 2 files changed, 2 insertions(+)
11
12 diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
13 index a7fef77..2c05bc31 100644
14 --- a/arch/arm/mach-mediatek/Kconfig
15 +++ b/arch/arm/mach-mediatek/Kconfig
16 @@ -24,6 +24,7 @@ config MACH_MT6592
17 config MACH_MT7623
18 bool "MediaTek MT7623 SoCs support"
19 default ARCH_MEDIATEK
20 + select HAVE_ARM_ARCH_TIMER
21 select MIGHT_HAVE_PCI
22
23 config MACH_MT8127
24 diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c
25 index bcfca37..7553a8c 100644
26 --- a/arch/arm/mach-mediatek/mediatek.c
27 +++ b/arch/arm/mach-mediatek/mediatek.c
28 @@ -29,6 +29,7 @@ static void __init mediatek_timer_init(void)
29 void __iomem *gpt_base;
30
31 if (of_machine_is_compatible("mediatek,mt6589") ||
32 + of_machine_is_compatible("mediatek,mt7623") ||
33 of_machine_is_compatible("mediatek,mt8135") ||
34 of_machine_is_compatible("mediatek,mt8127")) {
35 /* turn on GPT6 which ungates arch timer clocks */
36 --
37 1.7.10.4
38