blob: 7fc3b860d4ae9846bc07a5601a4091026ad16e9e [file] [log] [blame]
Bryan Wu1394f032007-05-06 14:50:22 -07001/*
Robin Getz96f10502009-09-24 14:11:24 +00002 * Copyright 2004-2009 Analog Devices Inc.
3 * 2008-2009 Bluetechnix
4 * 2005 National ICT Australia (NICTA)
5 * Aidan Williams <aidan@nicta.com.au>
Bryan Wu1394f032007-05-06 14:50:22 -07006 *
Robin Getz96f10502009-09-24 14:11:24 +00007 * Licensed under the GPL-2 or later.
Bryan Wu1394f032007-05-06 14:50:22 -07008 */
9
10#include <linux/device.h>
11#include <linux/platform_device.h>
12#include <linux/mtd/mtd.h>
13#include <linux/mtd/partitions.h>
Harald Krapfenbauer9c214532009-09-10 15:30:03 +000014#include <linux/mtd/physmap.h>
Bryan Wu1394f032007-05-06 14:50:22 -070015#include <linux/spi/spi.h>
16#include <linux/spi/flash.h>
Harald Krapfenbauer9c214532009-09-10 15:30:03 +000017#include <linux/spi/mmc_spi.h>
Mike Frysingerb964c592008-05-10 00:06:10 +080018#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
Mike Frysingerf02bcec2007-11-15 21:29:15 +080019#include <linux/usb/isp1362.h>
Mike Frysingerb964c592008-05-10 00:06:10 +080020#endif
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080021#include <linux/irq.h>
Bryan Wuc6c4d7b2007-10-11 01:20:06 +080022#include <asm/dma.h>
Bryan Wu1394f032007-05-06 14:50:22 -070023#include <asm/bfin5xx_spi.h>
Bryan Wu5d448dd2007-11-12 23:24:42 +080024#include <asm/portmux.h>
Michael Hennerich14b03202008-05-07 11:41:26 +080025#include <asm/dpmc.h>
Bryan Wu1394f032007-05-06 14:50:22 -070026
27/*
28 * Name the Board for the /proc/cpuinfo
29 */
Mike Frysinger066954a2007-10-21 22:36:06 +080030const char bfin_board_name[] = "Bluetechnix CM BF533";
Bryan Wu1394f032007-05-06 14:50:22 -070031
32#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
33/* all SPI peripherals info goes here */
Michael Hennericha15c2dc2007-10-29 17:31:18 +080034#if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)
Bryan Wu1394f032007-05-06 14:50:22 -070035static struct mtd_partition bfin_spi_flash_partitions[] = {
36 {
Robin Getzaa582972008-08-05 17:47:29 +080037 .name = "bootloader(spi)",
Bryan Wu1394f032007-05-06 14:50:22 -070038 .size = 0x00020000,
39 .offset = 0,
40 .mask_flags = MTD_CAP_ROM
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080041 }, {
Robin Getzaa582972008-08-05 17:47:29 +080042 .name = "linux kernel(spi)",
Bryan Wu1394f032007-05-06 14:50:22 -070043 .size = 0xe0000,
44 .offset = 0x20000
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080045 }, {
Robin Getzaa582972008-08-05 17:47:29 +080046 .name = "file system(spi)",
Bryan Wu1394f032007-05-06 14:50:22 -070047 .size = 0x700000,
48 .offset = 0x00100000,
49 }
50};
51
52static struct flash_platform_data bfin_spi_flash_data = {
53 .name = "m25p80",
54 .parts = bfin_spi_flash_partitions,
55 .nr_parts = ARRAY_SIZE(bfin_spi_flash_partitions),
56 .type = "m25p64",
57};
58
59/* SPI flash chip (m25p64) */
60static struct bfin5xx_spi_chip spi_flash_chip_info = {
61 .enable_dma = 0, /* use dma transfer with this chip*/
62 .bits_per_word = 8,
63};
Michael Hennericha15c2dc2007-10-29 17:31:18 +080064#endif
Bryan Wu1394f032007-05-06 14:50:22 -070065
66/* SPI ADC chip */
Mike Frysingera261eec2009-05-20 14:05:36 +000067#if defined(CONFIG_BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
Bryan Wu1394f032007-05-06 14:50:22 -070068static struct bfin5xx_spi_chip spi_adc_chip_info = {
69 .enable_dma = 1, /* use dma transfer with this chip*/
70 .bits_per_word = 16,
71};
Michael Hennericha15c2dc2007-10-29 17:31:18 +080072#endif
Bryan Wu1394f032007-05-06 14:50:22 -070073
74#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
75static struct bfin5xx_spi_chip ad1836_spi_chip_info = {
76 .enable_dma = 0,
77 .bits_per_word = 16,
78};
79#endif
80
Michael Hennerichf3f704d2009-03-06 00:27:57 +080081#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
82static struct bfin5xx_spi_chip mmc_spi_chip_info = {
83 .enable_dma = 0,
Michael Hennericha15c2dc2007-10-29 17:31:18 +080084 .bits_per_word = 8,
85};
86#endif
87
Bryan Wu1394f032007-05-06 14:50:22 -070088static struct spi_board_info bfin_spi_board_info[] __initdata = {
Michael Hennericha15c2dc2007-10-29 17:31:18 +080089#if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)
Bryan Wu1394f032007-05-06 14:50:22 -070090 {
91 /* the modalias must be the same as spi device driver name */
92 .modalias = "m25p80", /* Name of spi_driver for this device */
93 .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +080094 .bus_num = 0, /* Framework bus number */
Bryan Wu1394f032007-05-06 14:50:22 -070095 .chip_select = 1, /* Framework chip select. On STAMP537 it is SPISSEL1*/
96 .platform_data = &bfin_spi_flash_data,
97 .controller_data = &spi_flash_chip_info,
98 .mode = SPI_MODE_3,
Michael Hennericha15c2dc2007-10-29 17:31:18 +080099 },
100#endif
101
Mike Frysingera261eec2009-05-20 14:05:36 +0000102#if defined(CONFIG_BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
Michael Hennericha15c2dc2007-10-29 17:31:18 +0800103 {
Bryan Wu1394f032007-05-06 14:50:22 -0700104 .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
105 .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800106 .bus_num = 0, /* Framework bus number */
Bryan Wu1394f032007-05-06 14:50:22 -0700107 .chip_select = 2, /* Framework chip select. */
108 .platform_data = NULL, /* No spi_driver specific config */
109 .controller_data = &spi_adc_chip_info,
110 },
Michael Hennericha15c2dc2007-10-29 17:31:18 +0800111#endif
112
Bryan Wu1394f032007-05-06 14:50:22 -0700113#if defined(CONFIG_SND_BLACKFIN_AD1836) || defined(CONFIG_SND_BLACKFIN_AD1836_MODULE)
114 {
Barry Songdac98172009-08-13 21:07:37 +0000115 .modalias = "ad1836",
Bryan Wu1394f032007-05-06 14:50:22 -0700116 .max_speed_hz = 3125000, /* max spi clock (SCK) speed in HZ */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800117 .bus_num = 0,
Bryan Wu1394f032007-05-06 14:50:22 -0700118 .chip_select = CONFIG_SND_BLACKFIN_SPI_PFBIT,
119 .controller_data = &ad1836_spi_chip_info,
120 },
121#endif
Michael Hennericha15c2dc2007-10-29 17:31:18 +0800122
Michael Hennerichf3f704d2009-03-06 00:27:57 +0800123#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
Michael Hennericha15c2dc2007-10-29 17:31:18 +0800124 {
Michael Hennerichf3f704d2009-03-06 00:27:57 +0800125 .modalias = "mmc_spi",
Harald Krapfenbauer9c214532009-09-10 15:30:03 +0000126 .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */
Michael Hennericha15c2dc2007-10-29 17:31:18 +0800127 .bus_num = 0,
Harald Krapfenbauer9c214532009-09-10 15:30:03 +0000128 .chip_select = 1,
Michael Hennerichf3f704d2009-03-06 00:27:57 +0800129 .controller_data = &mmc_spi_chip_info,
Michael Hennericha15c2dc2007-10-29 17:31:18 +0800130 .mode = SPI_MODE_3,
131 },
132#endif
Bryan Wu1394f032007-05-06 14:50:22 -0700133};
134
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800135/* SPI (0) */
136static struct resource bfin_spi0_resource[] = {
137 [0] = {
138 .start = SPI0_REGBASE,
139 .end = SPI0_REGBASE + 0xFF,
140 .flags = IORESOURCE_MEM,
141 },
142 [1] = {
143 .start = CH_SPI,
144 .end = CH_SPI,
Yi Li53122692009-06-05 12:11:11 +0000145 .flags = IORESOURCE_DMA,
146 },
147 [2] = {
148 .start = IRQ_SPI,
149 .end = IRQ_SPI,
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800150 .flags = IORESOURCE_IRQ,
151 }
152};
153
Bryan Wu1394f032007-05-06 14:50:22 -0700154/* SPI controller data */
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800155static struct bfin5xx_spi_master bfin_spi0_info = {
Bryan Wu1394f032007-05-06 14:50:22 -0700156 .num_chipselect = 8,
157 .enable_dma = 1, /* master has the ability to do dma transfer */
Bryan Wu5d448dd2007-11-12 23:24:42 +0800158 .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
Bryan Wu1394f032007-05-06 14:50:22 -0700159};
160
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800161static struct platform_device bfin_spi0_device = {
162 .name = "bfin-spi",
163 .id = 0, /* Bus number */
164 .num_resources = ARRAY_SIZE(bfin_spi0_resource),
165 .resource = bfin_spi0_resource,
Bryan Wu1394f032007-05-06 14:50:22 -0700166 .dev = {
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800167 .platform_data = &bfin_spi0_info, /* Passed to driver */
Bryan Wu1394f032007-05-06 14:50:22 -0700168 },
169};
170#endif /* spi master and devices */
171
172#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
173static struct platform_device rtc_device = {
174 .name = "rtc-bfin",
175 .id = -1,
176};
177#endif
178
179#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
Michael Hennerich61f09b52009-07-24 08:48:31 +0000180#include <linux/smc91x.h>
181
182static struct smc91x_platdata smc91x_info = {
183 .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
184 .leda = RPC_LED_100_10,
185 .ledb = RPC_LED_TX_RX,
186};
187
Bryan Wu1394f032007-05-06 14:50:22 -0700188static struct resource smc91x_resources[] = {
189 {
190 .start = 0x20200300,
191 .end = 0x20200300 + 16,
192 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800193 }, {
Bryan Wu1394f032007-05-06 14:50:22 -0700194 .start = IRQ_PF0,
195 .end = IRQ_PF0,
196 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
197 },
198};
199static struct platform_device smc91x_device = {
200 .name = "smc91x",
201 .id = 0,
202 .num_resources = ARRAY_SIZE(smc91x_resources),
203 .resource = smc91x_resources,
Michael Hennerich61f09b52009-07-24 08:48:31 +0000204 .dev = {
205 .platform_data = &smc91x_info,
206 },
Bryan Wu1394f032007-05-06 14:50:22 -0700207};
208#endif
209
Harald Krapfenbauer9c214532009-09-10 15:30:03 +0000210#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
211#include <linux/smsc911x.h>
212
213static struct resource smsc911x_resources[] = {
214 {
215 .name = "smsc911x-memory",
216 .start = 0x20308000,
217 .end = 0x20308000 + 0xFF,
218 .flags = IORESOURCE_MEM,
219 }, {
220 .start = IRQ_PF8,
221 .end = IRQ_PF8,
222 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
223 },
224};
225
226static struct smsc911x_platform_config smsc911x_config = {
227 .flags = SMSC911X_USE_16BIT,
228 .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
229 .irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
230 .phy_interface = PHY_INTERFACE_MODE_MII,
231};
232
233static struct platform_device smsc911x_device = {
234 .name = "smsc911x",
235 .id = 0,
236 .num_resources = ARRAY_SIZE(smsc911x_resources),
237 .resource = smsc911x_resources,
238 .dev = {
239 .platform_data = &smsc911x_config,
240 },
241};
242#endif
243
Bryan Wu1394f032007-05-06 14:50:22 -0700244#if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
245static struct resource bfin_uart_resources[] = {
246 {
247 .start = 0xFFC00400,
248 .end = 0xFFC004FF,
249 .flags = IORESOURCE_MEM,
250 },
251};
252
253static struct platform_device bfin_uart_device = {
254 .name = "bfin-uart",
255 .id = 1,
256 .num_resources = ARRAY_SIZE(bfin_uart_resources),
257 .resource = bfin_uart_resources,
258};
259#endif
260
Graf Yang5be36d22008-04-25 03:09:15 +0800261#if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
Graf Yang5be36d22008-04-25 03:09:15 +0800262#ifdef CONFIG_BFIN_SIR0
Graf Yang42bd8bc2009-01-07 23:14:39 +0800263static struct resource bfin_sir0_resources[] = {
Graf Yang5be36d22008-04-25 03:09:15 +0800264 {
265 .start = 0xFFC00400,
266 .end = 0xFFC004FF,
267 .flags = IORESOURCE_MEM,
268 },
Graf Yang42bd8bc2009-01-07 23:14:39 +0800269 {
270 .start = IRQ_UART0_RX,
271 .end = IRQ_UART0_RX+1,
272 .flags = IORESOURCE_IRQ,
273 },
274 {
275 .start = CH_UART0_RX,
276 .end = CH_UART0_RX+1,
277 .flags = IORESOURCE_DMA,
278 },
Graf Yang5be36d22008-04-25 03:09:15 +0800279};
280
Graf Yang42bd8bc2009-01-07 23:14:39 +0800281static struct platform_device bfin_sir0_device = {
Graf Yang5be36d22008-04-25 03:09:15 +0800282 .name = "bfin_sir",
283 .id = 0,
Graf Yang42bd8bc2009-01-07 23:14:39 +0800284 .num_resources = ARRAY_SIZE(bfin_sir0_resources),
285 .resource = bfin_sir0_resources,
Graf Yang5be36d22008-04-25 03:09:15 +0800286};
287#endif
Graf Yang42bd8bc2009-01-07 23:14:39 +0800288#endif
Graf Yang5be36d22008-04-25 03:09:15 +0800289
Bryan Wu1394f032007-05-06 14:50:22 -0700290#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
291static struct platform_device bfin_sport0_uart_device = {
292 .name = "bfin-sport-uart",
293 .id = 0,
294};
295
296static struct platform_device bfin_sport1_uart_device = {
297 .name = "bfin-sport-uart",
298 .id = 1,
299};
300#endif
301
302#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
303static struct resource isp1362_hcd_resources[] = {
304 {
305 .start = 0x20308000,
306 .end = 0x20308000,
307 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800308 }, {
Bryan Wu1394f032007-05-06 14:50:22 -0700309 .start = 0x20308004,
310 .end = 0x20308004,
311 .flags = IORESOURCE_MEM,
Mike Frysinger1f83b8f2007-07-12 22:58:21 +0800312 }, {
Bryan Wu1394f032007-05-06 14:50:22 -0700313 .start = IRQ_PF4,
314 .end = IRQ_PF4,
315 .flags = IORESOURCE_IRQ,
316 },
317};
318
319static struct isp1362_platform_data isp1362_priv = {
320 .sel15Kres = 1,
321 .clknotstop = 0,
322 .oc_enable = 0,
323 .int_act_high = 0,
324 .int_edge_triggered = 0,
325 .remote_wakeup_connected = 0,
326 .no_power_switching = 1,
327 .power_switching_mode = 0,
328};
329
330static struct platform_device isp1362_hcd_device = {
331 .name = "isp1362-hcd",
332 .id = 0,
333 .dev = {
334 .platform_data = &isp1362_priv,
335 },
336 .num_resources = ARRAY_SIZE(isp1362_hcd_resources),
337 .resource = isp1362_hcd_resources,
338};
339#endif
340
Harald Krapfenbauer9c214532009-09-10 15:30:03 +0000341
342#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
343static struct resource net2272_bfin_resources[] = {
344 {
345 .start = 0x20300000,
346 .end = 0x20300000 + 0x100,
347 .flags = IORESOURCE_MEM,
348 }, {
349 .start = IRQ_PF6,
350 .end = IRQ_PF6,
351 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
352 },
353};
354
355static struct platform_device net2272_bfin_device = {
356 .name = "net2272",
357 .id = -1,
358 .num_resources = ARRAY_SIZE(net2272_bfin_resources),
359 .resource = net2272_bfin_resources,
360};
361#endif
362
363
364
365#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
366static struct mtd_partition para_partitions[] = {
367 {
368 .name = "bootloader(nor)",
369 .size = 0x40000,
370 .offset = 0,
371 }, {
372 .name = "linux+rootfs(nor)",
373 .size = MTDPART_SIZ_FULL,
374 .offset = MTDPART_OFS_APPEND,
375 },
376};
377
378static struct physmap_flash_data para_flash_data = {
379 .width = 2,
380 .parts = para_partitions,
381 .nr_parts = ARRAY_SIZE(para_partitions),
382};
383
384static struct resource para_flash_resource = {
385 .start = 0x20000000,
386 .end = 0x201fffff,
387 .flags = IORESOURCE_MEM,
388};
389
390static struct platform_device para_flash_device = {
391 .name = "physmap-flash",
392 .id = 0,
393 .dev = {
394 .platform_data = &para_flash_data,
395 },
396 .num_resources = 1,
397 .resource = &para_flash_resource,
398};
399#endif
400
401
402
Michael Hennerich14b03202008-05-07 11:41:26 +0800403static const unsigned int cclk_vlev_datasheet[] =
404{
405 VRPAIR(VLEV_085, 250000000),
406 VRPAIR(VLEV_090, 376000000),
407 VRPAIR(VLEV_095, 426000000),
408 VRPAIR(VLEV_100, 426000000),
409 VRPAIR(VLEV_105, 476000000),
410 VRPAIR(VLEV_110, 476000000),
411 VRPAIR(VLEV_115, 476000000),
412 VRPAIR(VLEV_120, 600000000),
413 VRPAIR(VLEV_125, 600000000),
414 VRPAIR(VLEV_130, 600000000),
415};
416
417static struct bfin_dpmc_platform_data bfin_dmpc_vreg_data = {
418 .tuple_tab = cclk_vlev_datasheet,
419 .tabsize = ARRAY_SIZE(cclk_vlev_datasheet),
420 .vr_settling_time = 25 /* us */,
421};
422
423static struct platform_device bfin_dpmc = {
424 .name = "bfin dpmc",
425 .dev = {
426 .platform_data = &bfin_dmpc_vreg_data,
427 },
428};
429
Bryan Wu1394f032007-05-06 14:50:22 -0700430static struct platform_device *cm_bf533_devices[] __initdata = {
Michael Hennerich14b03202008-05-07 11:41:26 +0800431
432 &bfin_dpmc,
433
Bryan Wu1394f032007-05-06 14:50:22 -0700434#if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
435 &bfin_uart_device,
436#endif
437
Graf Yang5be36d22008-04-25 03:09:15 +0800438#if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
Graf Yang42bd8bc2009-01-07 23:14:39 +0800439#ifdef CONFIG_BFIN_SIR0
440 &bfin_sir0_device,
441#endif
Graf Yang5be36d22008-04-25 03:09:15 +0800442#endif
443
Bryan Wu1394f032007-05-06 14:50:22 -0700444#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
445 &bfin_sport0_uart_device,
446 &bfin_sport1_uart_device,
447#endif
448
449#if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
450 &rtc_device,
451#endif
452
453#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
454 &isp1362_hcd_device,
455#endif
456
457#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
458 &smc91x_device,
459#endif
460
Harald Krapfenbauer9c214532009-09-10 15:30:03 +0000461#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
462 &smsc911x_device,
463#endif
464
465#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
466 &net2272_bfin_device,
467#endif
468
Bryan Wu1394f032007-05-06 14:50:22 -0700469#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
Bryan Wuc6c4d7b2007-10-11 01:20:06 +0800470 &bfin_spi0_device,
471#endif
Mike Frysingerc97618d2009-01-07 23:14:38 +0800472
Harald Krapfenbauer9c214532009-09-10 15:30:03 +0000473#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
474 &para_flash_device,
475#endif
Bryan Wu1394f032007-05-06 14:50:22 -0700476};
477
478static int __init cm_bf533_init(void)
479{
Harvey Harrisonb85d8582008-04-23 09:39:01 +0800480 printk(KERN_INFO "%s(): registering device resources\n", __func__);
Bryan Wu1394f032007-05-06 14:50:22 -0700481 platform_add_devices(cm_bf533_devices, ARRAY_SIZE(cm_bf533_devices));
482#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
483 spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
484#endif
Bryan Wu1394f032007-05-06 14:50:22 -0700485 return 0;
486}
487
488arch_initcall(cm_bf533_init);