4 * Copyright (C) 2007 MontaVista Software, Inc.
5 * Anton Vorontsov <avorontsov@ru.mvista.com>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
13 #ifndef __LINUX_MTD_NAND_FSL_UPM
14 #define __LINUX_MTD_NAND_FSL_UPM
16 #include <linux/mtd/nand.h>
18 #define FSL_UPM_WAIT_RUN_PATTERN 0x1
19 #define FSL_UPM_WAIT_WRITE_BYTE 0x2
20 #define FSL_UPM_WAIT_WRITE_BUFFER 0x4
26 void __iomem *io_addr;
35 int upm_mar_chip_offset;
37 int (*dev_ready)(int chip_nr);
46 extern int fsl_upm_nand_init(struct nand_chip *chip, struct fsl_upm_nand *fun);