mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 14:32:49 +03:00
[realtek] Force EEPROM CS low before disabling EEPROM access mode
Some RTL8169 cards seem to drive the EEPROM CS line high (i.e. active) when 9346CR.EEM is set to "normal operating mode", with the result that the CS line is never deasserted. The symptom of this is that the first read from the EEPROM will work, while all subsequent reads will return garbage data. Reported-by: Thomas Miletich <thomas.miletich@gmail.com> Debugged-by: Thomas Miletich <thomas.miletich@gmail.com> Tested-by: Thomas Miletich <thomas.miletich@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -158,8 +158,9 @@ enum realtek_legacy_status {
|
||||
|
||||
/** 93C46 (93C56) Command Register (byte) */
|
||||
#define RTL_9346CR 0x50
|
||||
#define RTL_9346CR_EEM1 0x80 /**< Mode select bit 1 */
|
||||
#define RTL_9346CR_EEM0 0x40 /**< Mode select bit 0 */
|
||||
#define RTL_9346CR_EEM(x) ( (x) << 6 ) /**< Mode select */
|
||||
#define RTL_9346CR_EEM_EEPROM RTL_9346CR_EEM ( 0x2 ) /**< EEPROM mode */
|
||||
#define RTL_9346CR_EEM_NORMAL RTL_9346CR_EEM ( 0x0 ) /**< Normal mode */
|
||||
#define RTL_9346CR_EECS 0x08 /**< Chip select */
|
||||
#define RTL_9346CR_EESK 0x04 /**< Clock */
|
||||
#define RTL_9346CR_EEDI 0x02 /**< Data in */
|
||||
|
||||
Reference in New Issue
Block a user