]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
omap2 clock: vlynq_fck recalc should be clksel, not followparent
authorPaul Walmsley <paul@pwsan.com>
Thu, 2 Aug 2007 18:10:06 +0000 (12:10 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Aug 2007 09:34:56 +0000 (02:34 -0700)
commitc1b2cf16b99e46867ff3aafffce691a6cf0ecd12
tree38a3104beb89c4e5542082c4f7f94b140e54bb57
parenteb589a09a6feab16bdada3fb6c25a571c04b9362
omap2 clock: vlynq_fck recalc should be clksel, not followparent

vlynq_fck is a clksel clock, so its rate is equal to its parent's
rate, divided by whichever divisor is selected.  But its definition in
clock.h specifies omap2_followparent_recalc() as its rate calculation
code, which sets the clock's rate to that of its parent without
accounting for any divisor.  Fix to use omap2_clksel_recalc() instead.
omap2_clksel_recalc() is also missing the appropriate special case to
divide the vlynq_fck rate down; add this in.

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