commit 8cc05f79d2a4e33d5cb621f36a448d5157f46893
tree 745f3dd45bc3483685ed5f40507bfd46478bd513
parent 088406bcf66d6c7fd8a5c04c00aa410ae9077403
author Vitaly Wool <[EMAIL PROTECTED](none)> 1161080182 +0100
committer Russell King <[EMAIL PROTECTED]> 1163086724 +0000

[ARM] 3857/2: pnx4008: add devices' registration

This patch adds platform devices' registration for the devices which drivers
either have been added to the mainline or on the way to.

 arch/arm/mach-pnx4008/core.c |   69 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

Signed-off-by: Vitaly Wool <[EMAIL PROTECTED]>
Signed-off-by: Russell King <[EMAIL PROTECTED]>

 arch/arm/mach-pnx4008/core.c |   69 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

diff --git a/arch/arm/mach-pnx4008/core.c b/arch/arm/mach-pnx4008/core.c
index 3d73c1e..429c796 100644
--- a/arch/arm/mach-pnx4008/core.c
+++ b/arch/arm/mach-pnx4008/core.c
@@ -133,10 +133,79 @@ static struct platform_device serial_dev
        },
 };
 
+static struct platform_device nand_flash_device = {
+       .name = "pnx4008-flash",
+       .id = -1,
+       .dev = {
+               .coherent_dma_mask = 0xFFFFFFFF,
+       },
+};
+
+/* The dmamask must be set for OHCI to work */
+static u64 ohci_dmamask = ~(u32) 0;
+
+static struct resource ohci_resources[] = {
+       {
+               .start = IO_ADDRESS(PNX4008_USB_CONFIG_BASE),
+               .end = IO_ADDRESS(PNX4008_USB_CONFIG_BASE + 0x100),
+               .flags = IORESOURCE_MEM,
+       }, {
+               .start = USB_HOST_INT,
+               .flags = IORESOURCE_IRQ,
+       },
+};
+
+static struct platform_device ohci_device = {
+       .name = "pnx4008-usb-ohci",
+       .id = -1,
+       .dev = {
+               .dma_mask = &ohci_dmamask,
+               .coherent_dma_mask = 0xffffffff,
+               },
+       .num_resources = ARRAY_SIZE(ohci_resources),
+       .resource = ohci_resources,
+};
+
+static struct platform_device sdum_device = {
+       .name = "pnx4008-sdum",
+       .id = 0,
+       .dev = {
+               .coherent_dma_mask = 0xffffffff,
+       },
+};
+
+static struct platform_device rgbfb_device = {
+       .name = "pnx4008-rgbfb",
+       .id = 0,
+       .dev = {
+               .coherent_dma_mask = 0xffffffff,
+       }
+};
+
+struct resource watchdog_resources[] = {
+       {
+               .start = PNX4008_WDOG_BASE,
+               .end = PNX4008_WDOG_BASE + SZ_4K - 1,
+               .flags = IORESOURCE_MEM,
+       },
+};
+
+static struct platform_device watchdog_device = {
+       .name = "pnx4008-watchdog",
+       .id = -1,
+       .num_resources = ARRAY_SIZE(watchdog_resources),
+       .resource = watchdog_resources,
+};
+
 static struct platform_device *devices[] __initdata = {
        &spipnx_1,
        &spipnx_2,
        &serial_device,
+       &ohci_device,
+       &nand_flash_device,
+       &sdum_device,
+       &rgbfb_device,
+       &watchdog_device,
 };
 
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to