]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
sunxi: sun4i: improve cpu clock selection method
authorIain Paton <ipaton0@gmail.com>
Sat, 28 Mar 2015 10:25:28 +0000 (10:25 +0000)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:35:12 +0000 (14:35 +0200)
commitd3a34ff69c112f032311274cb1e6792fd1142a40
tree5f9c369c424f0b49851a7ebebbcdba204f483b6c
parent89716d740790cb48df4f12b4e671f5bf48d7d1c7
sunxi: sun4i: improve cpu clock selection method

clock_set_pll1 would pick the next highest available cpu clock speed if
a value not in the pre defined table was selected. this potentially
results in overclocking the soc.

reverse the selection method so that we select the next lowest speed
and add the missing 912Mhz setting that's requested by sun7i which also
uses the sun4i clock code.

Signed-off-by: Iain Paton <ipaton0@gmail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/cpu/armv7/sunxi/clock_sun4i.c