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 | 393538e6d2ea1afe42c4ae9382cc78ed51a479f9 (patch) | |
| tree | 56ef3f5f64e242bb051ef786936f6c2d88ad9e07 | |
| parent | 9a386f0651d06002a0468ce4d0e15aaf7c316a3c (diff) | |
RealView: Move more device address definitions to board-eb.h
The upcoming PB11MPCore and PB1176 have different memory maps and some
of the definitions in platform.h are no longer common. This patch
moves them to the board-eb.h file and updates their usage in
realview_eb.c.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
| -rw-r--r-- | arch/arm/mach-realview/realview_eb.c | 42 | ||||
| -rw-r--r-- | include/asm-arm/arch-realview/board-eb.h | 8 | ||||
| -rw-r--r-- | include/asm-arm/arch-realview/platform.h | 16 |
3 files changed, 30 insertions, 36 deletions
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c index f970c9fb155a..247b55620477 100644 --- a/arch/arm/mach-realview/realview_eb.c +++ b/arch/arm/mach-realview/realview_eb.c | |||
| @@ -136,12 +136,12 @@ static void __init realview_eb_map_io(void) | |||
| 136 | /* | 136 | /* |
| 137 | * These devices are connected directly to the multi-layer AHB switch | 137 | * These devices are connected directly to the multi-layer AHB switch |
| 138 | */ | 138 | */ |
| 139 | #define SMC_IRQ { NO_IRQ, NO_IRQ } | 139 | #define EB_SMC_IRQ { NO_IRQ, NO_IRQ } |
| 140 | #define SMC_DMA { 0, 0 } | 140 | #define EB_SMC_DMA { 0, 0 } |
| 141 | #define MPMC_IRQ { NO_IRQ, NO_IRQ } | 141 | #define MPMC_IRQ { NO_IRQ, NO_IRQ } |
| 142 | #define MPMC_DMA { 0, 0 } | 142 | #define MPMC_DMA { 0, 0 } |
| 143 | #define CLCD_IRQ { IRQ_EB_CLCD, NO_IRQ } | 143 | #define EB_CLCD_IRQ { IRQ_EB_CLCD, NO_IRQ } |
| 144 | #define CLCD_DMA { 0, 0 } | 144 | #define EB_CLCD_DMA { 0, 0 } |
| 145 | #define DMAC_IRQ { IRQ_EB_DMA, NO_IRQ } | 145 | #define DMAC_IRQ { IRQ_EB_DMA, NO_IRQ } |
| 146 | #define DMAC_DMA { 0, 0 } | 146 | #define DMAC_DMA { 0, 0 } |
| 147 | 147 | ||
| @@ -150,14 +150,14 @@ static void __init realview_eb_map_io(void) | |||
| 150 | */ | 150 | */ |
| 151 | #define SCTL_IRQ { NO_IRQ, NO_IRQ } | 151 | #define SCTL_IRQ { NO_IRQ, NO_IRQ } |
| 152 | #define SCTL_DMA { 0, 0 } | 152 | #define SCTL_DMA { 0, 0 } |
| 153 | #define WATCHDOG_IRQ { IRQ_EB_WDOG, NO_IRQ } | 153 | #define EB_WATCHDOG_IRQ { IRQ_EB_WDOG, NO_IRQ } |
| 154 | #define WATCHDOG_DMA { 0, 0 } | 154 | #define EB_WATCHDOG_DMA { 0, 0 } |
| 155 | #define GPIO0_IRQ { IRQ_EB_GPIO0, NO_IRQ } | 155 | #define EB_GPIO0_IRQ { IRQ_EB_GPIO0, NO_IRQ } |
| 156 | #define GPIO0_DMA { 0, 0 } | 156 | #define EB_GPIO0_DMA { 0, 0 } |
| 157 | #define GPIO1_IRQ { IRQ_EB_GPIO1, NO_IRQ } | 157 | #define GPIO1_IRQ { IRQ_EB_GPIO1, NO_IRQ } |
| 158 | #define GPIO1_DMA { 0, 0 } | 158 | #define GPIO1_DMA { 0, 0 } |
| 159 | #define RTC_IRQ { IRQ_EB_RTC, NO_IRQ } | 159 | #define EB_RTC_IRQ { IRQ_EB_RTC, NO_IRQ } |
| 160 | #define RTC_DMA { 0, 0 } | 160 | #define EB_RTC_DMA { 0, 0 } |
| 161 | 161 | ||
| 162 | /* | 162 | /* |
| 163 | * These devices are connected via the DMA APB bridge | 163 | * These devices are connected via the DMA APB bridge |
| @@ -172,8 +172,8 @@ static void __init realview_eb_map_io(void) | |||
| 172 | #define EB_UART2_DMA { 11, 10 } | 172 | #define EB_UART2_DMA { 11, 10 } |
| 173 | #define EB_UART3_IRQ { IRQ_EB_UART3, NO_IRQ } | 173 | #define EB_UART3_IRQ { IRQ_EB_UART3, NO_IRQ } |
| 174 | #define EB_UART3_DMA { 0x86, 0x87 } | 174 | #define EB_UART3_DMA { 0x86, 0x87 } |
| 175 | #define SSP_IRQ { IRQ_EB_SSP, NO_IRQ } | 175 | #define EB_SSP_IRQ { IRQ_EB_SSP, NO_IRQ } |
| 176 | #define SSP_DMA { 9, 8 } | 176 | #define EB_SSP_DMA { 9, 8 } |
| 177 | 177 | ||
| 178 | /* FPGA Primecells */ | 178 | /* FPGA Primecells */ |
| 179 | AMBA_DEVICE(aaci, "fpga:04", AACI, NULL); | 179 | AMBA_DEVICE(aaci, "fpga:04", AACI, NULL); |
| @@ -183,20 +183,20 @@ AMBA_DEVICE(kmi1, "fpga:07", KMI1, NULL); | |||
| 183 | AMBA_DEVICE(uart3, "fpga:09", EB_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", EB_SMC, NULL); |
| 187 | AMBA_DEVICE(clcd, "dev:20", CLCD, &clcd_plat_data); | 187 | AMBA_DEVICE(clcd, "dev:20", EB_CLCD, &clcd_plat_data); |
| 188 | AMBA_DEVICE(dmac, "dev:30", DMAC, NULL); | 188 | AMBA_DEVICE(dmac, "dev:30", DMAC, NULL); |
| 189 | AMBA_DEVICE(sctl, "dev:e0", SCTL, NULL); | 189 | AMBA_DEVICE(sctl, "dev:e0", SCTL, NULL); |
| 190 | AMBA_DEVICE(wdog, "dev:e1", WATCHDOG, NULL); | 190 | AMBA_DEVICE(wdog, "dev:e1", EB_WATCHDOG, NULL); |
| 191 | AMBA_DEVICE(gpio0, "dev:e4", GPIO0, NULL); | 191 | AMBA_DEVICE(gpio0, "dev:e4", EB_GPIO0, NULL); |
| 192 | AMBA_DEVICE(gpio1, "dev:e5", GPIO1, NULL); | 192 | 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", EB_RTC, NULL); |
| 195 | AMBA_DEVICE(sci0, "dev:f0", SCI, NULL); | 195 | AMBA_DEVICE(sci0, "dev:f0", SCI, NULL); |
| 196 | AMBA_DEVICE(uart0, "dev:f1", EB_UART0, NULL); | 196 | AMBA_DEVICE(uart0, "dev:f1", EB_UART0, NULL); |
| 197 | AMBA_DEVICE(uart1, "dev:f2", EB_UART1, NULL); | 197 | AMBA_DEVICE(uart1, "dev:f2", EB_UART1, NULL); |
| 198 | AMBA_DEVICE(uart2, "dev:f3", EB_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", EB_SSP, NULL); |
| 200 | 200 | ||
| 201 | static struct amba_device *amba_devs[] __initdata = { | 201 | static struct amba_device *amba_devs[] __initdata = { |
| 202 | &dmac_device, | 202 | &dmac_device, |
| @@ -231,8 +231,8 @@ static struct resource realview_eb_flash_resource = { | |||
| 231 | 231 | ||
| 232 | static struct resource realview_eb_eth_resources[] = { | 232 | static struct resource realview_eb_eth_resources[] = { |
| 233 | [0] = { | 233 | [0] = { |
| 234 | .start = REALVIEW_ETH_BASE, | 234 | .start = REALVIEW_EB_ETH_BASE, |
| 235 | .end = REALVIEW_ETH_BASE + SZ_64K - 1, | 235 | .end = REALVIEW_EB_ETH_BASE + SZ_64K - 1, |
| 236 | .flags = IORESOURCE_MEM, | 236 | .flags = IORESOURCE_MEM, |
| 237 | }, | 237 | }, |
| 238 | [1] = { | 238 | [1] = { |
| @@ -254,7 +254,7 @@ static struct platform_device realview_eb_eth_device = { | |||
| 254 | */ | 254 | */ |
| 255 | static int eth_device_register(void) | 255 | static int eth_device_register(void) |
| 256 | { | 256 | { |
| 257 | void __iomem *eth_addr = ioremap(REALVIEW_ETH_BASE, SZ_4K); | 257 | void __iomem *eth_addr = ioremap(REALVIEW_EB_ETH_BASE, SZ_4K); |
| 258 | u32 idrev; | 258 | u32 idrev; |
| 259 | 259 | ||
| 260 | if (!eth_addr) | 260 | if (!eth_addr) |
diff --git a/include/asm-arm/arch-realview/board-eb.h b/include/asm-arm/arch-realview/board-eb.h index 565bb937ac86..206f7a752882 100644 --- a/include/asm-arm/arch-realview/board-eb.h +++ b/include/asm-arm/arch-realview/board-eb.h | |||
| @@ -30,13 +30,21 @@ | |||
| 30 | #define REALVIEW_EB_UART1_BASE 0x1000A000 /* UART 1 */ | 30 | #define REALVIEW_EB_UART1_BASE 0x1000A000 /* UART 1 */ |
| 31 | #define REALVIEW_EB_UART2_BASE 0x1000B000 /* UART 2 */ | 31 | #define REALVIEW_EB_UART2_BASE 0x1000B000 /* UART 2 */ |
| 32 | #define REALVIEW_EB_UART3_BASE 0x1000C000 /* UART 3 */ | 32 | #define REALVIEW_EB_UART3_BASE 0x1000C000 /* UART 3 */ |
| 33 | #define REALVIEW_EB_SSP_BASE 0x1000D000 /* Synchronous Serial Port */ | ||
| 34 | #define REALVIEW_EB_WATCHDOG_BASE 0x10010000 /* watchdog interface */ | ||
| 33 | #define REALVIEW_EB_TIMER0_1_BASE 0x10011000 /* Timer 0 and 1 */ | 35 | #define REALVIEW_EB_TIMER0_1_BASE 0x10011000 /* Timer 0 and 1 */ |
| 34 | #define REALVIEW_EB_TIMER2_3_BASE 0x10012000 /* Timer 2 and 3 */ | 36 | #define REALVIEW_EB_TIMER2_3_BASE 0x10012000 /* Timer 2 and 3 */ |
| 37 | #define REALVIEW_EB_GPIO0_BASE 0x10013000 /* GPIO port 0 */ | ||
| 38 | #define REALVIEW_EB_RTC_BASE 0x10017000 /* Real Time Clock */ | ||
| 39 | #define REALVIEW_EB_CLCD_BASE 0x10020000 /* CLCD */ | ||
| 35 | #define REALVIEW_EB_GIC_CPU_BASE 0x10040000 /* Generic interrupt controller CPU interface */ | 40 | #define REALVIEW_EB_GIC_CPU_BASE 0x10040000 /* Generic interrupt controller CPU interface */ |
| 36 | #define REALVIEW_EB_GIC_DIST_BASE 0x10041000 /* Generic interrupt controller distributor */ | 41 | #define REALVIEW_EB_GIC_DIST_BASE 0x10041000 /* Generic interrupt controller distributor */ |
| 42 | #define REALVIEW_EB_SMC_BASE 0x10080000 /* Static memory controller */ | ||
| 37 | 43 | ||
| 38 | #define REALVIEW_EB_FLASH_BASE 0x40000000 | 44 | #define REALVIEW_EB_FLASH_BASE 0x40000000 |
| 39 | #define REALVIEW_EB_FLASH_SIZE SZ_64M | 45 | #define REALVIEW_EB_FLASH_SIZE SZ_64M |
| 46 | #define REALVIEW_EB_ETH_BASE 0x4E000000 /* Ethernet */ | ||
| 47 | #define REALVIEW_EB_USB_BASE 0x4F000000 /* USB */ | ||
| 40 | 48 | ||
| 41 | #ifdef CONFIG_REALVIEW_EB_ARM11MP_REVB | 49 | #ifdef CONFIG_REALVIEW_EB_ARM11MP_REVB |
| 42 | #define REALVIEW_EB11MP_SCU_BASE 0x10100000 /* SCU registers */ | 50 | #define REALVIEW_EB11MP_SCU_BASE 0x10100000 /* SCU registers */ |
diff --git a/include/asm-arm/arch-realview/platform.h b/include/asm-arm/arch-realview/platform.h index d18fb128ed9c..424c0aaf46a0 100644 --- a/include/asm-arm/arch-realview/platform.h +++ b/include/asm-arm/arch-realview/platform.h | |||
| @@ -172,34 +172,20 @@ | |||
| 172 | #define REALVIEW_INTREG_CARDINSERT 0x03 /* Signal insertion of MMC card */ | 172 | #define REALVIEW_INTREG_CARDINSERT 0x03 /* Signal insertion of MMC card */ |
| 173 | 173 | ||
| 174 | /* | 174 | /* |
| 175 | * REALVIEW peripheral addresses | 175 | * RealView common peripheral addresses |
| 176 | */ | 176 | */ |
| 177 | #define REALVIEW_SCTL_BASE 0x10001000 /* System controller */ | 177 | #define REALVIEW_SCTL_BASE 0x10001000 /* System controller */ |
| 178 | #define REALVIEW_I2C_BASE 0x10002000 /* I2C control */ | 178 | #define REALVIEW_I2C_BASE 0x10002000 /* I2C control */ |
| 179 | /* Reserved 0x10003000 */ | ||
| 180 | #define REALVIEW_AACI_BASE 0x10004000 /* Audio */ | 179 | #define REALVIEW_AACI_BASE 0x10004000 /* Audio */ |
| 181 | #define REALVIEW_MMCI0_BASE 0x10005000 /* MMC interface */ | 180 | #define REALVIEW_MMCI0_BASE 0x10005000 /* MMC interface */ |
| 182 | #define REALVIEW_KMI0_BASE 0x10006000 /* KMI interface */ | 181 | #define REALVIEW_KMI0_BASE 0x10006000 /* KMI interface */ |
| 183 | #define REALVIEW_KMI1_BASE 0x10007000 /* KMI 2nd interface */ | 182 | #define REALVIEW_KMI1_BASE 0x10007000 /* KMI 2nd interface */ |
| 184 | #define REALVIEW_CHAR_LCD_BASE 0x10008000 /* Character LCD */ | 183 | #define REALVIEW_CHAR_LCD_BASE 0x10008000 /* Character LCD */ |
| 185 | #define REALVIEW_SSP_BASE 0x1000D000 /* Synchronous Serial Port */ | ||
| 186 | #define REALVIEW_SCI_BASE 0x1000E000 /* Smart card controller */ | 184 | #define REALVIEW_SCI_BASE 0x1000E000 /* Smart card controller */ |
| 187 | /* Reserved 0x1000F000 */ | ||
| 188 | #define REALVIEW_WATCHDOG_BASE 0x10010000 /* watchdog interface */ | ||
| 189 | #define REALVIEW_GPIO0_BASE 0x10013000 /* GPIO port 0 */ | ||
| 190 | #define REALVIEW_GPIO1_BASE 0x10014000 /* GPIO port 1 */ | 185 | #define REALVIEW_GPIO1_BASE 0x10014000 /* GPIO port 1 */ |
| 191 | #define REALVIEW_GPIO2_BASE 0x10015000 /* GPIO port 2 */ | 186 | #define REALVIEW_GPIO2_BASE 0x10015000 /* GPIO port 2 */ |
| 192 | /* Reserved 0x10016000 */ | ||
| 193 | #define REALVIEW_RTC_BASE 0x10017000 /* Real Time Clock */ | ||
| 194 | #define REALVIEW_DMC_BASE 0x10018000 /* DMC configuration */ | 187 | #define REALVIEW_DMC_BASE 0x10018000 /* DMC configuration */ |
| 195 | #define REALVIEW_PCI_CORE_BASE 0x10019000 /* PCI configuration */ | ||
| 196 | /* Reserved 0x1001A000 - 0x1001FFFF */ | ||
| 197 | #define REALVIEW_CLCD_BASE 0x10020000 /* CLCD */ | ||
| 198 | #define REALVIEW_DMAC_BASE 0x10030000 /* DMA controller */ | 188 | #define REALVIEW_DMAC_BASE 0x10030000 /* DMA controller */ |
| 199 | #define REALVIEW_SMC_BASE 0x10080000 /* SMC */ | ||
| 200 | /* Reserved 0x10090000 - 0x100EFFFF */ | ||
| 201 | |||
| 202 | #define REALVIEW_ETH_BASE 0x4E000000 /* Ethernet */ | ||
| 203 | 189 | ||
| 204 | /* PCI space */ | 190 | /* PCI space */ |
| 205 | #define REALVIEW_PCI_BASE 0x41000000 /* PCI Interface */ | 191 | #define REALVIEW_PCI_BASE 0x41000000 /* PCI Interface */ |
