1 /* SPDX-License-Identifier: GPL-2.0+ */
5 * Copyright (C) 2007 MontaVista Software, Inc.
6 * Anton Vorontsov <avorontsov@ru.mvista.com>
9 #ifndef __LINUX_MTD_NAND_FSL_UPM
10 #define __LINUX_MTD_NAND_FSL_UPM
12 #include <linux/mtd/rawnand.h>
14 #define FSL_UPM_WAIT_RUN_PATTERN 0x1
15 #define FSL_UPM_WAIT_WRITE_BYTE 0x2
16 #define FSL_UPM_WAIT_WRITE_BUFFER 0x4
22 void __iomem *io_addr;
31 int upm_mar_chip_offset;
33 int (*dev_ready)(int chip_nr);
42 extern int fsl_upm_nand_init(struct nand_chip *chip, struct fsl_upm_nand *fun);