diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2008-04-18 17:43:11 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2008-04-18 17:43:11 -0400 |
commit | 9a386f0651d06002a0468ce4d0e15aaf7c316a3c (patch) | |
tree | bd57c73634d9d59ab9d4776c605dfce31ccd5234 /arch/arm/mach-realview/realview_eb.c | |
parent | 80192735e4b01a2e4d437699f2e9b5b93dfab13c (diff) |
RealView: Move the UART definitions to EB specific files
Since the PB1176 has different UART base addresses, this patch moves
the definitions form platorm.h to board-eb.h. It also modifies
uncompress.h to detect the platform type at run-time.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/mach-realview/realview_eb.c')
-rw-r--r-- | arch/arm/mach-realview/realview_eb.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c index c5e5f07b5f5e..f970c9fb155a 100644 --- a/arch/arm/mach-realview/realview_eb.c +++ b/arch/arm/mach-realview/realview_eb.c | |||
@@ -78,8 +78,8 @@ static struct map_desc realview_eb_io_desc[] __initdata = { | |||
78 | }, | 78 | }, |
79 | #ifdef CONFIG_DEBUG_LL | 79 | #ifdef CONFIG_DEBUG_LL |
80 | { | 80 | { |
81 | .virtual = IO_ADDRESS(REALVIEW_UART0_BASE), | 81 | .virtual = IO_ADDRESS(REALVIEW_EB_UART0_BASE), |
82 | .pfn = __phys_to_pfn(REALVIEW_UART0_BASE), | 82 | .pfn = __phys_to_pfn(REALVIEW_EB_UART0_BASE), |
83 | .length = SZ_4K, | 83 | .length = SZ_4K, |
84 | .type = MT_DEVICE, | 84 | .type = MT_DEVICE, |
85 | } | 85 | } |
@@ -164,14 +164,14 @@ static void __init realview_eb_map_io(void) | |||
164 | */ | 164 | */ |
165 | #define SCI_IRQ { IRQ_EB_SCI, NO_IRQ } | 165 | #define SCI_IRQ { IRQ_EB_SCI, NO_IRQ } |
166 | #define SCI_DMA { 7, 6 } | 166 | #define SCI_DMA { 7, 6 } |
167 | #define UART0_IRQ { IRQ_EB_UART0, NO_IRQ } | 167 | #define EB_UART0_IRQ { IRQ_EB_UART0, NO_IRQ } |
168 | #define UART0_DMA { 15, 14 } | 168 | #define EB_UART0_DMA { 15, 14 } |
169 | #define UART1_IRQ { IRQ_EB_UART1, NO_IRQ } | 169 | #define EB_UART1_IRQ { IRQ_EB_UART1, NO_IRQ } |
170 | #define UART1_DMA { 13, 12 } | 170 | #define EB_UART1_DMA { 13, 12 } |
171 | #define UART2_IRQ { IRQ_EB_UART2, NO_IRQ } | 171 | #define EB_UART2_IRQ { IRQ_EB_UART2, NO_IRQ } |
172 | #define UART2_DMA { 11, 10 } | 172 | #define EB_UART2_DMA { 11, 10 } |
173 | #define UART3_IRQ { IRQ_EB_UART3, NO_IRQ } | 173 | #define EB_UART3_IRQ { IRQ_EB_UART3, NO_IRQ } |
174 | #define UART3_DMA { 0x86, 0x87 } | 174 | #define EB_UART3_DMA { 0x86, 0x87 } |
175 | #define SSP_IRQ { IRQ_EB_SSP, NO_IRQ } | 175 | #define SSP_IRQ { IRQ_EB_SSP, NO_IRQ } |
176 | #define SSP_DMA { 9, 8 } | 176 | #define SSP_DMA { 9, 8 } |
177 | 177 | ||
@@ -180,7 +180,7 @@ AMBA_DEVICE(aaci, "fpga:04", AACI, NULL); | |||
180 | AMBA_DEVICE(mmc0, "fpga:05", MMCI0, &realview_mmc0_plat_data); | 180 | AMBA_DEVICE(mmc0, "fpga:05", MMCI0, &realview_mmc0_plat_data); |
181 | AMBA_DEVICE(kmi0, "fpga:06", KMI0, NULL); | 181 | AMBA_DEVICE(kmi0, "fpga:06", KMI0, NULL); |
182 | AMBA_DEVICE(kmi1, "fpga:07", KMI1, NULL); | 182 | AMBA_DEVICE(kmi1, "fpga:07", KMI1, NULL); |
183 | AMBA_DEVICE(uart3, "fpga:09", UART3, NULL); | 183 | AMBA_DEVICE(uart3, "fpga:09", EB_UART3, NULL); |
184 | 184 | ||
185 | /* DevChip Primecells */ | 185 | /* DevChip Primecells */ |
186 | AMBA_DEVICE(smc, "dev:00", SMC, NULL); | 186 | AMBA_DEVICE(smc, "dev:00", SMC, NULL); |
@@ -193,9 +193,9 @@ AMBA_DEVICE(gpio1, "dev:e5", GPIO1, NULL); | |||
193 | AMBA_DEVICE(gpio2, "dev:e6", GPIO2, NULL); | 193 | AMBA_DEVICE(gpio2, "dev:e6", GPIO2, NULL); |
194 | AMBA_DEVICE(rtc, "dev:e8", RTC, NULL); | 194 | AMBA_DEVICE(rtc, "dev:e8", RTC, NULL); |
195 | AMBA_DEVICE(sci0, "dev:f0", SCI, NULL); | 195 | AMBA_DEVICE(sci0, "dev:f0", SCI, NULL); |
196 | AMBA_DEVICE(uart0, "dev:f1", UART0, NULL); | 196 | AMBA_DEVICE(uart0, "dev:f1", EB_UART0, NULL); |
197 | AMBA_DEVICE(uart1, "dev:f2", UART1, NULL); | 197 | AMBA_DEVICE(uart1, "dev:f2", EB_UART1, NULL); |
198 | AMBA_DEVICE(uart2, "dev:f3", UART2, NULL); | 198 | AMBA_DEVICE(uart2, "dev:f3", EB_UART2, NULL); |
199 | AMBA_DEVICE(ssp0, "dev:f4", SSP, NULL); | 199 | AMBA_DEVICE(ssp0, "dev:f4", SSP, NULL); |
200 | 200 | ||
201 | static struct amba_device *amba_devs[] __initdata = { | 201 | static struct amba_device *amba_devs[] __initdata = { |
@@ -388,8 +388,8 @@ static void __init realview_eb_init(void) | |||
388 | 388 | ||
389 | MACHINE_START(REALVIEW_EB, "ARM-RealView EB") | 389 | MACHINE_START(REALVIEW_EB, "ARM-RealView EB") |
390 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ | 390 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ |
391 | .phys_io = REALVIEW_UART0_BASE, | 391 | .phys_io = REALVIEW_EB_UART0_BASE, |
392 | .io_pg_offst = (IO_ADDRESS(REALVIEW_UART0_BASE) >> 18) & 0xfffc, | 392 | .io_pg_offst = (IO_ADDRESS(REALVIEW_EB_UART0_BASE) >> 18) & 0xfffc, |
393 | .boot_params = 0x00000100, | 393 | .boot_params = 0x00000100, |
394 | .map_io = realview_eb_map_io, | 394 | .map_io = realview_eb_map_io, |
395 | .init_irq = gic_init_irq, | 395 | .init_irq = gic_init_irq, |