]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP1: Fix reprogramming of DPLL1 for systems that boot at rates below 60MHz
authorTony Lindgren <tony@atomide.com>
Fri, 2 Dec 2011 01:47:06 +0000 (17:47 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 2 Dec 2011 01:47:06 +0000 (17:47 -0800)
commitbff56b825615a26afbc4aca86084ca29d06bea2f
treee11c493ab95ac78e8ab7d0da8eaf4e590408fa67
parent61540ae4e6374ba2bac1f9c72ad02736ba394640
ARM: OMAP1: Fix reprogramming of DPLL1 for systems that boot at rates below 60MHz

Commit 196eda1c6869a5b2733c867ab6463bafa58af5e5 (ARM: OMAP: Fix
reprogramming of dpll1 rate) fixed a regression for systems that
did not rely on bootloader set rates.

However, it also introduced a new problem where the rates selected
in .config would not take affect as omap1_select_table_rate
currently refuses to reprogram DPLL1 if it's already initialized.

This was not a problem earlier, as the reprogramming was done
earlier with ck_dpll1_p->rate uninitialized.

Fix this by forcing the reprogramming on systems booting at rates
below 60MHz. Note that the long term fix is to make the rates
SoC specific later on.

Thanks for Janusz Krzysztofik <jkrzyszt@tis.icnet.pl> for figuring
this one out.

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