Lines Matching refs:EECTL
193 COMMAND=0, INTSTAT=4, INTMASK=8, GENCTL=0x0C, NVCTL=0x10, EECTL=0x14, enumerator
531 #define eeprom_delay() er32(EECTL)
577 (er32(EECTL) & 0x40 ? EE_READ64_CMD : EE_READ256_CMD); in read_eeprom()
579 ew32(EECTL, EE_ENB & ~EE_CS); in read_eeprom()
580 ew32(EECTL, EE_ENB); in read_eeprom()
585 ew32(EECTL, EE_ENB | dataval); in read_eeprom()
587 ew32(EECTL, EE_ENB | dataval | EE_SHIFT_CLK); in read_eeprom()
590 ew32(EECTL, EE_ENB); in read_eeprom()
593 ew32(EECTL, EE_ENB | EE_SHIFT_CLK); in read_eeprom()
595 retval = (retval << 1) | ((er32(EECTL) & EE_DATA_READ) ? 1 : 0); in read_eeprom()
596 ew32(EECTL, EE_ENB); in read_eeprom()
601 ew32(EECTL, EE_ENB & ~EE_CS); in read_eeprom()