OMAP3 clock: skip reserved FREQSEL settings
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | OMAP3 clock: remove unnecessary dpll_data dereferencesarch/ | +13 | 0 replies | |
| 2/3 | OMAP3 clock: optimize DPLL rate rounding algorithmarch/ | +18 | 0 replies | |
| 3/3 | OMAP3 clock: avoid invalid FREQSEL values during DPLL rate roundingarch/ arch/ arch/ +1 more | +71 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] OMAP3 clock: skip reserved FREQSEL settings
Hello,
this series fixes a bug in the OMAP3 DPLL rate rounding code that will attempt to program the DPLL to use an internal clock frequency that does not exist in the FREQSEL table in 34xx TRM 4.7.6.2. This mostly seems to generate warnings, but can potentially hang the system.
As part of this process, improve the DPLL rate rounding algorithm to start from a low divider (N) and count up; this should result in fewer passes through the loop.
Tested on 3430SDP ES2 and a custom ES3 board. Thanks to Peter de Schrijver <[email protected]> for help with these patches.
- Paul
---
text data bss dec hex filename
3574155 189440 108880 3872475 3b16db vmlinux.3430sdp.orig 3574251 189440 108880 3872571 3b173b vmlinux.3430sdp
arch/arm/mach-omap2/clock.c | 118 ++++++++++++++++++++++++------- arch/arm/mach-omap2/clock24xx.h | 1 arch/arm/mach-omap2/clock34xx.h | 5 + arch/arm/plat-omap/include/mach/clock.h | 1 4 files changed, 99 insertions(+), 26 deletions(-)