Message ID | 20180118184532.6856-10-jbrunet@baylibre.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org> 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 055AB601E7 for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 18 Jan 2018 18:46:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E985A28438 for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 18 Jan 2018 18:46:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE22028446; Thu, 18 Jan 2018 18:46:17 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6F58228438 for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 18 Jan 2018 18:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=bD7vjk3dk0IxwSncgcm5uTATBanaARLpV/qel+3y5Pk=; b=Oc/QzamnuIEPD0sjJipvhDt3NR Rcp3NX5dp0iJWXkojYnBDqfGR8d9RjA3RT9Y2Cr4Y2YZ5rt+mfhl0jXddiEhOLO/VsVFYWVicxQUl w2pXzi7VUScogZFU537S3P15FDamXFRlG8qi2XzStmUY90JHD2797xhNjCXZovByjj6wWzi77y0WO bntfDhbiSJ0au6ME/IVcvZlc0mt3nBGr2GKOp4woBXSh5gIz5Fq5618J2iyPr/AgVvx0KTk7GF9Si a/mkHYmgNajaabWksEgE7Hk897AEL3RyEtVMfbrHCh6BRiWXFlcM2i6TxhCBovMvdGY9lp2Q7C/le nng/xnBA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ecFCR-0003se-Il; Thu, 18 Jan 2018 18:46:07 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ecFCF-0003bD-Ie for linux-amlogic@lists.infradead.org; Thu, 18 Jan 2018 18:45:58 +0000 Received: by mail-wm0-x241.google.com with SMTP id g1so23848237wmg.2 for <linux-amlogic@lists.infradead.org>; Thu, 18 Jan 2018 10:45:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=R6GpeAYtWpRxuOoEQheg8v/Osi3TIzDy3Z35Dyd1Ffk=; b=yWJyoCuzWqfY61qjknzbGGU/Ju3u66tSFbRli9Ym2AS7IsxdbRxEaCoKCmZeIHYtwV rQZYjyGMGKjDsVX2pgck6sTmlnCJJ7Ni4JPmRAUUvXW6hSCDffojI5wEeUUCSoaQc7hx iEb/HROYZOhPYjjvjCj6MW1N/21lgJkVYLlW2XDuDVuGmkU/+q/q1XN2MBl87Wk42aiA NRvsJD2Emn0OSsWzbnrWku1ZY2pBVLQILV9GfC+vV7kgnobYnnD5opV4nodx5ZsjENOs mpZTwH/nE09GtTIWTRFXaPmw6wy9kNUsGifiD/uzMW9QqICGuC+xvzm0SVRvTqR3zSyu wSkA== 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:in-reply-to :references; bh=R6GpeAYtWpRxuOoEQheg8v/Osi3TIzDy3Z35Dyd1Ffk=; b=qJ0FkBgpUy9oKgi1UCwOwHHUorzcjHaYRIs8ok1h9uAyfKAhM//fCVLuwGjoq0X9hU 5w/LXfZLnHFCrU+FVven4jrFXCP5W7oQMrkrutVkWmMZC2xv+ZOvXwASfU3AqI8hTjOo 0GWjG2x/Ns48INg5T7kOuiu0s6AvHkULI+YD1Svm2hi2xf9Qtf31nwQWyOuJ+Xjws6fO NHH0F+vEwt0MnksM4T14XPo0aKneeRl4ihwdEWkA9PtQPPZ48bTC6YoFCm1vSYKM+Dfh 24JW3Yl1mOQgXDcBgjhH6PbWB1pegkYfUM1YeUHIT29WuwzIslKylRWsDxYlFtkMPqz0 kHEg== X-Gm-Message-State: AKwxyteNsaqItY8T/c7dGFXPPPzUctXyLW5wSyHSMw1rmJiNGhjuEbto wsgWSgTOZoxLb0SoBe7z6jst4A== X-Google-Smtp-Source: ACJfBosvwbJy5jhglDm3/UyvWfjaYOmUgXCS5tNzr9tSE27sKqNhfteVZn0zkez/UgY+1H2uPGzw5Q== X-Received: by 10.28.199.201 with SMTP id x192mr5635429wmf.45.1516301143444; Thu, 18 Jan 2018 10:45:43 -0800 (PST) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id y62sm6240236wrb.48.2018.01.18.10.45.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Jan 2018 10:45:42 -0800 (PST) From: Jerome Brunet <jbrunet@baylibre.com> To: Neil Armstrong <narmstrong@baylibre.com> Subject: [PATCH 9/9] clk: meson: axg: add the fractional part of the fixed_pll Date: Thu, 18 Jan 2018 19:45:32 +0100 Message-Id: <20180118184532.6856-10-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180118184532.6856-1-jbrunet@baylibre.com> References: <20180118184532.6856-1-jbrunet@baylibre.com> X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Cc: Kevin Hilman <khilman@baylibre.com>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@codeaurora.org>, linux-kernel@vger.kernel.org, Carlo Caione <carlo@caione.org>, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, Jerome Brunet <jbrunet@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/clk/meson/axg.c b/drivers/clk/meson/axg.c index 56806c6bd9d5..953e119635a2 100644 --- a/drivers/clk/meson/axg.c +++ b/drivers/clk/meson/axg.c @@ -37,6 +37,11 @@ static struct meson_clk_pll axg_fixed_pll = { .shift = 16, .width = 2, }, + .frac = { + .reg_off = HHI_MPLL_CNTL2, + .shift = 0, + .width = 12, + }, .lock = &meson_clk_lock, .hw.init = &(struct clk_init_data){ .name = "fixed_pll",
The fixed_pll also has a fractional part. On axg s400 board, without this parameter, the calculated rate is off by ~8Mhz (0,4%). The fixed_pll being the root of peripheral clock tree, this error is propagated to the rest of the clocks Adding the definition of the parameter fixes the problem Fixes: 78b4af312f91 ("clk: meson-axg: add clock controller drivers") Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> --- drivers/clk/meson/axg.c | 5 +++++ 1 file changed, 5 insertions(+)