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:
logicog
2026-04-24 10:53:05 +02:00
parent abc9cb7afd
commit a597d2d08b
2 changed files with 13 additions and 6 deletions
+10
View File
@@ -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;