mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
De-Magic I2C configuration for SFP-EEPROM reads
This commit is contained in:
+7
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user