mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
41ba4b04c8
add fixes for * ethernet * cpufreq * nand * a7-timer Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 49098
53 lines
1.9 KiB
Diff
53 lines
1.9 KiB
Diff
From e722886f122fd3dd6240160f21937d2f21e9d910 Mon Sep 17 00:00:00 2001
|
|
From: John Crispin <blogic@openwrt.org>
|
|
Date: Thu, 31 Mar 2016 06:07:01 +0200
|
|
Subject: [PATCH 78/78] arm: mediatek: make a7 timer work Signed-off-by: John
|
|
Crispin <blogic@openwrt.org>
|
|
|
|
---
|
|
arch/arm/boot/dts/mt7623.dtsi | 2 ++
|
|
arch/arm/mach-mediatek/Kconfig | 1 +
|
|
arch/arm/mach-mediatek/mediatek.c | 1 +
|
|
3 files changed, 4 insertions(+)
|
|
|
|
diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi
|
|
index 76d603a..cd08b6e 100644
|
|
--- a/arch/arm/boot/dts/mt7623.dtsi
|
|
+++ b/arch/arm/boot/dts/mt7623.dtsi
|
|
@@ -120,6 +120,8 @@
|
|
<GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
|
|
<GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
|
|
<GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
|
|
+ clock-frequency = <13000000>;
|
|
+ arm,cpu-registers-not-fw-configured;
|
|
};
|
|
|
|
topckgen: power-controller@10000000 {
|
|
diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig
|
|
index a7fef77..2c05bc31 100644
|
|
--- a/arch/arm/mach-mediatek/Kconfig
|
|
+++ b/arch/arm/mach-mediatek/Kconfig
|
|
@@ -24,6 +24,7 @@ config MACH_MT6592
|
|
config MACH_MT7623
|
|
bool "MediaTek MT7623 SoCs support"
|
|
default ARCH_MEDIATEK
|
|
+ select HAVE_ARM_ARCH_TIMER
|
|
select MIGHT_HAVE_PCI
|
|
|
|
config MACH_MT8127
|
|
diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c
|
|
index bcfca37..7553a8c 100644
|
|
--- a/arch/arm/mach-mediatek/mediatek.c
|
|
+++ b/arch/arm/mach-mediatek/mediatek.c
|
|
@@ -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 */
|
|
--
|
|
1.7.10.4
|
|
|