- ramips_esw_wr(0xC8A07850, 0x08);
- ramips_esw_wr(0x00000000, 0xe4);
- ramips_esw_wr(0x00405555, 0x14);
- ramips_esw_wr(0x00002001, 0x50);
- ramips_esw_wr(0x00007f7f, 0x90);
- ramips_esw_wr(0x00007f3f, 0x98);
- ramips_esw_wr(0x00d6500c, 0xcc);
- ramips_esw_wr(0x0008a301, 0x9c);
- ramips_esw_wr(0x02404040, 0x8c);
- ramips_esw_wr(0x00001002, 0x48);
- ramips_esw_wr(0x3f502b28, 0xc8);
- ramips_esw_wr(0x00000000, 0x84);
-
- mii_mgr_write(0, 31, 0x8000);
+ ramips_esw_wr(esw, 0xC8A07850, 0x08);
+ ramips_esw_wr(esw, 0x00000000, 0xe4);
+ ramips_esw_wr(esw, 0x00405555, 0x14);
+ ramips_esw_wr(esw, 0x00002001, 0x50);
+ ramips_esw_wr(esw, 0x00007f7f, 0x90);
+ ramips_esw_wr(esw, 0x00007f3f, 0x98);
+ ramips_esw_wr(esw, 0x00d6500c, 0xcc);
+ ramips_esw_wr(esw, 0x0008a301, 0x9c);
+ ramips_esw_wr(esw, 0x02404040, 0x8c);
+ ramips_esw_wr(esw, 0x00001002, 0x48);
+ ramips_esw_wr(esw, 0x3f502b28, 0xc8);
+ ramips_esw_wr(esw, 0x00000000, 0x84);
+
+ mii_mgr_write(esw, 0, 31, 0x8000);