From patchwork Wed May 24 14:58:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Sennhauser X-Patchwork-Id: 9746269 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 76F1A60209 for ; Wed, 24 May 2017 14:59:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65D4C28971 for ; Wed, 24 May 2017 14:59:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58D8928984; Wed, 24 May 2017 14:59:26 +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 CC46828971 for ; Wed, 24 May 2017 14:59:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753590AbdEXO7Z (ORCPT ); Wed, 24 May 2017 10:59:25 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33331 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751189AbdEXO7X (ORCPT ); Wed, 24 May 2017 10:59:23 -0400 Received: by mail-wm0-f68.google.com with SMTP id b84so32015442wmh.0; Wed, 24 May 2017 07:59:23 -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=Pq4S95RZmE+F/9z3O9rn0mbvfM2CIZ3eTp+A8XWftpo=; b=MvrDcfXuyDrDYXYFwvhqbFa3xdOJ1n1DnDvIb3qC4qKZZRzbNxK3ag5eUUMMGaW9Lq Y3lvVg76J35H0FwSTifYBViKqWlr1zs483HxF4+sinVw1bxLH3+yTJBtF0+2gX7/h4fU 7V7741ykv8acq4zmiz4b3vEZ6leEwH4LEb/txr347a8rZ7Ee9gNWvKF/+YhX8IzQOSNW phdFquBk7paH3wCkdoK2n8a2sw5of/shOAWTqt/EGCNdvMZTh4NPb4cbQKP2I+QKAWAe yl7/kN8GSI8+5gtw6R+W8nh2kbxLfeBJLUg/CNeh/Lmsk0QgFbAACqUhvyRdUaJS8AGk h5yw== 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=Pq4S95RZmE+F/9z3O9rn0mbvfM2CIZ3eTp+A8XWftpo=; b=gSfanwbM9WdhV+/9jXjToxx3zLQSzkURr3+XLfK2it2WWNuB+9Fpn0i8ci2c5tB6HP lOjQ2d7pwgbMfC38Z4Qnfs9EILSA04hEPQ0mVB8e89jrlsI473E29pkX48Sl4dNOzHES pQwDY7DP6KNtozBXbuW5MQ4fziw6YPWdBsku7E7OVsMr4rRdUhdAZIxBVXZCcQzOF7rj IZ5LXur394RivUI/0+FJ8E9GzPNrcEkNDky9tuojwvF1Xb6xBczukzywBlVpOvzJ8WO4 pl1dzbRlsOaDdyaYaNB01FYu8CKrqX++OCajtmgzQmhWujyuuNPtWFWLuozdWxfj7Z2f lMZw== X-Gm-Message-State: AODbwcDTj+SK15rn60t+l4bkslipOoGAbTZBmzrDTvdewGK48FI0EUmE 6trXvzKkFCb6giZe X-Received: by 10.28.236.71 with SMTP id k68mr6623973wmh.107.1495637962152; Wed, 24 May 2017 07:59:22 -0700 (PDT) Received: from localhost.lan ([37.209.189.139]) by smtp.googlemail.com with ESMTPSA id 185sm5277258wmp.1.2017.05.24.07.59.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 07:59:21 -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 v3] clk: mvebu: armada-38x: add support for 1866MHz variants Date: Wed, 24 May 2017 16:58:52 +0200 Message-Id: <20170524145852.9077-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 merged already. This patch is the reminder and intended for 4.13. Thanks Ralph --- Changes since v2: - Add armada-38x tag to subject - Add collected Reviewed-by: 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},