X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Farm%2Fmach-lh7a40x%2Farch-lpd7a40x.c;h=06373b295f8358528ca7576c17b688efee0407f8;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=9e0bf6c18234812f1d2db7c787239197346f5cbb;hpb=9bf4aaab3e101692164d49b7ca357651eb691cb6;p=linux-2.6.git diff --git a/arch/arm/mach-lh7a40x/arch-lpd7a40x.c b/arch/arm/mach-lh7a40x/arch-lpd7a40x.c index 9e0bf6c18..06373b295 100644 --- a/arch/arm/mach-lh7a40x/arch-lpd7a40x.c +++ b/arch/arm/mach-lh7a40x/arch-lpd7a40x.c @@ -11,17 +11,17 @@ #include #include #include +#include #include #include #include #include -#include /* io_p2v() */ #include #include #include -#include +#include "common.h" static struct resource smc91x_resources[] = { [0] = { @@ -45,7 +45,6 @@ static struct platform_device smc91x_device = { .resource = smc91x_resources, }; -#if 0 static struct resource lh7a40x_usbclient_resources[] = { [0] = { .start = USB_PHYS, @@ -53,8 +52,8 @@ static struct resource lh7a40x_usbclient_resources[] = { .flags = IORESOURCE_MEM, }, [1] = { - .start = IRQ_USB, - .end = IRQ_USB, + .start = IRQ_USBINTR, + .end = IRQ_USBINTR, .flags = IORESOURCE_IRQ, }, }; @@ -62,7 +61,7 @@ static struct resource lh7a40x_usbclient_resources[] = { static u64 lh7a40x_usbclient_dma_mask = 0xffffffffUL; static struct platform_device lh7a40x_usbclient_device = { - .name = "lh7a40x-udc", + .name = "lh7a40x_udc", .id = 0, .dev = { .dma_mask = &lh7a40x_usbclient_dma_mask, @@ -71,7 +70,6 @@ static struct platform_device lh7a40x_usbclient_device = { .num_resources = ARRAY_SIZE (lh7a40x_usbclient_resources), .resource = lh7a40x_usbclient_resources, }; -#endif #if defined (CONFIG_ARCH_LH7A404) @@ -105,8 +103,7 @@ static struct platform_device lh7a404_usbhost_device = { static struct platform_device *lpd7a40x_devs[] __initdata = { &smc91x_device, -/* &lh7a40x_usbclient_device, */ - + &lh7a40x_usbclient_device, #if defined (CONFIG_ARCH_LH7A404) &lh7a404_usbhost_device, #endif @@ -264,16 +261,13 @@ lpd7a400_map_io(void) #ifdef CONFIG_MACH_LPD7A400 -extern void lh7a400_init_irq (void); -extern void lh7a40x_init_time (void); - MACHINE_START (LPD7A400, "Logic Product Development LPD7A400-10") MAINTAINER ("Marc Singer") BOOT_MEM (0xc0000000, 0x80000000, io_p2v (0x80000000)) BOOT_PARAMS (0xc0000100) MAPIO (lpd7a400_map_io) INITIRQ (lh7a400_init_irq) - INITTIME (lh7a40x_init_time) + .timer = &lh7a40x_timer, INIT_MACHINE (lpd7a40x_init) MACHINE_END @@ -281,16 +275,13 @@ MACHINE_END #ifdef CONFIG_MACH_LPD7A404 -extern void lh7a404_init_irq (void); -extern void lh7a40x_init_time (void); - MACHINE_START (LPD7A404, "Logic Product Development LPD7A404-10") MAINTAINER ("Marc Singer") BOOT_MEM (0xc0000000, 0x80000000, io_p2v (0x80000000)) BOOT_PARAMS (0xc0000100) MAPIO (lpd7a400_map_io) INITIRQ (lh7a404_init_irq) - INITTIME (lh7a40x_init_time) + .timer = &lh7a40x_timer, INIT_MACHINE (lpd7a40x_init) MACHINE_END