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:
@@ -33,6 +33,16 @@ struct vlan_settings {
|
||||
uint16_t tagged;
|
||||
};
|
||||
|
||||
/*
|
||||
* Port EEE settings
|
||||
*/
|
||||
#define EEE_100 0x01
|
||||
#define EEE_1000 0x04
|
||||
#define EEE_2G5 0x10
|
||||
#define EEE_5G 0x20
|
||||
#define EEE_10G 0x40
|
||||
#define EEE_NORESET 0x80
|
||||
|
||||
extern __xdata struct vlan_settings vlan_settings;
|
||||
|
||||
uint8_t port_l2_forget(void) __banked;
|
||||
|
||||
Reference in New Issue
Block a user