diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-01-17 15:45:12 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-05-02 04:35:29 -0400 |
commit | b830b9b5b3d04bc22f0b9ded85b713f7d3c11b7f (patch) | |
tree | a0abbc79d08f1bfbe65fb1ea9b48dae8c374f780 | |
parent | 7d60a044c8226d86fa93c2cf90ccdb97e3ba28fa (diff) |
ARM: Integrator: convert to use register definitions
Rather than using converted base address plus offset, use the register
address itself now that IO_ADDRESS() can cope with these.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/mach-integrator/core.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-integrator/cpu.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_ap.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-integrator/pci_v3.c | 6 |
5 files changed, 19 insertions, 19 deletions
diff --git a/arch/arm/mach-integrator/core.c b/arch/arm/mach-integrator/core.c index d02f0e3afdcb..ac2b0c5c991b 100644 --- a/arch/arm/mach-integrator/core.c +++ b/arch/arm/mach-integrator/core.c | |||
@@ -166,8 +166,8 @@ arch_initcall(integrator_init); | |||
166 | * UART0 7 6 | 166 | * UART0 7 6 |
167 | * UART1 5 4 | 167 | * UART1 5 4 |
168 | */ | 168 | */ |
169 | #define SC_CTRLC (IO_ADDRESS(INTEGRATOR_SC_BASE) + INTEGRATOR_SC_CTRLC_OFFSET) | 169 | #define SC_CTRLC IO_ADDRESS(INTEGRATOR_SC_CTRLC) |
170 | #define SC_CTRLS (IO_ADDRESS(INTEGRATOR_SC_BASE) + INTEGRATOR_SC_CTRLS_OFFSET) | 170 | #define SC_CTRLS IO_ADDRESS(INTEGRATOR_SC_CTRLS) |
171 | 171 | ||
172 | static void integrator_uart_set_mctrl(struct amba_device *dev, void __iomem *base, unsigned int mctrl) | 172 | static void integrator_uart_set_mctrl(struct amba_device *dev, void __iomem *base, unsigned int mctrl) |
173 | { | 173 | { |
@@ -199,7 +199,7 @@ static struct amba_pl010_data integrator_uart_data = { | |||
199 | .set_mctrl = integrator_uart_set_mctrl, | 199 | .set_mctrl = integrator_uart_set_mctrl, |
200 | }; | 200 | }; |
201 | 201 | ||
202 | #define CM_CTRL IO_ADDRESS(INTEGRATOR_HDR_BASE) + INTEGRATOR_HDR_CTRL_OFFSET | 202 | #define CM_CTRL IO_ADDRESS(INTEGRATOR_HDR_CTRL) |
203 | 203 | ||
204 | static DEFINE_SPINLOCK(cm_lock); | 204 | static DEFINE_SPINLOCK(cm_lock); |
205 | 205 | ||
@@ -224,9 +224,9 @@ EXPORT_SYMBOL(cm_control); | |||
224 | /* | 224 | /* |
225 | * Where is the timer (VA)? | 225 | * Where is the timer (VA)? |
226 | */ | 226 | */ |
227 | #define TIMER0_VA_BASE (IO_ADDRESS(INTEGRATOR_CT_BASE)+0x00000000) | 227 | #define TIMER0_VA_BASE IO_ADDRESS(INTEGRATOR_TIMER0_BASE) |
228 | #define TIMER1_VA_BASE (IO_ADDRESS(INTEGRATOR_CT_BASE)+0x00000100) | 228 | #define TIMER1_VA_BASE IO_ADDRESS(INTEGRATOR_TIMER1_BASE) |
229 | #define TIMER2_VA_BASE (IO_ADDRESS(INTEGRATOR_CT_BASE)+0x00000200) | 229 | #define TIMER2_VA_BASE IO_ADDRESS(INTEGRATOR_TIMER2_BASE) |
230 | 230 | ||
231 | /* | 231 | /* |
232 | * How long is the timer interval? | 232 | * How long is the timer interval? |
diff --git a/arch/arm/mach-integrator/cpu.c b/arch/arm/mach-integrator/cpu.c index b7618790460a..7f1b73b776a7 100644 --- a/arch/arm/mach-integrator/cpu.c +++ b/arch/arm/mach-integrator/cpu.c | |||
@@ -26,10 +26,10 @@ | |||
26 | 26 | ||
27 | static struct cpufreq_driver integrator_driver; | 27 | static struct cpufreq_driver integrator_driver; |
28 | 28 | ||
29 | #define CM_ID (IO_ADDRESS(INTEGRATOR_HDR_BASE)+INTEGRATOR_HDR_ID_OFFSET) | 29 | #define CM_ID IO_ADDRESS(INTEGRATOR_HDR_ID) |
30 | #define CM_OSC (IO_ADDRESS(INTEGRATOR_HDR_BASE)+INTEGRATOR_HDR_OSC_OFFSET) | 30 | #define CM_OSC IO_ADDRESS(INTEGRATOR_HDR_OSC) |
31 | #define CM_STAT (IO_ADDRESS(INTEGRATOR_HDR_BASE)+INTEGRATOR_HDR_STAT_OFFSET) | 31 | #define CM_STAT IO_ADDRESS(INTEGRATOR_HDR_STAT) |
32 | #define CM_LOCK (IO_ADDRESS(INTEGRATOR_HDR_BASE)+INTEGRATOR_HDR_LOCK_OFFSET) | 32 | #define CM_LOCK IO_ADDRESS(INTEGRATOR_HDR_LOCK) |
33 | 33 | ||
34 | static const struct icst525_params lclk_params = { | 34 | static const struct icst525_params lclk_params = { |
35 | .ref = 24000, | 35 | .ref = 24000, |
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index 45bba041c8d0..c89b231898e6 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c | |||
@@ -56,7 +56,7 @@ | |||
56 | #define VA_IC_BASE IO_ADDRESS(INTEGRATOR_IC_BASE) | 56 | #define VA_IC_BASE IO_ADDRESS(INTEGRATOR_IC_BASE) |
57 | #define VA_SC_BASE IO_ADDRESS(INTEGRATOR_SC_BASE) | 57 | #define VA_SC_BASE IO_ADDRESS(INTEGRATOR_SC_BASE) |
58 | #define VA_EBI_BASE IO_ADDRESS(INTEGRATOR_EBI_BASE) | 58 | #define VA_EBI_BASE IO_ADDRESS(INTEGRATOR_EBI_BASE) |
59 | #define VA_CMIC_BASE IO_ADDRESS(INTEGRATOR_HDR_BASE) + INTEGRATOR_HDR_IC_OFFSET | 59 | #define VA_CMIC_BASE IO_ADDRESS(INTEGRATOR_HDR_IC) |
60 | 60 | ||
61 | /* | 61 | /* |
62 | * Logical Physical | 62 | * Logical Physical |
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index 333c297a97cc..c0161df9d9a2 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -47,7 +47,7 @@ | |||
47 | 47 | ||
48 | #define INTCP_PA_CLCD_BASE 0xc0000000 | 48 | #define INTCP_PA_CLCD_BASE 0xc0000000 |
49 | 49 | ||
50 | #define INTCP_VA_CIC_BASE IO_ADDRESS(INTEGRATOR_HDR_BASE) + 0x40 | 50 | #define INTCP_VA_CIC_BASE IO_ADDRESS(INTEGRATOR_HDR_BASE + 0x40) |
51 | #define INTCP_VA_PIC_BASE IO_ADDRESS(INTEGRATOR_IC_BASE) | 51 | #define INTCP_VA_PIC_BASE IO_ADDRESS(INTEGRATOR_IC_BASE) |
52 | #define INTCP_VA_SIC_BASE IO_ADDRESS(INTEGRATOR_CP_SIC_BASE) | 52 | #define INTCP_VA_SIC_BASE IO_ADDRESS(INTEGRATOR_CP_SIC_BASE) |
53 | 53 | ||
@@ -265,8 +265,8 @@ static void __init intcp_init_irq(void) | |||
265 | /* | 265 | /* |
266 | * Clock handling | 266 | * Clock handling |
267 | */ | 267 | */ |
268 | #define CM_LOCK (IO_ADDRESS(INTEGRATOR_HDR_BASE)+INTEGRATOR_HDR_LOCK_OFFSET) | 268 | #define CM_LOCK IO_ADDRESS(INTEGRATOR_HDR_LOCK) |
269 | #define CM_AUXOSC (IO_ADDRESS(INTEGRATOR_HDR_BASE)+0x1c) | 269 | #define CM_AUXOSC IO_ADDRESS(INTEGRATOR_HDR_BASE + 0x1c) |
270 | 270 | ||
271 | static const struct icst525_params cp_auxvco_params = { | 271 | static const struct icst525_params cp_auxvco_params = { |
272 | .ref = 24000, | 272 | .ref = 24000, |
@@ -393,8 +393,8 @@ static struct platform_device *intcp_devs[] __initdata = { | |||
393 | */ | 393 | */ |
394 | static unsigned int mmc_status(struct device *dev) | 394 | static unsigned int mmc_status(struct device *dev) |
395 | { | 395 | { |
396 | unsigned int status = readl(IO_ADDRESS(0xca000000) + 4); | 396 | unsigned int status = readl(IO_ADDRESS(0xca000000 + 4)); |
397 | writel(8, IO_ADDRESS(INTEGRATOR_CP_CTL_BASE) + 8); | 397 | writel(8, IO_ADDRESS(INTEGRATOR_CP_CTL_BASE + 8)); |
398 | 398 | ||
399 | return status & 8; | 399 | return status & 8; |
400 | } | 400 | } |
diff --git a/arch/arm/mach-integrator/pci_v3.c b/arch/arm/mach-integrator/pci_v3.c index e87fe9fa4344..e5491629c6da 100644 --- a/arch/arm/mach-integrator/pci_v3.c +++ b/arch/arm/mach-integrator/pci_v3.c | |||
@@ -391,9 +391,9 @@ static int __init pci_v3_setup_resources(struct resource **resource) | |||
391 | * means I can't get additional information on the reason for the pm2fb | 391 | * means I can't get additional information on the reason for the pm2fb |
392 | * problems. I suppose I'll just have to mind-meld with the machine. ;) | 392 | * problems. I suppose I'll just have to mind-meld with the machine. ;) |
393 | */ | 393 | */ |
394 | #define SC_PCI (IO_ADDRESS(INTEGRATOR_SC_BASE) + INTEGRATOR_SC_PCIENABLE_OFFSET) | 394 | #define SC_PCI IO_ADDRESS(INTEGRATOR_SC_PCIENABLE) |
395 | #define SC_LBFADDR (IO_ADDRESS(INTEGRATOR_SC_BASE) + 0x20) | 395 | #define SC_LBFADDR IO_ADDRESS(INTEGRATOR_SC_BASE + 0x20) |
396 | #define SC_LBFCODE (IO_ADDRESS(INTEGRATOR_SC_BASE) + 0x24) | 396 | #define SC_LBFCODE IO_ADDRESS(INTEGRATOR_SC_BASE + 0x24) |
397 | 397 | ||
398 | static int | 398 | static int |
399 | v3_pci_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | 399 | v3_pci_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) |