]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
omap2 clock: fix clksel divisor bug
authorPaul Walmsley <paul@pwsan.com>
Thu, 2 Aug 2007 18:10:05 +0000 (12:10 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Aug 2007 09:34:50 +0000 (02:34 -0700)
commiteb589a09a6feab16bdada3fb6c25a571c04b9362
treec2968112ba5b8036177a8a9c56d62f12dd699bde
parent18fc252e78d914a150e278682425303c132a688d
omap2 clock: fix clksel divisor bug

For clksel clocks, omap2_clk_set_rate() incorrectly divides the parent
clock's rate by the actual bits of the register field, rather than the
translated divisor value.  This happens to work for most clksel
clocks, since the register bit fields are equal to the divisor values.
But for some clocks, such as sys_clkout, the code gets the resulting
rate wrong.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c