4 * Copyright (C) 2007 MontaVista Software, Inc.
5 * Anton Vorontsov <avorontsov@ru.mvista.com>
7 * SPDX-License-Identifier: GPL-2.0+
10 #ifndef __LINUX_MTD_NAND_FSL_UPM
11 #define __LINUX_MTD_NAND_FSL_UPM
13 #include <linux/mtd/nand.h>
15 #define FSL_UPM_WAIT_RUN_PATTERN 0x1
16 #define FSL_UPM_WAIT_WRITE_BYTE 0x2
17 #define FSL_UPM_WAIT_WRITE_BUFFER 0x4
23 void __iomem *io_addr;
32 int upm_mar_chip_offset;
34 int (*dev_ready)(int chip_nr);
43 extern int fsl_upm_nand_init(struct nand_chip *chip, struct fsl_upm_nand *fun);