]> git.sur5r.net Git - u-boot/commit
sunxi: Fix PLL1 running at half speed on sun8i
authorHans de Goede <hdegoede@redhat.com>
Sat, 27 Dec 2014 16:56:59 +0000 (17:56 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 14 Jan 2015 13:56:37 +0000 (14:56 +0100)
commit25508ab26cb9ceb8ac9cdf12a851b7047fa791b2
treec472b895a16a2ca13c3a625cd83bbf4ac8013019
parentc3d2b963c6a0b85a60c918b970db59c5b210fc98
sunxi: Fix PLL1 running at half speed on sun8i

PLL1 on sun6i / sun8i also has a p factor which divides the clock by
2^p (to the power p). On sun6i the p factor is ignored, but on sun8i it is
used and we were setting it to 1, resulting in the CPU running at 504 MHz
instead of 1008 MHz, this commit fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/cpu/armv7/sunxi/clock_sun6i.c
arch/arm/include/asm/arch-sunxi/clock_sun6i.h