Added support for the Hynix HY27US08121A 64MB Flash chip.
[u-boot-openmoko/mini2440.git] / include / linux / mtd / fsl_upm.h
blob634ff0291cac1375a57ce1c0b5af89513745ad26
1 /*
2 * FSL UPM NAND driver
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 struct fsl_upm {
19 const u32 *array;
20 void __iomem *mdr;
21 void __iomem *mxmr;
22 void __iomem *mar;
23 void __iomem *io_addr;
26 struct fsl_upm_nand {
27 struct fsl_upm upm;
29 int width;
30 int upm_cmd_offset;
31 int upm_addr_offset;
32 int wait_pattern;
33 int (*dev_ready)(void);
34 int chip_delay;
37 extern int fsl_upm_nand_init(struct nand_chip *chip, struct fsl_upm_nand *fun);
39 #endif