diff options
Diffstat (limited to 'arch/arm/mach-realview')
| -rw-r--r-- | arch/arm/mach-realview/core.c | 40 | ||||
| -rw-r--r-- | arch/arm/mach-realview/include/mach/board-pb1176.h | 1 | ||||
| -rw-r--r-- | arch/arm/mach-realview/include/mach/irqs-pb1176.h | 2 | ||||
| -rw-r--r-- | arch/arm/mach-realview/include/mach/memory.h | 7 | ||||
| -rw-r--r-- | arch/arm/mach-realview/realview_eb.c | 30 | ||||
| -rw-r--r-- | arch/arm/mach-realview/realview_pb1176.c | 46 | ||||
| -rw-r--r-- | arch/arm/mach-realview/realview_pb11mp.c | 9 | ||||
| -rw-r--r-- | arch/arm/mach-realview/realview_pba8.c | 9 | ||||
| -rw-r--r-- | arch/arm/mach-realview/realview_pbx.c | 9 |
9 files changed, 128 insertions, 25 deletions
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index 02e9fdeb8fa..2fa38df2841 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c | |||
| @@ -61,12 +61,11 @@ void __iomem *gic_cpu_base_addr; | |||
| 61 | /* | 61 | /* |
| 62 | * Adjust the zones if there are restrictions for DMA access. | 62 | * Adjust the zones if there are restrictions for DMA access. |
| 63 | */ | 63 | */ |
| 64 | void __init realview_adjust_zones(int node, unsigned long *size, | 64 | void __init realview_adjust_zones(unsigned long *size, unsigned long *hole) |
| 65 | unsigned long *hole) | ||
| 66 | { | 65 | { |
| 67 | unsigned long dma_size = SZ_256M >> PAGE_SHIFT; | 66 | unsigned long dma_size = SZ_256M >> PAGE_SHIFT; |
| 68 | 67 | ||
| 69 | if (!machine_is_realview_pbx() || node || (size[0] <= dma_size)) | 68 | if (!machine_is_realview_pbx() || size[0] <= dma_size) |
| 70 | return; | 69 | return; |
| 71 | 70 | ||
| 72 | size[ZONE_NORMAL] = size[0] - dma_size; | 71 | size[ZONE_NORMAL] = size[0] - dma_size; |
| @@ -232,6 +231,21 @@ static unsigned int realview_mmc_status(struct device *dev) | |||
| 232 | struct amba_device *adev = container_of(dev, struct amba_device, dev); | 231 | struct amba_device *adev = container_of(dev, struct amba_device, dev); |
| 233 | u32 mask; | 232 | u32 mask; |
| 234 | 233 | ||
| 234 | if (machine_is_realview_pb1176()) { | ||
| 235 | static bool inserted = false; | ||
| 236 | |||
| 237 | /* | ||
| 238 | * The PB1176 does not have the status register, | ||
| 239 | * assume it is inserted at startup, then invert | ||
| 240 | * for each call so card insertion/removal will | ||
| 241 | * be detected anyway. This will not be called if | ||
| 242 | * GPIO on PL061 is active, which is the proper | ||
| 243 | * way to do this on the PB1176. | ||
| 244 | */ | ||
| 245 | inserted = !inserted; | ||
| 246 | return inserted ? 0 : 1; | ||
| 247 | } | ||
| 248 | |||
| 235 | if (adev->res.start == REALVIEW_MMCI0_BASE) | 249 | if (adev->res.start == REALVIEW_MMCI0_BASE) |
| 236 | mask = 1; | 250 | mask = 1; |
| 237 | else | 251 | else |
| @@ -300,8 +314,13 @@ static struct clk ref24_clk = { | |||
| 300 | .rate = 24000000, | 314 | .rate = 24000000, |
| 301 | }; | 315 | }; |
| 302 | 316 | ||
| 317 | static struct clk dummy_apb_pclk; | ||
| 318 | |||
| 303 | static struct clk_lookup lookups[] = { | 319 | static struct clk_lookup lookups[] = { |
| 304 | { /* UART0 */ | 320 | { /* Bus clock */ |
| 321 | .con_id = "apb_pclk", | ||
| 322 | .clk = &dummy_apb_pclk, | ||
| 323 | }, { /* UART0 */ | ||
| 305 | .dev_id = "dev:uart0", | 324 | .dev_id = "dev:uart0", |
| 306 | .clk = &ref24_clk, | 325 | .clk = &ref24_clk, |
| 307 | }, { /* UART1 */ | 326 | }, { /* UART1 */ |
| @@ -313,6 +332,12 @@ static struct clk_lookup lookups[] = { | |||
| 313 | }, { /* UART3 */ | 332 | }, { /* UART3 */ |
| 314 | .dev_id = "fpga:uart3", | 333 | .dev_id = "fpga:uart3", |
| 315 | .clk = &ref24_clk, | 334 | .clk = &ref24_clk, |
| 335 | }, { /* UART3 is on the dev chip in PB1176 */ | ||
| 336 | .dev_id = "dev:uart3", | ||
| 337 | .clk = &ref24_clk, | ||
| 338 | }, { /* UART4 only exists in PB1176 */ | ||
| 339 | .dev_id = "fpga:uart4", | ||
| 340 | .clk = &ref24_clk, | ||
| 316 | }, { /* KMI0 */ | 341 | }, { /* KMI0 */ |
| 317 | .dev_id = "fpga:kmi0", | 342 | .dev_id = "fpga:kmi0", |
| 318 | .clk = &ref24_clk, | 343 | .clk = &ref24_clk, |
| @@ -322,12 +347,15 @@ static struct clk_lookup lookups[] = { | |||
| 322 | }, { /* MMC0 */ | 347 | }, { /* MMC0 */ |
| 323 | .dev_id = "fpga:mmc0", | 348 | .dev_id = "fpga:mmc0", |
| 324 | .clk = &ref24_clk, | 349 | .clk = &ref24_clk, |
| 325 | }, { /* EB:CLCD */ | 350 | }, { /* CLCD is in the PB1176 and EB DevChip */ |
| 326 | .dev_id = "dev:clcd", | 351 | .dev_id = "dev:clcd", |
| 327 | .clk = &oscvco_clk, | 352 | .clk = &oscvco_clk, |
| 328 | }, { /* PB:CLCD */ | 353 | }, { /* PB:CLCD */ |
| 329 | .dev_id = "issp:clcd", | 354 | .dev_id = "issp:clcd", |
| 330 | .clk = &oscvco_clk, | 355 | .clk = &oscvco_clk, |
| 356 | }, { /* SSP */ | ||
| 357 | .dev_id = "dev:ssp0", | ||
| 358 | .clk = &ref24_clk, | ||
| 331 | } | 359 | } |
| 332 | }; | 360 | }; |
| 333 | 361 | ||
| @@ -342,7 +370,7 @@ static int __init clk_init(void) | |||
| 342 | 370 | ||
| 343 | return 0; | 371 | return 0; |
| 344 | } | 372 | } |
| 345 | arch_initcall(clk_init); | 373 | core_initcall(clk_init); |
| 346 | 374 | ||
| 347 | /* | 375 | /* |
| 348 | * CLCD support. | 376 | * CLCD support. |
diff --git a/arch/arm/mach-realview/include/mach/board-pb1176.h b/arch/arm/mach-realview/include/mach/board-pb1176.h index 2f5ccb29885..002ab5d8c11 100644 --- a/arch/arm/mach-realview/include/mach/board-pb1176.h +++ b/arch/arm/mach-realview/include/mach/board-pb1176.h | |||
| @@ -26,6 +26,7 @@ | |||
| 26 | /* | 26 | /* |
| 27 | * Peripheral addresses | 27 | * Peripheral addresses |
| 28 | */ | 28 | */ |
| 29 | #define REALVIEW_PB1176_UART4_BASE 0x10009000 /* UART 4 */ | ||
| 29 | #define REALVIEW_PB1176_SCTL_BASE 0x10100000 /* System controller */ | 30 | #define REALVIEW_PB1176_SCTL_BASE 0x10100000 /* System controller */ |
| 30 | #define REALVIEW_PB1176_SMC_BASE 0x10111000 /* SMC */ | 31 | #define REALVIEW_PB1176_SMC_BASE 0x10111000 /* SMC */ |
| 31 | #define REALVIEW_PB1176_DMC_BASE 0x10109000 /* DMC configuration */ | 32 | #define REALVIEW_PB1176_DMC_BASE 0x10109000 /* DMC configuration */ |
diff --git a/arch/arm/mach-realview/include/mach/irqs-pb1176.h b/arch/arm/mach-realview/include/mach/irqs-pb1176.h index 830055bb862..5c3c625e3e0 100644 --- a/arch/arm/mach-realview/include/mach/irqs-pb1176.h +++ b/arch/arm/mach-realview/include/mach/irqs-pb1176.h | |||
| @@ -40,6 +40,7 @@ | |||
| 40 | #define IRQ_DC1176_L2CC (IRQ_DC1176_GIC_START + 13) | 40 | #define IRQ_DC1176_L2CC (IRQ_DC1176_GIC_START + 13) |
| 41 | #define IRQ_DC1176_RTC (IRQ_DC1176_GIC_START + 14) | 41 | #define IRQ_DC1176_RTC (IRQ_DC1176_GIC_START + 14) |
| 42 | #define IRQ_DC1176_CLCD (IRQ_DC1176_GIC_START + 15) /* CLCD controller */ | 42 | #define IRQ_DC1176_CLCD (IRQ_DC1176_GIC_START + 15) /* CLCD controller */ |
| 43 | #define IRQ_DC1176_SSP (IRQ_DC1176_GIC_START + 17) /* SSP port */ | ||
| 43 | #define IRQ_DC1176_UART0 (IRQ_DC1176_GIC_START + 18) /* UART 0 on development chip */ | 44 | #define IRQ_DC1176_UART0 (IRQ_DC1176_GIC_START + 18) /* UART 0 on development chip */ |
| 44 | #define IRQ_DC1176_UART1 (IRQ_DC1176_GIC_START + 19) /* UART 1 on development chip */ | 45 | #define IRQ_DC1176_UART1 (IRQ_DC1176_GIC_START + 19) /* UART 1 on development chip */ |
| 45 | #define IRQ_DC1176_UART2 (IRQ_DC1176_GIC_START + 20) /* UART 2 on development chip */ | 46 | #define IRQ_DC1176_UART2 (IRQ_DC1176_GIC_START + 20) /* UART 2 on development chip */ |
| @@ -73,7 +74,6 @@ | |||
| 73 | #define IRQ_PB1176_RTC (IRQ_PB1176_GIC_START + 25) /* Real Time Clock */ | 74 | #define IRQ_PB1176_RTC (IRQ_PB1176_GIC_START + 25) /* Real Time Clock */ |
| 74 | 75 | ||
| 75 | #define IRQ_PB1176_GPIO0 -1 | 76 | #define IRQ_PB1176_GPIO0 -1 |
| 76 | #define IRQ_PB1176_SSP -1 | ||
| 77 | #define IRQ_PB1176_SCTL -1 | 77 | #define IRQ_PB1176_SCTL -1 |
| 78 | 78 | ||
| 79 | #define NR_GIC_PB1176 2 | 79 | #define NR_GIC_PB1176 2 |
diff --git a/arch/arm/mach-realview/include/mach/memory.h b/arch/arm/mach-realview/include/mach/memory.h index 2417bbcf97f..5dafc157b27 100644 --- a/arch/arm/mach-realview/include/mach/memory.h +++ b/arch/arm/mach-realview/include/mach/memory.h | |||
| @@ -30,10 +30,9 @@ | |||
| 30 | #endif | 30 | #endif |
| 31 | 31 | ||
| 32 | #if !defined(__ASSEMBLY__) && defined(CONFIG_ZONE_DMA) | 32 | #if !defined(__ASSEMBLY__) && defined(CONFIG_ZONE_DMA) |
| 33 | extern void realview_adjust_zones(int node, unsigned long *size, | 33 | extern void realview_adjust_zones(unsigned long *size, unsigned long *hole); |
| 34 | unsigned long *hole); | 34 | #define arch_adjust_zones(size, hole) \ |
| 35 | #define arch_adjust_zones(node, size, hole) \ | 35 | realview_adjust_zones(size, hole) |
| 36 | realview_adjust_zones(node, size, hole) | ||
| 37 | 36 | ||
| 38 | #define ISA_DMA_THRESHOLD (PHYS_OFFSET + SZ_256M - 1) | 37 | #define ISA_DMA_THRESHOLD (PHYS_OFFSET + SZ_256M - 1) |
| 39 | #define MAX_DMA_ADDRESS (PAGE_OFFSET + SZ_256M) | 38 | #define MAX_DMA_ADDRESS (PAGE_OFFSET + SZ_256M) |
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c index 4425018fab8..991c1f8390e 100644 --- a/arch/arm/mach-realview/realview_eb.c +++ b/arch/arm/mach-realview/realview_eb.c | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | #include <linux/amba/bus.h> | 25 | #include <linux/amba/bus.h> |
| 26 | #include <linux/amba/pl061.h> | 26 | #include <linux/amba/pl061.h> |
| 27 | #include <linux/amba/mmci.h> | 27 | #include <linux/amba/mmci.h> |
| 28 | #include <linux/amba/pl022.h> | ||
| 28 | #include <linux/io.h> | 29 | #include <linux/io.h> |
| 29 | 30 | ||
| 30 | #include <mach/hardware.h> | 31 | #include <mach/hardware.h> |
| @@ -129,6 +130,12 @@ static struct pl061_platform_data gpio2_plat_data = { | |||
| 129 | .irq_base = -1, | 130 | .irq_base = -1, |
| 130 | }; | 131 | }; |
| 131 | 132 | ||
| 133 | static struct pl022_ssp_controller ssp0_plat_data = { | ||
| 134 | .bus_id = 0, | ||
| 135 | .enable_dma = 0, | ||
| 136 | .num_chipselect = 1, | ||
| 137 | }; | ||
| 138 | |||
| 132 | /* | 139 | /* |
| 133 | * RealView EB AMBA devices | 140 | * RealView EB AMBA devices |
| 134 | */ | 141 | */ |
| @@ -213,7 +220,7 @@ AMBA_DEVICE(sci0, "dev:sci0", SCI, NULL); | |||
| 213 | AMBA_DEVICE(uart0, "dev:uart0", EB_UART0, NULL); | 220 | AMBA_DEVICE(uart0, "dev:uart0", EB_UART0, NULL); |
| 214 | AMBA_DEVICE(uart1, "dev:uart1", EB_UART1, NULL); | 221 | AMBA_DEVICE(uart1, "dev:uart1", EB_UART1, NULL); |
| 215 | AMBA_DEVICE(uart2, "dev:uart2", EB_UART2, NULL); | 222 | AMBA_DEVICE(uart2, "dev:uart2", EB_UART2, NULL); |
| 216 | AMBA_DEVICE(ssp0, "dev:ssp0", EB_SSP, NULL); | 223 | AMBA_DEVICE(ssp0, "dev:ssp0", EB_SSP, &ssp0_plat_data); |
| 217 | 224 | ||
| 218 | static struct amba_device *amba_devs[] __initdata = { | 225 | static struct amba_device *amba_devs[] __initdata = { |
| 219 | &dmac_device, | 226 | &dmac_device, |
| @@ -324,6 +331,26 @@ static struct platform_device pmu_device = { | |||
| 324 | .resource = pmu_resources, | 331 | .resource = pmu_resources, |
| 325 | }; | 332 | }; |
| 326 | 333 | ||
| 334 | static struct resource char_lcd_resources[] = { | ||
| 335 | { | ||
| 336 | .start = REALVIEW_CHAR_LCD_BASE, | ||
| 337 | .end = (REALVIEW_CHAR_LCD_BASE + SZ_4K - 1), | ||
| 338 | .flags = IORESOURCE_MEM, | ||
| 339 | }, | ||
| 340 | { | ||
| 341 | .start = IRQ_EB_CHARLCD, | ||
| 342 | .end = IRQ_EB_CHARLCD, | ||
| 343 | .flags = IORESOURCE_IRQ, | ||
| 344 | }, | ||
| 345 | }; | ||
| 346 | |||
| 347 | static struct platform_device char_lcd_device = { | ||
| 348 | .name = "arm-charlcd", | ||
| 349 | .id = -1, | ||
| 350 | .num_resources = ARRAY_SIZE(char_lcd_resources), | ||
| 351 | .resource = char_lcd_resources, | ||
| 352 | }; | ||
| 353 | |||
| 327 | static void __init gic_init_irq(void) | 354 | static void __init gic_init_irq(void) |
| 328 | { | 355 | { |
| 329 | if (core_tile_eb11mp() || core_tile_a9mp()) { | 356 | if (core_tile_eb11mp() || core_tile_a9mp()) { |
| @@ -442,6 +469,7 @@ static void __init realview_eb_init(void) | |||
| 442 | 469 | ||
| 443 | realview_flash_register(&realview_eb_flash_resource, 1); | 470 | realview_flash_register(&realview_eb_flash_resource, 1); |
| 444 | platform_device_register(&realview_i2c_device); | 471 | platform_device_register(&realview_i2c_device); |
| 472 | platform_device_register(&char_lcd_device); | ||
| 445 | eth_device_register(); | 473 | eth_device_register(); |
| 446 | realview_usb_register(realview_eb_isp1761_resources); | 474 | realview_usb_register(realview_eb_isp1761_resources); |
| 447 | 475 | ||
diff --git a/arch/arm/mach-realview/realview_pb1176.c b/arch/arm/mach-realview/realview_pb1176.c index 099a1f125cf..d2be12eb829 100644 --- a/arch/arm/mach-realview/realview_pb1176.c +++ b/arch/arm/mach-realview/realview_pb1176.c | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | #include <linux/amba/bus.h> | 25 | #include <linux/amba/bus.h> |
| 26 | #include <linux/amba/pl061.h> | 26 | #include <linux/amba/pl061.h> |
| 27 | #include <linux/amba/mmci.h> | 27 | #include <linux/amba/mmci.h> |
| 28 | #include <linux/amba/pl022.h> | ||
| 28 | #include <linux/io.h> | 29 | #include <linux/io.h> |
| 29 | 30 | ||
| 30 | #include <mach/hardware.h> | 31 | #include <mach/hardware.h> |
| @@ -123,6 +124,12 @@ static struct pl061_platform_data gpio2_plat_data = { | |||
| 123 | .irq_base = -1, | 124 | .irq_base = -1, |
| 124 | }; | 125 | }; |
| 125 | 126 | ||
| 127 | static struct pl022_ssp_controller ssp0_plat_data = { | ||
| 128 | .bus_id = 0, | ||
| 129 | .enable_dma = 0, | ||
| 130 | .num_chipselect = 1, | ||
| 131 | }; | ||
| 132 | |||
| 126 | /* | 133 | /* |
| 127 | * RealView PB1176 AMBA devices | 134 | * RealView PB1176 AMBA devices |
| 128 | */ | 135 | */ |
| @@ -144,8 +151,6 @@ static struct pl061_platform_data gpio2_plat_data = { | |||
| 144 | #define MPMC_DMA { 0, 0 } | 151 | #define MPMC_DMA { 0, 0 } |
| 145 | #define PB1176_CLCD_IRQ { IRQ_DC1176_CLCD, NO_IRQ } | 152 | #define PB1176_CLCD_IRQ { IRQ_DC1176_CLCD, NO_IRQ } |
| 146 | #define PB1176_CLCD_DMA { 0, 0 } | 153 | #define PB1176_CLCD_DMA { 0, 0 } |
| 147 | #define DMAC_IRQ { IRQ_PB1176_DMAC, NO_IRQ } | ||
| 148 | #define DMAC_DMA { 0, 0 } | ||
| 149 | #define SCTL_IRQ { NO_IRQ, NO_IRQ } | 154 | #define SCTL_IRQ { NO_IRQ, NO_IRQ } |
| 150 | #define SCTL_DMA { 0, 0 } | 155 | #define SCTL_DMA { 0, 0 } |
| 151 | #define PB1176_WATCHDOG_IRQ { IRQ_DC1176_WATCHDOG, NO_IRQ } | 156 | #define PB1176_WATCHDOG_IRQ { IRQ_DC1176_WATCHDOG, NO_IRQ } |
| @@ -166,7 +171,9 @@ static struct pl061_platform_data gpio2_plat_data = { | |||
| 166 | #define PB1176_UART2_DMA { 11, 10 } | 171 | #define PB1176_UART2_DMA { 11, 10 } |
| 167 | #define PB1176_UART3_IRQ { IRQ_DC1176_UART3, NO_IRQ } | 172 | #define PB1176_UART3_IRQ { IRQ_DC1176_UART3, NO_IRQ } |
| 168 | #define PB1176_UART3_DMA { 0x86, 0x87 } | 173 | #define PB1176_UART3_DMA { 0x86, 0x87 } |
| 169 | #define PB1176_SSP_IRQ { IRQ_PB1176_SSP, NO_IRQ } | 174 | #define PB1176_UART4_IRQ { IRQ_PB1176_UART4, NO_IRQ } |
| 175 | #define PB1176_UART4_DMA { 0, 0 } | ||
| 176 | #define PB1176_SSP_IRQ { IRQ_DC1176_SSP, NO_IRQ } | ||
| 170 | #define PB1176_SSP_DMA { 9, 8 } | 177 | #define PB1176_SSP_DMA { 9, 8 } |
| 171 | 178 | ||
| 172 | /* FPGA Primecells */ | 179 | /* FPGA Primecells */ |
| @@ -174,7 +181,7 @@ AMBA_DEVICE(aaci, "fpga:aaci", AACI, NULL); | |||
| 174 | AMBA_DEVICE(mmc0, "fpga:mmc0", MMCI0, &realview_mmc0_plat_data); | 181 | AMBA_DEVICE(mmc0, "fpga:mmc0", MMCI0, &realview_mmc0_plat_data); |
| 175 | AMBA_DEVICE(kmi0, "fpga:kmi0", KMI0, NULL); | 182 | AMBA_DEVICE(kmi0, "fpga:kmi0", KMI0, NULL); |
| 176 | AMBA_DEVICE(kmi1, "fpga:kmi1", KMI1, NULL); | 183 | AMBA_DEVICE(kmi1, "fpga:kmi1", KMI1, NULL); |
| 177 | AMBA_DEVICE(uart3, "fpga:uart3", PB1176_UART3, NULL); | 184 | AMBA_DEVICE(uart4, "fpga:uart4", PB1176_UART4, NULL); |
| 178 | 185 | ||
| 179 | /* DevChip Primecells */ | 186 | /* DevChip Primecells */ |
| 180 | AMBA_DEVICE(smc, "dev:smc", PB1176_SMC, NULL); | 187 | AMBA_DEVICE(smc, "dev:smc", PB1176_SMC, NULL); |
| @@ -188,18 +195,16 @@ AMBA_DEVICE(sci0, "dev:sci0", SCI, NULL); | |||
| 188 | AMBA_DEVICE(uart0, "dev:uart0", PB1176_UART0, NULL); | 195 | AMBA_DEVICE(uart0, "dev:uart0", PB1176_UART0, NULL); |
| 189 | AMBA_DEVICE(uart1, "dev:uart1", PB1176_UART1, NULL); | 196 | AMBA_DEVICE(uart1, "dev:uart1", PB1176_UART1, NULL); |
| 190 | AMBA_DEVICE(uart2, "dev:uart2", PB1176_UART2, NULL); | 197 | AMBA_DEVICE(uart2, "dev:uart2", PB1176_UART2, NULL); |
| 191 | AMBA_DEVICE(ssp0, "dev:ssp0", PB1176_SSP, NULL); | 198 | AMBA_DEVICE(uart3, "dev:uart3", PB1176_UART3, NULL); |
| 192 | 199 | AMBA_DEVICE(ssp0, "dev:ssp0", PB1176_SSP, &ssp0_plat_data); | |
| 193 | /* Primecells on the NEC ISSP chip */ | 200 | AMBA_DEVICE(clcd, "dev:clcd", PB1176_CLCD, &clcd_plat_data); |
| 194 | AMBA_DEVICE(clcd, "issp:clcd", PB1176_CLCD, &clcd_plat_data); | ||
| 195 | //AMBA_DEVICE(dmac, "issp:dmac", PB1176_DMAC, NULL); | ||
| 196 | 201 | ||
| 197 | static struct amba_device *amba_devs[] __initdata = { | 202 | static struct amba_device *amba_devs[] __initdata = { |
| 198 | // &dmac_device, | ||
| 199 | &uart0_device, | 203 | &uart0_device, |
| 200 | &uart1_device, | 204 | &uart1_device, |
| 201 | &uart2_device, | 205 | &uart2_device, |
| 202 | &uart3_device, | 206 | &uart3_device, |
| 207 | &uart4_device, | ||
| 203 | &smc_device, | 208 | &smc_device, |
| 204 | &clcd_device, | 209 | &clcd_device, |
| 205 | &sctl_device, | 210 | &sctl_device, |
| @@ -276,6 +281,26 @@ static struct platform_device pmu_device = { | |||
| 276 | .resource = &pmu_resource, | 281 | .resource = &pmu_resource, |
| 277 | }; | 282 | }; |
| 278 | 283 | ||
| 284 | static struct resource char_lcd_resources[] = { | ||
| 285 | { | ||
| 286 | .start = REALVIEW_CHAR_LCD_BASE, | ||
| 287 | .end = (REALVIEW_CHAR_LCD_BASE + SZ_4K - 1), | ||
| 288 | .flags = IORESOURCE_MEM, | ||
| 289 | }, | ||
| 290 | { | ||
| 291 | .start = IRQ_PB1176_CHARLCD, | ||
| 292 | .end = IRQ_PB1176_CHARLCD, | ||
| 293 | .flags = IORESOURCE_IRQ, | ||
| 294 | }, | ||
| 295 | }; | ||
| 296 | |||
| 297 | static struct platform_device char_lcd_device = { | ||
| 298 | .name = "arm-charlcd", | ||
| 299 | .id = -1, | ||
| 300 | .num_resources = ARRAY_SIZE(char_lcd_resources), | ||
| 301 | .resource = char_lcd_resources, | ||
| 302 | }; | ||
| 303 | |||
| 279 | static void __init gic_init_irq(void) | 304 | static void __init gic_init_irq(void) |
| 280 | { | 305 | { |
| 281 | /* ARM1176 DevChip GIC, primary */ | 306 | /* ARM1176 DevChip GIC, primary */ |
| @@ -338,6 +363,7 @@ static void __init realview_pb1176_init(void) | |||
| 338 | platform_device_register(&realview_i2c_device); | 363 | platform_device_register(&realview_i2c_device); |
| 339 | realview_usb_register(realview_pb1176_isp1761_resources); | 364 | realview_usb_register(realview_pb1176_isp1761_resources); |
| 340 | platform_device_register(&pmu_device); | 365 | platform_device_register(&pmu_device); |
| 366 | platform_device_register(&char_lcd_device); | ||
| 341 | 367 | ||
| 342 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { | 368 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { |
| 343 | struct amba_device *d = amba_devs[i]; | 369 | struct amba_device *d = amba_devs[i]; |
diff --git a/arch/arm/mach-realview/realview_pb11mp.c b/arch/arm/mach-realview/realview_pb11mp.c index 0e07a5ccb75..d591bc00b86 100644 --- a/arch/arm/mach-realview/realview_pb11mp.c +++ b/arch/arm/mach-realview/realview_pb11mp.c | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | #include <linux/amba/bus.h> | 25 | #include <linux/amba/bus.h> |
| 26 | #include <linux/amba/pl061.h> | 26 | #include <linux/amba/pl061.h> |
| 27 | #include <linux/amba/mmci.h> | 27 | #include <linux/amba/mmci.h> |
| 28 | #include <linux/amba/pl022.h> | ||
| 28 | #include <linux/io.h> | 29 | #include <linux/io.h> |
| 29 | 30 | ||
| 30 | #include <mach/hardware.h> | 31 | #include <mach/hardware.h> |
| @@ -124,6 +125,12 @@ static struct pl061_platform_data gpio2_plat_data = { | |||
| 124 | .irq_base = -1, | 125 | .irq_base = -1, |
| 125 | }; | 126 | }; |
| 126 | 127 | ||
| 128 | static struct pl022_ssp_controller ssp0_plat_data = { | ||
| 129 | .bus_id = 0, | ||
| 130 | .enable_dma = 0, | ||
| 131 | .num_chipselect = 1, | ||
| 132 | }; | ||
| 133 | |||
| 127 | /* | 134 | /* |
| 128 | * RealView PB11MPCore AMBA devices | 135 | * RealView PB11MPCore AMBA devices |
| 129 | */ | 136 | */ |
| @@ -190,7 +197,7 @@ AMBA_DEVICE(sci0, "dev:sci0", SCI, NULL); | |||
| 190 | AMBA_DEVICE(uart0, "dev:uart0", PB11MP_UART0, NULL); | 197 | AMBA_DEVICE(uart0, "dev:uart0", PB11MP_UART0, NULL); |
| 191 | AMBA_DEVICE(uart1, "dev:uart1", PB11MP_UART1, NULL); | 198 | AMBA_DEVICE(uart1, "dev:uart1", PB11MP_UART1, NULL); |
| 192 | AMBA_DEVICE(uart2, "dev:uart2", PB11MP_UART2, NULL); | 199 | AMBA_DEVICE(uart2, "dev:uart2", PB11MP_UART2, NULL); |
| 193 | AMBA_DEVICE(ssp0, "dev:ssp0", PB11MP_SSP, NULL); | 200 | AMBA_DEVICE(ssp0, "dev:ssp0", PB11MP_SSP, &ssp0_plat_data); |
| 194 | 201 | ||
| 195 | /* Primecells on the NEC ISSP chip */ | 202 | /* Primecells on the NEC ISSP chip */ |
| 196 | AMBA_DEVICE(clcd, "issp:clcd", PB11MP_CLCD, &clcd_plat_data); | 203 | AMBA_DEVICE(clcd, "issp:clcd", PB11MP_CLCD, &clcd_plat_data); |
diff --git a/arch/arm/mach-realview/realview_pba8.c b/arch/arm/mach-realview/realview_pba8.c index ac2f06f1ca5..6c37621217b 100644 --- a/arch/arm/mach-realview/realview_pba8.c +++ b/arch/arm/mach-realview/realview_pba8.c | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | #include <linux/amba/bus.h> | 25 | #include <linux/amba/bus.h> |
| 26 | #include <linux/amba/pl061.h> | 26 | #include <linux/amba/pl061.h> |
| 27 | #include <linux/amba/mmci.h> | 27 | #include <linux/amba/mmci.h> |
| 28 | #include <linux/amba/pl022.h> | ||
| 28 | #include <linux/io.h> | 29 | #include <linux/io.h> |
| 29 | 30 | ||
| 30 | #include <asm/irq.h> | 31 | #include <asm/irq.h> |
| @@ -114,6 +115,12 @@ static struct pl061_platform_data gpio2_plat_data = { | |||
| 114 | .irq_base = -1, | 115 | .irq_base = -1, |
| 115 | }; | 116 | }; |
| 116 | 117 | ||
| 118 | static struct pl022_ssp_controller ssp0_plat_data = { | ||
| 119 | .bus_id = 0, | ||
| 120 | .enable_dma = 0, | ||
| 121 | .num_chipselect = 1, | ||
| 122 | }; | ||
| 123 | |||
| 117 | /* | 124 | /* |
| 118 | * RealView PBA8Core AMBA devices | 125 | * RealView PBA8Core AMBA devices |
| 119 | */ | 126 | */ |
| @@ -180,7 +187,7 @@ AMBA_DEVICE(sci0, "dev:sci0", SCI, NULL); | |||
| 180 | AMBA_DEVICE(uart0, "dev:uart0", PBA8_UART0, NULL); | 187 | AMBA_DEVICE(uart0, "dev:uart0", PBA8_UART0, NULL); |
| 181 | AMBA_DEVICE(uart1, "dev:uart1", PBA8_UART1, NULL); | 188 | AMBA_DEVICE(uart1, "dev:uart1", PBA8_UART1, NULL); |
| 182 | AMBA_DEVICE(uart2, "dev:uart2", PBA8_UART2, NULL); | 189 | AMBA_DEVICE(uart2, "dev:uart2", PBA8_UART2, NULL); |
| 183 | AMBA_DEVICE(ssp0, "dev:ssp0", PBA8_SSP, NULL); | 190 | AMBA_DEVICE(ssp0, "dev:ssp0", PBA8_SSP, &ssp0_plat_data); |
| 184 | 191 | ||
| 185 | /* Primecells on the NEC ISSP chip */ | 192 | /* Primecells on the NEC ISSP chip */ |
| 186 | AMBA_DEVICE(clcd, "issp:clcd", PBA8_CLCD, &clcd_plat_data); | 193 | AMBA_DEVICE(clcd, "issp:clcd", PBA8_CLCD, &clcd_plat_data); |
diff --git a/arch/arm/mach-realview/realview_pbx.c b/arch/arm/mach-realview/realview_pbx.c index 08fd683adc4..9428eff0b11 100644 --- a/arch/arm/mach-realview/realview_pbx.c +++ b/arch/arm/mach-realview/realview_pbx.c | |||
| @@ -24,6 +24,7 @@ | |||
| 24 | #include <linux/amba/bus.h> | 24 | #include <linux/amba/bus.h> |
| 25 | #include <linux/amba/pl061.h> | 25 | #include <linux/amba/pl061.h> |
| 26 | #include <linux/amba/mmci.h> | 26 | #include <linux/amba/mmci.h> |
| 27 | #include <linux/amba/pl022.h> | ||
| 27 | #include <linux/io.h> | 28 | #include <linux/io.h> |
| 28 | 29 | ||
| 29 | #include <asm/irq.h> | 30 | #include <asm/irq.h> |
| @@ -136,6 +137,12 @@ static struct pl061_platform_data gpio2_plat_data = { | |||
| 136 | .irq_base = -1, | 137 | .irq_base = -1, |
| 137 | }; | 138 | }; |
| 138 | 139 | ||
| 140 | static struct pl022_ssp_controller ssp0_plat_data = { | ||
| 141 | .bus_id = 0, | ||
| 142 | .enable_dma = 0, | ||
| 143 | .num_chipselect = 1, | ||
| 144 | }; | ||
| 145 | |||
| 139 | /* | 146 | /* |
| 140 | * RealView PBXCore AMBA devices | 147 | * RealView PBXCore AMBA devices |
| 141 | */ | 148 | */ |
| @@ -202,7 +209,7 @@ AMBA_DEVICE(sci0, "dev:sci0", SCI, NULL); | |||
| 202 | AMBA_DEVICE(uart0, "dev:uart0", PBX_UART0, NULL); | 209 | AMBA_DEVICE(uart0, "dev:uart0", PBX_UART0, NULL); |
| 203 | AMBA_DEVICE(uart1, "dev:uart1", PBX_UART1, NULL); | 210 | AMBA_DEVICE(uart1, "dev:uart1", PBX_UART1, NULL); |
| 204 | AMBA_DEVICE(uart2, "dev:uart2", PBX_UART2, NULL); | 211 | AMBA_DEVICE(uart2, "dev:uart2", PBX_UART2, NULL); |
| 205 | AMBA_DEVICE(ssp0, "dev:ssp0", PBX_SSP, NULL); | 212 | AMBA_DEVICE(ssp0, "dev:ssp0", PBX_SSP, &ssp0_plat_data); |
| 206 | 213 | ||
| 207 | /* Primecells on the NEC ISSP chip */ | 214 | /* Primecells on the NEC ISSP chip */ |
| 208 | AMBA_DEVICE(clcd, "issp:clcd", PBX_CLCD, &clcd_plat_data); | 215 | AMBA_DEVICE(clcd, "issp:clcd", PBX_CLCD, &clcd_plat_data); |
