mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Fix EEE control register address and add 5G/10G EEE defines
Register RTL8373_EEE_CTRL_BASE did not actually exist at 0x606c, instead RTL837X_EEE_STATUS is actually not only a status, but also a control register for EEE enable/disable at the MAC. The defines are not actually register bits, but port EEE settings, so move them to rtl837x_port.h while adding 5G/10G flags.
This commit is contained in:
+3
-6
@@ -269,14 +269,11 @@
|
||||
/*
|
||||
* EEE
|
||||
*/
|
||||
#define RTL837X_EEE_STATUS 0x125C
|
||||
#define RTL837X_EEE_CTRL_BASE 0x125C
|
||||
#define EEE_RX_ENABLE 0x01
|
||||
#define EEE_TX_ENABLE 0x02
|
||||
#define RTL837X_MAC_EEE_ABLTY 0x6404
|
||||
#define RTL8373_PHY_EEE_ABLTY 0x642C
|
||||
#define RTL8373_EEE_CTRL_BASE 0x606c
|
||||
#define EEE_100 0x01
|
||||
#define EEE_1000 0x04
|
||||
#define EEE_2G5 0x10
|
||||
#define EEE_NORESET 0x80
|
||||
|
||||
/*
|
||||
* RANDOM
|
||||
|
||||
Reference in New Issue
Block a user