]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
omap2 clock: Cleanup in clksel-related code; add sys_clkout2 divisor handling
authorPaul Walmsley <paul@pwsan.com>
Thu, 2 Aug 2007 18:10:19 +0000 (12:10 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Aug 2007 09:36:16 +0000 (02:36 -0700)
commit2ef77bb245a07cc667698ca5bbc6c903bd3cd3c4
tree826f6c2f711d4fb00fe04f00a01cd80ba3476d48
parent1bb9aa8feef2a58660666a1d62bf5b5be62cfb47
omap2 clock: Cleanup in clksel-related code; add sys_clkout2 divisor handling

Convert omap2_get_clksel to use void __iomem *.  Add
omap2_divisor_to_clksel(), to convert clock divisors into appropriate
register bit field values.  Use non-shifted register bit field masks
in clksel code, rather than masks that have been preshifted down to
bit 0 -- this simplifies existing code and facilitates the use of
symbolic constants from the recent PRCM cleanup.  Also add code to
properly handle divisors for sys_clkout2 on OMAP2420.  Previously
this clock's divisor settings were ignored.

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