]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
OMAP2/3 clock: use clk->prcm_mod for all struct clk register addressing
authorPaul Walmsley <paul@pwsan.com>
Mon, 22 Sep 2008 14:51:14 +0000 (17:51 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 22 Sep 2008 14:51:14 +0000 (17:51 +0300)
commit8607e3ad18003020969cc5c344453d37640c678c
treeee527ae61c53397a7266288b4cccd4c1b6232499
parent91c0c979b47c44b08f80e4f8d4c990fb158d82c4
OMAP2/3 clock: use clk->prcm_mod for all struct clk register addressing

Use the clk->prcm_mod field for all register addresses in struct clk.
Remove all usage of the *_REGADDR() and *_OFFSET() macros from the
clock tree.  This eliminates a set of (__force void __iomem *) casts
and removes all of the OMAP2xxx register address rewriting.  Shrink
the width of the enable_reg/clksel_reg registers to 16 bits, saving 4
bytes per struct clk.

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/clock24xx.c
arch/arm/mach-omap2/clock24xx.h
arch/arm/mach-omap2/clock34xx.c
arch/arm/mach-omap2/clock34xx.h
arch/arm/mach-omap2/cm.h
arch/arm/plat-omap/common.c
arch/arm/plat-omap/include/mach/clock.h