nand.h 895 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * BF5XX - NAND flash controller platform_device info
  3. *
  4. * Copyright 2007-2008 Analog Devices, Inc.
  5. *
  6. * Licensed under the GPL-2
  7. */
  8. /* struct bf5xx_nand_platform
  9. *
  10. * define a interface between platform board specific code and
  11. * bf54x NFC driver.
  12. *
  13. * nr_partitions = number of partitions pointed to be partitoons (or zero)
  14. * partitions = mtd partition list
  15. */
  16. #define NFC_PG_SIZE_OFFSET 9
  17. #define NFC_NWIDTH_8 0
  18. #define NFC_NWIDTH_16 1
  19. #define NFC_NWIDTH_OFFSET 8
  20. #define NFC_RDDLY_OFFSET 4
  21. #define NFC_WRDLY_OFFSET 0
  22. #define NFC_STAT_NBUSY 1
  23. struct bf5xx_nand_platform {
  24. /* NAND chip information */
  25. unsigned short data_width;
  26. /* RD/WR strobe delay timing information, all times in SCLK cycles */
  27. unsigned short rd_dly;
  28. unsigned short wr_dly;
  29. /* NAND MTD partition information */
  30. int nr_partitions;
  31. struct mtd_partition *partitions;
  32. };