From: Vitaly W. <vw...@ru...> - 2005-12-19 07:57:05
|
David Brownell wrote: >>--- /dev/null >>+++ linux-2.6.orig/drivers/spi/pnx4008-eeprom.c >>@@ -0,0 +1,121 @@ >>... >>+#define EEPROM_SIZE 256 >>+#define DRIVER_NAME "EEPROM" >>+#define READ_BUFF_SIZE 160 >> >> > >Wouldn't it be better to have an EEPROM driver that's not hard-wired >to this particular devel board? And which could work on at least all >chips using eight bit addressing? > >This seems to match the 25020 series SPI EEPROMS. (2 Kbits, 256 bytes.) >But the 25010 and 25040 also use 8 bit address protoocol ... and then >there are also chips using 16 bit addresses, and 24 bit ones. > >Shouldn't board init code be able to just say "25640 at spi1 chipselect 3", >and have the driver know that means 8 KBytes with pagesize 32? > > > Looks reasonable to me, thanks. Anyway - not today :) Vitaly |