]> Pileus Git - ~andy/linux/blobdiff - arch/arm/mach-ux500/board-mop500.c
ARM: 6083/1: ux500: put DB8500-specific devices in devices-db8500.c
[~andy/linux] / arch / arm / mach-ux500 / board-mop500.c
index cc52d53d7727fbffe33a0cb454017dcf93b4f9cd..6bb9a3d3f51e44d10ba0e5d58fc83b9c3e4ae4e8 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <mach/hardware.h>
 #include <mach/setup.h>
+#include <mach/devices.h>
 
 #define __MEM_4K_RESOURCE(x) \
        .res = {.start = (x), .end = (x) + SZ_4K - 1, .flags = IORESOURCE_MEM}
@@ -91,22 +92,6 @@ static struct pl022_ssp_controller ssp0_platform_data = {
        .num_chipselect = 5,
 };
 
-static struct amba_device pl022_device = {
-       .dev = {
-               .coherent_dma_mask = ~0,
-               .init_name = "ssp0",
-               .platform_data = &ssp0_platform_data,
-       },
-       .res = {
-               .start = U8500_SSP0_BASE,
-               .end   = U8500_SSP0_BASE + SZ_4K - 1,
-               .flags = IORESOURCE_MEM,
-       },
-       .irq = {IRQ_SSP0, NO_IRQ },
-       /* ST-Ericsson modified id */
-       .periphid = SSP_PER_ID,
-};
-
 #define U8500_I2C_RESOURCES(id, size)          \
 static struct resource u8500_i2c_resources_##id[] = {  \
        [0] = {                                 \
@@ -175,7 +160,7 @@ static struct amba_device *amba_devs[] __initdata = {
        &uart0_device,
        &uart1_device,
        &uart2_device,
-       &pl022_device,
+       &u8500_ssp0_device,
 };
 
 /* add any platform devices here - TODO */
@@ -190,6 +175,8 @@ static void __init u8500_init_machine(void)
 {
        int i;
 
+       u8500_ssp0_device.dev.platform_data = &ssp0_platform_data;
+
        /* Register the active AMBA devices on this board */
        for (i = 0; i < ARRAY_SIZE(amba_devs); i++)
                amba_device_register(amba_devs[i], &iomem_resource);