From patchwork Tue May 23 21:01:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Sennhauser X-Patchwork-Id: 9743903 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6C8206032B for ; Tue, 23 May 2017 21:13:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6028C281E1 for ; Tue, 23 May 2017 21:13:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5323128358; Tue, 23 May 2017 21:13:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB61C281E1 for ; Tue, 23 May 2017 21:13:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967958AbdEWVNN (ORCPT ); Tue, 23 May 2017 17:13:13 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35099 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034019AbdEWVB2 (ORCPT ); Tue, 23 May 2017 17:01:28 -0400 Received: by mail-wm0-f67.google.com with SMTP id g15so22757626wmc.2; Tue, 23 May 2017 14:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=DDyOtVRLFgiOuY38oJSe2itRKXn6+yl3/8DW6rBswo4=; b=o8SK09rAZ6UlxuY+FPJN12dfsRU3yd50Va7Y9dkaaR2ViAB6mf6XGw6cjzzC5duC6/ L8lv/oNGyd10jR97JsFA6bDuKD0+8XTrRlY/hew3AaosXOVhQfTwrLFRMJKFujqqLBwG dFusV2rUjZ8Ai7jOhw5+RHCeaDsal+C4PmvxuSm9IcfWtLrev0Bjkff6w7XSYEgp/FcF d5N/0PZBHkAVIjIdVE+2igzAefOZwIPX6VqPHb11z+2iDkIKyWe2OoAsMD+WkUWz/j8N nyGMNlyV+WVqk2E24jRbdOq094WhwhSUzmTP5jf8AcY0rP7PA8W40Sy7wgM9ip4Xxr3V 7Hmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DDyOtVRLFgiOuY38oJSe2itRKXn6+yl3/8DW6rBswo4=; b=qRDhKliEuQ+yq9MhoKhHBlNDtNgIxmKYj+ZUTONQinOop7yaoglWxC1rSaKrcyBKd9 w1ou+TXM2MPJ+m+tMc90sDI9QWi9RfuQOz2vwN9M+RZn1I+NHak1uVcGXPovOn83zmec LMA87vJNsDwtMCTm1pv1C0F218x979gdhMqWiE8LUfyY2xf5GEO/U2G4+CiaioFNIqjt DK/EQay9+da5bJjpEF0+mHZ0ziExoc2btb6q3sL6fzrvi+Gt2Ksqs18X/TqGHmk1xx4k QvWdnNK8a1vfM4d+KBthx1LrkWXtK0/X/vQbaHvKtNLu2lnf11LHROH6ENHbknDrZ3Za KHxA== X-Gm-Message-State: AODbwcBNSbG1fV2ON7UrUu19dxweuKTVWtppV0ChdGpJLQiCNDQx1obK v823IKqAwQ4Uyrce X-Received: by 10.28.157.74 with SMTP id g71mr3544344wme.74.1495573276646; Tue, 23 May 2017 14:01:16 -0700 (PDT) Received: from localhost.lan ([37.209.189.139]) by smtp.googlemail.com with ESMTPSA id c8sm1473805wme.3.2017.05.23.14.01.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 May 2017 14:01:15 -0700 (PDT) From: Ralph Sennhauser To: linux-clk@vger.kernel.org Cc: Andrew Lunn , Gregory CLEMENT , Ralph Sennhauser , Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org Subject: [PATCH v2] clk: mvebu: add support for 1866MHz variants Date: Tue, 23 May 2017 23:01:06 +0200 Message-Id: <20170523210106.16307-1-ralph.sennhauser@gmail.com> X-Mailer: git-send-email 2.10.2 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Linksys WRT3200ACM CPU is clocked at 1866MHz. Add 1866MHz to the list of supported CPU frequencies. Also update multiplier and divisor for the l2clk and ddrclk. Noticed by the following warning: [ 0.000000] Selected CPU frequency (16) unsupported Signed-off-by: Ralph Sennhauser Reviewed-by: Gregory CLEMENT --- Hi everyone, This patch was part of a series adding support for the Linksys WRT3200ACM which got mostly merged already. So this one comes as a stand-alone patch intended for 4.13. Thanks Ralph --- Changes since v1: - Update multipliers for and divisors for l2clk and ddrclk --- drivers/clk/mvebu/armada-38x.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/mvebu/armada-38x.c b/drivers/clk/mvebu/armada-38x.c index 8bccf4e..394aa6f 100644 --- a/drivers/clk/mvebu/armada-38x.c +++ b/drivers/clk/mvebu/armada-38x.c @@ -49,7 +49,8 @@ static const u32 armada_38x_cpu_frequencies[] __initconst = { 0, 0, 0, 0, 1066 * 1000 * 1000, 0, 0, 0, 1332 * 1000 * 1000, 0, 0, 0, - 1600 * 1000 * 1000, + 1600 * 1000 * 1000, 0, 0, 0, + 1866 * 1000 * 1000, }; static u32 __init armada_38x_get_cpu_freq(void __iomem *sar) @@ -79,7 +80,7 @@ static const int armada_38x_cpu_l2_ratios[32][2] __initconst = { {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, - {0, 1}, {0, 1}, {0, 1}, {0, 1}, + {1, 2}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, @@ -90,7 +91,7 @@ static const int armada_38x_cpu_ddr_ratios[32][2] __initconst = { {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, - {0, 1}, {0, 1}, {0, 1}, {0, 1}, + {1, 2}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1},