diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-04-14 08:04:16 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-04-23 12:31:09 -0400 |
commit | f5c122da543ebf98a5ccb3166768e38eea3120dd (patch) | |
tree | 0275d0646aab07c8e3bf9ef5a22572bcf668f400 /arch/arm/mach-davinci/irq.c | |
parent | c5b736d093217890245a33e9a98fe92d6f3529bf (diff) |
davinci: add arch_ioremap() which uses existing static mappings
Add arch-specific ioremap() which uses any existing static mappings in
place of doing a new mapping. From now on, drivers should always use
ioremap() instead of IO_ADDRESS().
In addition, remove the davinci_[read|write]* macros in favor of using
ioremap.
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/irq.c')
-rw-r--r-- | arch/arm/mach-davinci/irq.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-davinci/irq.c b/arch/arm/mach-davinci/irq.c index 38021af8359a..e76835cf1018 100644 --- a/arch/arm/mach-davinci/irq.c +++ b/arch/arm/mach-davinci/irq.c | |||
@@ -40,14 +40,16 @@ | |||
40 | #define IRQ_INTPRI0_REG_OFFSET 0x0030 | 40 | #define IRQ_INTPRI0_REG_OFFSET 0x0030 |
41 | #define IRQ_INTPRI7_REG_OFFSET 0x004C | 41 | #define IRQ_INTPRI7_REG_OFFSET 0x004C |
42 | 42 | ||
43 | #define INTC_BASE IO_ADDRESS(DAVINCI_ARM_INTC_BASE) | ||
44 | |||
43 | static inline unsigned int davinci_irq_readl(int offset) | 45 | static inline unsigned int davinci_irq_readl(int offset) |
44 | { | 46 | { |
45 | return davinci_readl(DAVINCI_ARM_INTC_BASE + offset); | 47 | return __raw_readl(INTC_BASE + offset); |
46 | } | 48 | } |
47 | 49 | ||
48 | static inline void davinci_irq_writel(unsigned long value, int offset) | 50 | static inline void davinci_irq_writel(unsigned long value, int offset) |
49 | { | 51 | { |
50 | davinci_writel(value, DAVINCI_ARM_INTC_BASE + offset); | 52 | __raw_writel(value, INTC_BASE + offset); |
51 | } | 53 | } |
52 | 54 | ||
53 | /* Disable interrupt */ | 55 | /* Disable interrupt */ |