mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Add basic VLAN configuration
This commit is contained in:
1 parent
6f90e1db53
commit
997d85ba02
4 files changed
+166
-2
No files matched your search
@@ -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> ");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user