fsl_upm.h 896 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * FSL UPM NAND driver
  3. *
  4. * Copyright (C) 2007 MontaVista Software, Inc.
  5. * Anton Vorontsov <avorontsov@ru.mvista.com>
  6. *
  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.
  11. */
  12. #ifndef __LINUX_MTD_NAND_FSL_UPM
  13. #define __LINUX_MTD_NAND_FSL_UPM
  14. #include <linux/mtd/nand.h>
  15. struct fsl_upm {
  16. void __iomem *mdr;
  17. void __iomem *mxmr;
  18. void __iomem *mar;
  19. void __iomem *io_addr;
  20. };
  21. struct fsl_upm_nand {
  22. struct fsl_upm upm;
  23. int width;
  24. int upm_cmd_offset;
  25. int upm_addr_offset;
  26. int wait_pattern;
  27. int (*dev_ready)(void);
  28. int chip_delay;
  29. /* no need to fill */
  30. int last_ctrl;
  31. };
  32. extern int fsl_upm_nand_init(struct nand_chip *chip, struct fsl_upm_nand *fun);
  33. #endif