diff options
| -rw-r--r-- | arch/arm/mach-shmobile/board-kzm9g.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c index a46aec1ddb4..f48db233719 100644 --- a/arch/arm/mach-shmobile/board-kzm9g.c +++ b/arch/arm/mach-shmobile/board-kzm9g.c | |||
| @@ -21,6 +21,7 @@ | |||
| 21 | #include <linux/irq.h> | 21 | #include <linux/irq.h> |
| 22 | #include <linux/platform_device.h> | 22 | #include <linux/platform_device.h> |
| 23 | #include <linux/smsc911x.h> | 23 | #include <linux/smsc911x.h> |
| 24 | #include <linux/usb/r8a66597.h> | ||
| 24 | #include <mach/irqs.h> | 25 | #include <mach/irqs.h> |
| 25 | #include <mach/sh73a0.h> | 26 | #include <mach/sh73a0.h> |
| 26 | #include <mach/common.h> | 27 | #include <mach/common.h> |
| @@ -58,8 +59,38 @@ static struct platform_device smsc_device = { | |||
| 58 | .num_resources = ARRAY_SIZE(smsc9221_resources), | 59 | .num_resources = ARRAY_SIZE(smsc9221_resources), |
| 59 | }; | 60 | }; |
| 60 | 61 | ||
| 62 | /* USB external chip */ | ||
| 63 | static struct r8a66597_platdata usb_host_data = { | ||
| 64 | .on_chip = 0, | ||
| 65 | .xtal = R8A66597_PLATDATA_XTAL_48MHZ, | ||
| 66 | }; | ||
| 67 | |||
| 68 | static struct resource usb_resources[] = { | ||
| 69 | [0] = { | ||
| 70 | .start = 0x10010000, | ||
| 71 | .end = 0x1001ffff - 1, | ||
| 72 | .flags = IORESOURCE_MEM, | ||
| 73 | }, | ||
| 74 | [1] = { | ||
| 75 | .start = intcs_evt2irq(0x220), /* IRQ1 */ | ||
| 76 | .flags = IORESOURCE_IRQ, | ||
| 77 | }, | ||
| 78 | }; | ||
| 79 | |||
| 80 | static struct platform_device usb_host_device = { | ||
| 81 | .name = "r8a66597_hcd", | ||
| 82 | .dev = { | ||
| 83 | .platform_data = &usb_host_data, | ||
| 84 | .dma_mask = NULL, | ||
| 85 | .coherent_dma_mask = 0xffffffff, | ||
| 86 | }, | ||
| 87 | .num_resources = ARRAY_SIZE(usb_resources), | ||
| 88 | .resource = usb_resources, | ||
| 89 | }; | ||
| 90 | |||
| 61 | static struct platform_device *kzm_devices[] __initdata = { | 91 | static struct platform_device *kzm_devices[] __initdata = { |
| 62 | &smsc_device, | 92 | &smsc_device, |
| 93 | &usb_host_device, | ||
| 63 | }; | 94 | }; |
| 64 | 95 | ||
| 65 | static void __init kzm_init(void) | 96 | static void __init kzm_init(void) |
