[U-Boot] [PATCH] sunxi: clk: fix N formula for CPUX clocks
Maxime Ripard
maxime.ripard at free-electrons.com
Tue Sep 26 14:35:33 UTC 2017
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 <quentin.schulz at free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard at free-electrons.com>
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: <http://lists.denx.de/pipermail/u-boot/attachments/20170926/ae783a5b/attachment.sig>
More information about the U-Boot
mailing list