Lines Matching refs:eeprom
119 SCBflash = 12, SCBeeprom = 14, /* EEPROM and flash memory control. */
131 /* Serial EEPROM section.
134 #define EE_SHIFT_CLK 0x01 /* EEPROM shift clock. */
135 #define EE_CS 0x02 /* EEPROM chip select. */
136 #define EE_DATA_WRITE 0x04 /* EEPROM chip data in. */
137 #define EE_DATA_READ 0x08 /* EEPROM chip data out. */
144 /* The EEPROM commands include the alway-set leading bit. */
315 <visitor@valinux.com> to strictly follow Intel specifications of EEPROM
318 interval for serial EEPROM. However, it looks like that there is an
338 /* Terminate the EEPROM access. */
490 /* we cache only the first few words of the EEPROM data
492 unsigned short eeprom[16];
511 if (i < (int)(sizeof(eeprom)/sizeof(eeprom[0])))
512 eeprom[i] = value;
517 eeprom[i/2] >> (8*(i&1))) & 0xff;
522 printf("eepro100: Invalid EEPROM checksum %#hX, "
527 whereami ("Got eeprom.");
591 if ( ((eeprom[6]>>8) & 0x3f) == DP83840
592 || ((eeprom[6]>>8) & 0x3f) == DP83840A) {
593 int mdi_reg23 = mdio_read(eeprom[6] & 0x1f, 23) | 0x0422;
598 mdio_write(eeprom[6] & 0x1f, 23, mdi_reg23);
602 mdio_write(eeprom[6] & 0x1f, 0,