|
@@ -96,15 +96,6 @@ static struct mtd_partition omap3touchbook_nand_partitions[] = {
|
|
|
},
|
|
|
};
|
|
|
|
|
|
-static struct omap_nand_platform_data omap3touchbook_nand_data = {
|
|
|
- .options = NAND_BUSWIDTH_16,
|
|
|
- .parts = omap3touchbook_nand_partitions,
|
|
|
- .nr_parts = ARRAY_SIZE(omap3touchbook_nand_partitions),
|
|
|
- .dma_channel = -1, /* disable DMA in OMAP NAND driver */
|
|
|
- .nand_setup = NULL,
|
|
|
- .dev_ready = NULL,
|
|
|
-};
|
|
|
-
|
|
|
#include "sdram-micron-mt46h32m32lf-6.h"
|
|
|
|
|
|
static struct omap2_hsmmc_info mmc[] = {
|
|
@@ -396,39 +387,6 @@ static struct platform_device *omap3_touchbook_devices[] __initdata = {
|
|
|
&keys_gpio,
|
|
|
};
|
|
|
|
|
|
-static void __init omap3touchbook_flash_init(void)
|
|
|
-{
|
|
|
- u8 cs = 0;
|
|
|
- u8 nandcs = GPMC_CS_NUM + 1;
|
|
|
-
|
|
|
- /* find out the chip-select on which NAND exists */
|
|
|
- while (cs < GPMC_CS_NUM) {
|
|
|
- u32 ret = 0;
|
|
|
- ret = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG1);
|
|
|
-
|
|
|
- if ((ret & 0xC00) == 0x800) {
|
|
|
- printk(KERN_INFO "Found NAND on CS%d\n", cs);
|
|
|
- if (nandcs > GPMC_CS_NUM)
|
|
|
- nandcs = cs;
|
|
|
- }
|
|
|
- cs++;
|
|
|
- }
|
|
|
-
|
|
|
- if (nandcs > GPMC_CS_NUM) {
|
|
|
- printk(KERN_INFO "NAND: Unable to find configuration "
|
|
|
- "in GPMC\n ");
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- if (nandcs < GPMC_CS_NUM) {
|
|
|
- omap3touchbook_nand_data.cs = nandcs;
|
|
|
-
|
|
|
- printk(KERN_INFO "Registering NAND on CS%d\n", nandcs);
|
|
|
- if (gpmc_nand_init(&omap3touchbook_nand_data) < 0)
|
|
|
- printk(KERN_ERR "Unable to register NAND device\n");
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
static const struct usbhs_omap_board_data usbhs_bdata __initconst = {
|
|
|
|
|
|
.port_mode[0] = OMAP_EHCI_PORT_MODE_PHY,
|
|
@@ -491,7 +449,8 @@ static void __init omap3_touchbook_init(void)
|
|
|
omap_ads7846_init(4, OMAP3_TS_GPIO, 310, &ads7846_pdata);
|
|
|
usb_musb_init(&musb_board_data);
|
|
|
usbhs_init(&usbhs_bdata);
|
|
|
- omap3touchbook_flash_init();
|
|
|
+ omap_nand_flash_init(NAND_BUSWIDTH_16, omap3touchbook_nand_partitions,
|
|
|
+ ARRAY_SIZE(omap3touchbook_nand_partitions));
|
|
|
|
|
|
/* Ensure SDRC pins are mux'd for self-refresh */
|
|
|
omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
|