blob: 0e2178a1aec501023cd3051f18d8cc75346aa133 [file] [log] [blame]
Bryan Wu1394f032007-05-06 14:50:22 -07001/*
2 * File: arch/blackfin/mach-bf561/ezkit.c
3 * Based on:
4 * Author:
5 *
6 * Created:
7 * Description:
8 *
9 * Modified:
10 * Copyright 2004-2006 Analog Devices Inc.
11 *
12 * Bugs: Enter bugs at http://blackfin.uclinux.org/
13 *
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, see the file COPYING, or write
26 * to the Free Software Foundation, Inc.,
27 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28 */
29
30#include <linux/device.h>
31#include <linux/platform_device.h>
Mike Frysingerde8c43f2008-01-24 17:14:04 +080032#include <linux/mtd/mtd.h>
33#include <linux/mtd/partitions.h>
34#include <linux/mtd/physmap.h>
Bryan Wu1394f032007-05-06 14:50:22 -070035#include <linux/spi/spi.h>
Michael Hennerich140a9ae2007-05-21 18:09:13 +080036#include <linux/irq.h>
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080037#include <linux/interrupt.h>
Bryan Wuc6c4d7b2007-10-11 01:20:06 +080038#include <asm/dma.h>
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080039#include <asm/bfin5xx_spi.h>
Bryan Wu5d448dd2007-11-12 23:24:42 +080040#include <asm/portmux.h>
Michael Hennerich14b03202008-05-07 11:41:26 +080041#include <asm/dpmc.h>
Bryan Wu1394f032007-05-06 14:50:22 -070042
43/*
44 * Name the Board for the /proc/cpuinfo
45 */
Mike Frysingerfe85cad2008-11-18 17:48:22 +080046const char bfin_board_name[] = "ADI BF561-EZKIT";
Bryan Wu1394f032007-05-06 14:50:22 -070047
Michael Hennerich140a9ae2007-05-21 18:09:13 +080048#if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE)
Michael Hennerich3f375692008-11-18 17:48:22 +080049#include <linux/usb/isp1760.h>
50static struct resource bfin_isp1760_resources[] = {
51 [0] = {
52 .start = 0x2C0F0000,
53 .end = 0x203C0000 + 0xfffff,
Michael Hennerich140a9ae2007-05-21 18:09:13 +080054 .flags = IORESOURCE_MEM,
55 },
Michael Hennerich3f375692008-11-18 17:48:22 +080056 [1] = {
57 .start = IRQ_PF10,
58 .end = IRQ_PF10,
Michael Hennerich140a9ae2007-05-21 18:09:13 +080059 .flags = IORESOURCE_IRQ,
60 },
61};
62
Michael Hennerich3f375692008-11-18 17:48:22 +080063static struct isp1760_platform_data isp1760_priv = {
64 .is_isp1761 = 0,
65 .port1_disable = 0,
66 .bus_width_16 = 1,
67 .port1_otg = 0,
68 .analog_oc = 0,
69 .dack_polarity_high = 0,
70 .dreq_polarity_high = 0,
71};
72
73static struct platform_device bfin_isp1760_device = {
74 .name = "isp1760-hcd",
Michael Hennerich140a9ae2007-05-21 18:09:13 +080075 .id = 0,
Michael Hennerich3f375692008-11-18 17:48:22 +080076 .dev = {
77 .platform_data = &isp1760_priv,
78 },
79 .num_resources = ARRAY_SIZE(bfin_isp1760_resources),
80 .resource = bfin_isp1760_resources,
Michael Hennerich140a9ae2007-05-21 18:09:13 +080081};
Michael Hennerich140a9ae2007-05-21 18:09:13 +080082#endif
83
Michael Henneriche9d76c22008-02-02 14:55:28 +080084#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
85#include <linux/usb/isp1362.h>
86
87static struct resource isp1362_hcd_resources[] = {
88 {
89 .start = 0x2c060000,
90 .end = 0x2c060000,
91 .flags = IORESOURCE_MEM,
92 }, {
93 .start = 0x2c060004,
94 .end = 0x2c060004,
95 .flags = IORESOURCE_MEM,
96 }, {
97 .start = IRQ_PF8,
98 .end = IRQ_PF8,
99 .flags = IORESOURCE_IRQ,
100 },
101};
102
103static struct isp1362_platform_data isp1362_priv = {
104 .sel15Kres = 1,
105 .clknotstop = 0,
106 .oc_enable = 0,
107 .int_act_high = 0,
108 .int_edge_triggered = 0,
109 .remote_wakeup_connected = 0,
110 .no_power_switching = 1,
111 .power_switching_mode = 0,
112};
113
114static struct platform_device isp1362_hcd_device = {
115 .name = "isp1362-hcd",
116 .id = 0,
117 .dev = {
118 .platform_data = &isp1362_priv,
119 },
120 .num_resources = ARRAY_SIZE(isp1362_hcd_resources),
121 .resource = isp1362_hcd_resources,
122};
123#endif
124
Michael Hennerich83d9cde2008-02-02 16:25:17 +0800125#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
126static struct resource net2272_bfin_resources[] = {
127 {
128 .start = 0x2C000000,
129 .end = 0x2C000000 + 0x7F,
130 .flags = IORESOURCE_MEM,
131 }, {
132 .start = IRQ_PF10,
133 .end = IRQ_PF10,
134 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
135 },
136};
137
138static struct platform_device net2272_bfin_device = {
139 .name = "net2272",
140 .id = -1,
141 .num_resources = ARRAY_SIZE(net2272_bfin_resources),
142 .resource = net2272_bfin_resources,
143};
144#endif
145
Bryan Wu1394f032007-05-06 14:50:22 -0700146/*
147 * USB-LAN EzExtender board
148 * Driver needs to know address, irq and flag pin.
149 */
150#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
151static struct resource smc91x_resources[] = {
152 {
153 .name = "smc91x-regs",
154 .start = 0x2C010300,
155 .end = 0x2C010300 + 16,
156 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800157 }, {
Bryan Wu1394f032007-05-06 14:50:22 -0700158
159 .start = IRQ_PF9,
160 .end = IRQ_PF9,
161 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
162 },
163};
164
165static struct platform_device smc91x_device = {
166 .name = "smc91x",
167 .id = 0,
168 .num_resources = ARRAY_SIZE(smc91x_resources),
169 .resource = smc91x_resources,
170};
171#endif
172
Michael Hennerich561cc182007-11-17 23:56:08 +0800173#if defined(CONFIG_AX88180) || defined(CONFIG_AX88180_MODULE)
174static struct resource ax88180_resources[] = {
175 [0] = {
176 .start = 0x2c000000,
177 .end = 0x2c000000 + 0x8000,
178 .flags = IORESOURCE_MEM,
179 },
180 [1] = {
181 .start = IRQ_PF10,
182 .end = IRQ_PF10,
183 .flags = (IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL),
184 },
185};
186
187static struct platform_device ax88180_device = {
188 .name = "ax88180",
189 .id = -1,
190 .num_resources = ARRAY_SIZE(ax88180_resources),
191 .resource = ax88180_resources,
192};
193#endif
194
Bryan Wu1394f032007-05-06 14:50:22 -0700195#if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
196static struct resource bfin_uart_resources[] = {
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800197 {
198 .start = 0xFFC00400,
199 .end = 0xFFC004FF,
200 .flags = IORESOURCE_MEM,
201 },
Bryan Wu1394f032007-05-06 14:50:22 -0700202};
203
204static struct platform_device bfin_uart_device = {
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800205 .name = "bfin-uart",
206 .id = 1,
207 .num_resources = ARRAY_SIZE(bfin_uart_resources),
208 .resource = bfin_uart_resources,
Bryan Wu1394f032007-05-06 14:50:22 -0700209};
210#endif
211
Graf Yang5be36d22008-04-25 03:09:15 +0800212#if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
Graf Yang5be36d22008-04-25 03:09:15 +0800213#ifdef CONFIG_BFIN_SIR0
Graf Yang42bd8bc2009-01-07 23:14:39 +0800214static struct resource bfin_sir0_resources[] = {
Graf Yang5be36d22008-04-25 03:09:15 +0800215 {
216 .start = 0xFFC00400,
217 .end = 0xFFC004FF,
218 .flags = IORESOURCE_MEM,
219 },
Graf Yang42bd8bc2009-01-07 23:14:39 +0800220 {
221 .start = IRQ_UART0_RX,
222 .end = IRQ_UART0_RX+1,
223 .flags = IORESOURCE_IRQ,
224 },
225 {
226 .start = CH_UART0_RX,
227 .end = CH_UART0_RX+1,
228 .flags = IORESOURCE_DMA,
229 },
Graf Yang5be36d22008-04-25 03:09:15 +0800230};
231
Graf Yang42bd8bc2009-01-07 23:14:39 +0800232static struct platform_device bfin_sir0_device = {
Graf Yang5be36d22008-04-25 03:09:15 +0800233 .name = "bfin_sir",
234 .id = 0,
Graf Yang42bd8bc2009-01-07 23:14:39 +0800235 .num_resources = ARRAY_SIZE(bfin_sir0_resources),
236 .resource = bfin_sir0_resources,
Graf Yang5be36d22008-04-25 03:09:15 +0800237};
238#endif
Graf Yang42bd8bc2009-01-07 23:14:39 +0800239#endif
Graf Yang5be36d22008-04-25 03:09:15 +0800240
Mike Frysinger793dc272008-03-26 08:09:12 +0800241#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
Mike Frysingerde8c43f2008-01-24 17:14:04 +0800242static struct mtd_partition ezkit_partitions[] = {
243 {
Robin Getzaa582972008-08-05 17:47:29 +0800244 .name = "bootloader(nor)",
Mike Frysingeredf05642008-02-25 11:38:11 +0800245 .size = 0x40000,
Mike Frysingerde8c43f2008-01-24 17:14:04 +0800246 .offset = 0,
247 }, {
Robin Getzaa582972008-08-05 17:47:29 +0800248 .name = "linux kernel(nor)",
Grace Panac76d882008-04-24 06:33:56 +0800249 .size = 0x1C0000,
Mike Frysingerde8c43f2008-01-24 17:14:04 +0800250 .offset = MTDPART_OFS_APPEND,
251 }, {
Robin Getzaa582972008-08-05 17:47:29 +0800252 .name = "file system(nor)",
Mike Frysingerde8c43f2008-01-24 17:14:04 +0800253 .size = MTDPART_SIZ_FULL,
254 .offset = MTDPART_OFS_APPEND,
255 }
256};
257
258static struct physmap_flash_data ezkit_flash_data = {
259 .width = 2,
260 .parts = ezkit_partitions,
261 .nr_parts = ARRAY_SIZE(ezkit_partitions),
262};
263
264static struct resource ezkit_flash_resource = {
265 .start = 0x20000000,
266 .end = 0x207fffff,
267 .flags = IORESOURCE_MEM,
268};
269
270static struct platform_device ezkit_flash_device = {
271 .name = "physmap-flash",
272 .id = 0,
273 .dev = {
274 .platform_data = &ezkit_flash_data,
275 },
276 .num_resources = 1,
277 .resource = &ezkit_flash_resource,
278};
Mike Frysinger793dc272008-03-26 08:09:12 +0800279#endif
Mike Frysingerde8c43f2008-01-24 17:14:04 +0800280
Bryan Wu1394f032007-05-06 14:50:22 -0700281#if defined(CONFIG_SND_BLACKFIN_AD1836) \
282 || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
283static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
284 .enable_dma = 0,
285 .bits_per_word = 16,
286};
287#endif
Michael Hennerich6e668932008-02-09 01:54:09 +0800288
289#if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
290static struct bfin5xx_spi_chip spidev_chip_info = {
291 .enable_dma = 0,
292 .bits_per_word = 8,
293};
294#endif
Bryan Wu1394f032007-05-06 14:50:22 -0700295
Mike Frysinger5bda2722008-06-07 15:03:01 +0800296#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800297/* SPI (0) */
298static struct resource bfin_spi0_resource[] = {
299 [0] = {
300 .start = SPI0_REGBASE,
301 .end = SPI0_REGBASE + 0xFF,
302 .flags = IORESOURCE_MEM,
303 },
304 [1] = {
305 .start = CH_SPI,
306 .end = CH_SPI,
307 .flags = IORESOURCE_IRQ,
308 }
309};
310
Bryan Wu1394f032007-05-06 14:50:22 -0700311/* SPI controller data */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800312static struct bfin5xx_spi_master bfin_spi0_info = {
Bryan Wu1394f032007-05-06 14:50:22 -0700313 .num_chipselect = 8,
314 .enable_dma = 1, /* master has the ability to do dma transfer */
Bryan Wu5d448dd2007-11-12 23:24:42 +0800315 .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
Bryan Wu1394f032007-05-06 14:50:22 -0700316};
317
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800318static struct platform_device bfin_spi0_device = {
319 .name = "bfin-spi",
320 .id = 0, /* Bus number */
321 .num_resources = ARRAY_SIZE(bfin_spi0_resource),
322 .resource = bfin_spi0_resource,
Bryan Wu1394f032007-05-06 14:50:22 -0700323 .dev = {
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800324 .platform_data = &bfin_spi0_info, /* Passed to driver */
Bryan Wu1394f032007-05-06 14:50:22 -0700325 },
326};
Mike Frysinger5bda2722008-06-07 15:03:01 +0800327#endif
Bryan Wu1394f032007-05-06 14:50:22 -0700328
329static struct spi_board_info bfin_spi_board_info[] __initdata = {
330#if defined(CONFIG_SND_BLACKFIN_AD1836) \
331 || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
332 {
333 .modalias = "ad1836-spi",
334 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800335 .bus_num = 0,
Bryan Wu1394f032007-05-06 14:50:22 -0700336 .chip_select = CONFIG_SND_BLACKFIN_SPI_PFBIT,
337 .controller_data = &ad1836_spi_chip_info,
338 },
339#endif
Michael Hennerich6e668932008-02-09 01:54:09 +0800340#if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
341 {
342 .modalias = "spidev",
343 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
344 .bus_num = 0,
345 .chip_select = 1,
346 .controller_data = &spidev_chip_info,
347 },
348#endif
Bryan Wu1394f032007-05-06 14:50:22 -0700349};
350
Michael Hennerich2463ef22008-01-27 16:49:48 +0800351#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
352#include <linux/input.h>
353#include <linux/gpio_keys.h>
354
355static struct gpio_keys_button bfin_gpio_keys_table[] = {
356 {BTN_0, GPIO_PF5, 1, "gpio-keys: BTN0"},
357 {BTN_1, GPIO_PF6, 1, "gpio-keys: BTN1"},
358 {BTN_2, GPIO_PF7, 1, "gpio-keys: BTN2"},
359 {BTN_3, GPIO_PF8, 1, "gpio-keys: BTN3"},
360};
361
362static struct gpio_keys_platform_data bfin_gpio_keys_data = {
363 .buttons = bfin_gpio_keys_table,
364 .nbuttons = ARRAY_SIZE(bfin_gpio_keys_table),
365};
366
367static struct platform_device bfin_device_gpiokeys = {
368 .name = "gpio-keys",
369 .dev = {
370 .platform_data = &bfin_gpio_keys_data,
371 },
372};
373#endif
374
Mike Frysingercad2ab62008-02-22 17:01:31 +0800375static struct resource bfin_gpios_resources = {
376 .start = 0,
377 .end = MAX_BLACKFIN_GPIOS - 1,
378 .flags = IORESOURCE_IRQ,
379};
380
381static struct platform_device bfin_gpios_device = {
382 .name = "simple-gpio",
383 .id = -1,
384 .num_resources = 1,
385 .resource = &bfin_gpios_resources,
386};
387
Bryan Wue3163952008-01-24 16:19:15 +0800388#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
389#include <linux/i2c-gpio.h>
390
391static struct i2c_gpio_platform_data i2c_gpio_data = {
392 .sda_pin = 1,
393 .scl_pin = 0,
394 .sda_is_open_drain = 0,
395 .scl_is_open_drain = 0,
396 .udelay = 40,
397};
398
399static struct platform_device i2c_gpio_device = {
400 .name = "i2c-gpio",
401 .id = 0,
402 .dev = {
403 .platform_data = &i2c_gpio_data,
404 },
405};
406#endif
407
Michael Hennerich14b03202008-05-07 11:41:26 +0800408static const unsigned int cclk_vlev_datasheet[] =
409{
410 VRPAIR(VLEV_085, 250000000),
411 VRPAIR(VLEV_090, 300000000),
412 VRPAIR(VLEV_095, 313000000),
413 VRPAIR(VLEV_100, 350000000),
414 VRPAIR(VLEV_105, 400000000),
415 VRPAIR(VLEV_110, 444000000),
416 VRPAIR(VLEV_115, 450000000),
417 VRPAIR(VLEV_120, 475000000),
418 VRPAIR(VLEV_125, 500000000),
419 VRPAIR(VLEV_130, 600000000),
420};
421
422static struct bfin_dpmc_platform_data bfin_dmpc_vreg_data = {
423 .tuple_tab = cclk_vlev_datasheet,
424 .tabsize = ARRAY_SIZE(cclk_vlev_datasheet),
425 .vr_settling_time = 25 /* us */,
426};
427
428static struct platform_device bfin_dpmc = {
429 .name = "bfin dpmc",
430 .dev = {
431 .platform_data = &bfin_dmpc_vreg_data,
432 },
433};
434
Bryan Wu1394f032007-05-06 14:50:22 -0700435static struct platform_device *ezkit_devices[] __initdata = {
Michael Hennerich14b03202008-05-07 11:41:26 +0800436
437 &bfin_dpmc,
438
Bryan Wu1394f032007-05-06 14:50:22 -0700439#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
440 &smc91x_device,
441#endif
Michael Hennerich561cc182007-11-17 23:56:08 +0800442
443#if defined(CONFIG_AX88180) || defined(CONFIG_AX88180_MODULE)
444 &ax88180_device,
445#endif
446
Michael Hennerich83d9cde2008-02-02 16:25:17 +0800447#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
448 &net2272_bfin_device,
449#endif
450
Michael Hennerich3f375692008-11-18 17:48:22 +0800451#if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE)
452 &bfin_isp1760_device,
453#endif
454
Bryan Wu1394f032007-05-06 14:50:22 -0700455#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800456 &bfin_spi0_device,
Bryan Wu1394f032007-05-06 14:50:22 -0700457#endif
Michael Hennerich2463ef22008-01-27 16:49:48 +0800458
Bryan Wu1394f032007-05-06 14:50:22 -0700459#if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800460 &bfin_uart_device,
Bryan Wu1394f032007-05-06 14:50:22 -0700461#endif
Michael Hennerich2463ef22008-01-27 16:49:48 +0800462
Graf Yang5be36d22008-04-25 03:09:15 +0800463#if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
Graf Yang42bd8bc2009-01-07 23:14:39 +0800464#ifdef CONFIG_BFIN_SIR0
465 &bfin_sir0_device,
466#endif
Graf Yang5be36d22008-04-25 03:09:15 +0800467#endif
468
Michael Hennerich2463ef22008-01-27 16:49:48 +0800469#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
470 &bfin_device_gpiokeys,
471#endif
Bryan Wue3163952008-01-24 16:19:15 +0800472
473#if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
474 &i2c_gpio_device,
475#endif
Michael Henneriche9d76c22008-02-02 14:55:28 +0800476
477#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
478 &isp1362_hcd_device,
479#endif
480
Mike Frysingercad2ab62008-02-22 17:01:31 +0800481 &bfin_gpios_device,
Mike Frysinger793dc272008-03-26 08:09:12 +0800482
483#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
Mike Frysingerde8c43f2008-01-24 17:14:04 +0800484 &ezkit_flash_device,
Mike Frysinger793dc272008-03-26 08:09:12 +0800485#endif
Bryan Wu1394f032007-05-06 14:50:22 -0700486};
487
488static int __init ezkit_init(void)
489{
490 int ret;
491
Mike Frysingerc0fc5252007-05-21 18:09:25 +0800492 printk(KERN_INFO "%s(): registering device resources\n", __func__);
493
494 ret = platform_add_devices(ezkit_devices, ARRAY_SIZE(ezkit_devices));
Bryan Wu1394f032007-05-06 14:50:22 -0700495 if (ret < 0)
496 return ret;
Mike Frysingerc0fc5252007-05-21 18:09:25 +0800497
498#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
499 bfin_write_FIO0_DIR(bfin_read_FIO0_DIR() | (1 << 12));
500 SSYNC();
501#endif
502
Mike Frysinger5bda2722008-06-07 15:03:01 +0800503 spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800504 return 0;
Bryan Wu1394f032007-05-06 14:50:22 -0700505}
506
507arch_initcall(ezkit_init);