From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Shu Subject: [PATCH v4 6/8] ARM: Mediatek: enable GPT6 on boot up to make arch timer working for MT6580 Date: Sun, 23 Aug 2015 17:01:05 +0800 Message-ID: <1440320467-26118-7-git-send-email-scott.shu@mediatek.com> References: <1440320467-26118-1-git-send-email-scott.shu@mediatek.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1440320467-26118-1-git-send-email-scott.shu@mediatek.com> Sender: linux-kernel-owner@vger.kernel.org To: Russell King , Matthias Brugger , Sascha Hauer Cc: Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com, loda.chou@mediatek.com, jades.shih@mediatek.com, scott.shu@gmail.com, Scott Shu List-Id: devicetree@vger.kernel.org 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.9.1 ************* Email Confidentiality Notice ******************** The information contained in this e-mail message (including any attachments) may be confidential, proprietary, privileged, or otherwise exempt from disclosure under applicable laws. It is intended to be conveyed only to the designated recipient(s). Any use, dissemination, distribution, printing, retaining or copying of this e-mail (including its attachments) by unintended recipient(s) is strictly prohibited and may be unlawful. If you are not an intended recipient of this e-mail, or believe that you have received this e-mail in error, please notify the sender immediately (by replying to this e-mail), delete any and all copies of this e-mail (including any attachments) from your system, and do not disclose the content of this e-mail to any other person. Thank you!