[U-Boot] [PATCH] sunxi: clk: fix N formula for CPUX clocks

Jagan Teki jagannadh.teki at gmail.com
Mon Oct 9 10:04:13 UTC 2017


On Tue, Sep 26, 2017 at 8:05 PM, Maxime Ripard
<maxime.ripard at free-electrons.com> wrote:
> 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>

Applied to u-boot-sunxi/master

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


More information about the U-Boot mailing list