eeprom_93xx46.h 422 B

123456789101112131415161718
  1. /*
  2. * Module: eeprom_93xx46
  3. * platform description for 93xx46 EEPROMs.
  4. */
  5. struct eeprom_93xx46_platform_data {
  6. unsigned char flags;
  7. #define EE_ADDR8 0x01 /* 8 bit addr. cfg */
  8. #define EE_ADDR16 0x02 /* 16 bit addr. cfg */
  9. #define EE_READONLY 0x08 /* forbid writing */
  10. /*
  11. * optional hooks to control additional logic
  12. * before and after spi transfer.
  13. */
  14. void (*prepare)(void *);
  15. void (*finish)(void *);
  16. };