Add MSTP port state registers for STP

Each register holds the STP port state for one Forwarding ID (FID),
of which there 16 can be used by the RTL8372. The mapping between
FID and VLAN is done in the VLAN table. This allows the SoC
to maintain 16 different MSTP states.

In the register 2 bits per port are used to designate the following
(R)STP states
00 disable, 01 blocking, 10 learning, 11 forwarding
The STP listening state is not available.
This commit is contained in:
logicog
2025-09-08 22:22:57 +02:00
parent 844fe16dc3
commit 44298f2b71
+1 -1
View File
@@ -154,7 +154,7 @@
#define RTL8373_RLDP_TIMER 0x1074 #define RTL8373_RLDP_TIMER 0x1074
#define RTL837X_RMA0_CONF 0x4ecc #define RTL837X_RMA0_CONF 0x4ecc
#define RTL837X_RMA_CONF 0x4f1c #define RTL837X_RMA_CONF 0x4f1c
#define RTL837X_MSTP_STATES 0x5310
#ifdef REGDBG #ifdef REGDBG