From: Maxime Ripard Date: Tue, 26 Sep 2017 16:35:33 +0200 Subject: [U-Boot] [PATCH] sunxi: clk: fix N formula for CPUX clocks In-Reply-To: <20170926140247.26236-1-quentin.schulz@free-electrons.com> References: <20170926140247.26236-1-quentin.schulz@free-electrons.com> Message-ID: <20170926143533.cmq7vrbkidmjt7xb@flea> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Sep 26, 2017 at 02:02:47PM +0000, Quentin Schulz wrote: > As explained in arch/arm/mach-sunxi/clock_sun8i_a83t.c, clk for CPU > clusters is computed as clk = 24*n. However, the current formula is clk > = 24*(n-1). > > This results in a clock set to a frequency that isn't specified as > possible for CPUs. > > Let's use the correct formula. > > Fixes: f542948b1e8c ("sunxi: clk: add basic clocks for A83T") > Signed-off-by: Quentin Schulz Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: