static struct nand_chip nand_chip;
static void mxs_nand_command(struct mtd_info *mtd, unsigned int command,
int column, int page_addr)
{
static struct nand_chip nand_chip;
static void mxs_nand_command(struct mtd_info *mtd, unsigned int command,
int column, int page_addr)
{
int ret;
chip->cmdfunc(mtd, NAND_CMD_READ0, 0x0, page);
int ret;
chip->cmdfunc(mtd, NAND_CMD_READ0, 0x0, page);
/* allocate and initialize buffers */
nand_chip.buffers = memalign(ARCH_DMA_MINALIGN,
sizeof(*nand_chip.buffers));
/* allocate and initialize buffers */
nand_chip.buffers = memalign(ARCH_DMA_MINALIGN,
sizeof(*nand_chip.buffers));
debug("%s offset:0x%08x len:%d page:%d\n", __func__, offs, size, page);
debug("%s offset:0x%08x len:%d page:%d\n", __func__, offs, size, page);
* Yes, new block. See if this block is good. If not,
* loop until we find a good block.
*/
* Yes, new block. See if this block is good. If not,
* loop until we find a good block.
*/