Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753588AbdCOLkl (ORCPT ); Wed, 15 Mar 2017 07:40:41 -0400 Received: from vegas.theobroma-systems.com ([144.76.126.164]:33754 "EHLO mail.theobroma-systems.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752861AbdCOLkL (ORCPT ); Wed, 15 Mar 2017 07:40:11 -0400 X-Greylist: delayed 941 seconds by postgrey-1.27 at vger.kernel.org; Wed, 15 Mar 2017 07:40:11 EDT From: Philipp Tomsich To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Chen-Yu Tsai , Maxime Ripard , Stephen Boyd , Philipp Tomsich Subject: [PATCH] clk: sunxi-ng: Fix div/mult settings for osc12M on A64 Date: Wed, 15 Mar 2017 12:23:58 +0100 Message-Id: <1489577038-34773-1-git-send-email-philipp.tomsich@theobroma-systems.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1026 Lines: 28 The mult/div for osc12M was previously backwards (giving a 48M rate for osc12M). Fix it. X-AffectedPlatforms: A64-uQ7 Signed-off-by: Philipp Tomsich Tested-by: Christoph Muellner Cc: Maxime Ripard --- drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c index e3c084c..f54114c 100644 --- a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c +++ b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c @@ -566,7 +566,7 @@ static SUNXI_CCU_M_WITH_GATE(gpu_clk, "gpu", "pll-gpu", 0x1a0, 0, 3, BIT(31), CLK_SET_RATE_PARENT); /* Fixed Factor clocks */ -static CLK_FIXED_FACTOR(osc12M_clk, "osc12M", "osc24M", 1, 2, 0); +static CLK_FIXED_FACTOR(osc12M_clk, "osc12M", "osc24M", 2, 1, 0); /* We hardcode the divider to 4 for now */ static CLK_FIXED_FACTOR(pll_audio_clk, "pll-audio", -- 1.9.1