Commit c804cecd authored by Bo Henriksen's avatar Bo Henriksen Committed by Russell King

[ARM PATCH] 2065/1: LH7A40X UDC ARCH changes

Patch from Bo Henriksen

This patch is part of the UDC driver for the lh7a40x sdk. 
Please submit this patch for 2.6.9, otherwise the UDC driver will not work.
parent 77d509a5
...@@ -45,7 +45,6 @@ static struct platform_device smc91x_device = { ...@@ -45,7 +45,6 @@ static struct platform_device smc91x_device = {
.resource = smc91x_resources, .resource = smc91x_resources,
}; };
#if 0
static struct resource lh7a40x_usbclient_resources[] = { static struct resource lh7a40x_usbclient_resources[] = {
[0] = { [0] = {
.start = USB_PHYS, .start = USB_PHYS,
...@@ -53,8 +52,8 @@ static struct resource lh7a40x_usbclient_resources[] = { ...@@ -53,8 +52,8 @@ static struct resource lh7a40x_usbclient_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = IRQ_USB, .start = IRQ_USBINTR,
.end = IRQ_USB, .end = IRQ_USBINTR,
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -62,7 +61,7 @@ static struct resource lh7a40x_usbclient_resources[] = { ...@@ -62,7 +61,7 @@ static struct resource lh7a40x_usbclient_resources[] = {
static u64 lh7a40x_usbclient_dma_mask = 0xffffffffUL; static u64 lh7a40x_usbclient_dma_mask = 0xffffffffUL;
static struct platform_device lh7a40x_usbclient_device = { static struct platform_device lh7a40x_usbclient_device = {
.name = "lh7a40x-udc", .name = "lh7a40x_udc",
.id = 0, .id = 0,
.dev = { .dev = {
.dma_mask = &lh7a40x_usbclient_dma_mask, .dma_mask = &lh7a40x_usbclient_dma_mask,
...@@ -71,7 +70,6 @@ static struct platform_device lh7a40x_usbclient_device = { ...@@ -71,7 +70,6 @@ static struct platform_device lh7a40x_usbclient_device = {
.num_resources = ARRAY_SIZE (lh7a40x_usbclient_resources), .num_resources = ARRAY_SIZE (lh7a40x_usbclient_resources),
.resource = lh7a40x_usbclient_resources, .resource = lh7a40x_usbclient_resources,
}; };
#endif
#if defined (CONFIG_ARCH_LH7A404) #if defined (CONFIG_ARCH_LH7A404)
...@@ -105,8 +103,7 @@ static struct platform_device lh7a404_usbhost_device = { ...@@ -105,8 +103,7 @@ static struct platform_device lh7a404_usbhost_device = {
static struct platform_device *lpd7a40x_devs[] __initdata = { static struct platform_device *lpd7a40x_devs[] __initdata = {
&smc91x_device, &smc91x_device,
/* &lh7a40x_usbclient_device, */ &lh7a40x_usbclient_device,
#if defined (CONFIG_ARCH_LH7A404) #if defined (CONFIG_ARCH_LH7A404)
&lh7a404_usbhost_device, &lh7a404_usbhost_device,
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment