]> git.karo-electronics.de Git - mv-sheeva.git/commit
ARM: davinci: streamline sysmod access
authorManjunath Hadli <manjunath.hadli@ti.com>
Wed, 21 Dec 2011 13:43:36 +0000 (19:13 +0530)
committerSekhar Nori <nsekhar@ti.com>
Fri, 24 Feb 2012 21:10:17 +0000 (02:40 +0530)
commit5cfb19ac604a68c030b245561f575c2d1bac1d49
tree2118dacf77e4f83400757a31dd94f4149e3ca495
parent39c6d2d1d743b8c925abae7043acc35e6cdc0051
ARM: davinci: streamline sysmod access

There are instances of IO_ADDRESS() being used for system module
(sysmod) register access. Eliminate this in favor of a ioremap()
based access. ioremap() the entire sysmod address space once during
boot-up and provide a helper macro to access specific register
offsets within the address space.

With this, also eliminate ioremap() of specific sysmodule registers
related to VPIF happening in DM646x EVM code.

While at it, also eliminate some duplicate sysmod register offset macros
defined in code and place offset definitions at one place in davinci.h

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
[nsekhar@ti.com: removed the addition of ifndef __ASSEMBLER__
in davinci.h, eliminate IO_ADDRESS() usage left out in dm646x.c,
cleanup VPIF sysmodule register access as part of this patch and
keep all sysmod offsets in davinci.h Also, convert the WARN_ON()
on failure to setup sysmod base to BUG_ON()]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/board-dm646x-evm.c
arch/arm/mach-davinci/davinci.h
arch/arm/mach-davinci/devices.c
arch/arm/mach-davinci/dm355.c
arch/arm/mach-davinci/dm365.c
arch/arm/mach-davinci/dm644x.c
arch/arm/mach-davinci/dm646x.c
arch/arm/mach-davinci/include/mach/hardware.h