diff options
Diffstat (limited to 'arch/arm/mach-orion5x/common.c')
-rw-r--r-- | arch/arm/mach-orion5x/common.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c index 410291c67666..a890cb0eb83d 100644 --- a/arch/arm/mach-orion5x/common.c +++ b/arch/arm/mach-orion5x/common.c | |||
@@ -42,22 +42,22 @@ | |||
42 | ****************************************************************************/ | 42 | ****************************************************************************/ |
43 | static struct map_desc orion5x_io_desc[] __initdata = { | 43 | static struct map_desc orion5x_io_desc[] __initdata = { |
44 | { | 44 | { |
45 | .virtual = ORION5X_REGS_VIRT_BASE, | 45 | .virtual = (unsigned long) ORION5X_REGS_VIRT_BASE, |
46 | .pfn = __phys_to_pfn(ORION5X_REGS_PHYS_BASE), | 46 | .pfn = __phys_to_pfn(ORION5X_REGS_PHYS_BASE), |
47 | .length = ORION5X_REGS_SIZE, | 47 | .length = ORION5X_REGS_SIZE, |
48 | .type = MT_DEVICE, | 48 | .type = MT_DEVICE, |
49 | }, { | 49 | }, { |
50 | .virtual = ORION5X_PCIE_IO_VIRT_BASE, | 50 | .virtual = (unsigned long) ORION5X_PCIE_IO_VIRT_BASE, |
51 | .pfn = __phys_to_pfn(ORION5X_PCIE_IO_PHYS_BASE), | 51 | .pfn = __phys_to_pfn(ORION5X_PCIE_IO_PHYS_BASE), |
52 | .length = ORION5X_PCIE_IO_SIZE, | 52 | .length = ORION5X_PCIE_IO_SIZE, |
53 | .type = MT_DEVICE, | 53 | .type = MT_DEVICE, |
54 | }, { | 54 | }, { |
55 | .virtual = ORION5X_PCI_IO_VIRT_BASE, | 55 | .virtual = (unsigned long) ORION5X_PCI_IO_VIRT_BASE, |
56 | .pfn = __phys_to_pfn(ORION5X_PCI_IO_PHYS_BASE), | 56 | .pfn = __phys_to_pfn(ORION5X_PCI_IO_PHYS_BASE), |
57 | .length = ORION5X_PCI_IO_SIZE, | 57 | .length = ORION5X_PCI_IO_SIZE, |
58 | .type = MT_DEVICE, | 58 | .type = MT_DEVICE, |
59 | }, { | 59 | }, { |
60 | .virtual = ORION5X_PCIE_WA_VIRT_BASE, | 60 | .virtual = (unsigned long) ORION5X_PCIE_WA_VIRT_BASE, |
61 | .pfn = __phys_to_pfn(ORION5X_PCIE_WA_PHYS_BASE), | 61 | .pfn = __phys_to_pfn(ORION5X_PCIE_WA_PHYS_BASE), |
62 | .length = ORION5X_PCIE_WA_SIZE, | 62 | .length = ORION5X_PCIE_WA_SIZE, |
63 | .type = MT_DEVICE, | 63 | .type = MT_DEVICE, |
@@ -156,7 +156,8 @@ void __init orion5x_spi_init() | |||
156 | ****************************************************************************/ | 156 | ****************************************************************************/ |
157 | void __init orion5x_uart0_init(void) | 157 | void __init orion5x_uart0_init(void) |
158 | { | 158 | { |
159 | orion_uart0_init(UART0_VIRT_BASE, UART0_PHYS_BASE, | 159 | orion_uart0_init((unsigned long) UART0_VIRT_BASE, |
160 | UART0_PHYS_BASE, | ||
160 | IRQ_ORION5X_UART0, tclk); | 161 | IRQ_ORION5X_UART0, tclk); |
161 | } | 162 | } |
162 | 163 | ||
@@ -165,7 +166,8 @@ void __init orion5x_uart0_init(void) | |||
165 | ****************************************************************************/ | 166 | ****************************************************************************/ |
166 | void __init orion5x_uart1_init(void) | 167 | void __init orion5x_uart1_init(void) |
167 | { | 168 | { |
168 | orion_uart1_init(UART1_VIRT_BASE, UART1_PHYS_BASE, | 169 | orion_uart1_init((unsigned long) UART1_VIRT_BASE, |
170 | UART1_PHYS_BASE, | ||
169 | IRQ_ORION5X_UART1, tclk); | 171 | IRQ_ORION5X_UART1, tclk); |
170 | } | 172 | } |
171 | 173 | ||
@@ -203,7 +205,7 @@ void __init orion5x_wdt_init(void) | |||
203 | ****************************************************************************/ | 205 | ****************************************************************************/ |
204 | void __init orion5x_init_early(void) | 206 | void __init orion5x_init_early(void) |
205 | { | 207 | { |
206 | orion_time_set_base(TIMER_VIRT_BASE); | 208 | orion_time_set_base((unsigned long) TIMER_VIRT_BASE); |
207 | } | 209 | } |
208 | 210 | ||
209 | int orion5x_tclk; | 211 | int orion5x_tclk; |
@@ -224,7 +226,8 @@ static void __init orion5x_timer_init(void) | |||
224 | { | 226 | { |
225 | orion5x_tclk = orion5x_find_tclk(); | 227 | orion5x_tclk = orion5x_find_tclk(); |
226 | 228 | ||
227 | orion_time_init(ORION5X_BRIDGE_VIRT_BASE, BRIDGE_INT_TIMER1_CLR, | 229 | orion_time_init((unsigned long) ORION5X_BRIDGE_VIRT_BASE, |
230 | BRIDGE_INT_TIMER1_CLR, | ||
228 | IRQ_ORION5X_BRIDGE, orion5x_tclk); | 231 | IRQ_ORION5X_BRIDGE, orion5x_tclk); |
229 | } | 232 | } |
230 | 233 | ||