ARM: OMAP1: Always reprogram dpll1 rate at boot
authorJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Sun, 4 Dec 2011 15:07:47 +0000 (16:07 +0100)
committerTony Lindgren <tony@atomide.com>
Fri, 9 Dec 2011 02:02:28 +0000 (18:02 -0800)
commitc116abc43df9ce3ebe5fbf2fbd6ae2edd6a9bd87
tree192d5179faf468851e1782273a788d275e0c8213
parentf9e5908fa04e15a681dc4695b53c2c0c1d9b9a03
ARM: OMAP1: Always reprogram dpll1 rate at boot

DPLL1 reprogramming to a different rate is actually blocked inside
omap1_select_table_rate(). However, it is already forced at boot, for
boards which boot at unusable clock rates, and this seems to work
correctly.

OTOH, we now have a fine, run time performed clock selection algorithm
implemented, which prevents less powerfull SoCs from being overclocked
unintentionally.

Allow reprogramming of dpll1 by default, and use it for switching to the
higest supported clock rate with all boards, including those already
booting at a usable rate of 60 MHz or above.

Created against linux-omap/master tip as of Thu Dec 1,
commit f83c2a8cbb59981722d1ab610c79adfd034a2667. Requires the just
submitted patch "ARM: OMAP1: Move dpll1 rates selection from config to
runtime" to prevent from unintentional overclocking. Tested on Amstrad
Delta.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/clock.c
arch/arm/mach-omap1/clock_data.c