diff options
| author | Michael Hennerich <michael.hennerich@analog.com> | 2008-02-02 01:55:28 -0500 |
|---|---|---|
| committer | Bryan Wu <bryan.wu@analog.com> | 2008-02-02 01:55:28 -0500 |
| commit | e9d76c2d082002f8bcbcee1a9202feda37fc0f72 (patch) | |
| tree | c48a66125786cd6a4da92e8ec6beb1067d0bf5b3 | |
| parent | c8279023117d4e964edbb3b0a99b9cb177e41a33 (diff) | |
[Blackfin] arch: Add Support for ISP1362
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
| -rw-r--r-- | arch/blackfin/mach-bf561/boards/ezkit.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf561/boards/ezkit.c b/arch/blackfin/mach-bf561/boards/ezkit.c index ed863ce9a2d8..d61e7ac056ee 100644 --- a/arch/blackfin/mach-bf561/boards/ezkit.c +++ b/arch/blackfin/mach-bf561/boards/ezkit.c | |||
| @@ -92,6 +92,47 @@ void __exit bfin_isp1761_exit(void) | |||
| 92 | arch_initcall(bfin_isp1761_init); | 92 | arch_initcall(bfin_isp1761_init); |
| 93 | #endif | 93 | #endif |
| 94 | 94 | ||
| 95 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) | ||
| 96 | #include <linux/usb/isp1362.h> | ||
| 97 | |||
| 98 | static struct resource isp1362_hcd_resources[] = { | ||
| 99 | { | ||
| 100 | .start = 0x2c060000, | ||
| 101 | .end = 0x2c060000, | ||
| 102 | .flags = IORESOURCE_MEM, | ||
| 103 | }, { | ||
| 104 | .start = 0x2c060004, | ||
| 105 | .end = 0x2c060004, | ||
| 106 | .flags = IORESOURCE_MEM, | ||
| 107 | }, { | ||
| 108 | .start = IRQ_PF8, | ||
| 109 | .end = IRQ_PF8, | ||
| 110 | .flags = IORESOURCE_IRQ, | ||
| 111 | }, | ||
| 112 | }; | ||
| 113 | |||
| 114 | static struct isp1362_platform_data isp1362_priv = { | ||
| 115 | .sel15Kres = 1, | ||
| 116 | .clknotstop = 0, | ||
| 117 | .oc_enable = 0, | ||
| 118 | .int_act_high = 0, | ||
| 119 | .int_edge_triggered = 0, | ||
| 120 | .remote_wakeup_connected = 0, | ||
| 121 | .no_power_switching = 1, | ||
| 122 | .power_switching_mode = 0, | ||
| 123 | }; | ||
| 124 | |||
| 125 | static struct platform_device isp1362_hcd_device = { | ||
| 126 | .name = "isp1362-hcd", | ||
| 127 | .id = 0, | ||
| 128 | .dev = { | ||
| 129 | .platform_data = &isp1362_priv, | ||
| 130 | }, | ||
| 131 | .num_resources = ARRAY_SIZE(isp1362_hcd_resources), | ||
| 132 | .resource = isp1362_hcd_resources, | ||
| 133 | }; | ||
| 134 | #endif | ||
| 135 | |||
| 95 | /* | 136 | /* |
| 96 | * USB-LAN EzExtender board | 137 | * USB-LAN EzExtender board |
| 97 | * Driver needs to know address, irq and flag pin. | 138 | * Driver needs to know address, irq and flag pin. |
| @@ -359,6 +400,11 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
| 359 | #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) | 400 | #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) |
| 360 | &i2c_gpio_device, | 401 | &i2c_gpio_device, |
| 361 | #endif | 402 | #endif |
| 403 | |||
| 404 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) | ||
| 405 | &isp1362_hcd_device, | ||
| 406 | #endif | ||
| 407 | |||
| 362 | &ezkit_flash_device, | 408 | &ezkit_flash_device, |
| 363 | }; | 409 | }; |
| 364 | 410 | ||
