aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf561/boards/ezkit.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/mach-bf561/boards/ezkit.c')
-rw-r--r--arch/blackfin/mach-bf561/boards/ezkit.c87
1 files changed, 87 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf561/boards/ezkit.c b/arch/blackfin/mach-bf561/boards/ezkit.c
index ed863ce9a2d8..43c1b0982819 100644
--- a/arch/blackfin/mach-bf561/boards/ezkit.c
+++ b/arch/blackfin/mach-bf561/boards/ezkit.c
@@ -92,6 +92,68 @@ void __exit bfin_isp1761_exit(void)
92arch_initcall(bfin_isp1761_init); 92arch_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
98static 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
114static 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
125static 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
136#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
137static struct resource net2272_bfin_resources[] = {
138 {
139 .start = 0x2C000000,
140 .end = 0x2C000000 + 0x7F,
141 .flags = IORESOURCE_MEM,
142 }, {
143 .start = IRQ_PF10,
144 .end = IRQ_PF10,
145 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
146 },
147};
148
149static struct platform_device net2272_bfin_device = {
150 .name = "net2272",
151 .id = -1,
152 .num_resources = ARRAY_SIZE(net2272_bfin_resources),
153 .resource = net2272_bfin_resources,
154};
155#endif
156
95/* 157/*
96 * USB-LAN EzExtender board 158 * USB-LAN EzExtender board
97 * Driver needs to know address, irq and flag pin. 159 * Driver needs to know address, irq and flag pin.
@@ -204,6 +266,13 @@ static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
204 .bits_per_word = 16, 266 .bits_per_word = 16,
205}; 267};
206#endif 268#endif
269
270#if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
271static struct bfin5xx_spi_chip spidev_chip_info = {
272 .enable_dma = 0,
273 .bits_per_word = 8,
274};
275#endif
207#endif 276#endif
208 277
209/* SPI (0) */ 278/* SPI (0) */
@@ -248,6 +317,15 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
248 .controller_data = &ad1836_spi_chip_info, 317 .controller_data = &ad1836_spi_chip_info,
249 }, 318 },
250#endif 319#endif
320#if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
321 {
322 .modalias = "spidev",
323 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
324 .bus_num = 0,
325 .chip_select = 1,
326 .controller_data = &spidev_chip_info,
327 },
328#endif
251}; 329};
252 330
253#if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) 331#if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE)
@@ -340,6 +418,10 @@ static struct platform_device *ezkit_devices[] __initdata = {
340 &ax88180_device, 418 &ax88180_device,
341#endif 419#endif
342 420
421#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
422 &net2272_bfin_device,
423#endif
424
343#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) 425#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
344 &bfin_spi0_device, 426 &bfin_spi0_device,
345#endif 427#endif
@@ -359,6 +441,11 @@ static struct platform_device *ezkit_devices[] __initdata = {
359#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) 441#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
360 &i2c_gpio_device, 442 &i2c_gpio_device,
361#endif 443#endif
444
445#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
446 &isp1362_hcd_device,
447#endif
448
362 &ezkit_flash_device, 449 &ezkit_flash_device,
363}; 450};
364 451