Ralf Baechle | 42a3b4f2 | 2005-09-03 15:56:17 -0700 | [diff] [blame] | 1 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | * Atmel AT93C46 serial eeprom driver |
| 3 | * |
Ralf Baechle | 42a3b4f2 | 2005-09-03 15:56:17 -0700 | [diff] [blame] | 4 | * Brian Murphy <brian.murphy@eicon.com> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | * |
| 6 | */ |
| 7 | |
| 8 | extern struct at93c_defs { |
| 9 | volatile u32 *reg; |
| 10 | volatile u32 *rdata_reg; |
| 11 | int rdata_shift; |
| 12 | int wdata_shift; |
| 13 | u32 cs; |
| 14 | u32 clk; |
| 15 | } *at93c; |
| 16 | |
| 17 | u8 at93c_read(u8 addr); |
| 18 | void at93c_write(u8 addr, u8 data); |