diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-overo.c')
-rw-r--r-- | arch/arm/mach-omap2/board-overo.c | 42 |
1 files changed, 2 insertions, 40 deletions
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 809d3944f549..7ad2d7fea8d8 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c | |||
@@ -304,45 +304,6 @@ static struct mtd_partition overo_nand_partitions[] = { | |||
304 | }, | 304 | }, |
305 | }; | 305 | }; |
306 | 306 | ||
307 | static struct omap_nand_platform_data overo_nand_data = { | ||
308 | .parts = overo_nand_partitions, | ||
309 | .nr_parts = ARRAY_SIZE(overo_nand_partitions), | ||
310 | .dma_channel = -1, /* disable DMA in OMAP NAND driver */ | ||
311 | }; | ||
312 | |||
313 | static void __init overo_flash_init(void) | ||
314 | { | ||
315 | u8 cs = 0; | ||
316 | u8 nandcs = GPMC_CS_NUM + 1; | ||
317 | |||
318 | /* find out the chip-select on which NAND exists */ | ||
319 | while (cs < GPMC_CS_NUM) { | ||
320 | u32 ret = 0; | ||
321 | ret = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG1); | ||
322 | |||
323 | if ((ret & 0xC00) == 0x800) { | ||
324 | printk(KERN_INFO "Found NAND on CS%d\n", cs); | ||
325 | if (nandcs > GPMC_CS_NUM) | ||
326 | nandcs = cs; | ||
327 | } | ||
328 | cs++; | ||
329 | } | ||
330 | |||
331 | if (nandcs > GPMC_CS_NUM) { | ||
332 | printk(KERN_INFO "NAND: Unable to find configuration " | ||
333 | "in GPMC\n "); | ||
334 | return; | ||
335 | } | ||
336 | |||
337 | if (nandcs < GPMC_CS_NUM) { | ||
338 | overo_nand_data.cs = nandcs; | ||
339 | |||
340 | printk(KERN_INFO "Registering NAND on CS%d\n", nandcs); | ||
341 | if (gpmc_nand_init(&overo_nand_data) < 0) | ||
342 | printk(KERN_ERR "Unable to register NAND device\n"); | ||
343 | } | ||
344 | } | ||
345 | |||
346 | static struct omap2_hsmmc_info mmc[] = { | 307 | static struct omap2_hsmmc_info mmc[] = { |
347 | { | 308 | { |
348 | .mmc = 1, | 309 | .mmc = 1, |
@@ -604,7 +565,8 @@ static void __init overo_init(void) | |||
604 | overo_i2c_init(); | 565 | overo_i2c_init(); |
605 | omap_display_init(&overo_dss_data); | 566 | omap_display_init(&overo_dss_data); |
606 | omap_serial_init(); | 567 | omap_serial_init(); |
607 | overo_flash_init(); | 568 | omap_nand_flash_init(0, overo_nand_partitions, |
569 | ARRAY_SIZE(overo_nand_partitions)); | ||
608 | usb_musb_init(&musb_board_data); | 570 | usb_musb_init(&musb_board_data); |
609 | usbhs_init(&usbhs_bdata); | 571 | usbhs_init(&usbhs_bdata); |
610 | overo_spi_init(); | 572 | overo_spi_init(); |