Home
last modified time | relevance | path

Searched refs:E2P_CMD (Results 1 – 6 of 6) sorted by relevance

/external/u-boot/board/micronas/vct/
Dsmc_eeprom.c45 #define E2P_CMD (SMSC9118_BASE + 0xB0) macro
141 if ((temp = smc911x_reg_read(E2P_CMD)) & E2P_CMD_EPC_BUSY_) { in eeprom_read_location()
146 smc911x_reg_write(E2P_CMD, in eeprom_read_location()
150 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_read_location()
169 if (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_) { in eeprom_enable_erase_and_write()
173 smc911x_reg_write(E2P_CMD, (E2P_CMD_EPC_BUSY_ | E2P_CMD_EPC_CMD_EWEN_)); in eeprom_enable_erase_and_write()
175 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_enable_erase_and_write()
192 if (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_) { in eeprom_disable_erase_and_write()
196 smc911x_reg_write(E2P_CMD, (E2P_CMD_EPC_BUSY_ | E2P_CMD_EPC_CMD_EWDS_)); in eeprom_disable_erase_and_write()
198 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_disable_erase_and_write()
[all …]
/external/u-boot/examples/standalone/
Dsmc911x_eeprom.c71 if (smc911x_reg_read(dev, E2P_CMD) & E2P_CMD_EPC_BUSY) { in do_eeprom_cmd()
73 smc911x_reg_read(dev, E2P_CMD)); in do_eeprom_cmd()
77 smc911x_reg_write(dev, E2P_CMD, E2P_CMD_EPC_BUSY | cmd | reg); in do_eeprom_cmd()
79 while (smc911x_reg_read(dev, E2P_CMD) & E2P_CMD_EPC_BUSY) in do_eeprom_cmd()
82 smc911x_reg_read(dev, E2P_CMD)); in do_eeprom_cmd()
252 while (smc911x_reg_read(dev, E2P_CMD) & E2P_CMD_EPC_BUSY) in smc911x_init()
255 smc911x_reg_read(dev, E2P_CMD)); in smc911x_init()
/external/u-boot/drivers/usb/eth/
Dlan7x.c140 E2P_CMD, E2P_CMD_EPC_BUSY, in lan7x_eeprom_confirm_not_busy()
147 E2P_CMD, in lan7x_wait_eeprom()
165 lan7x_write_reg(udev, E2P_CMD, val); in lan7x_read_eeprom()
Dsmsc95xx.c63 #define E2P_CMD 0x30 macro
270 smsc95xx_read_reg(udev, E2P_CMD, &val); in smsc95xx_eeprom_confirm_not_busy()
286 smsc95xx_read_reg(udev, E2P_CMD, &val); in smsc95xx_wait_eeprom()
311 smsc95xx_write_reg(udev, E2P_CMD, val); in smsc95xx_read_eeprom()
Dlan7x.h39 #define E2P_CMD 0x040 macro
/external/u-boot/drivers/net/
Dsmc911x.h291 #define E2P_CMD 0xB0 macro
483 while (timeout-- && smc911x_reg_read(dev, E2P_CMD) & E2P_CMD_EPC_BUSY) in smc911x_reset()