#include <plat/usb.h>
#include "common.h"
-#include <plat/dma.h>
-#include "gpmc.h"
+#include <plat-omap/dma-omap.h>
- #include <plat/gpmc.h>
#include <video/omapdss.h>
#include <video/omap-panel-tfp410.h>
++#include "gpmc.h"
#include "gpmc-smc91x.h"
#include "board-flash.h"
#include <asm/mach/map.h>
#include <plat/menelaus.h>
-#include <plat/dma.h>
+#include <plat-omap/dma-omap.h>
- #include <plat/gpmc.h>
#include "debug-devices.h"
#include <video/omapdss.h>
#include <asm/system_info.h>
#include "common.h"
-#include <plat/dma.h>
-#include "gpmc.h"
+#include <plat-omap/dma-omap.h>
- #include <plat/gpmc.h>
#include <plat/omap-pm.h>
#include "gpmc-smc91x.h"
#include "mux.h"
#include "hsmmc.h"
#include "common-board-devices.h"
++#include "gpmc.h"
+ #include "gpmc-onenand.h"
#define SYSTEM_REV_B_USES_VAUX3 0x1699
#define SYSTEM_REV_S_USES_VAUX3 0x8
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
--#include "common.h"
-#include <plat/dma.h>
-#include "gpmc.h"
+#include <plat-omap/dma-omap.h>
- #include <plat/gpmc.h>
#include <plat/usb.h>
++#include "common.h"
#include "mux.h"
++#include "gpmc.h"
#include "pm.h"
#include "sdram-nokia.h"
#include "powerdomain.h"
#include <plat/sdrc.h>
#include <plat/prcm.h>
- #include <plat/gpmc.h>
-#include "gpmc.h"
-#include <plat/dma.h>
+#include <plat-omap/dma-omap.h>
#include "common.h"
#include "cm2xxx_3xxx.h"
#include "cm-regbits-34xx.h"
++#include "gpmc.h"
#include "prm-regbits-34xx.h"
#include "prm2xxx_3xxx.h"
#include <linux/bch.h>
#endif
-#include <plat/dma.h>
+#include <plat-omap/dma-omap.h>
- #include <plat/gpmc.h>
#include <linux/platform_data/mtd-nand-omap2.h>
#define DRIVER_NAME "omap2-nand"
#define ECC1RESULTSIZE 0x1
#define ECCCLEAR 0x100
#define ECC1 0x1
+ #define PREFETCH_FIFOTHRESHOLD_MAX 0x40
+ #define PREFETCH_FIFOTHRESHOLD(val) ((val) << 8)
+ #define PREFETCH_STATUS_COUNT(val) (val & 0x00003fff)
+ #define PREFETCH_STATUS_FIFO_CNT(val) ((val >> 24) & 0x7F)
+ #define STATUS_BUFF_EMPTY 0x00000001
+#define OMAP24XX_DMA_GPMC 4
+
/* oob info generated runtime depending on ecc algorithm and layout selected */
static struct nand_ecclayout omap_oobinfo;
/* Define some generic bad / good block scan pattern which are used
#include <linux/platform_data/mtd-onenand-omap2.h>
#include <asm/gpio.h>
-#include <plat/dma.h>
+#include <plat-omap/dma-omap.h>
- #include <plat/cpu.h>
#define DRIVER_NAME "omap2-onenand"