Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965060AbbHDNzr (ORCPT ); Tue, 4 Aug 2015 09:55:47 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:42743 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S964994AbbHDNy6 (ORCPT ); Tue, 4 Aug 2015 09:54:58 -0400 X-Listener-Flag: 11101 From: Scott Shu To: Matthias Brugger , Sascha Hauer , Mark Rutland CC: , , , , , , , , , Scott Shu Subject: [PATCH v3 6/8] ARM: Mediatek: enable GPT6 on boot up to make arch timer working for MT6580 Date: Tue, 4 Aug 2015 21:54:22 +0800 Message-ID: <1438696464-59858-7-git-send-email-scott.shu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1438696464-59858-1-git-send-email-scott.shu@mediatek.com> References: <1438696464-59858-1-git-send-email-scott.shu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1281 Lines: 37 We enable GTP6 which ungates the arch timer clock. Signed-off-by: Scott Shu --- arch/arm/mach-mediatek/mediatek.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 6b38d67..469d332 100644 --- a/arch/arm/mach-mediatek/mediatek.c +++ b/arch/arm/mach-mediatek/mediatek.c @@ -28,7 +28,8 @@ static void __init mediatek_timer_init(void) { void __iomem *gpt_base = 0; - if (of_machine_is_compatible("mediatek,mt6589") || + if (of_machine_is_compatible("mediatek,mt6580") || + of_machine_is_compatible("mediatek,mt6589") || of_machine_is_compatible("mediatek,mt8135") || of_machine_is_compatible("mediatek,mt8127")) { /* turn on GPT6 which ungates arch timer clocks */ @@ -46,6 +47,7 @@ static void __init mediatek_timer_init(void) }; static const char * const mediatek_board_dt_compat[] = { + "mediatek,mt6580", "mediatek,mt6589", "mediatek,mt6592", "mediatek,mt8127", -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/