106b4501eSAnatolij Gustschin /* 206b4501eSAnatolij Gustschin * Module: eeprom_93xx46 306b4501eSAnatolij Gustschin * platform description for 93xx46 EEPROMs. 406b4501eSAnatolij Gustschin */ 506b4501eSAnatolij Gustschin 606b4501eSAnatolij Gustschin struct eeprom_93xx46_platform_data { 706b4501eSAnatolij Gustschin unsigned char flags; 806b4501eSAnatolij Gustschin #define EE_ADDR8 0x01 /* 8 bit addr. cfg */ 906b4501eSAnatolij Gustschin #define EE_ADDR16 0x02 /* 16 bit addr. cfg */ 1006b4501eSAnatolij Gustschin #define EE_READONLY 0x08 /* forbid writing */ 1106b4501eSAnatolij Gustschin 1206b4501eSAnatolij Gustschin /* 1306b4501eSAnatolij Gustschin * optional hooks to control additional logic 1406b4501eSAnatolij Gustschin * before and after spi transfer. 1506b4501eSAnatolij Gustschin */ 1606b4501eSAnatolij Gustschin void (*prepare)(void *); 1706b4501eSAnatolij Gustschin void (*finish)(void *); 1806b4501eSAnatolij Gustschin }; 19