Add basic VLAN configuration

This commit is contained in:
logicog
2025-07-02 11:57:15 +02:00
parent 6f90e1db53
commit 997d85ba02
4 changed files with 166 additions and 2 deletions
+5
View File
@@ -1594,6 +1594,8 @@ void bootloader(void)
rtl8372_init();
REG_SET(0x7f94, 0x0); // BUG: Only for testing, otherwise: clear bits 0-3
nic_setup();
vlan_setup();
was_offline = 1;
setup_i2c();
@@ -1729,6 +1731,9 @@ void bootloader(void)
phy_set_mode(p, PHY_OFF, 0, 0);
}
}
if (cmd_compare(0, "l2")) {
port_l2_learned();
}
}
print_string("\r\n> ");
}