sunxi: sun4i: improve cpu clock selection method
authorIain Paton <ipaton0@gmail.com>
Sat, 28 Mar 2015 10:25:28 +0000 (10:25 +0000)
committerHans de Goede <hdegoede@redhat.com>
Sun, 29 Mar 2015 11:08:39 +0000 (13:08 +0200)
commit7a140117ef5081e8dfef95150c788c93dabb8124
treeaf1b7e531e354e9a88779f60b79f59585acfb204
parent246e3b87870aaa774769267012f624757f28d873
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