De-Magic I2C configuration for SFP-EEPROM reads

This commit is contained in:
logicog
2025-11-02 09:49:13 +01:00
parent 0989b227c0
commit 9c7572b289
3 changed files with 18 additions and 9 deletions
+7 -3
View File
@@ -66,9 +66,13 @@
/*
* I2C controller
*/
#define RTL837X_REG_I2C_CTRL 0x0418
#define RTL837X_REG_I2C_IN 0x0420
#define RTL837X_REG_I2C_OUT 0x0424
#define RTL837X_REG_I2C_MST_IF_CTRL 0x0414
#define RTL837X_REG_I2C_CTRL 0x0418
#define I2C_DEV_ADDR 3
#define I2C_MEM_ADDR_WIDTH 20
#define RTL837X_REG_I2C_CTRL2 0x041c
#define RTL837X_REG_I2C_IN 0x0420
#define RTL837X_REG_I2C_OUT 0x0424
/*
* NIC Related registers