atmel.h 639 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * atmel platform data
  3. *
  4. * GPL v2 Only
  5. */
  6. #ifndef __ATMEL_H__
  7. #define __ATMEL_H__
  8. #include <linux/mtd/nand.h>
  9. /* NAND / SmartMedia */
  10. struct atmel_nand_data {
  11. int enable_pin; /* chip enable */
  12. int det_pin; /* card detect */
  13. int rdy_pin; /* ready/busy */
  14. u8 rdy_pin_active_low; /* rdy_pin value is inverted */
  15. u8 ale; /* address line number connected to ALE */
  16. u8 cle; /* address line number connected to CLE */
  17. u8 bus_width_16; /* buswidth is 16 bit */
  18. u8 ecc_mode; /* ecc mode */
  19. u8 on_flash_bbt; /* bbt on flash */
  20. struct mtd_partition *parts;
  21. unsigned int num_parts;
  22. };
  23. #endif /* __ATMEL_H__ */