mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
machine: add PCB SWTG018AS-V2.1.0 variant of the SWTGW218AS
The SWTGW218AS label covers more than one PCB. On boards with the SWTG018AS-V2.1.0 silkscreen the SFP module-detect is GPIO38 (no LOS pin wired) and the LED block is wired differently, including a bi-color SFP LED (green up to 2.5G, blue at 10G) that the LED-set encoding cannot express. With the existing MACHINE_SWTGW218AS definition these boards never detect an SFP module, so an SFP-uplinked switch comes up with no working uplink. Add the variant as its own machine define named by the PCB marking, leaving MACHINE_SWTGW218AS unchanged for boards that match its wiring. The LED register values are taken from the stock firmware; the PIN_MUX_0 write routes the blue-LED pin to the LED controller, without which no LED register value can drive it. PIN_MUX_1/2 stay untouched so SFP detect and i2c remain GPIOs.
This commit is contained in:
Reference in New Issue
Block a user