From cc72dae6cea5faac1e13bd2d83d8a7a9f8711ffa Mon Sep 17 00:00:00 2001 From: HL Yi Date: Fri, 30 Oct 2026 15:53:09 -0500 Subject: [PATCH] restructure machine based upon new naming convention --- .github/workflows/build.yml | 8 +-- machine/2G08110GSN.c | 1 - machine/2G5F4_10G2_V1_01.h | 7 --- machine/2G5F4_10G2_V1_01_init.c | 1 - machine/DAVUAZ_DA_K6501W.c | 1 + machine/{K0501W_V2_0.h => DAVUAZ_DA_K6501W.h} | 4 +- machine/DEFAULT_8C_1SFP.c | 2 +- machine/FG_8GT_1SX.h | 7 --- machine/FNS1200P.c | 1 - machine/FNS1200P_init.c | 1 - machine/FOXNEO_FNS_1200P.c | 1 + machine/{FNS1200P.h => FOXNEO_FNS_1200P.h} | 4 +- machine/FOXNEO_FNS_1200P_init.c | 1 + machine/GOODTOP_GT_ST018M.c | 1 + machine/{GT_ST018M.h => GOODTOP_GT_ST018M.h} | 4 +- machine/GOODTOP_GT_ST024M.c | 1 + machine/{GT_ST024M.h => GOODTOP_GT_ST024M.h} | 4 +- machine/GT_ST018M.c | 1 - machine/GT_ST024M.c | 1 - machine/GUANGNIANWEI_7018_2_5G.c | 1 + .../{F7008_2_5.h => GUANGNIANWEI_7018_2_5G.h} | 4 +- machine/HASIVO_S1100P_8GT_1SX_S.c | 38 +----------- machine/HASIVO_S1100WP_8GT_1SX_SE.c | 2 +- machine/HASIVO_S600W_4GT_2XGT_SE.c | 41 +------------ machine/HC_SWTG124AS.c | 1 - machine/HG0402XG_V1_1.c | 36 +---------- machine/HG0402XG_V1_1.h | 2 +- machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0.c | 1 + machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0.h | 7 +++ ...HISOURCE_HI_K0402WS_PCB_K0402W_V2_0_init.c | 1 + machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0.c | 1 + machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0.h | 7 +++ ...HISOURCE_HI_K0402WS_PCB_K0402W_V3_0_init.c | 1 + machine/HISOURCE_HI_K0801WS.c | 1 + .../{HI_K0801WS.h => HISOURCE_HI_K0801WS.h} | 4 +- machine/HI_K0402WS.h | 7 --- machine/HI_K0402WS_init.c | 1 - machine/HONGYAVISION_HYWS_SGT0204S.c | 1 + machine/HONGYAVISION_HYWS_SGT0204S.h | 7 +++ machine/HONGYAVISION_HYWS_SGT0204S_init.c | 1 + machine/HORACO_HC_SWTG124AS.c | 1 + .../{HC_SWTG124AS.h => HORACO_HC_SWTG124AS.h} | 4 +- machine/HORACO_ZX310S_4T2XH.c | 1 + machine/HORACO_ZX310S_4T2XH.h | 7 +++ machine/HORACO_ZX310S_4T2XT.c | 1 + machine/HORACO_ZX310S_4T2XT.h | 7 +++ machine/HORACO_ZX310S_4T2XT_init.c | 1 + machine/HORACO_ZX_SG4T2.c | 1 + machine/{ZX_SG4T2.h => HORACO_ZX_SG4T2.h} | 4 +- machine/KEEPLINK_KP_9000_6XHML_V1_1.c | 1 + machine/KEEPLINK_KP_9000_6XHML_V1_1.h | 7 +++ machine/KEEPLINK_KP_9000_6XHML_V1_2.c | 1 + machine/KEEPLINK_KP_9000_6XHML_V1_2.h | 7 +++ machine/KEEPLINK_KP_9000_6XHML_V2_1.c | 1 + machine/KEEPLINK_KP_9000_6XHML_V2_1.h | 7 +++ machine/KEEPLINK_KP_9000_6XHML_V2_1_init.c | 1 + machine/KEEPLINK_KP_9000_6XHML_X2.c | 1 + machine/KEEPLINK_KP_9000_6XHML_X2.h | 7 +++ machine/KEEPLINK_KP_9000_6XH_V1_1.c | 1 + machine/KEEPLINK_KP_9000_6XH_V1_1.h | 7 +++ machine/KEEPLINK_KP_9000_6XH_V1_2.c | 1 + machine/KEEPLINK_KP_9000_6XH_V1_2.h | 7 +++ machine/KEEPLINK_KP_9000_6XH_X.c | 1 + ..._9000_6XH_X.h => KEEPLINK_KP_9000_6XH_X.h} | 4 +- machine/KEEPLINK_KP_9000_6XH_X2.c | 1 + ...000_6XH_X2.h => KEEPLINK_KP_9000_6XH_X2.h} | 4 +- machine/KEEPLINK_KP_9000_6XH_X2_V2_1.c | 1 + machine/KEEPLINK_KP_9000_6XH_X2_V2_1.h | 7 +++ machine/KEEPLINK_KP_9000_6XH_X2_V2_1_init.c | 1 + machine/KEEPLINK_KP_9000_6XH_X2_init.c | 1 + machine/KEEPLINK_KP_9000_9XHML_X_V2_2.c | 1 + machine/KEEPLINK_KP_9000_9XHML_X_V2_2.h | 7 +++ machine/KEEPLINK_KP_9000_9XHML_X_V3_1.c | 1 + machine/KEEPLINK_KP_9000_9XHML_X_V3_1.h | 7 +++ machine/KEEPLINK_KP_9000_9XHML_X_V3_2.c | 1 + machine/KEEPLINK_KP_9000_9XHML_X_V3_2.h | 7 +++ machine/KEEPLINK_KP_9000_9XH_X_EU.c | 1 + machine/KEEPLINK_KP_9000_9XH_X_EU.h | 7 +++ machine/KP_9000_6XHML_X2.h | 7 --- machine/KP_9000_6XHML_X2_V1_1.c | 1 - machine/KP_9000_6XHML_X2_V1_1.h | 7 --- machine/KP_9000_6XHML_X2_V1_2.c | 1 - machine/KP_9000_6XHML_X2_V1_2.h | 7 --- machine/KP_9000_6XHML_X2_V2_1.c | 1 - machine/KP_9000_6XHML_X2_V2_1.h | 7 --- machine/KP_9000_6XHML_X2_V2_1_init.c | 1 - machine/KP_9000_6XH_X2_V1_1.c | 1 - machine/KP_9000_6XH_X2_V1_1.h | 7 --- machine/KP_9000_6XH_X2_V1_2.c | 1 - machine/KP_9000_6XH_X2_V1_2.h | 7 --- machine/KP_9000_6XH_X2_V2_1.c | 1 - machine/KP_9000_6XH_X2_V2_1.h | 7 --- machine/KP_9000_6XH_X2_V2_1_init.c | 1 - machine/KP_9000_9XHML_X_V2_2.h | 7 --- machine/KP_9000_9XHML_X_V3_1.h | 7 --- machine/KP_9000_9XHML_X_V3_2.c | 1 - machine/KP_9000_9XHML_X_V3_2.h | 7 --- machine/KP_9000_9XH_X_EU.h | 7 --- machine/LIANGUO_HYWS_SGT0108S.c | 34 +---------- machine/LIANGUO_ZX_SWTGW215AS.c | 31 +--------- machine/MOKERLINK_2G040210GSM.c | 1 + machine/MOKERLINK_2G040210GSM.h | 7 +++ machine/MOKERLINK_2G08110GSN.c | 1 + .../{2G08110GSN.h => MOKERLINK_2G08110GSN.h} | 4 +- machine/MOKERLINK_POE_2G080110GS.c | 1 + ...G080110GS.h => MOKERLINK_POE_2G080110GS.h} | 4 +- machine/MOKERLINK_ZX_SWTGW218AS.c | 1 + ...SWTGW218AS.h => MOKERLINK_ZX_SWTGW218AS.h} | 4 +- machine/ONT_S207CW_62TS_SE.c | 59 +------------------ machine/PB_2132.c | 39 +----------- machine/PCB_K0402WS_V1.h | 7 --- machine/PCB_K0402WS_V2.h | 7 --- machine/PCB_K0402WS_V2_init.c | 1 - machine/PCB_K0402WS_V3.c | 1 - machine/PCB_K0402WS_V3.h | 7 --- machine/PCB_K0402WS_V3_init.c | 1 - machine/PCB_SWTG018AS_V2_1_0.c | 40 +------------ machine/PCB_SWTG018AS_V2_1_0_init.c | 19 +----- machine/PCB_SWTG024AS_A_2_0_1.c | 47 +-------------- machine/PCB_SWTG024AS_A_2_0_1_init.c | 10 +--- machine/PCB_SWTG024AS_V2_1_0.c | 55 +---------------- machine/PCB_SWTG024AS_V2_1_0_init.c | 23 +------- machine/REALHD_PSW8_25MG.c | 2 +- machine/REALHD_PSW8_25MG.h | 4 +- machine/REALHD_PSW8_25MG_init.c | 2 +- machine/RUIYING_RY_4GT_2SX.c | 1 + ...FG_4GT_2SX_V2_0.h => RUIYING_RY_4GT_2SX.h} | 4 +- machine/RUIYING_RY_4GT_2SX_init.c | 1 + machine/RUIYING_RY_8GT_1SX.c | 1 + machine/RUIYING_RY_8GT_1SX.h | 7 +++ machine/SIRIVISION_S25G2206FP_V1_1.c | 40 +------------ machine/SIRIVISION_SR_S25G2109F.c | 1 + ...109FP_V1_3.h => SIRIVISION_SR_S25G2109F.h} | 4 +- machine/SKS3200_8E1X.c | 1 - machine/SODOLA_SL_SWTGW215AS_D.c | 1 + machine/SODOLA_SL_SWTGW215AS_D.h | 7 +++ machine/STEAMEMO_IG204_V1.c | 48 +-------------- machine/SWGT024_V2_0_MANAGED.c | 40 +------------ machine/SWGT024_V2_0_UNMANAGED.c | 39 +----------- machine/SWTG018AS_A_V_2_0.c | 38 +----------- machine/SWTG024AS_A_2_0_1_5C_1SFP.h | 7 --- machine/SWTG024AS_A_2_0_1_5C_1SFP_init.c | 1 - machine/SWTG024AS_A_V2_0_1_5C_1SFP.c | 1 + machine/SWTG024AS_A_V2_0_1_5C_1SFP.h | 7 +++ machine/SWTG024AS_A_V2_0_1_5C_1SFP_init.c | 1 + machine/SWTG024AS_V2_0.c | 41 +------------ machine/SWTG024AS_V2_0_init.c | 21 +------ machine/TRENDNET_TEG_S562.c | 37 +----------- machine/XIKESTOR_SKS3200_8E1X.c | 1 + ...SKS3200_8E1X.h => XIKESTOR_SKS3200_8E1X.h} | 4 +- machine/YS25_0402M.c | 1 - machine/YUANLEY_YS25_0402M.c | 1 + .../{YS25_0402M.h => YUANLEY_YS25_0402M.h} | 4 +- machine/YUANLEY_YS25_0402_PCB_K0402W_V1_0.c | 1 + machine/YUANLEY_YS25_0402_PCB_K0402W_V1_0.h | 7 +++ machine/ZOERAX_HG0402XG.c | 1 + ...ERAX_HG0402XG_V1_1.h => ZOERAX_HG0402XG.h} | 4 +- machine/ZX310S_4T2XH.h | 7 --- machine/ZX310S_4T2XT.h | 7 --- machine/ZX_SG4T2.c | 1 - machine/pcb/270_NB1_MS206B004A1_REV_A1.c | 36 +++++++++++ machine/{ => pcb}/2G5F4_10G2_V1_01.c | 0 machine/pcb/2G5F_20G_V1_01.c | 33 +++++++++++ .../2M_PCB23_V2_2.c} | 0 .../2M_PCB23_V3_1.c} | 0 machine/pcb/2M_PCB23_V3_2.c | 1 + .../2M_PCB43_V1_1.c} | 0 machine/pcb/2M_PCB43_V1_2.c | 1 + .../{KP_9000_6XH_X2.c => pcb/2M_PCB43_V2_1.c} | 0 .../2M_PCB43_V2_1_init.c} | 0 .../2M_PCB51_ML_V1_1.c} | 0 .../{F7008_2_5.c => pcb/F7008_2_5GPOE_V1_2.c} | 0 machine/{ => pcb}/FG_4GT_2SX_V2_0.c | 0 machine/{ => pcb}/FG_4GT_2SX_V2_0_init.c | 0 machine/{ => pcb}/FG_8GT_1SX.c | 0 .../HG0402XG_V1_1.c} | 0 machine/pcb/NONAME_20240111.c | 58 ++++++++++++++++++ .../NONAME_KP_9000_6XH_X.c} | 0 .../NONAME_KP_9000_9XH_X_EU.c} | 0 machine/pcb/NONAME_S600W_4GT_2XGT_SE.c | 40 +++++++++++++ machine/pcb/PB_2131.c | 47 +++++++++++++++ machine/pcb/PB_2132.c | 38 ++++++++++++ .../PCB_310S_4T2XT_V1_0_0_22273.c} | 0 .../PCB_310S_4T2XT_V1_0_0_22273_init.c} | 0 .../PCB_AFGW_SWTG218ANS_V2_0_2_23308.c} | 0 .../PCB_AFGW_SWTG218ANS_V2_0_2_23308_init.c} | 0 machine/pcb/PCB_K0402W_U13_V2_0.c | 1 + .../PCB_K0402W_V1_0.c} | 0 .../PCB_K0402W_V2_0.c} | 0 .../{HI_K0402WS.c => pcb/PCB_K0402W_V3_0.c} | 0 .../{K0501W_V2_0.c => pcb/PCB_K0501W_V2_0.c} | 0 .../{HI_K0801WS.c => pcb/PCB_K0801W_V2_0.c} | 0 .../PCB_SL310S_4T1T1X_V1_0_1_24107.c} | 0 machine/pcb/PCB_SWTG018AS_A_V2_0_1_19649.c | 37 ++++++++++++ machine/pcb/PCB_SWTG018AS_V2_1_0.c | 39 ++++++++++++ machine/pcb/PCB_SWTG018AS_V2_1_0_init.c | 18 ++++++ machine/pcb/PCB_SWTG024AS_A_V2_0_1_19650.c | 46 +++++++++++++++ .../PCB_SWTG024AS_A_V2_0_1_19650_HORACO.c} | 0 .../pcb/PCB_SWTG024AS_A_V2_0_1_19650_init.c | 9 +++ machine/pcb/PCB_SWTG024AS_V2_0_16895.c | 40 +++++++++++++ machine/pcb/PCB_SWTG024AS_V2_0_16895_init.c | 20 +++++++ machine/pcb/PCB_SWTG024AS_V2_0_17452.c | 38 ++++++++++++ .../pcb/PCB_SWTG024AS_V2_0_17452_XIKESTOR.c | 39 ++++++++++++ machine/pcb/PCB_SWTG024AS_V2_1_0_19023.c | 54 +++++++++++++++++ machine/pcb/PCB_SWTG024AS_V2_1_0_19023_init.c | 22 +++++++ machine/pcb/PCB_SWTG115AS_V2_0_16030.c | 30 ++++++++++ machine/pcb/PCB_SWTG115AS_V2_1_17443.c | 1 + .../PCB_SWTG118AS_V2_0_16029.c} | 0 machine/pcb/PCB_SWTG118AS_V2_1_17462.c | 1 + machine/pcb/S1100P_8GT_1SX_73N_S_V1_01.c | 37 ++++++++++++ machine/pcb/S1100W_8GT_1SX_SE_V1_05.c | 1 + machine/{ => pcb}/S25G1109FP_V1_3.c | 0 machine/pcb/S25G2206FP_V1_1.c | 39 ++++++++++++ 213 files changed, 990 insertions(+), 966 deletions(-) delete mode 120000 machine/2G08110GSN.c delete mode 100644 machine/2G5F4_10G2_V1_01.h delete mode 120000 machine/2G5F4_10G2_V1_01_init.c create mode 120000 machine/DAVUAZ_DA_K6501W.c rename machine/{K0501W_V2_0.h => DAVUAZ_DA_K6501W.h} (50%) delete mode 100644 machine/FG_8GT_1SX.h delete mode 120000 machine/FNS1200P.c delete mode 120000 machine/FNS1200P_init.c create mode 120000 machine/FOXNEO_FNS_1200P.c rename machine/{FNS1200P.h => FOXNEO_FNS_1200P.h} (50%) create mode 120000 machine/FOXNEO_FNS_1200P_init.c create mode 120000 machine/GOODTOP_GT_ST018M.c rename machine/{GT_ST018M.h => GOODTOP_GT_ST018M.h} (52%) create mode 120000 machine/GOODTOP_GT_ST024M.c rename machine/{GT_ST024M.h => GOODTOP_GT_ST024M.h} (52%) delete mode 120000 machine/GT_ST018M.c delete mode 120000 machine/GT_ST024M.c create mode 120000 machine/GUANGNIANWEI_7018_2_5G.c rename machine/{F7008_2_5.h => GUANGNIANWEI_7018_2_5G.h} (52%) mode change 100644 => 120000 machine/HASIVO_S1100P_8GT_1SX_S.c mode change 100644 => 120000 machine/HASIVO_S600W_4GT_2XGT_SE.c delete mode 120000 machine/HC_SWTG124AS.c mode change 100644 => 120000 machine/HG0402XG_V1_1.c create mode 120000 machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0.c create mode 100644 machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0.h create mode 120000 machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0_init.c create mode 120000 machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0.c create mode 100644 machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0.h create mode 120000 machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0_init.c create mode 120000 machine/HISOURCE_HI_K0801WS.c rename machine/{HI_K0801WS.h => HISOURCE_HI_K0801WS.h} (51%) delete mode 100644 machine/HI_K0402WS.h delete mode 120000 machine/HI_K0402WS_init.c create mode 120000 machine/HONGYAVISION_HYWS_SGT0204S.c create mode 100644 machine/HONGYAVISION_HYWS_SGT0204S.h create mode 120000 machine/HONGYAVISION_HYWS_SGT0204S_init.c create mode 120000 machine/HORACO_HC_SWTG124AS.c rename machine/{HC_SWTG124AS.h => HORACO_HC_SWTG124AS.h} (51%) create mode 120000 machine/HORACO_ZX310S_4T2XH.c create mode 100644 machine/HORACO_ZX310S_4T2XH.h create mode 120000 machine/HORACO_ZX310S_4T2XT.c create mode 100644 machine/HORACO_ZX310S_4T2XT.h create mode 120000 machine/HORACO_ZX310S_4T2XT_init.c create mode 120000 machine/HORACO_ZX_SG4T2.c rename machine/{ZX_SG4T2.h => HORACO_ZX_SG4T2.h} (52%) create mode 120000 machine/KEEPLINK_KP_9000_6XHML_V1_1.c create mode 100644 machine/KEEPLINK_KP_9000_6XHML_V1_1.h create mode 120000 machine/KEEPLINK_KP_9000_6XHML_V1_2.c create mode 100644 machine/KEEPLINK_KP_9000_6XHML_V1_2.h create mode 120000 machine/KEEPLINK_KP_9000_6XHML_V2_1.c create mode 100644 machine/KEEPLINK_KP_9000_6XHML_V2_1.h create mode 120000 machine/KEEPLINK_KP_9000_6XHML_V2_1_init.c create mode 120000 machine/KEEPLINK_KP_9000_6XHML_X2.c create mode 100644 machine/KEEPLINK_KP_9000_6XHML_X2.h create mode 120000 machine/KEEPLINK_KP_9000_6XH_V1_1.c create mode 100644 machine/KEEPLINK_KP_9000_6XH_V1_1.h create mode 120000 machine/KEEPLINK_KP_9000_6XH_V1_2.c create mode 100644 machine/KEEPLINK_KP_9000_6XH_V1_2.h create mode 120000 machine/KEEPLINK_KP_9000_6XH_X.c rename machine/{KP_9000_6XH_X.h => KEEPLINK_KP_9000_6XH_X.h} (50%) create mode 120000 machine/KEEPLINK_KP_9000_6XH_X2.c rename machine/{KP_9000_6XH_X2.h => KEEPLINK_KP_9000_6XH_X2.h} (50%) create mode 120000 machine/KEEPLINK_KP_9000_6XH_X2_V2_1.c create mode 100644 machine/KEEPLINK_KP_9000_6XH_X2_V2_1.h create mode 120000 machine/KEEPLINK_KP_9000_6XH_X2_V2_1_init.c create mode 120000 machine/KEEPLINK_KP_9000_6XH_X2_init.c create mode 120000 machine/KEEPLINK_KP_9000_9XHML_X_V2_2.c create mode 100644 machine/KEEPLINK_KP_9000_9XHML_X_V2_2.h create mode 120000 machine/KEEPLINK_KP_9000_9XHML_X_V3_1.c create mode 100644 machine/KEEPLINK_KP_9000_9XHML_X_V3_1.h create mode 120000 machine/KEEPLINK_KP_9000_9XHML_X_V3_2.c create mode 100644 machine/KEEPLINK_KP_9000_9XHML_X_V3_2.h create mode 120000 machine/KEEPLINK_KP_9000_9XH_X_EU.c create mode 100644 machine/KEEPLINK_KP_9000_9XH_X_EU.h delete mode 100644 machine/KP_9000_6XHML_X2.h delete mode 120000 machine/KP_9000_6XHML_X2_V1_1.c delete mode 100644 machine/KP_9000_6XHML_X2_V1_1.h delete mode 120000 machine/KP_9000_6XHML_X2_V1_2.c delete mode 100644 machine/KP_9000_6XHML_X2_V1_2.h delete mode 120000 machine/KP_9000_6XHML_X2_V2_1.c delete mode 100644 machine/KP_9000_6XHML_X2_V2_1.h delete mode 120000 machine/KP_9000_6XHML_X2_V2_1_init.c delete mode 120000 machine/KP_9000_6XH_X2_V1_1.c delete mode 100644 machine/KP_9000_6XH_X2_V1_1.h delete mode 120000 machine/KP_9000_6XH_X2_V1_2.c delete mode 100644 machine/KP_9000_6XH_X2_V1_2.h delete mode 120000 machine/KP_9000_6XH_X2_V2_1.c delete mode 100644 machine/KP_9000_6XH_X2_V2_1.h delete mode 120000 machine/KP_9000_6XH_X2_V2_1_init.c delete mode 100644 machine/KP_9000_9XHML_X_V2_2.h delete mode 100644 machine/KP_9000_9XHML_X_V3_1.h delete mode 120000 machine/KP_9000_9XHML_X_V3_2.c delete mode 100644 machine/KP_9000_9XHML_X_V3_2.h delete mode 100644 machine/KP_9000_9XH_X_EU.h mode change 100644 => 120000 machine/LIANGUO_HYWS_SGT0108S.c mode change 100644 => 120000 machine/LIANGUO_ZX_SWTGW215AS.c create mode 120000 machine/MOKERLINK_2G040210GSM.c create mode 100644 machine/MOKERLINK_2G040210GSM.h create mode 120000 machine/MOKERLINK_2G08110GSN.c rename machine/{2G08110GSN.h => MOKERLINK_2G08110GSN.h} (51%) create mode 120000 machine/MOKERLINK_POE_2G080110GS.c rename machine/{POE_2G080110GS.h => MOKERLINK_POE_2G080110GS.h} (50%) create mode 120000 machine/MOKERLINK_ZX_SWTGW218AS.c rename machine/{SWTGW218AS.h => MOKERLINK_ZX_SWTGW218AS.h} (51%) mode change 100644 => 120000 machine/ONT_S207CW_62TS_SE.c mode change 100644 => 120000 machine/PB_2132.c delete mode 100644 machine/PCB_K0402WS_V1.h delete mode 100644 machine/PCB_K0402WS_V2.h delete mode 120000 machine/PCB_K0402WS_V2_init.c delete mode 120000 machine/PCB_K0402WS_V3.c delete mode 100644 machine/PCB_K0402WS_V3.h delete mode 120000 machine/PCB_K0402WS_V3_init.c mode change 100644 => 120000 machine/PCB_SWTG018AS_V2_1_0.c mode change 100644 => 120000 machine/PCB_SWTG018AS_V2_1_0_init.c mode change 100644 => 120000 machine/PCB_SWTG024AS_A_2_0_1.c mode change 100644 => 120000 machine/PCB_SWTG024AS_A_2_0_1_init.c mode change 100644 => 120000 machine/PCB_SWTG024AS_V2_1_0.c mode change 100644 => 120000 machine/PCB_SWTG024AS_V2_1_0_init.c create mode 120000 machine/RUIYING_RY_4GT_2SX.c rename machine/{FG_4GT_2SX_V2_0.h => RUIYING_RY_4GT_2SX.h} (50%) create mode 120000 machine/RUIYING_RY_4GT_2SX_init.c create mode 120000 machine/RUIYING_RY_8GT_1SX.c create mode 100644 machine/RUIYING_RY_8GT_1SX.h mode change 100644 => 120000 machine/SIRIVISION_S25G2206FP_V1_1.c create mode 120000 machine/SIRIVISION_SR_S25G2109F.c rename machine/{S25G1109FP_V1_3.h => SIRIVISION_SR_S25G2109F.h} (78%) delete mode 120000 machine/SKS3200_8E1X.c create mode 120000 machine/SODOLA_SL_SWTGW215AS_D.c create mode 100644 machine/SODOLA_SL_SWTGW215AS_D.h mode change 100644 => 120000 machine/STEAMEMO_IG204_V1.c mode change 100644 => 120000 machine/SWGT024_V2_0_MANAGED.c mode change 100644 => 120000 machine/SWGT024_V2_0_UNMANAGED.c mode change 100644 => 120000 machine/SWTG018AS_A_V_2_0.c delete mode 100644 machine/SWTG024AS_A_2_0_1_5C_1SFP.h delete mode 120000 machine/SWTG024AS_A_2_0_1_5C_1SFP_init.c create mode 120000 machine/SWTG024AS_A_V2_0_1_5C_1SFP.c create mode 100644 machine/SWTG024AS_A_V2_0_1_5C_1SFP.h create mode 120000 machine/SWTG024AS_A_V2_0_1_5C_1SFP_init.c mode change 100644 => 120000 machine/SWTG024AS_V2_0.c mode change 100644 => 120000 machine/SWTG024AS_V2_0_init.c mode change 100644 => 120000 machine/TRENDNET_TEG_S562.c create mode 120000 machine/XIKESTOR_SKS3200_8E1X.c rename machine/{SKS3200_8E1X.h => XIKESTOR_SKS3200_8E1X.h} (51%) delete mode 120000 machine/YS25_0402M.c create mode 120000 machine/YUANLEY_YS25_0402M.c rename machine/{YS25_0402M.h => YUANLEY_YS25_0402M.h} (51%) create mode 120000 machine/YUANLEY_YS25_0402_PCB_K0402W_V1_0.c create mode 100644 machine/YUANLEY_YS25_0402_PCB_K0402W_V1_0.h create mode 120000 machine/ZOERAX_HG0402XG.c rename machine/{ZOERAX_HG0402XG_V1_1.h => ZOERAX_HG0402XG.h} (51%) delete mode 100644 machine/ZX310S_4T2XH.h delete mode 100644 machine/ZX310S_4T2XT.h delete mode 120000 machine/ZX_SG4T2.c create mode 100644 machine/pcb/270_NB1_MS206B004A1_REV_A1.c rename machine/{ => pcb}/2G5F4_10G2_V1_01.c (100%) create mode 100644 machine/pcb/2G5F_20G_V1_01.c rename machine/{KP_9000_9XHML_X_V2_2.c => pcb/2M_PCB23_V2_2.c} (100%) rename machine/{KP_9000_9XHML_X_V3_1.c => pcb/2M_PCB23_V3_1.c} (100%) create mode 120000 machine/pcb/2M_PCB23_V3_2.c rename machine/{KP_9000_6XHML_X2.c => pcb/2M_PCB43_V1_1.c} (100%) create mode 120000 machine/pcb/2M_PCB43_V1_2.c rename machine/{KP_9000_6XH_X2.c => pcb/2M_PCB43_V2_1.c} (100%) rename machine/{KP_9000_6XH_X2_init.c => pcb/2M_PCB43_V2_1_init.c} (100%) rename machine/{POE_2G080110GS.c => pcb/2M_PCB51_ML_V1_1.c} (100%) rename machine/{F7008_2_5.c => pcb/F7008_2_5GPOE_V1_2.c} (100%) rename machine/{ => pcb}/FG_4GT_2SX_V2_0.c (100%) rename machine/{ => pcb}/FG_4GT_2SX_V2_0_init.c (100%) rename machine/{ => pcb}/FG_8GT_1SX.c (100%) rename machine/{ZOERAX_HG0402XG_V1_1.c => pcb/HG0402XG_V1_1.c} (100%) create mode 100644 machine/pcb/NONAME_20240111.c rename machine/{KP_9000_6XH_X.c => pcb/NONAME_KP_9000_6XH_X.c} (100%) rename machine/{KP_9000_9XH_X_EU.c => pcb/NONAME_KP_9000_9XH_X_EU.c} (100%) create mode 100644 machine/pcb/NONAME_S600W_4GT_2XGT_SE.c create mode 100644 machine/pcb/PB_2131.c create mode 100644 machine/pcb/PB_2132.c rename machine/{ZX310S_4T2XT.c => pcb/PCB_310S_4T2XT_V1_0_0_22273.c} (100%) rename machine/{ZX310S_4T2XT_init.c => pcb/PCB_310S_4T2XT_V1_0_0_22273_init.c} (100%) rename machine/{PCB_AFGW_SWTG218ANS_V_2_0_2.c => pcb/PCB_AFGW_SWTG218ANS_V2_0_2_23308.c} (100%) rename machine/{PCB_AFGW_SWTG218ANS_V_2_0_2_init.c => pcb/PCB_AFGW_SWTG218ANS_V2_0_2_23308_init.c} (100%) create mode 120000 machine/pcb/PCB_K0402W_U13_V2_0.c rename machine/{PCB_K0402WS_V1.c => pcb/PCB_K0402W_V1_0.c} (100%) rename machine/{PCB_K0402WS_V2.c => pcb/PCB_K0402W_V2_0.c} (100%) rename machine/{HI_K0402WS.c => pcb/PCB_K0402W_V3_0.c} (100%) rename machine/{K0501W_V2_0.c => pcb/PCB_K0501W_V2_0.c} (100%) rename machine/{HI_K0801WS.c => pcb/PCB_K0801W_V2_0.c} (100%) rename machine/{ZX310S_4T2XH.c => pcb/PCB_SL310S_4T1T1X_V1_0_1_24107.c} (100%) create mode 100644 machine/pcb/PCB_SWTG018AS_A_V2_0_1_19649.c create mode 100644 machine/pcb/PCB_SWTG018AS_V2_1_0.c create mode 100644 machine/pcb/PCB_SWTG018AS_V2_1_0_init.c create mode 100644 machine/pcb/PCB_SWTG024AS_A_V2_0_1_19650.c rename machine/{SWTG024AS_A_2_0_1_5C_1SFP.c => pcb/PCB_SWTG024AS_A_V2_0_1_19650_HORACO.c} (100%) create mode 100644 machine/pcb/PCB_SWTG024AS_A_V2_0_1_19650_init.c create mode 100644 machine/pcb/PCB_SWTG024AS_V2_0_16895.c create mode 100644 machine/pcb/PCB_SWTG024AS_V2_0_16895_init.c create mode 100644 machine/pcb/PCB_SWTG024AS_V2_0_17452.c create mode 100644 machine/pcb/PCB_SWTG024AS_V2_0_17452_XIKESTOR.c create mode 100644 machine/pcb/PCB_SWTG024AS_V2_1_0_19023.c create mode 100644 machine/pcb/PCB_SWTG024AS_V2_1_0_19023_init.c create mode 100644 machine/pcb/PCB_SWTG115AS_V2_0_16030.c create mode 120000 machine/pcb/PCB_SWTG115AS_V2_1_17443.c rename machine/{SWTGW218AS.c => pcb/PCB_SWTG118AS_V2_0_16029.c} (100%) create mode 120000 machine/pcb/PCB_SWTG118AS_V2_1_17462.c create mode 100644 machine/pcb/S1100P_8GT_1SX_73N_S_V1_01.c create mode 120000 machine/pcb/S1100W_8GT_1SX_SE_V1_05.c rename machine/{ => pcb}/S25G1109FP_V1_3.c (100%) create mode 100644 machine/pcb/S25G2206FP_V1_1.c diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0198bb1c..81a0d2a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,16 +38,16 @@ jobs: - name: Check that every machine definition can be compiled run: cd branch && make machine_check - name: Make project (4x2/RTL8372) - run: mkdir -p /tmp/branch /tmp/main && cd branch && make CI=1 MACHINE="KP_9000_6XHML_X2" && cp -r output/KP_9000_6XHML_X2/rtlplayground.map output/KP_9000_6XHML_X2/rtlplayground.mem output/KP_9000_6XHML_X2/html_min /tmp/branch/ + run: mkdir -p /tmp/branch /tmp/main && cd branch && make CI=1 MACHINE="KEEPLINK_KP_9000_6XHML_X2" && cp -r output/KEEPLINK_KP_9000_6XHML_X2/rtlplayground.map output/KEEPLINK_KP_9000_6XHML_X2/rtlplayground.mem output/KEEPLINK_KP_9000_6XHML_X2/html_min /tmp/branch/ - name: Make project (8x1/RTL8373) - run: cd branch && make CI=1 MACHINE="KP_9000_9XHML_X_V3_1" + run: cd branch && make CI=1 MACHINE="KEEPLINK_KP_9000_9XHML_X_V3_1" - name: Make project with the health instrumentation - run: cd branch && make clean && make CI=1 MACHINE="KP_9000_6XHML_X2" HEALTH=1 + run: cd branch && make clean && make CI=1 MACHINE="KEEPLINK_KP_9000_6XHML_X2" HEALTH=1 - name: Make main run: | ln -s ../branch/toolchain main/toolchain PATH="$(echo "$PWD"/branch/toolchain/sdcc-*/bin):$PATH" - cd main && make CI=1 MACHINE="KP_9000_6XHML_X2" && cp -r output/KP_9000_6XHML_X2/rtlplayground.map output/KP_9000_6XHML_X2/rtlplayground.mem output/KP_9000_6XHML_X2/html_min /tmp/main/ + cd main && make CI=1 MACHINE="KEEPLINK_KP_9000_6XHML_X2" && cp -r output/KEEPLINK_KP_9000_6XHML_X2/rtlplayground.map output/KEEPLINK_KP_9000_6XHML_X2/rtlplayground.mem output/KEEPLINK_KP_9000_6XHML_X2/html_min /tmp/main/ - name: Calculate bank growth run: | bash branch/tools/bank_occupancy.sh KP_9000_6XHML_X2 /tmp/main /tmp/branch >> "$GITHUB_STEP_SUMMARY" diff --git a/machine/2G08110GSN.c b/machine/2G08110GSN.c deleted file mode 120000 index c46221ee..00000000 --- a/machine/2G08110GSN.c +++ /dev/null @@ -1 +0,0 @@ -SWTG018AS_A_V_2_0.c \ No newline at end of file diff --git a/machine/2G5F4_10G2_V1_01.h b/machine/2G5F4_10G2_V1_01.h deleted file mode 100644 index 80a90fbd..00000000 --- a/machine/2G5F4_10G2_V1_01.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_2G5F4_10G2_V1_01_H_ -#define _MACHINE_2G5F4_10G2_V1_01_H_ - -#define MACHINE_MODEL "2G5F4_10G2_V1.01 / SGT0204S" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/2G5F4_10G2_V1_01_init.c b/machine/2G5F4_10G2_V1_01_init.c deleted file mode 120000 index 37370e2a..00000000 --- a/machine/2G5F4_10G2_V1_01_init.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_6XH_X2_init.c \ No newline at end of file diff --git a/machine/DAVUAZ_DA_K6501W.c b/machine/DAVUAZ_DA_K6501W.c new file mode 120000 index 00000000..fce98167 --- /dev/null +++ b/machine/DAVUAZ_DA_K6501W.c @@ -0,0 +1 @@ +pcb/PCB_K0501W_V2_0.c \ No newline at end of file diff --git a/machine/K0501W_V2_0.h b/machine/DAVUAZ_DA_K6501W.h similarity index 50% rename from machine/K0501W_V2_0.h rename to machine/DAVUAZ_DA_K6501W.h index b657edf4..0f9bcb16 100644 --- a/machine/K0501W_V2_0.h +++ b/machine/DAVUAZ_DA_K6501W.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_K0501W_V2_0_H_ -#define _MACHINE_K0501W_V2_0_H_ +#ifndef _MACHINE_DAVUAZ_DA_K6501W_H_ +#define _MACHINE_DAVUAZ_DA_K6501W_H_ #define MACHINE_MODEL "K0501W V2.0" #define MACHINE_CHIPSET RTL8372 diff --git a/machine/DEFAULT_8C_1SFP.c b/machine/DEFAULT_8C_1SFP.c index f00039af..b9ca7fd7 120000 --- a/machine/DEFAULT_8C_1SFP.c +++ b/machine/DEFAULT_8C_1SFP.c @@ -1 +1 @@ -KP_9000_9XH_X_EU.c \ No newline at end of file +pcb/NONAME_KP_9000_9XH_X_EU.c \ No newline at end of file diff --git a/machine/FG_8GT_1SX.h b/machine/FG_8GT_1SX.h deleted file mode 100644 index 789d8a9b..00000000 --- a/machine/FG_8GT_1SX.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_FG_8GT_1SX_H_ -#define _MACHINE_FG_8GT_1SX_H_ - -#define MACHINE_MODEL "FG-8GT-1SX" -#define MACHINE_CHIPSET RTL8373 - -#endif diff --git a/machine/FNS1200P.c b/machine/FNS1200P.c deleted file mode 120000 index c836c871..00000000 --- a/machine/FNS1200P.c +++ /dev/null @@ -1 +0,0 @@ -PCB_K0402WS_V2.c \ No newline at end of file diff --git a/machine/FNS1200P_init.c b/machine/FNS1200P_init.c deleted file mode 120000 index 37370e2a..00000000 --- a/machine/FNS1200P_init.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_6XH_X2_init.c \ No newline at end of file diff --git a/machine/FOXNEO_FNS_1200P.c b/machine/FOXNEO_FNS_1200P.c new file mode 120000 index 00000000..4651772d --- /dev/null +++ b/machine/FOXNEO_FNS_1200P.c @@ -0,0 +1 @@ +pcb/PCB_K0402W_U13_V2_0.c \ No newline at end of file diff --git a/machine/FNS1200P.h b/machine/FOXNEO_FNS_1200P.h similarity index 50% rename from machine/FNS1200P.h rename to machine/FOXNEO_FNS_1200P.h index f058e5eb..781b91ec 100644 --- a/machine/FNS1200P.h +++ b/machine/FOXNEO_FNS_1200P.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_FNS1200P_H_ -#define _MACHINE_FNS1200P_H_ +#ifndef _MACHINE_FOXNEO_FNS_1200P_H_ +#define _MACHINE_FOXNEO_FNS_1200P_H_ #define MACHINE_MODEL "FNS-1200P" #define MACHINE_CHIPSET RTL8372 diff --git a/machine/FOXNEO_FNS_1200P_init.c b/machine/FOXNEO_FNS_1200P_init.c new file mode 120000 index 00000000..6d021c84 --- /dev/null +++ b/machine/FOXNEO_FNS_1200P_init.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V2_1_init.c \ No newline at end of file diff --git a/machine/GOODTOP_GT_ST018M.c b/machine/GOODTOP_GT_ST018M.c new file mode 120000 index 00000000..3162288f --- /dev/null +++ b/machine/GOODTOP_GT_ST018M.c @@ -0,0 +1 @@ +pcb/PCB_SWTG018AS_A_V2_0_1_19649.c \ No newline at end of file diff --git a/machine/GT_ST018M.h b/machine/GOODTOP_GT_ST018M.h similarity index 52% rename from machine/GT_ST018M.h rename to machine/GOODTOP_GT_ST018M.h index 66b0c51f..d19dc83e 100644 --- a/machine/GT_ST018M.h +++ b/machine/GOODTOP_GT_ST018M.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_GT_ST018M_H_ -#define _MACHINE_GT_ST018M_H_ +#ifndef _MACHINE_GOODTOP_GT_ST018M_H_ +#define _MACHINE_GOODTOP_GT_ST018M_H_ #define MACHINE_MODEL "GoodTop GT-ST018M" #define MACHINE_CHIPSET RTL8373 diff --git a/machine/GOODTOP_GT_ST024M.c b/machine/GOODTOP_GT_ST024M.c new file mode 120000 index 00000000..f393130c --- /dev/null +++ b/machine/GOODTOP_GT_ST024M.c @@ -0,0 +1 @@ +pcb/PCB_SWTG024AS_A_V2_0_1_19650.c \ No newline at end of file diff --git a/machine/GT_ST024M.h b/machine/GOODTOP_GT_ST024M.h similarity index 52% rename from machine/GT_ST024M.h rename to machine/GOODTOP_GT_ST024M.h index 8662bb31..142e82a1 100644 --- a/machine/GT_ST024M.h +++ b/machine/GOODTOP_GT_ST024M.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_GT_ST024M_H_ -#define _MACHINE_GT_ST024M_H_ +#ifndef _MACHINE_GOODTOP_GT_ST024M_H_ +#define _MACHINE_GOODTOP_GT_ST024M_H_ #define MACHINE_MODEL "GoodTop GT-ST024M" #define MACHINE_CHIPSET RTL8372 diff --git a/machine/GT_ST018M.c b/machine/GT_ST018M.c deleted file mode 120000 index c46221ee..00000000 --- a/machine/GT_ST018M.c +++ /dev/null @@ -1 +0,0 @@ -SWTG018AS_A_V_2_0.c \ No newline at end of file diff --git a/machine/GT_ST024M.c b/machine/GT_ST024M.c deleted file mode 120000 index f0f8441d..00000000 --- a/machine/GT_ST024M.c +++ /dev/null @@ -1 +0,0 @@ -PCB_SWTG024AS_A_2_0_1.c \ No newline at end of file diff --git a/machine/GUANGNIANWEI_7018_2_5G.c b/machine/GUANGNIANWEI_7018_2_5G.c new file mode 120000 index 00000000..fe508a26 --- /dev/null +++ b/machine/GUANGNIANWEI_7018_2_5G.c @@ -0,0 +1 @@ +pcb/F7008_2_5GPOE_V1_2.c \ No newline at end of file diff --git a/machine/F7008_2_5.h b/machine/GUANGNIANWEI_7018_2_5G.h similarity index 52% rename from machine/F7008_2_5.h rename to machine/GUANGNIANWEI_7018_2_5G.h index f8c78cae..89ab9ec6 100644 --- a/machine/F7008_2_5.h +++ b/machine/GUANGNIANWEI_7018_2_5G.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_F7008_2_5_H_ -#define _MACHINE_F7008_2_5_H_ +#ifndef _MACHINE_GUANGNIANWEI_7018_2_5G_H_ +#define _MACHINE_GUANGNIANWEI_7018_2_5G_H_ #define MACHINE_MODEL "F7008-2.5 8+1 SFP Port Switch" #define MACHINE_CHIPSET RTL8373 diff --git a/machine/HASIVO_S1100P_8GT_1SX_S.c b/machine/HASIVO_S1100P_8GT_1SX_S.c deleted file mode 100644 index 9af4d8c3..00000000 --- a/machine/HASIVO_S1100P_8GT_1SX_S.c +++ /dev/null @@ -1,37 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .mac_flash_offset = 0x1FC000, - .n_sfp = 1, - .log_to_phys_port = {1, 2, 3, 4, 5, 6, 7, 8, 9}, - .phys_to_log_port = {0, 1, 2, 3, 4, 5, 6, 7, 8}, - .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, - .sfp_port[0].pin_detect = GPIO38, - .sfp_port[0].pin_los = GPIO37, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - .reset_pin = GPIO54_ACL_BIT2_EN, - .high_leds = { .mux = LED_27 | LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, - .port_led_set = {0, 0, 0, 0, 0, 0, 0, 0, 1}, - .led_sets = { - { - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // LED0: orange - 0, - LEDS_2G5 | LEDS_LINK | LEDS_ACT, // LED2: green - 0 - }, - { - LEDS_10G | LEDS_5G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, // SFP LED0: green (both SFP LEDs are green) - 0, 0, 0 - } - }, - .led_mux_custom = 1, - .led_mux = { - 0x00, 0x02, 0x04, 0x06, 0x08, 0x0a, 0x0c, 0x09, - 0x0e, 0x10, 0x12, 0x0e, 0x14, 0x11, 0x12, 0x16, - 0x15, 0x16, 0x18, 0x19, 0x1a, 0x1a, 0x1d, 0x1e, - 0x1c, 0x1e, 0x20, 0x21 - }, -}; diff --git a/machine/HASIVO_S1100P_8GT_1SX_S.c b/machine/HASIVO_S1100P_8GT_1SX_S.c new file mode 120000 index 00000000..a5e3520f --- /dev/null +++ b/machine/HASIVO_S1100P_8GT_1SX_S.c @@ -0,0 +1 @@ +pcb/S1100P_8GT_1SX_73N_S_V1_01.c \ No newline at end of file diff --git a/machine/HASIVO_S1100WP_8GT_1SX_SE.c b/machine/HASIVO_S1100WP_8GT_1SX_SE.c index 1fc0cdb2..08e78fbb 120000 --- a/machine/HASIVO_S1100WP_8GT_1SX_SE.c +++ b/machine/HASIVO_S1100WP_8GT_1SX_SE.c @@ -1 +1 @@ -SWTGW218AS.c \ No newline at end of file +pcb/S1100W_8GT_1SX_SE_V1_05.c \ No newline at end of file diff --git a/machine/HASIVO_S600W_4GT_2XGT_SE.c b/machine/HASIVO_S600W_4GT_2XGT_SE.c deleted file mode 100644 index 223c990f..00000000 --- a/machine/HASIVO_S600W_4GT_2XGT_SE.c +++ /dev/null @@ -1,40 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .n_sfp = 0, - .n_10g = 2, - .log_to_phys_port = {0, 0, 0, 5, 1, 2, 3, 4, 6}, - .phys_to_log_port = {4, 5, 6, 7, 3, 8, 0, 0, 0}, - .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 0}, - .reset_pin = GPIO54_ACL_BIT2_EN, - .high_leds = { .mux = LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1 }, - /* Ports 1-4: Green: 2.5GBit, Orange: 10/100/1000MBit - * Ports 5-6: Green: 10GBit, Orange: 5/2.5GBit, None: 10/100/1000MBit - */ - .led_sets = { - { - LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // Yellow - LEDS_2G5 | LEDS_LINK, // Green - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK, // Orange - 0, // Unused - }, - { - LEDS_10G | LEDS_5G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // Yellow - LEDS_10G | LEDS_LINK, // Green - LEDS_5G | LEDS_2G5 | LEDS_LINK, // Orange - 0, // Unused - }, - }, - .led_mux_custom = 1, - .led_mux = { - 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, - 0x3f, 0x3f, 0x3f, 0x0f, 0x20, - 0x21, 0x22, 0x10, 0x11, 0x12, - 0x14, 0x15, 0x16, 0x18, 0x19, - 0x1a, 0x1c, 0x1d, 0x1e, 0x0c, - 0x0d, 0x0e, 0x23 - }, - -}; diff --git a/machine/HASIVO_S600W_4GT_2XGT_SE.c b/machine/HASIVO_S600W_4GT_2XGT_SE.c new file mode 120000 index 00000000..b23d4144 --- /dev/null +++ b/machine/HASIVO_S600W_4GT_2XGT_SE.c @@ -0,0 +1 @@ +pcb/NONAME_S600W_4GT_2XGT_SE.c \ No newline at end of file diff --git a/machine/HC_SWTG124AS.c b/machine/HC_SWTG124AS.c deleted file mode 120000 index f0f8441d..00000000 --- a/machine/HC_SWTG124AS.c +++ /dev/null @@ -1 +0,0 @@ -PCB_SWTG024AS_A_2_0_1.c \ No newline at end of file diff --git a/machine/HG0402XG_V1_1.c b/machine/HG0402XG_V1_1.c deleted file mode 100644 index 5f20e295..00000000 --- a/machine/HG0402XG_V1_1.c +++ /dev/null @@ -1,35 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .n_sfp = 2, - .log_to_phys_port = {0, 0, 0, 5, 1, 2, 3, 4, 6}, - .phys_to_log_port = {4, 5, 6, 7, 3, 8, 0, 0, 0}, - .is_sfp = {0, 0, 0, 2, 0, 0, 0, 0, 1}, - .sfp_port[0].pin_detect = 50, - .sfp_port[0].pin_los = 10, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), - .sfp_port[1].pin_detect = 30, - .sfp_port[1].pin_los = 51, - .sfp_port[1].pin_tx_disable = GPIO_NA, - .sfp_port[1].sds = 0, - .sfp_port[1].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - .reset_pin = GPIO_NA, - .high_leds = { .mux = LED_27 , .enable = LED_27 | LED_29 }, - .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, - /* The Ethernet ports have 1 amber LED (left) and 1 green LED (right) - * The SFP ports have also 1 amber LED and 1 green LED - * Ethernet ports use LED-set 0, SFP ports use LED-set 1 - */ - .led_sets = { { LEDS_10M | LEDS_LINK | LEDS_ACT, - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_2G5 | LEDS_LINK | LEDS_ACT, - LEDS_2G5 | LEDS_LINK | LEDS_ACT, - 0 }, - { LEDS_100M | LEDS_10M | LEDS_LINK, - LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_10M | LEDS_LINK | LEDS_ACT | LEDS_10G, - LEDS_10G | LEDS_LINK, - 0 }, - }, -}; diff --git a/machine/HG0402XG_V1_1.c b/machine/HG0402XG_V1_1.c new file mode 120000 index 00000000..6b895c14 --- /dev/null +++ b/machine/HG0402XG_V1_1.c @@ -0,0 +1 @@ +pcb/HG0402XG_V1_1.c \ No newline at end of file diff --git a/machine/HG0402XG_V1_1.h b/machine/HG0402XG_V1_1.h index 5b578acc..7931f24a 100644 --- a/machine/HG0402XG_V1_1.h +++ b/machine/HG0402XG_V1_1.h @@ -1,7 +1,7 @@ #ifndef _MACHINE_HG0402XG_V1_1_H_ #define _MACHINE_HG0402XG_V1_1_H_ -#define MACHINE_MODEL "HG0402XG V1.1" +#define MACHINE_MODEL "ZoeRax HG0402XG V1.1" #define MACHINE_CHIPSET RTL8372 #endif diff --git a/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0.c b/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0.c new file mode 120000 index 00000000..e9056074 --- /dev/null +++ b/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0.c @@ -0,0 +1 @@ +pcb/PCB_K0402W_V2_0.c \ No newline at end of file diff --git a/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0.h b/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0.h new file mode 100644 index 00000000..5eb582b3 --- /dev/null +++ b/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_HISOURCE_HI_K0402WS_PCB_K0402W_V2_0_H_ +#define _MACHINE_HISOURCE_HI_K0402WS_PCB_K0402W_V2_0_H_ + +#define MACHINE_MODEL "PCB-K0402WS-V2.0" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0_init.c b/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0_init.c new file mode 120000 index 00000000..6d021c84 --- /dev/null +++ b/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V2_0_init.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V2_1_init.c \ No newline at end of file diff --git a/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0.c b/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0.c new file mode 120000 index 00000000..10f34b22 --- /dev/null +++ b/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0.c @@ -0,0 +1 @@ +pcb/PCB_K0402W_V3_0.c \ No newline at end of file diff --git a/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0.h b/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0.h new file mode 100644 index 00000000..1f73c3d2 --- /dev/null +++ b/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_HISOURCE_HI_K0402WS_PCB_K0402W_V3_0_H_ +#define _MACHINE_HISOURCE_HI_K0402WS_PCB_K0402W_V3_0_H_ + +#define MACHINE_MODEL "PCB-K0402WS-V3.0" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0_init.c b/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0_init.c new file mode 120000 index 00000000..6d021c84 --- /dev/null +++ b/machine/HISOURCE_HI_K0402WS_PCB_K0402W_V3_0_init.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V2_1_init.c \ No newline at end of file diff --git a/machine/HISOURCE_HI_K0801WS.c b/machine/HISOURCE_HI_K0801WS.c new file mode 120000 index 00000000..8e985105 --- /dev/null +++ b/machine/HISOURCE_HI_K0801WS.c @@ -0,0 +1 @@ +pcb/PCB_K0801W_V2_0.c \ No newline at end of file diff --git a/machine/HI_K0801WS.h b/machine/HISOURCE_HI_K0801WS.h similarity index 51% rename from machine/HI_K0801WS.h rename to machine/HISOURCE_HI_K0801WS.h index ff5a7721..37140e8d 100644 --- a/machine/HI_K0801WS.h +++ b/machine/HISOURCE_HI_K0801WS.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_HI_K0801WS_H_ -#define _MACHINE_HI_K0801WS_H_ +#ifndef _MACHINE_HISOURCE_HI_K0801WS_H_ +#define _MACHINE_HISOURCE_HI_K0801WS_H_ #define MACHINE_MODEL "Hi-Source HI-k0801WS" #define MACHINE_CHIPSET RTL8373 diff --git a/machine/HI_K0402WS.h b/machine/HI_K0402WS.h deleted file mode 100644 index 18416117..00000000 --- a/machine/HI_K0402WS.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_HI_K0402WS_H_ -#define _MACHINE_HI_K0402WS_H_ - -#define MACHINE_MODEL "PCB-K0402WS-V3.0" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/HI_K0402WS_init.c b/machine/HI_K0402WS_init.c deleted file mode 120000 index 37370e2a..00000000 --- a/machine/HI_K0402WS_init.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_6XH_X2_init.c \ No newline at end of file diff --git a/machine/HONGYAVISION_HYWS_SGT0204S.c b/machine/HONGYAVISION_HYWS_SGT0204S.c new file mode 120000 index 00000000..7e586ed7 --- /dev/null +++ b/machine/HONGYAVISION_HYWS_SGT0204S.c @@ -0,0 +1 @@ +pcb/2G5F4_10G2_V1_01.c \ No newline at end of file diff --git a/machine/HONGYAVISION_HYWS_SGT0204S.h b/machine/HONGYAVISION_HYWS_SGT0204S.h new file mode 100644 index 00000000..e18ebe0e --- /dev/null +++ b/machine/HONGYAVISION_HYWS_SGT0204S.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_HONGYAVISION_HYWS_SGT0204S_H_ +#define _MACHINE_HONGYAVISION_HYWS_SGT0204S_H_ + +#define MACHINE_MODEL "2G5F4_10G2_V1.01 / SGT0204S" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/HONGYAVISION_HYWS_SGT0204S_init.c b/machine/HONGYAVISION_HYWS_SGT0204S_init.c new file mode 120000 index 00000000..6d021c84 --- /dev/null +++ b/machine/HONGYAVISION_HYWS_SGT0204S_init.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V2_1_init.c \ No newline at end of file diff --git a/machine/HORACO_HC_SWTG124AS.c b/machine/HORACO_HC_SWTG124AS.c new file mode 120000 index 00000000..f393130c --- /dev/null +++ b/machine/HORACO_HC_SWTG124AS.c @@ -0,0 +1 @@ +pcb/PCB_SWTG024AS_A_V2_0_1_19650.c \ No newline at end of file diff --git a/machine/HC_SWTG124AS.h b/machine/HORACO_HC_SWTG124AS.h similarity index 51% rename from machine/HC_SWTG124AS.h rename to machine/HORACO_HC_SWTG124AS.h index f1936317..f046ef45 100644 --- a/machine/HC_SWTG124AS.h +++ b/machine/HORACO_HC_SWTG124AS.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_HC_SWTG124AS_H_ -#define _MACHINE_HC_SWTG124AS_H_ +#ifndef _MACHINE_HORACO_HC_SWTG124AS_H_ +#define _MACHINE_HORACO_HC_SWTG124AS_H_ #define MACHINE_MODEL "Horaco HC-SWTG124AS" #define MACHINE_CHIPSET RTL8372 diff --git a/machine/HORACO_ZX310S_4T2XH.c b/machine/HORACO_ZX310S_4T2XH.c new file mode 120000 index 00000000..b9afd656 --- /dev/null +++ b/machine/HORACO_ZX310S_4T2XH.c @@ -0,0 +1 @@ +pcb/PCB_SL310S_4T1T1X_V1_0_1_24107.c \ No newline at end of file diff --git a/machine/HORACO_ZX310S_4T2XH.h b/machine/HORACO_ZX310S_4T2XH.h new file mode 100644 index 00000000..04e113de --- /dev/null +++ b/machine/HORACO_ZX310S_4T2XH.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_HORACO_ZX310S_4T2XH_H_ +#define _MACHINE_HORACO_ZX310S_4T2XH_H_ + +#define MACHINE_MODEL "ZX310S-4T2XH" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/HORACO_ZX310S_4T2XT.c b/machine/HORACO_ZX310S_4T2XT.c new file mode 120000 index 00000000..d9e4319f --- /dev/null +++ b/machine/HORACO_ZX310S_4T2XT.c @@ -0,0 +1 @@ +pcb/PCB_310S_4T2XT_V1_0_0_22273.c \ No newline at end of file diff --git a/machine/HORACO_ZX310S_4T2XT.h b/machine/HORACO_ZX310S_4T2XT.h new file mode 100644 index 00000000..f1ea7d3f --- /dev/null +++ b/machine/HORACO_ZX310S_4T2XT.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_HORACO_ZX310S_4T2XT_H_ +#define _MACHINE_HORACO_ZX310S_4T2XT_H_ + +#define MACHINE_MODEL "ZX310S_4T2XT" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/HORACO_ZX310S_4T2XT_init.c b/machine/HORACO_ZX310S_4T2XT_init.c new file mode 120000 index 00000000..d954c8b0 --- /dev/null +++ b/machine/HORACO_ZX310S_4T2XT_init.c @@ -0,0 +1 @@ +pcb/PCB_310S_4T2XT_V1_0_0_22273_init.c \ No newline at end of file diff --git a/machine/HORACO_ZX_SG4T2.c b/machine/HORACO_ZX_SG4T2.c new file mode 120000 index 00000000..f393130c --- /dev/null +++ b/machine/HORACO_ZX_SG4T2.c @@ -0,0 +1 @@ +pcb/PCB_SWTG024AS_A_V2_0_1_19650.c \ No newline at end of file diff --git a/machine/ZX_SG4T2.h b/machine/HORACO_ZX_SG4T2.h similarity index 52% rename from machine/ZX_SG4T2.h rename to machine/HORACO_ZX_SG4T2.h index b834dc3b..8b7e8656 100644 --- a/machine/ZX_SG4T2.h +++ b/machine/HORACO_ZX_SG4T2.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_ZX_SG4T2_H_ -#define _MACHINE_ZX_SG4T2_H_ +#ifndef _MACHINE_HORACO_ZX_SG4T2_H_ +#define _MACHINE_HORACO_ZX_SG4T2_H_ #define MACHINE_MODEL "Horaco ZX-SG4T2" #define MACHINE_CHIPSET RTL8372 diff --git a/machine/KEEPLINK_KP_9000_6XHML_V1_1.c b/machine/KEEPLINK_KP_9000_6XHML_V1_1.c new file mode 120000 index 00000000..b98e8b28 --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XHML_V1_1.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V1_1.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_6XHML_V1_1.h b/machine/KEEPLINK_KP_9000_6XHML_V1_1.h new file mode 100644 index 00000000..edffb09f --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XHML_V1_1.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_KEEPLINK_KP_9000_6XHML_V1_1_H_ +#define _MACHINE_KEEPLINK_KP_9000_6XHML_V1_1_H_ + +#define MACHINE_MODEL "keepLink KP-9000-6XHML V1.1" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/KEEPLINK_KP_9000_6XHML_V1_2.c b/machine/KEEPLINK_KP_9000_6XHML_V1_2.c new file mode 120000 index 00000000..6b3228dd --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XHML_V1_2.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V1_2.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_6XHML_V1_2.h b/machine/KEEPLINK_KP_9000_6XHML_V1_2.h new file mode 100644 index 00000000..4fbfeb72 --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XHML_V1_2.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_KEEPLINK_KP_9000_6XHML_V1_2_H_ +#define _MACHINE_KEEPLINK_KP_9000_6XHML_V1_2_H_ + +#define MACHINE_MODEL "keepLink KP-9000-6XHML V1.2" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/KEEPLINK_KP_9000_6XHML_V2_1.c b/machine/KEEPLINK_KP_9000_6XHML_V2_1.c new file mode 120000 index 00000000..028054bf --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XHML_V2_1.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V2_1.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_6XHML_V2_1.h b/machine/KEEPLINK_KP_9000_6XHML_V2_1.h new file mode 100644 index 00000000..e5cd2bba --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XHML_V2_1.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_KEEPLINK_KP_9000_6XHML_V2_1_H_ +#define _MACHINE_KEEPLINK_KP_9000_6XHML_V2_1_H_ + +#define MACHINE_MODEL "keepLink KP-9000-6XHML V2.1" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/KEEPLINK_KP_9000_6XHML_V2_1_init.c b/machine/KEEPLINK_KP_9000_6XHML_V2_1_init.c new file mode 120000 index 00000000..6d021c84 --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XHML_V2_1_init.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V2_1_init.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_6XHML_X2.c b/machine/KEEPLINK_KP_9000_6XHML_X2.c new file mode 120000 index 00000000..b98e8b28 --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XHML_X2.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V1_1.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_6XHML_X2.h b/machine/KEEPLINK_KP_9000_6XHML_X2.h new file mode 100644 index 00000000..600054ed --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XHML_X2.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_KEEPLINK_KP_9000_6XHML_X2_H_ +#define _MACHINE_KEEPLINK_KP_9000_6XHML_X2_H_ + +#define MACHINE_MODEL "keepLink KP-9000-6XHML-X2" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/KEEPLINK_KP_9000_6XH_V1_1.c b/machine/KEEPLINK_KP_9000_6XH_V1_1.c new file mode 120000 index 00000000..b98e8b28 --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XH_V1_1.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V1_1.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_6XH_V1_1.h b/machine/KEEPLINK_KP_9000_6XH_V1_1.h new file mode 100644 index 00000000..41c9d051 --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XH_V1_1.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_KEEPLINK_KP_9000_6XH_V1_1_H_ +#define _MACHINE_KEEPLINK_KP_9000_6XH_V1_1_H_ + +#define MACHINE_MODEL "keepLink KP-9000-6XH V1.1" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/KEEPLINK_KP_9000_6XH_V1_2.c b/machine/KEEPLINK_KP_9000_6XH_V1_2.c new file mode 120000 index 00000000..6b3228dd --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XH_V1_2.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V1_2.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_6XH_V1_2.h b/machine/KEEPLINK_KP_9000_6XH_V1_2.h new file mode 100644 index 00000000..ee9852bf --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XH_V1_2.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_KEEPLINK_KP_9000_6XH_V1_2_H_ +#define _MACHINE_KEEPLINK_KP_9000_6XH_V1_2_H_ + +#define MACHINE_MODEL "keepLink KP-9000-6XH V1.2" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/KEEPLINK_KP_9000_6XH_X.c b/machine/KEEPLINK_KP_9000_6XH_X.c new file mode 120000 index 00000000..4ab8801b --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XH_X.c @@ -0,0 +1 @@ +pcb/NONAME_KP_9000_6XH_X.c \ No newline at end of file diff --git a/machine/KP_9000_6XH_X.h b/machine/KEEPLINK_KP_9000_6XH_X.h similarity index 50% rename from machine/KP_9000_6XH_X.h rename to machine/KEEPLINK_KP_9000_6XH_X.h index 664c830b..579642f2 100644 --- a/machine/KP_9000_6XH_X.h +++ b/machine/KEEPLINK_KP_9000_6XH_X.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_KP_9000_6XH_X_H_ -#define _MACHINE_KP_9000_6XH_X_H_ +#ifndef _MACHINE_KEEPLINK_KP_9000_6XH_X_H_ +#define _MACHINE_KEEPLINK_KP_9000_6XH_X_H_ #define MACHINE_MODEL "keepLink KP-9000-6XH-X" #define MACHINE_CHIPSET RTL8372 diff --git a/machine/KEEPLINK_KP_9000_6XH_X2.c b/machine/KEEPLINK_KP_9000_6XH_X2.c new file mode 120000 index 00000000..028054bf --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XH_X2.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V2_1.c \ No newline at end of file diff --git a/machine/KP_9000_6XH_X2.h b/machine/KEEPLINK_KP_9000_6XH_X2.h similarity index 50% rename from machine/KP_9000_6XH_X2.h rename to machine/KEEPLINK_KP_9000_6XH_X2.h index 2d7a8374..5b676459 100644 --- a/machine/KP_9000_6XH_X2.h +++ b/machine/KEEPLINK_KP_9000_6XH_X2.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_KP_9000_6XH_X2_H_ -#define _MACHINE_KP_9000_6XH_X2_H_ +#ifndef _MACHINE_KEEPLINK_KP_9000_6XH_X2_H_ +#define _MACHINE_KEEPLINK_KP_9000_6XH_X2_H_ #define MACHINE_MODEL "keepLink KP-9000-6XH-X2" #define MACHINE_CHIPSET RTL8372 diff --git a/machine/KEEPLINK_KP_9000_6XH_X2_V2_1.c b/machine/KEEPLINK_KP_9000_6XH_X2_V2_1.c new file mode 120000 index 00000000..028054bf --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XH_X2_V2_1.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V2_1.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_6XH_X2_V2_1.h b/machine/KEEPLINK_KP_9000_6XH_X2_V2_1.h new file mode 100644 index 00000000..7253c2ee --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XH_X2_V2_1.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_KEEPLINK_KP_9000_6XH_X2_V2_1_H_ +#define _MACHINE_KEEPLINK_KP_9000_6XH_X2_V2_1_H_ + +#define MACHINE_MODEL "keepLink KP-9000-6XH-X2 V2.1" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/KEEPLINK_KP_9000_6XH_X2_V2_1_init.c b/machine/KEEPLINK_KP_9000_6XH_X2_V2_1_init.c new file mode 120000 index 00000000..6d021c84 --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XH_X2_V2_1_init.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V2_1_init.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_6XH_X2_init.c b/machine/KEEPLINK_KP_9000_6XH_X2_init.c new file mode 120000 index 00000000..6d021c84 --- /dev/null +++ b/machine/KEEPLINK_KP_9000_6XH_X2_init.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V2_1_init.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_9XHML_X_V2_2.c b/machine/KEEPLINK_KP_9000_9XHML_X_V2_2.c new file mode 120000 index 00000000..13f05c97 --- /dev/null +++ b/machine/KEEPLINK_KP_9000_9XHML_X_V2_2.c @@ -0,0 +1 @@ +pcb/2M_PCB23_V2_2.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_9XHML_X_V2_2.h b/machine/KEEPLINK_KP_9000_9XHML_X_V2_2.h new file mode 100644 index 00000000..6b84f48a --- /dev/null +++ b/machine/KEEPLINK_KP_9000_9XHML_X_V2_2.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_KEEPLINK_KP_9000_9XHML_X_V2_2_H_ +#define _MACHINE_KEEPLINK_KP_9000_9XHML_X_V2_2_H_ + +#define MACHINE_MODEL "keepLink KP-9000-9XHML-X V2.2" +#define MACHINE_CHIPSET RTL8373 + +#endif diff --git a/machine/KEEPLINK_KP_9000_9XHML_X_V3_1.c b/machine/KEEPLINK_KP_9000_9XHML_X_V3_1.c new file mode 120000 index 00000000..3b64329f --- /dev/null +++ b/machine/KEEPLINK_KP_9000_9XHML_X_V3_1.c @@ -0,0 +1 @@ +pcb/2M_PCB23_V3_1.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_9XHML_X_V3_1.h b/machine/KEEPLINK_KP_9000_9XHML_X_V3_1.h new file mode 100644 index 00000000..30a65b95 --- /dev/null +++ b/machine/KEEPLINK_KP_9000_9XHML_X_V3_1.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_KEEPLINK_KP_9000_9XHML_X_V3_1_H_ +#define _MACHINE_KEEPLINK_KP_9000_9XHML_X_V3_1_H_ + +#define MACHINE_MODEL "keepLink KP-9000-9XHML-X V3.1" +#define MACHINE_CHIPSET RTL8373 + +#endif diff --git a/machine/KEEPLINK_KP_9000_9XHML_X_V3_2.c b/machine/KEEPLINK_KP_9000_9XHML_X_V3_2.c new file mode 120000 index 00000000..af612a63 --- /dev/null +++ b/machine/KEEPLINK_KP_9000_9XHML_X_V3_2.c @@ -0,0 +1 @@ +pcb/2M_PCB23_V3_2.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_9XHML_X_V3_2.h b/machine/KEEPLINK_KP_9000_9XHML_X_V3_2.h new file mode 100644 index 00000000..221dacea --- /dev/null +++ b/machine/KEEPLINK_KP_9000_9XHML_X_V3_2.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_KEEPLINK_KP_9000_9XHML_X_V3_2_H_ +#define _MACHINE_KEEPLINK_KP_9000_9XHML_X_V3_2_H_ + +#define MACHINE_MODEL "keepLink KP-9000-9XHML-X V3.2" +#define MACHINE_CHIPSET RTL8373 + +#endif diff --git a/machine/KEEPLINK_KP_9000_9XH_X_EU.c b/machine/KEEPLINK_KP_9000_9XH_X_EU.c new file mode 120000 index 00000000..b9ca7fd7 --- /dev/null +++ b/machine/KEEPLINK_KP_9000_9XH_X_EU.c @@ -0,0 +1 @@ +pcb/NONAME_KP_9000_9XH_X_EU.c \ No newline at end of file diff --git a/machine/KEEPLINK_KP_9000_9XH_X_EU.h b/machine/KEEPLINK_KP_9000_9XH_X_EU.h new file mode 100644 index 00000000..402c8a0a --- /dev/null +++ b/machine/KEEPLINK_KP_9000_9XH_X_EU.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_KEEPLINK_KP_9000_9XH_X_EU_H_ +#define _MACHINE_KEEPLINK_KP_9000_9XH_X_EU_H_ + +#define MACHINE_MODEL "keepLink KP-9000-9XH-X-EU" +#define MACHINE_CHIPSET RTL8373 + +#endif diff --git a/machine/KP_9000_6XHML_X2.h b/machine/KP_9000_6XHML_X2.h deleted file mode 100644 index 67551b56..00000000 --- a/machine/KP_9000_6XHML_X2.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_KP_9000_6XHML_X2_H_ -#define _MACHINE_KP_9000_6XHML_X2_H_ - -#define MACHINE_MODEL "keepLink KP-9000-6XHML-X2" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/KP_9000_6XHML_X2_V1_1.c b/machine/KP_9000_6XHML_X2_V1_1.c deleted file mode 120000 index f9ce2cc7..00000000 --- a/machine/KP_9000_6XHML_X2_V1_1.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_6XHML_X2.c \ No newline at end of file diff --git a/machine/KP_9000_6XHML_X2_V1_1.h b/machine/KP_9000_6XHML_X2_V1_1.h deleted file mode 100644 index 8d491998..00000000 --- a/machine/KP_9000_6XHML_X2_V1_1.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_KP_9000_6XHML_X2_V1_1_H_ -#define _MACHINE_KP_9000_6XHML_X2_V1_1_H_ - -#define MACHINE_MODEL "keepLink KP-9000-6XHML V1.1" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/KP_9000_6XHML_X2_V1_2.c b/machine/KP_9000_6XHML_X2_V1_2.c deleted file mode 120000 index f9ce2cc7..00000000 --- a/machine/KP_9000_6XHML_X2_V1_2.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_6XHML_X2.c \ No newline at end of file diff --git a/machine/KP_9000_6XHML_X2_V1_2.h b/machine/KP_9000_6XHML_X2_V1_2.h deleted file mode 100644 index df5fd559..00000000 --- a/machine/KP_9000_6XHML_X2_V1_2.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_KP_9000_6XHML_X2_V1_2_H_ -#define _MACHINE_KP_9000_6XHML_X2_V1_2_H_ - -#define MACHINE_MODEL "keepLink KP-9000-6XHML V1.2" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/KP_9000_6XHML_X2_V2_1.c b/machine/KP_9000_6XHML_X2_V2_1.c deleted file mode 120000 index 5ebcb090..00000000 --- a/machine/KP_9000_6XHML_X2_V2_1.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_6XH_X2.c \ No newline at end of file diff --git a/machine/KP_9000_6XHML_X2_V2_1.h b/machine/KP_9000_6XHML_X2_V2_1.h deleted file mode 100644 index 3b276ac7..00000000 --- a/machine/KP_9000_6XHML_X2_V2_1.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_KP_9000_6XHML_X2_V2_1_H_ -#define _MACHINE_KP_9000_6XHML_X2_V2_1_H_ - -#define MACHINE_MODEL "keepLink KP-9000-6XHML V2.1" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/KP_9000_6XHML_X2_V2_1_init.c b/machine/KP_9000_6XHML_X2_V2_1_init.c deleted file mode 120000 index 37370e2a..00000000 --- a/machine/KP_9000_6XHML_X2_V2_1_init.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_6XH_X2_init.c \ No newline at end of file diff --git a/machine/KP_9000_6XH_X2_V1_1.c b/machine/KP_9000_6XH_X2_V1_1.c deleted file mode 120000 index f9ce2cc7..00000000 --- a/machine/KP_9000_6XH_X2_V1_1.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_6XHML_X2.c \ No newline at end of file diff --git a/machine/KP_9000_6XH_X2_V1_1.h b/machine/KP_9000_6XH_X2_V1_1.h deleted file mode 100644 index f3d2d068..00000000 --- a/machine/KP_9000_6XH_X2_V1_1.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_KP_9000_6XH_X2_V1_1_H_ -#define _MACHINE_KP_9000_6XH_X2_V1_1_H_ - -#define MACHINE_MODEL "keepLink KP-9000-6XH V1.1" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/KP_9000_6XH_X2_V1_2.c b/machine/KP_9000_6XH_X2_V1_2.c deleted file mode 120000 index f9ce2cc7..00000000 --- a/machine/KP_9000_6XH_X2_V1_2.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_6XHML_X2.c \ No newline at end of file diff --git a/machine/KP_9000_6XH_X2_V1_2.h b/machine/KP_9000_6XH_X2_V1_2.h deleted file mode 100644 index 2de3183e..00000000 --- a/machine/KP_9000_6XH_X2_V1_2.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_KP_9000_6XH_X2_V1_2_H_ -#define _MACHINE_KP_9000_6XH_X2_V1_2_H_ - -#define MACHINE_MODEL "keepLink KP-9000-6XH V1.2" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/KP_9000_6XH_X2_V2_1.c b/machine/KP_9000_6XH_X2_V2_1.c deleted file mode 120000 index 5ebcb090..00000000 --- a/machine/KP_9000_6XH_X2_V2_1.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_6XH_X2.c \ No newline at end of file diff --git a/machine/KP_9000_6XH_X2_V2_1.h b/machine/KP_9000_6XH_X2_V2_1.h deleted file mode 100644 index dd1a954c..00000000 --- a/machine/KP_9000_6XH_X2_V2_1.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_KP_9000_6XH_X2_V2_1_H_ -#define _MACHINE_KP_9000_6XH_X2_V2_1_H_ - -#define MACHINE_MODEL "keepLink KP-9000-6XH-X2 V2.1" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/KP_9000_6XH_X2_V2_1_init.c b/machine/KP_9000_6XH_X2_V2_1_init.c deleted file mode 120000 index 37370e2a..00000000 --- a/machine/KP_9000_6XH_X2_V2_1_init.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_6XH_X2_init.c \ No newline at end of file diff --git a/machine/KP_9000_9XHML_X_V2_2.h b/machine/KP_9000_9XHML_X_V2_2.h deleted file mode 100644 index 4bb261ac..00000000 --- a/machine/KP_9000_9XHML_X_V2_2.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_KP_9000_9XHML_X_V2_2_H_ -#define _MACHINE_KP_9000_9XHML_X_V2_2_H_ - -#define MACHINE_MODEL "keepLink KP-9000-9XHML-X V2.2" -#define MACHINE_CHIPSET RTL8373 - -#endif diff --git a/machine/KP_9000_9XHML_X_V3_1.h b/machine/KP_9000_9XHML_X_V3_1.h deleted file mode 100644 index ae5e8e55..00000000 --- a/machine/KP_9000_9XHML_X_V3_1.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_KP_9000_9XHML_X_V3_1_H_ -#define _MACHINE_KP_9000_9XHML_X_V3_1_H_ - -#define MACHINE_MODEL "keepLink KP-9000-9XHML-X V3.1" -#define MACHINE_CHIPSET RTL8373 - -#endif diff --git a/machine/KP_9000_9XHML_X_V3_2.c b/machine/KP_9000_9XHML_X_V3_2.c deleted file mode 120000 index 3e9156ac..00000000 --- a/machine/KP_9000_9XHML_X_V3_2.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_9XHML_X_V3_1.c \ No newline at end of file diff --git a/machine/KP_9000_9XHML_X_V3_2.h b/machine/KP_9000_9XHML_X_V3_2.h deleted file mode 100644 index 416cb327..00000000 --- a/machine/KP_9000_9XHML_X_V3_2.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_KP_9000_9XHML_X_V3_2_H_ -#define _MACHINE_KP_9000_9XHML_X_V3_2_H_ - -#define MACHINE_MODEL "keepLink KP-9000-9XHML-X V3.2" -#define MACHINE_CHIPSET RTL8373 - -#endif diff --git a/machine/KP_9000_9XH_X_EU.h b/machine/KP_9000_9XH_X_EU.h deleted file mode 100644 index 74c20b33..00000000 --- a/machine/KP_9000_9XH_X_EU.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_KP_9000_9XH_X_EU_H_ -#define _MACHINE_KP_9000_9XH_X_EU_H_ - -#define MACHINE_MODEL "keepLink KP-9000-9XH-X-EU" -#define MACHINE_CHIPSET RTL8373 - -#endif diff --git a/machine/LIANGUO_HYWS_SGT0108S.c b/machine/LIANGUO_HYWS_SGT0108S.c deleted file mode 100644 index 1160585a..00000000 --- a/machine/LIANGUO_HYWS_SGT0108S.c +++ /dev/null @@ -1,33 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .n_sfp = 1, - .log_to_phys_port = {2, 1, 4, 3, 5, 6, 7, 8, 9}, - .phys_to_log_port = {1, 0, 3, 2, 4, 5, 6, 7, 8}, - .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, - - .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, - .sfp_port[0].pin_los = GPIO37, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - - .reset_pin = GPIO_NA, - .high_leds = { .mux = 0, .enable = 0 }, - .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1 }, - .led_sets = { - { - LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // RJ45 Blue LEDs - LEDS_2G5 | LEDS_LINK, // RJ45 White LEDs - 0, - 0 - }, - { - LEDS_10G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // SFP blue LED? - 0, - 0, - 0 - }, - }, -}; diff --git a/machine/LIANGUO_HYWS_SGT0108S.c b/machine/LIANGUO_HYWS_SGT0108S.c new file mode 120000 index 00000000..04f4cad6 --- /dev/null +++ b/machine/LIANGUO_HYWS_SGT0108S.c @@ -0,0 +1 @@ +pcb/2G5F_20G_V1_01.c \ No newline at end of file diff --git a/machine/LIANGUO_ZX_SWTGW215AS.c b/machine/LIANGUO_ZX_SWTGW215AS.c deleted file mode 100644 index dfd48f49..00000000 --- a/machine/LIANGUO_ZX_SWTGW215AS.c +++ /dev/null @@ -1,30 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .mac_flash_offset = 0x1FC000, - .n_sfp = 1, - .log_to_phys_port = {0, 0, 0, 5, 1, 2, 3, 4, 6}, - .phys_to_log_port = {4, 5, 6, 7, 3, 8, 0, 0, 0}, - .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, - .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, - .sfp_port[0].pin_los = GPIO37, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - .reset_pin = GPIO54_ACL_BIT2_EN, - .high_leds = { .mux = LED_27 | LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1}, - .led_sets = { { LEDS_2G5 | LEDS_LINK | LEDS_ACT, // Green LED (right) - 0, // unused - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // Amber LED (left) - 0 - }, // unused - { LEDS_10G | LEDS_5G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, // SFP LED - 0, // unused - 0, // unused - 0 - }, // unused }, - }, - .led_mux_custom = 0, -}; diff --git a/machine/LIANGUO_ZX_SWTGW215AS.c b/machine/LIANGUO_ZX_SWTGW215AS.c new file mode 120000 index 00000000..38459a9e --- /dev/null +++ b/machine/LIANGUO_ZX_SWTGW215AS.c @@ -0,0 +1 @@ +pcb/PCB_SWTG115AS_V2_0_16030.c \ No newline at end of file diff --git a/machine/MOKERLINK_2G040210GSM.c b/machine/MOKERLINK_2G040210GSM.c new file mode 120000 index 00000000..b98e8b28 --- /dev/null +++ b/machine/MOKERLINK_2G040210GSM.c @@ -0,0 +1 @@ +pcb/2M_PCB43_V1_1.c \ No newline at end of file diff --git a/machine/MOKERLINK_2G040210GSM.h b/machine/MOKERLINK_2G040210GSM.h new file mode 100644 index 00000000..7056731d --- /dev/null +++ b/machine/MOKERLINK_2G040210GSM.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_MOKERLINK_2G040210GSM_H_ +#define _MACHINE_MOKERLINK_2G040210GSM_H_ + +#define MACHINE_MODEL "MokerLink 2G040210GSM" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/MOKERLINK_2G08110GSN.c b/machine/MOKERLINK_2G08110GSN.c new file mode 120000 index 00000000..3162288f --- /dev/null +++ b/machine/MOKERLINK_2G08110GSN.c @@ -0,0 +1 @@ +pcb/PCB_SWTG018AS_A_V2_0_1_19649.c \ No newline at end of file diff --git a/machine/2G08110GSN.h b/machine/MOKERLINK_2G08110GSN.h similarity index 51% rename from machine/2G08110GSN.h rename to machine/MOKERLINK_2G08110GSN.h index 46cd230f..d138fb9e 100644 --- a/machine/2G08110GSN.h +++ b/machine/MOKERLINK_2G08110GSN.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_2G08110GSN_H_ -#define _MACHINE_2G08110GSN_H_ +#ifndef _MACHINE_MOKERLINK_2G08110GSN_H_ +#define _MACHINE_MOKERLINK_2G08110GSN_H_ #define MACHINE_MODEL "MokerLink 2G08110GSN" #define MACHINE_CHIPSET RTL8373 diff --git a/machine/MOKERLINK_POE_2G080110GS.c b/machine/MOKERLINK_POE_2G080110GS.c new file mode 120000 index 00000000..e83b3026 --- /dev/null +++ b/machine/MOKERLINK_POE_2G080110GS.c @@ -0,0 +1 @@ +pcb/2M_PCB51_ML_V1_1.c \ No newline at end of file diff --git a/machine/POE_2G080110GS.h b/machine/MOKERLINK_POE_2G080110GS.h similarity index 50% rename from machine/POE_2G080110GS.h rename to machine/MOKERLINK_POE_2G080110GS.h index 3fafc0d5..26d7dbf1 100644 --- a/machine/POE_2G080110GS.h +++ b/machine/MOKERLINK_POE_2G080110GS.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_POE_2G080110GS_H_ -#define _MACHINE_POE_2G080110GS_H_ +#ifndef _MACHINE_MOKERLINK_POE_2G080110GS_H_ +#define _MACHINE_MOKERLINK_POE_2G080110GS_H_ #define MACHINE_MODEL "MokerLink POE-2G080110GS" #define MACHINE_CHIPSET RTL8373 diff --git a/machine/MOKERLINK_ZX_SWTGW218AS.c b/machine/MOKERLINK_ZX_SWTGW218AS.c new file mode 120000 index 00000000..9db78312 --- /dev/null +++ b/machine/MOKERLINK_ZX_SWTGW218AS.c @@ -0,0 +1 @@ +pcb/PCB_SWTG118AS_V2_0_16029.c \ No newline at end of file diff --git a/machine/SWTGW218AS.h b/machine/MOKERLINK_ZX_SWTGW218AS.h similarity index 51% rename from machine/SWTGW218AS.h rename to machine/MOKERLINK_ZX_SWTGW218AS.h index 33812670..ba646a2a 100644 --- a/machine/SWTGW218AS.h +++ b/machine/MOKERLINK_ZX_SWTGW218AS.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_SWTGW218AS_H_ -#define _MACHINE_SWTGW218AS_H_ +#ifndef _MACHINE_MOKERLINK_ZX_SWTGW218AS_H_ +#define _MACHINE_MOKERLINK_ZX_SWTGW218AS_H_ #define MACHINE_MODEL "SWTGW218AS 8+1 Managed Switch" #define MACHINE_CHIPSET RTL8373 diff --git a/machine/ONT_S207CW_62TS_SE.c b/machine/ONT_S207CW_62TS_SE.c deleted file mode 100644 index 65e339e6..00000000 --- a/machine/ONT_S207CW_62TS_SE.c +++ /dev/null @@ -1,58 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .n_sfp = 2, - .log_to_phys_port = {0, 0, 0, 5, 4, 3, 2, 1, 6}, - .phys_to_log_port = {7, 6, 5, 4, 3, 8, 0, 0, 0}, - .is_sfp = {0, 0, 0, 1, 0, 0, 0, 0, 2}, - - // SFP port on SDS0 / logical port 3 - .sfp_port[0].pin_detect = GPIO37, - .sfp_port[0].pin_los = GPIO_NA, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 0, - .sfp_port[0].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), - - // SFP port on SDS1 / logical port 8 - .sfp_port[1].pin_detect = GPIO38, - .sfp_port[1].pin_los = GPIO_NA, - .sfp_port[1].pin_tx_disable = GPIO_NA, - .sfp_port[1].sds = 1, - .sfp_port[1].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - - .reset_pin = GPIO_NA, - .high_leds = { .mux = LED_28_SYS | LED_29, .enable = LED_27 | LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 3, 0, 0, 2, 2, 3}, - .mac_flash_offset = 0x1FC000, - .led_sets = { - { // RJ45 Ports 3-4 (normal wiring) - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, - LEDS_2G5 | LEDS_LINK | LEDS_ACT, - 0, - 0 - }, - { // Unused - 0, - 0, - 0, - 0 - }, - { // RJ45 Ports 1-2 (reversed wiring) - LEDS_2G5 | LEDS_LINK | LEDS_ACT, - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, - 0, - 0 - }, - { // SFP Ports 5-6 - LEDS_10G | LEDS_LINK | LEDS_ACT, - LEDS_2G5 | LEDS_1G | LEDS_LINK | LEDS_ACT, - 0, - 0 - }, - }, - .led_mux_custom = 1, - .led_mux = { - 0x00,0x01,0x04,0x05,0x08,0x09,0x0c,0x3f,0x0d,0x10,0x11,0x0e,0x14,0x11,0x12,0x15,0x15,0x16,0x18,0x19,0x1a,0x19,0x1d,0x1e,0x1c,0x1d,0x20,0x21 - }, -}; diff --git a/machine/ONT_S207CW_62TS_SE.c b/machine/ONT_S207CW_62TS_SE.c new file mode 120000 index 00000000..1ce4e0ce --- /dev/null +++ b/machine/ONT_S207CW_62TS_SE.c @@ -0,0 +1 @@ +pcb/NONAME_20240111.c \ No newline at end of file diff --git a/machine/PB_2132.c b/machine/PB_2132.c deleted file mode 100644 index 55388d98..00000000 --- a/machine/PB_2132.c +++ /dev/null @@ -1,38 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .n_sfp = 1, - .log_to_phys_port = {1, 2, 3, 4, 5, 6, 7, 8, 9}, - .phys_to_log_port = {0, 1, 2, 3, 4, 5, 6, 7, 8}, - .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, - - .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, - .sfp_port[0].pin_los = GPIO37, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - - .reset_pin = GPIO_NA, - - .high_leds = { .mux = LED_27 | LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1}, - - .led_sets = { - { - /* LED0 = RJ45: Amber LED: 2.5G */ - LEDS_2G5 | LEDS_LINK | LEDS_ACT, - /* LED1 = RJ45: Green LED: 10M / 100M / 1000M */ - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, - 0, - 0 - }, - { - /* SFP+ single Green LED. */ - LEDS_10G | LEDS_5G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, - 0, - 0, - 0 - }, - }, - }; diff --git a/machine/PB_2132.c b/machine/PB_2132.c new file mode 120000 index 00000000..11ce90de --- /dev/null +++ b/machine/PB_2132.c @@ -0,0 +1 @@ +pcb/PB_2132.c \ No newline at end of file diff --git a/machine/PCB_K0402WS_V1.h b/machine/PCB_K0402WS_V1.h deleted file mode 100644 index 189da400..00000000 --- a/machine/PCB_K0402WS_V1.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_PCB_K0402WS_V1_H_ -#define _MACHINE_PCB_K0402WS_V1_H_ - -#define MACHINE_MODEL "PCB-K0402WS-V1.0" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/PCB_K0402WS_V2.h b/machine/PCB_K0402WS_V2.h deleted file mode 100644 index 36352e43..00000000 --- a/machine/PCB_K0402WS_V2.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_PCB_K0402WS_V2_H_ -#define _MACHINE_PCB_K0402WS_V2_H_ - -#define MACHINE_MODEL "PCB-K0402WS-V2.0" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/PCB_K0402WS_V2_init.c b/machine/PCB_K0402WS_V2_init.c deleted file mode 120000 index 37370e2a..00000000 --- a/machine/PCB_K0402WS_V2_init.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_6XH_X2_init.c \ No newline at end of file diff --git a/machine/PCB_K0402WS_V3.c b/machine/PCB_K0402WS_V3.c deleted file mode 120000 index 1e9dcd82..00000000 --- a/machine/PCB_K0402WS_V3.c +++ /dev/null @@ -1 +0,0 @@ -HI_K0402WS.c \ No newline at end of file diff --git a/machine/PCB_K0402WS_V3.h b/machine/PCB_K0402WS_V3.h deleted file mode 100644 index b31bd3bb..00000000 --- a/machine/PCB_K0402WS_V3.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_PCB_K0402WS_V3_H_ -#define _MACHINE_PCB_K0402WS_V3_H_ - -#define MACHINE_MODEL "PCB-K0402WS-V3.0" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/PCB_K0402WS_V3_init.c b/machine/PCB_K0402WS_V3_init.c deleted file mode 120000 index 37370e2a..00000000 --- a/machine/PCB_K0402WS_V3_init.c +++ /dev/null @@ -1 +0,0 @@ -KP_9000_6XH_X2_init.c \ No newline at end of file diff --git a/machine/PCB_SWTG018AS_V2_1_0.c b/machine/PCB_SWTG018AS_V2_1_0.c deleted file mode 100644 index 1eb77872..00000000 --- a/machine/PCB_SWTG018AS_V2_1_0.c +++ /dev/null @@ -1,39 +0,0 @@ -#include "machine_defs.h" - - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .mac_flash_offset = 0x1FC000, - .n_sfp = 1, - .log_to_phys_port = {1, 2, 3, 4, 5, 6, 7, 8, 9}, - .phys_to_log_port = {0, 1, 2, 3, 4, 5, 6, 7, 8}, - .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, - .sfp_port[0].pin_detect = GPIO38, // pulled low on module insert - .sfp_port[0].pin_los = GPIO_NA, // no LOS pin wired - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - .reset_pin = GPIO54_ACL_BIT2_EN, - .high_leds = { .mux = LED_27 | LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1}, - // LED wiring matches the SWTG018AS-A V2.0 (same PCB family) - .led_sets = { - { /* RJ45: First LED, yellow, second LED: green */ - LEDS_2G5 | LEDS_LINK, - LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, - 0, - 0, - }, { /* SFP set (superseded by the raw register override in machine_custom_init) */ - LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT | LEDS_10G, - 0, - 0, - 0, - }}, - .led_mux_custom = 1, - .led_mux = { 0x00, 0x01, 0x04, 0x05, 0x08, // 65e0 - 0x09, 0x0c, 0x09, 0x0d, 0x10, // 65e4 - 0x11, 0x0e, 0x14, 0x11, 0x12, // 65e8 - 0x15, 0x15, 0x16, 0x18, 0x19, // 65ec - 0x1a, 0x19, 0x1d, 0x1e, 0x1c, // 65f0 - 0x1d, 0x20, 0x21 }, -}; diff --git a/machine/PCB_SWTG018AS_V2_1_0.c b/machine/PCB_SWTG018AS_V2_1_0.c new file mode 120000 index 00000000..3b5ec738 --- /dev/null +++ b/machine/PCB_SWTG018AS_V2_1_0.c @@ -0,0 +1 @@ +pcb/PCB_SWTG018AS_V2_1_0.c \ No newline at end of file diff --git a/machine/PCB_SWTG018AS_V2_1_0_init.c b/machine/PCB_SWTG018AS_V2_1_0_init.c deleted file mode 100644 index bce0b814..00000000 --- a/machine/PCB_SWTG018AS_V2_1_0_init.c +++ /dev/null @@ -1,18 +0,0 @@ -#include "machine_init_defs.h" - -static __code const struct { uint16_t reg; uint32_t val; } custom_init_regs[] = { - { RTL837X_REG_LED3_0_SET1, 0x00100000UL }, - { RTL837X_REG_LED1_0_SET1, 0x01400155UL }, - { RTL837X_REG_LED1_0_SET0, 0x01740141UL }, - { RTL837X_REG_LED_GLB_IO_EN, 0x7f24977fUL }, - { RTL837X_PIN_MUX_0, 0x20db6880UL }, -}; - -void machine_custom_init(void) __banked -{ - uint8_t i; - // REG_SET is a multi-statement macro without a do-while wrapper: braces required - for (i = 0; i < sizeof(custom_init_regs) / sizeof(custom_init_regs[0]); i++) { - REG_SET(custom_init_regs[i].reg, custom_init_regs[i].val); - } -} diff --git a/machine/PCB_SWTG018AS_V2_1_0_init.c b/machine/PCB_SWTG018AS_V2_1_0_init.c new file mode 120000 index 00000000..79dfa743 --- /dev/null +++ b/machine/PCB_SWTG018AS_V2_1_0_init.c @@ -0,0 +1 @@ +pcb/PCB_SWTG018AS_V2_1_0_init.c \ No newline at end of file diff --git a/machine/PCB_SWTG024AS_A_2_0_1.c b/machine/PCB_SWTG024AS_A_2_0_1.c deleted file mode 100644 index 1bf376a6..00000000 --- a/machine/PCB_SWTG024AS_A_2_0_1.c +++ /dev/null @@ -1,46 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .mac_flash_offset = 0x1FC000, - .n_sfp = 2, - .log_to_phys_port = {0, 0, 0, 5, 1, 2, 3, 4, 6}, - .phys_to_log_port = {4, 5, 6, 7, 3, 8, 0, 0, 0}, - .is_sfp = {0, 0, 0, 1, 0, 0, 0, 0, 2}, - - // SFP port on SDS0 / logical port 3 - .sfp_port[0].pin_detect = GPIO37, - .sfp_port[0].pin_los = GPIO_NA, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 0, - .sfp_port[0].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), - - // SFP port on SDS1 / logical port 8 - .sfp_port[1].pin_detect = GPIO38, - .sfp_port[1].pin_los = GPIO_NA, - .sfp_port[1].pin_tx_disable = GPIO_NA, - .sfp_port[1].sds = 1, - .sfp_port[1].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - - .reset_pin = GPIO48_I2C_SCL1, - .high_leds = { .mux = LED_28_SYS | LED_29, .enable = LED_27 | LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, - .led_sets = { - { - LEDS_2G5 | LEDS_LINK | LEDS_ACT, - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, - LEDS_DUPLEX, - LEDS_2G5 | LEDS_LINK | LEDS_ACT - }, - { - LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, - LEDS_10G | LEDS_LINK | LEDS_ACT, - LEDS_2G5 | LEDS_LINK, - LEDS_COL | LEDS_DUPLEX - }, - }, - .led_mux_custom = 1, - .led_mux = { - 0x00,0x01,0x04,0x05,0x08,0x09,0x0c,0x3f,0x0d,0x10,0x11,0x0e,0x14,0x11,0x12,0x15,0x15,0x16,0x18,0x19,0x1a,0x19,0x1d,0x1e,0x1c,0x1d,0x20,0x21 - }, - }; diff --git a/machine/PCB_SWTG024AS_A_2_0_1.c b/machine/PCB_SWTG024AS_A_2_0_1.c new file mode 120000 index 00000000..f393130c --- /dev/null +++ b/machine/PCB_SWTG024AS_A_2_0_1.c @@ -0,0 +1 @@ +pcb/PCB_SWTG024AS_A_V2_0_1_19650.c \ No newline at end of file diff --git a/machine/PCB_SWTG024AS_A_2_0_1_init.c b/machine/PCB_SWTG024AS_A_2_0_1_init.c deleted file mode 100644 index 311bda3e..00000000 --- a/machine/PCB_SWTG024AS_A_2_0_1_init.c +++ /dev/null @@ -1,9 +0,0 @@ -#include "machine_init_defs.h" - -void machine_custom_init(void) __banked -{ - reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 6); - reg_bit_set(RTL837X_REG_LED_MODE, 17); - reg_bit_clear(RTL837X_REG_LED_MODE, 9); - reg_bit_clear(RTL837X_REG_LED_MODE, 7); -} diff --git a/machine/PCB_SWTG024AS_A_2_0_1_init.c b/machine/PCB_SWTG024AS_A_2_0_1_init.c new file mode 120000 index 00000000..7b4c2de0 --- /dev/null +++ b/machine/PCB_SWTG024AS_A_2_0_1_init.c @@ -0,0 +1 @@ +pcb/PCB_SWTG024AS_A_V2_0_1_19650_init.c \ No newline at end of file diff --git a/machine/PCB_SWTG024AS_V2_1_0.c b/machine/PCB_SWTG024AS_V2_1_0.c deleted file mode 100644 index 203724d3..00000000 --- a/machine/PCB_SWTG024AS_V2_1_0.c +++ /dev/null @@ -1,54 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .n_sfp = 2, - .log_to_phys_port = {0, 0, 0, 5, 1, 2, 3, 4, 6}, - .phys_to_log_port = {4, 5, 6, 7, 3, 8, 0, 0, 0}, - .is_sfp = {0, 0, 0, 1, 0, 0, 0, 0, 2}, - - // SFP port on SDS0 / logical port 3 - .sfp_port[0].pin_detect = GPIO37, - .sfp_port[0].pin_los = GPIO_NA, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 0, - .sfp_port[0].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), - - // SFP port on SDS1 / logical port 8 - .sfp_port[1].pin_detect = GPIO38, - .sfp_port[1].pin_los = GPIO_NA, - .sfp_port[1].pin_tx_disable = GPIO_NA, - .sfp_port[1].sds = 1, - .sfp_port[1].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - - .reset_pin = GPIO_NA, - .high_leds = { .mux = LED_28_SYS | LED_29, .enable = LED_27 | LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1 }, - .led_sets = { - { - LEDS_2G5 | LEDS_LINK | LEDS_ACT, - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, - 0, - 0 - }, - { - LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, - LEDS_10G | LEDS_LINK | LEDS_ACT, - 0, - 0 - }, - }, - - .led_mux_custom = 1, - .led_mux = { - 0x00, 0x01, 0x04, 0x05, 0x08, - 0x09, 0x0c, 0x3f, 0x0d, 0x10, - 0x11, 0x3f, 0x14, 0x3f, 0x3f, - 0x15, 0x3f, 0x3f, 0x18, 0x3f, - 0x3f, 0x19, 0x3f, 0x3f, 0x1c, - 0x1d, 0x20, 0x21 - }, -}; - -// Boot 1-4G 6Y -// 1-4Y 5G 6Y \ No newline at end of file diff --git a/machine/PCB_SWTG024AS_V2_1_0.c b/machine/PCB_SWTG024AS_V2_1_0.c new file mode 120000 index 00000000..dbdb63f3 --- /dev/null +++ b/machine/PCB_SWTG024AS_V2_1_0.c @@ -0,0 +1 @@ +pcb/PCB_SWTG024AS_V2_1_0_19023.c \ No newline at end of file diff --git a/machine/PCB_SWTG024AS_V2_1_0_init.c b/machine/PCB_SWTG024AS_V2_1_0_init.c deleted file mode 100644 index fbc6bbe3..00000000 --- a/machine/PCB_SWTG024AS_V2_1_0_init.c +++ /dev/null @@ -1,22 +0,0 @@ -#include "machine_init_defs.h" - -void machine_custom_init(void) __banked -{ - // Stock LED_MODE: [8:5]=1, [12:9]=2 (leds_setup hard-codes 5/3); same as clearing bits 7 and 9 - reg_bit_set(RTL837X_REG_LED_MODE, 17); - reg_bit_clear(RTL837X_REG_LED_MODE, 9); - reg_bit_clear(RTL837X_REG_LED_MODE, 7); - - // Stock LED_GLB_IO_EN [27:0] = 0x0f249740: enable LED pins 6, 8, 9, 10, 12, 15, 18, 21, 24-27 - reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 6); - reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 8); - reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 9); - reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 10); - reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 12); - reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 15); - reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 18); - reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 21); - reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 24); - reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 25); - reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 26); -} \ No newline at end of file diff --git a/machine/PCB_SWTG024AS_V2_1_0_init.c b/machine/PCB_SWTG024AS_V2_1_0_init.c new file mode 120000 index 00000000..a63218dc --- /dev/null +++ b/machine/PCB_SWTG024AS_V2_1_0_init.c @@ -0,0 +1 @@ +pcb/PCB_SWTG024AS_V2_1_0_19023_init.c \ No newline at end of file diff --git a/machine/REALHD_PSW8_25MG.c b/machine/REALHD_PSW8_25MG.c index 12d765dd..3163210f 120000 --- a/machine/REALHD_PSW8_25MG.c +++ b/machine/REALHD_PSW8_25MG.c @@ -1 +1 @@ -PCB_AFGW_SWTG218ANS_V_2_0_2.c \ No newline at end of file +pcb/PCB_AFGW_SWTG218ANS_V2_0_2_23308.c \ No newline at end of file diff --git a/machine/REALHD_PSW8_25MG.h b/machine/REALHD_PSW8_25MG.h index 0e699d95..d7a09555 100644 --- a/machine/REALHD_PSW8_25MG.h +++ b/machine/REALHD_PSW8_25MG.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_SWTG218ANS_V_2_0_2_H_ -#define _MACHINE_SWTG218ANS_V_2_0_2_H_ +#ifndef _MACHINE_REALHD_PSW8_25MG_H_ +#define _MACHINE_REALHD_PSW8_25MG_H_ #define MACHINE_MODEL "RealHD PSW8-25MG" #define MACHINE_CHIPSET RTL8373 diff --git a/machine/REALHD_PSW8_25MG_init.c b/machine/REALHD_PSW8_25MG_init.c index dfe02f48..e210dbc4 120000 --- a/machine/REALHD_PSW8_25MG_init.c +++ b/machine/REALHD_PSW8_25MG_init.c @@ -1 +1 @@ -PCB_AFGW_SWTG218ANS_V_2_0_2_init.c \ No newline at end of file +pcb/PCB_AFGW_SWTG218ANS_V2_0_2_23308_init.c \ No newline at end of file diff --git a/machine/RUIYING_RY_4GT_2SX.c b/machine/RUIYING_RY_4GT_2SX.c new file mode 120000 index 00000000..fe729e2c --- /dev/null +++ b/machine/RUIYING_RY_4GT_2SX.c @@ -0,0 +1 @@ +pcb/FG_4GT_2SX_V2_0.c \ No newline at end of file diff --git a/machine/FG_4GT_2SX_V2_0.h b/machine/RUIYING_RY_4GT_2SX.h similarity index 50% rename from machine/FG_4GT_2SX_V2_0.h rename to machine/RUIYING_RY_4GT_2SX.h index 8c819abf..5c8d3c80 100644 --- a/machine/FG_4GT_2SX_V2_0.h +++ b/machine/RUIYING_RY_4GT_2SX.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_FG_4GT_2SX_V2_0_H_ -#define _MACHINE_FG_4GT_2SX_V2_0_H_ +#ifndef _MACHINE_RUIYING_RY_4GT_2SX_H_ +#define _MACHINE_RUIYING_RY_4GT_2SX_H_ #define MACHINE_MODEL "FG-4GT-2SX_V2.0" #define MACHINE_CHIPSET RTL8372 diff --git a/machine/RUIYING_RY_4GT_2SX_init.c b/machine/RUIYING_RY_4GT_2SX_init.c new file mode 120000 index 00000000..c0653cac --- /dev/null +++ b/machine/RUIYING_RY_4GT_2SX_init.c @@ -0,0 +1 @@ +pcb/FG_4GT_2SX_V2_0_init.c \ No newline at end of file diff --git a/machine/RUIYING_RY_8GT_1SX.c b/machine/RUIYING_RY_8GT_1SX.c new file mode 120000 index 00000000..380b749f --- /dev/null +++ b/machine/RUIYING_RY_8GT_1SX.c @@ -0,0 +1 @@ +pcb/FG_8GT_1SX.c \ No newline at end of file diff --git a/machine/RUIYING_RY_8GT_1SX.h b/machine/RUIYING_RY_8GT_1SX.h new file mode 100644 index 00000000..8d22114c --- /dev/null +++ b/machine/RUIYING_RY_8GT_1SX.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_RUIYING_RY_8GT_1SX_H_ +#define _MACHINE_RUIYING_RY_8GT_1SX_H_ + +#define MACHINE_MODEL "FG-8GT-1SX" +#define MACHINE_CHIPSET RTL8373 + +#endif diff --git a/machine/SIRIVISION_S25G2206FP_V1_1.c b/machine/SIRIVISION_S25G2206FP_V1_1.c deleted file mode 100644 index b7d5c36c..00000000 --- a/machine/SIRIVISION_S25G2206FP_V1_1.c +++ /dev/null @@ -1,39 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .mac_flash_offset = 0x1FC000, - .n_sfp = 2, - .log_to_phys_port = {0, 0, 0, 6, 1, 2, 3, 4, 5}, - .phys_to_log_port = {4, 5, 6, 7, 8, 3, 0, 0, 0}, - .is_sfp= {0, 0, 0, 2, 0, 0, 0, 0, 1}, - // Left SFP port (J4) - .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, - .sfp_port[0].pin_los = GPIO37, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), /* GPIO 39 */ - // Right SFP port (J2) - .sfp_port[1].pin_detect = GPIO50_I2C_SCL2_UART1_TX, - .sfp_port[1].pin_los = GPIO51_I2C_SDA2_UART1_RX, - .sfp_port[1].pin_tx_disable = GPIO_NA, - .sfp_port[1].sds = 0, - .sfp_port[1].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), /* GPIO 40 */ - .reset_pin = GPIO36_PWM_OUT, - .high_leds = { .mux = LED_27 | LED_29, .enable = LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, - .led_sets = { - { /* RJ45: Green LED */ - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT | LEDS_10G, - 0, - /* Amber LED */ - LEDS_2G5 | LEDS_LINK | LEDS_ACT, - 0 - }, { /* SFP PORT: SINGLE GREEN LED */ - LEDS_10M | LEDS_100M | LEDS_1G | LEDS_2G5 | LEDS_10G | LEDS_LINK | LEDS_ACT, - 0, - 0, - 0, - }, - }, -}; diff --git a/machine/SIRIVISION_S25G2206FP_V1_1.c b/machine/SIRIVISION_S25G2206FP_V1_1.c new file mode 120000 index 00000000..3eff0a1a --- /dev/null +++ b/machine/SIRIVISION_S25G2206FP_V1_1.c @@ -0,0 +1 @@ +pcb/S25G2206FP_V1_1.c \ No newline at end of file diff --git a/machine/SIRIVISION_SR_S25G2109F.c b/machine/SIRIVISION_SR_S25G2109F.c new file mode 120000 index 00000000..481db69d --- /dev/null +++ b/machine/SIRIVISION_SR_S25G2109F.c @@ -0,0 +1 @@ +pcb/S25G1109FP_V1_3.c \ No newline at end of file diff --git a/machine/S25G1109FP_V1_3.h b/machine/SIRIVISION_SR_S25G2109F.h similarity index 78% rename from machine/S25G1109FP_V1_3.h rename to machine/SIRIVISION_SR_S25G2109F.h index fbe6f7b3..81d5c978 100644 --- a/machine/S25G1109FP_V1_3.h +++ b/machine/SIRIVISION_SR_S25G2109F.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_S25G1109FP_V1_3_H_ -#define _MACHINE_S25G1109FP_V1_3_H_ +#ifndef _MACHINE_SIRIVISION_SR_S25G2109F_H_ +#define _MACHINE_SIRIVISION_SR_S25G2109F_H_ /* machine_name[] in struct machine is 30 bytes -> keep this <= 29 chars */ /* The product is sold as SR-S25G2109F; S25G1109FP is the PCB silkscreen and diff --git a/machine/SKS3200_8E1X.c b/machine/SKS3200_8E1X.c deleted file mode 120000 index 2eb54be2..00000000 --- a/machine/SKS3200_8E1X.c +++ /dev/null @@ -1 +0,0 @@ -PCB_SWTG018AS_V2_1_0.c \ No newline at end of file diff --git a/machine/SODOLA_SL_SWTGW215AS_D.c b/machine/SODOLA_SL_SWTGW215AS_D.c new file mode 120000 index 00000000..9aac4a20 --- /dev/null +++ b/machine/SODOLA_SL_SWTGW215AS_D.c @@ -0,0 +1 @@ +pcb/PCB_SWTG115AS_V2_1_17443.c \ No newline at end of file diff --git a/machine/SODOLA_SL_SWTGW215AS_D.h b/machine/SODOLA_SL_SWTGW215AS_D.h new file mode 100644 index 00000000..a8363047 --- /dev/null +++ b/machine/SODOLA_SL_SWTGW215AS_D.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_SODOLA_SL_SWTGW215AS_D_H_ +#define _MACHINE_SODOLA_SL_SWTGW215AS_D_H_ + +#define MACHINE_MODEL "Sodola SL-SWTGW215AS-D" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/STEAMEMO_IG204_V1.c b/machine/STEAMEMO_IG204_V1.c deleted file mode 100644 index a7d765e3..00000000 --- a/machine/STEAMEMO_IG204_V1.c +++ /dev/null @@ -1,47 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .n_sfp = 2, - .log_to_phys_port = {0, 0, 0, 6, 1, 2, 3, 4, 5}, - .phys_to_log_port = {4, 5, 6, 7, 8, 3, 0, 0, 0}, - .is_sfp = {0, 0, 0, 2, 0, 0, 0, 0, 1}, - // Left SFP port (5) - // LED pin 9 - .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, - .sfp_port[0].pin_los = GPIO37, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - // Right SFP port (6) - // LED pin 24 - .sfp_port[1].pin_detect = GPIO50_I2C_SCL2_UART1_TX, - .sfp_port[1].pin_los = GPIO51_I2C_SDA2_UART1_RX, - .sfp_port[1].pin_tx_disable = GPIO_NA, - .sfp_port[1].sds = 0, - .sfp_port[1].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), - .reset_pin = GPIO_NA, - .high_leds = { .mux = LED_27 | LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, - .led_sets = { - { - // RJ45 Amber LED (left) - LEDS_2G5 | LEDS_LINK, - // RJ45 Green LED (Right) - LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, - 0, - 0, - }, - { - // SFP LED - LEDS_10G | LEDS_5G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, - 0, // unused - 0, // unused - 0 - }, - }, - .led_mux_custom = 1, - .led_mux = { - 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x0f, 0x20, 0x0d, 0x0e, 0x10, 0x11, 0x12, 0x14, 0x15, 0x16, 0x18, 0x19, 0x1a, 0x1c, 0x1d, 0x1e, 0x0c, 0x21, 0x22, 0x23 - }, -}; diff --git a/machine/STEAMEMO_IG204_V1.c b/machine/STEAMEMO_IG204_V1.c new file mode 120000 index 00000000..c21eb03d --- /dev/null +++ b/machine/STEAMEMO_IG204_V1.c @@ -0,0 +1 @@ +pcb/PB_2131.c \ No newline at end of file diff --git a/machine/SWGT024_V2_0_MANAGED.c b/machine/SWGT024_V2_0_MANAGED.c deleted file mode 100644 index b3997fd3..00000000 --- a/machine/SWGT024_V2_0_MANAGED.c +++ /dev/null @@ -1,39 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .n_sfp = 2, - .log_to_phys_port = {0, 0, 0, 6, 1, 2, 3, 4, 5}, - .phys_to_log_port = {4, 5, 6, 7, 8, 3, 0, 0, 0}, - .is_sfp= {0, 0, 0, 2, 0, 0, 0, 0, 1}, - // Left SFP port (J4) - .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, - .sfp_port[0].pin_los = GPIO_NA, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), /* GPIO 39 */ - // Right SFP port (J2) - .sfp_port[1].pin_detect = GPIO50_I2C_SCL2_UART1_TX, - .sfp_port[1].pin_los = GPIO_NA, - .sfp_port[1].pin_tx_disable = GPIO_NA, - .sfp_port[1].sds = 0, - .sfp_port[1].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), /* GPIO 40 */ - .reset_pin = GPIO54_ACL_BIT2_EN, - .high_leds = { .mux = LED_27 | LED_29, .enable = LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, - .led_sets = { - { /* RJ45: Green LED */ - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT | LEDS_10G, - 0, - /* Amber LED */ - LEDS_2G5 | LEDS_LINK | LEDS_ACT, - 0 - }, { /* SFP PORT: SINGLE GREEN LED */ - LEDS_10M | LEDS_100M | LEDS_1G | LEDS_2G5 | LEDS_10G | LEDS_LINK | LEDS_ACT, - 0, - 0, - 0, - }, - }, - .mac_flash_offset = 0x1FC000, -}; diff --git a/machine/SWGT024_V2_0_MANAGED.c b/machine/SWGT024_V2_0_MANAGED.c new file mode 120000 index 00000000..5cc37aec --- /dev/null +++ b/machine/SWGT024_V2_0_MANAGED.c @@ -0,0 +1 @@ +pcb/PCB_SWTG024AS_V2_0_17452_XIKESTOR.c \ No newline at end of file diff --git a/machine/SWGT024_V2_0_UNMANAGED.c b/machine/SWGT024_V2_0_UNMANAGED.c deleted file mode 100644 index b07f6d8f..00000000 --- a/machine/SWGT024_V2_0_UNMANAGED.c +++ /dev/null @@ -1,38 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .n_sfp = 2, - .log_to_phys_port = {0, 0, 0, 6, 1, 2, 3, 4, 5}, - .phys_to_log_port = {4, 5, 6, 7, 8, 3, 0, 0, 0}, - .is_sfp= {0, 0, 0, 2, 0, 0, 0, 0, 1}, - // Left SFP port (J4) - .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, - .sfp_port[0].pin_los = GPIO37, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), /* GPIO 39 */ - // Right SFP port (J2) - .sfp_port[1].pin_detect = GPIO50_I2C_SCL2_UART1_TX, - .sfp_port[1].pin_los = GPIO51_I2C_SDA2_UART1_RX, - .sfp_port[1].pin_tx_disable = GPIO_NA, - .sfp_port[1].sds = 0, - .sfp_port[1].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), /* GPIO 40 */ - .reset_pin = GPIO_NA, - .high_leds = { .mux = LED_27 | LED_29, .enable = LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, - .led_sets = { - { /* RJ45: Green LED */ - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT | LEDS_10G, - 0, - /* Amber LED */ - LEDS_2G5 | LEDS_LINK | LEDS_ACT, - 0 - }, { /* SFP PORT: SINGLE GREEN LED */ - LEDS_10M | LEDS_100M | LEDS_1G | LEDS_2G5 | LEDS_10G | LEDS_LINK | LEDS_ACT, - 0, - 0, - 0, - }, - }, -}; diff --git a/machine/SWGT024_V2_0_UNMANAGED.c b/machine/SWGT024_V2_0_UNMANAGED.c new file mode 120000 index 00000000..c06e0f8d --- /dev/null +++ b/machine/SWGT024_V2_0_UNMANAGED.c @@ -0,0 +1 @@ +pcb/PCB_SWTG024AS_V2_0_17452.c \ No newline at end of file diff --git a/machine/SWTG018AS_A_V_2_0.c b/machine/SWTG018AS_A_V_2_0.c deleted file mode 100644 index 6e0fd109..00000000 --- a/machine/SWTG018AS_A_V_2_0.c +++ /dev/null @@ -1,37 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .mac_flash_offset = 0x1FC000, - .n_sfp = 1, - .log_to_phys_port = {1, 2, 3, 4, 5, 6, 7, 8, 9}, - .phys_to_log_port = {0, 1, 2, 3, 4, 5, 6, 7, 8}, - .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, - .sfp_port[0].pin_detect = GPIO38, - .sfp_port[0].pin_los = GPIO_NA, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - .reset_pin = GPIO48_I2C_SCL1, - .high_leds = { .mux = LED_27 | LED_29, .enable = LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1}, - .led_sets = { - { /* RJ45: First LED, yellow, second LED: green */ - LEDS_2G5 | LEDS_LINK, - LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, - 0, - 0, - }, { /* SFP PORT, SINGLE GREEN LED */ - LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT | LEDS_10G, - 0, - 0, - 0, - }}, - .led_mux_custom = 1, - .led_mux = { 0x00, 0x01, 0x04, 0x05, 0x08, // 65e0 - 0x09, 0x0c, 0x09, 0x0d, 0x10, // 65e4 - 0x11, 0x0e, 0x14, 0x11, 0x12, // 65e8 - 0x15, 0x15, 0x16, 0x18, 0x19, // 65ec - 0x1a, 0x19, 0x1d, 0x1e, 0x1c, // 65f0 - 0x1d, 0x20, 0x21 }, -}; diff --git a/machine/SWTG018AS_A_V_2_0.c b/machine/SWTG018AS_A_V_2_0.c new file mode 120000 index 00000000..3162288f --- /dev/null +++ b/machine/SWTG018AS_A_V_2_0.c @@ -0,0 +1 @@ +pcb/PCB_SWTG018AS_A_V2_0_1_19649.c \ No newline at end of file diff --git a/machine/SWTG024AS_A_2_0_1_5C_1SFP.h b/machine/SWTG024AS_A_2_0_1_5C_1SFP.h deleted file mode 100644 index 6345a9ce..00000000 --- a/machine/SWTG024AS_A_2_0_1_5C_1SFP.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_SWTG024AS_A_2_0_1_5C_1SFP_H_ -#define _MACHINE_SWTG024AS_A_2_0_1_5C_1SFP_H_ - -#define MACHINE_MODEL "SWTG024AS-A-V2.0.1-5C-1SFP" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/SWTG024AS_A_2_0_1_5C_1SFP_init.c b/machine/SWTG024AS_A_2_0_1_5C_1SFP_init.c deleted file mode 120000 index 6297e789..00000000 --- a/machine/SWTG024AS_A_2_0_1_5C_1SFP_init.c +++ /dev/null @@ -1 +0,0 @@ -SWTG024AS_V2_0_init.c \ No newline at end of file diff --git a/machine/SWTG024AS_A_V2_0_1_5C_1SFP.c b/machine/SWTG024AS_A_V2_0_1_5C_1SFP.c new file mode 120000 index 00000000..7f9f6dd3 --- /dev/null +++ b/machine/SWTG024AS_A_V2_0_1_5C_1SFP.c @@ -0,0 +1 @@ +pcb/PCB_SWTG024AS_A_V2_0_1_19650_HORACO.c \ No newline at end of file diff --git a/machine/SWTG024AS_A_V2_0_1_5C_1SFP.h b/machine/SWTG024AS_A_V2_0_1_5C_1SFP.h new file mode 100644 index 00000000..9352bd21 --- /dev/null +++ b/machine/SWTG024AS_A_V2_0_1_5C_1SFP.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_SWTG024AS_A_V2_0_1_5C_1SFP_H_ +#define _MACHINE_SWTG024AS_A_V2_0_1_5C_1SFP_H_ + +#define MACHINE_MODEL "SWTG024AS-A-V2.0.1-5C-1SFP" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/SWTG024AS_A_V2_0_1_5C_1SFP_init.c b/machine/SWTG024AS_A_V2_0_1_5C_1SFP_init.c new file mode 120000 index 00000000..36a6cf7d --- /dev/null +++ b/machine/SWTG024AS_A_V2_0_1_5C_1SFP_init.c @@ -0,0 +1 @@ +pcb/PCB_SWTG024AS_V2_0_16895_init.c \ No newline at end of file diff --git a/machine/SWTG024AS_V2_0.c b/machine/SWTG024AS_V2_0.c deleted file mode 100644 index b1902329..00000000 --- a/machine/SWTG024AS_V2_0.c +++ /dev/null @@ -1,40 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .n_sfp = 1, - .log_to_phys_port = {0, 0, 0, 5, 1, 2, 3, 4, 6}, - .phys_to_log_port = {4, 5, 6, 7, 3, 8, 0, 0, 0}, - .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, - .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, - .sfp_port[0].pin_los = GPIO37, - .sfp_port[0].pin_tx_disable = GPIO_NA, - .sfp_port[0].sds = 1, - .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), - - .reset_pin = GPIO_NA, - .high_leds = { .mux = LED_28_SYS | LED_29, .enable = LED_27 | LED_28_SYS | LED_29 }, - .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1}, - /* Ports 1-5 RJ45 use set 0, port 9 SFP uses set 1 - * Ports 1-5: Green: 2.5GBit, Amber: 10/100/1000MBit - * SFP-port: Blue: 10GBit, Amber: 100MBit-2.5GBit - */ - .led_sets = { - { - LEDS_2G5 | LEDS_LINK | LEDS_ACT, - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, - LEDS_DUPLEX, - LEDS_2G5 | LEDS_LINK | LEDS_ACT - }, - { - LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, - LEDS_10G | LEDS_LINK | LEDS_ACT, - LEDS_2G5 | LEDS_LINK, - LEDS_COL | LEDS_DUPLEX - }, - }, - .led_mux_custom = 1, - .led_mux = { - 0x00,0x01,0x04,0x05,0x08,0x09,0x0c,0x3f,0x0d,0x10,0x11,0x0e,0x14,0x11,0x12,0x15,0x15,0x16,0x18,0x19,0x1a,0x19,0x1d,0x1e,0x1c,0x1d,0x20,0x21 - }, - }; diff --git a/machine/SWTG024AS_V2_0.c b/machine/SWTG024AS_V2_0.c new file mode 120000 index 00000000..a528cabd --- /dev/null +++ b/machine/SWTG024AS_V2_0.c @@ -0,0 +1 @@ +pcb/PCB_SWTG024AS_V2_0_16895.c \ No newline at end of file diff --git a/machine/SWTG024AS_V2_0_init.c b/machine/SWTG024AS_V2_0_init.c deleted file mode 100644 index 98d2f0c6..00000000 --- a/machine/SWTG024AS_V2_0_init.c +++ /dev/null @@ -1,20 +0,0 @@ -#include "machine_init_defs.h" - -void machine_custom_init(void) __banked -{ - uint16_t pval; - - reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 6); - reg_bit_set(RTL837X_REG_LED_MODE, 17); - reg_bit_clear(RTL837X_REG_LED_MODE, 9); - reg_bit_clear(RTL837X_REG_LED_MODE, 7); - - // OEM firmware sets these companion SDS0 polarity bits for the RTL8221B. - sds_read(0, 0, 0); - pval = SFR_DATA_U16; - sds_write_v(0, 0, 0, pval | 0x100); - - sds_read(0, 6, 2); - pval = SFR_DATA_U16; - sds_write_v(0, 6, 2, pval | 0x4000); -} diff --git a/machine/SWTG024AS_V2_0_init.c b/machine/SWTG024AS_V2_0_init.c new file mode 120000 index 00000000..36a6cf7d --- /dev/null +++ b/machine/SWTG024AS_V2_0_init.c @@ -0,0 +1 @@ +pcb/PCB_SWTG024AS_V2_0_16895_init.c \ No newline at end of file diff --git a/machine/TRENDNET_TEG_S562.c b/machine/TRENDNET_TEG_S562.c deleted file mode 100644 index a37bc84a..00000000 --- a/machine/TRENDNET_TEG_S562.c +++ /dev/null @@ -1,36 +0,0 @@ -#include "machine_defs.h" - -__code const struct machine machine = { - MACHINE_COMMON_SETTING, - .n_sfp = 2, - .log_to_phys_port = {0, 0, 0, 6, 1, 2, 3, 4, 5}, - .phys_to_log_port = {4, 5, 6, 7, 8, 3, 0, 0, 0}, - .is_sfp = {0, 0, 0, 1, 0, 0, 0, 0, 2}, - .sfp_port[0].pin_detect = GPIO38, - .sfp_port[0].pin_los = GPIO50_I2C_SCL2_UART1_TX, - .sfp_port[0].pin_tx_disable = GPIO54_ACL_BIT2_EN, - .sfp_port[0].sds = 0, - .sfp_port[0].i2c = I2CBUS( GPIO47_I2C_SDA0, GPIO46_I2C_SCL0 ), - .sfp_port[1].pin_detect = GPIO36_PWM_OUT, - .sfp_port[1].pin_los = GPIO37, - .sfp_port[1].pin_tx_disable = GPIO51_I2C_SDA2_UART1_RX, - .sfp_port[1].sds = 1, - .sfp_port[1].i2c = I2CBUS( GPIO49_I2C_SDA1, GPIO48_I2C_SCL1 ), - .reset_pin = GPIO_NA, - .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, - .led_sets = { - { - 0, // Unused - LEDS_2G5 | LEDS_LINK | LEDS_ACT, // Green - LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // Amber - 0 // Unused - }, - { - 0, // Unused - 0, // Unused - LEDS_10G | LEDS_1G | LEDS_LINK | LEDS_ACT, // Green - 0, // Unused - }, - }, - -}; diff --git a/machine/TRENDNET_TEG_S562.c b/machine/TRENDNET_TEG_S562.c new file mode 120000 index 00000000..ebb17394 --- /dev/null +++ b/machine/TRENDNET_TEG_S562.c @@ -0,0 +1 @@ +pcb/270_NB1_MS206B004A1_REV_A1.c \ No newline at end of file diff --git a/machine/XIKESTOR_SKS3200_8E1X.c b/machine/XIKESTOR_SKS3200_8E1X.c new file mode 120000 index 00000000..156576d5 --- /dev/null +++ b/machine/XIKESTOR_SKS3200_8E1X.c @@ -0,0 +1 @@ +pcb/PCB_SWTG118AS_V2_1_17462.c \ No newline at end of file diff --git a/machine/SKS3200_8E1X.h b/machine/XIKESTOR_SKS3200_8E1X.h similarity index 51% rename from machine/SKS3200_8E1X.h rename to machine/XIKESTOR_SKS3200_8E1X.h index ca1e7846..8c2798f1 100644 --- a/machine/SKS3200_8E1X.h +++ b/machine/XIKESTOR_SKS3200_8E1X.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_SKS3200_8E1X_H_ -#define _MACHINE_SKS3200_8E1X_H_ +#ifndef _MACHINE_XIKESTOR_SKS3200_8E1X_H_ +#define _MACHINE_XIKESTOR_SKS3200_8E1X_H_ #define MACHINE_MODEL "XikeStor SKS3200-8E1X" #define MACHINE_CHIPSET RTL8373 diff --git a/machine/YS25_0402M.c b/machine/YS25_0402M.c deleted file mode 120000 index ebd3a9a3..00000000 --- a/machine/YS25_0402M.c +++ /dev/null @@ -1 +0,0 @@ -SIRIVISION_S25G2206FP_V1_1.c \ No newline at end of file diff --git a/machine/YUANLEY_YS25_0402M.c b/machine/YUANLEY_YS25_0402M.c new file mode 120000 index 00000000..3eff0a1a --- /dev/null +++ b/machine/YUANLEY_YS25_0402M.c @@ -0,0 +1 @@ +pcb/S25G2206FP_V1_1.c \ No newline at end of file diff --git a/machine/YS25_0402M.h b/machine/YUANLEY_YS25_0402M.h similarity index 51% rename from machine/YS25_0402M.h rename to machine/YUANLEY_YS25_0402M.h index 67550200..bb05ef3b 100644 --- a/machine/YS25_0402M.h +++ b/machine/YUANLEY_YS25_0402M.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_YS25_0402M_H_ -#define _MACHINE_YS25_0402M_H_ +#ifndef _MACHINE_YUANLEY_YS25_0402M_H_ +#define _MACHINE_YUANLEY_YS25_0402M_H_ #define MACHINE_MODEL "YuanLey YS25-0402M" #define MACHINE_CHIPSET RTL8372 diff --git a/machine/YUANLEY_YS25_0402_PCB_K0402W_V1_0.c b/machine/YUANLEY_YS25_0402_PCB_K0402W_V1_0.c new file mode 120000 index 00000000..47a023f8 --- /dev/null +++ b/machine/YUANLEY_YS25_0402_PCB_K0402W_V1_0.c @@ -0,0 +1 @@ +pcb/PCB_K0402W_V1_0.c \ No newline at end of file diff --git a/machine/YUANLEY_YS25_0402_PCB_K0402W_V1_0.h b/machine/YUANLEY_YS25_0402_PCB_K0402W_V1_0.h new file mode 100644 index 00000000..cd80cb91 --- /dev/null +++ b/machine/YUANLEY_YS25_0402_PCB_K0402W_V1_0.h @@ -0,0 +1,7 @@ +#ifndef _MACHINE_YUANLEY_YS25_0402_PCB_K0402W_V1_0_H_ +#define _MACHINE_YUANLEY_YS25_0402_PCB_K0402W_V1_0_H_ + +#define MACHINE_MODEL "PCB-K0402WS-V1.0" +#define MACHINE_CHIPSET RTL8372 + +#endif diff --git a/machine/ZOERAX_HG0402XG.c b/machine/ZOERAX_HG0402XG.c new file mode 120000 index 00000000..6b895c14 --- /dev/null +++ b/machine/ZOERAX_HG0402XG.c @@ -0,0 +1 @@ +pcb/HG0402XG_V1_1.c \ No newline at end of file diff --git a/machine/ZOERAX_HG0402XG_V1_1.h b/machine/ZOERAX_HG0402XG.h similarity index 51% rename from machine/ZOERAX_HG0402XG_V1_1.h rename to machine/ZOERAX_HG0402XG.h index 26d01405..ee144187 100644 --- a/machine/ZOERAX_HG0402XG_V1_1.h +++ b/machine/ZOERAX_HG0402XG.h @@ -1,5 +1,5 @@ -#ifndef _MACHINE_ZOERAX_HG0402XG_V1_1_H_ -#define _MACHINE_ZOERAX_HG0402XG_V1_1_H_ +#ifndef _MACHINE_ZOERAX_HG0402XG_H_ +#define _MACHINE_ZOERAX_HG0402XG_H_ #define MACHINE_MODEL "ZoeRax HG0402XG V1.1" #define MACHINE_CHIPSET RTL8372 diff --git a/machine/ZX310S_4T2XH.h b/machine/ZX310S_4T2XH.h deleted file mode 100644 index 1f51c9dd..00000000 --- a/machine/ZX310S_4T2XH.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_ZX310S_4T2XH_H_ -#define _MACHINE_ZX310S_4T2XH_H_ - -#define MACHINE_MODEL "ZX310S-4T2XH" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/ZX310S_4T2XT.h b/machine/ZX310S_4T2XT.h deleted file mode 100644 index 8903d9f6..00000000 --- a/machine/ZX310S_4T2XT.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef _MACHINE_ZX310S_4T2XT_H_ -#define _MACHINE_ZX310S_4T2XT_H_ - -#define MACHINE_MODEL "ZX310S_4T2XT" -#define MACHINE_CHIPSET RTL8372 - -#endif diff --git a/machine/ZX_SG4T2.c b/machine/ZX_SG4T2.c deleted file mode 120000 index f0f8441d..00000000 --- a/machine/ZX_SG4T2.c +++ /dev/null @@ -1 +0,0 @@ -PCB_SWTG024AS_A_2_0_1.c \ No newline at end of file diff --git a/machine/pcb/270_NB1_MS206B004A1_REV_A1.c b/machine/pcb/270_NB1_MS206B004A1_REV_A1.c new file mode 100644 index 00000000..a37bc84a --- /dev/null +++ b/machine/pcb/270_NB1_MS206B004A1_REV_A1.c @@ -0,0 +1,36 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .n_sfp = 2, + .log_to_phys_port = {0, 0, 0, 6, 1, 2, 3, 4, 5}, + .phys_to_log_port = {4, 5, 6, 7, 8, 3, 0, 0, 0}, + .is_sfp = {0, 0, 0, 1, 0, 0, 0, 0, 2}, + .sfp_port[0].pin_detect = GPIO38, + .sfp_port[0].pin_los = GPIO50_I2C_SCL2_UART1_TX, + .sfp_port[0].pin_tx_disable = GPIO54_ACL_BIT2_EN, + .sfp_port[0].sds = 0, + .sfp_port[0].i2c = I2CBUS( GPIO47_I2C_SDA0, GPIO46_I2C_SCL0 ), + .sfp_port[1].pin_detect = GPIO36_PWM_OUT, + .sfp_port[1].pin_los = GPIO37, + .sfp_port[1].pin_tx_disable = GPIO51_I2C_SDA2_UART1_RX, + .sfp_port[1].sds = 1, + .sfp_port[1].i2c = I2CBUS( GPIO49_I2C_SDA1, GPIO48_I2C_SCL1 ), + .reset_pin = GPIO_NA, + .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, + .led_sets = { + { + 0, // Unused + LEDS_2G5 | LEDS_LINK | LEDS_ACT, // Green + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // Amber + 0 // Unused + }, + { + 0, // Unused + 0, // Unused + LEDS_10G | LEDS_1G | LEDS_LINK | LEDS_ACT, // Green + 0, // Unused + }, + }, + +}; diff --git a/machine/2G5F4_10G2_V1_01.c b/machine/pcb/2G5F4_10G2_V1_01.c similarity index 100% rename from machine/2G5F4_10G2_V1_01.c rename to machine/pcb/2G5F4_10G2_V1_01.c diff --git a/machine/pcb/2G5F_20G_V1_01.c b/machine/pcb/2G5F_20G_V1_01.c new file mode 100644 index 00000000..1160585a --- /dev/null +++ b/machine/pcb/2G5F_20G_V1_01.c @@ -0,0 +1,33 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .n_sfp = 1, + .log_to_phys_port = {2, 1, 4, 3, 5, 6, 7, 8, 9}, + .phys_to_log_port = {1, 0, 3, 2, 4, 5, 6, 7, 8}, + .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, + + .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, + .sfp_port[0].pin_los = GPIO37, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 1, + .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), + + .reset_pin = GPIO_NA, + .high_leds = { .mux = 0, .enable = 0 }, + .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1 }, + .led_sets = { + { + LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // RJ45 Blue LEDs + LEDS_2G5 | LEDS_LINK, // RJ45 White LEDs + 0, + 0 + }, + { + LEDS_10G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // SFP blue LED? + 0, + 0, + 0 + }, + }, +}; diff --git a/machine/KP_9000_9XHML_X_V2_2.c b/machine/pcb/2M_PCB23_V2_2.c similarity index 100% rename from machine/KP_9000_9XHML_X_V2_2.c rename to machine/pcb/2M_PCB23_V2_2.c diff --git a/machine/KP_9000_9XHML_X_V3_1.c b/machine/pcb/2M_PCB23_V3_1.c similarity index 100% rename from machine/KP_9000_9XHML_X_V3_1.c rename to machine/pcb/2M_PCB23_V3_1.c diff --git a/machine/pcb/2M_PCB23_V3_2.c b/machine/pcb/2M_PCB23_V3_2.c new file mode 120000 index 00000000..4ebf1e5a --- /dev/null +++ b/machine/pcb/2M_PCB23_V3_2.c @@ -0,0 +1 @@ +2M_PCB23_V3_1.c \ No newline at end of file diff --git a/machine/KP_9000_6XHML_X2.c b/machine/pcb/2M_PCB43_V1_1.c similarity index 100% rename from machine/KP_9000_6XHML_X2.c rename to machine/pcb/2M_PCB43_V1_1.c diff --git a/machine/pcb/2M_PCB43_V1_2.c b/machine/pcb/2M_PCB43_V1_2.c new file mode 120000 index 00000000..b6790079 --- /dev/null +++ b/machine/pcb/2M_PCB43_V1_2.c @@ -0,0 +1 @@ +2M_PCB43_V1_1.c \ No newline at end of file diff --git a/machine/KP_9000_6XH_X2.c b/machine/pcb/2M_PCB43_V2_1.c similarity index 100% rename from machine/KP_9000_6XH_X2.c rename to machine/pcb/2M_PCB43_V2_1.c diff --git a/machine/KP_9000_6XH_X2_init.c b/machine/pcb/2M_PCB43_V2_1_init.c similarity index 100% rename from machine/KP_9000_6XH_X2_init.c rename to machine/pcb/2M_PCB43_V2_1_init.c diff --git a/machine/POE_2G080110GS.c b/machine/pcb/2M_PCB51_ML_V1_1.c similarity index 100% rename from machine/POE_2G080110GS.c rename to machine/pcb/2M_PCB51_ML_V1_1.c diff --git a/machine/F7008_2_5.c b/machine/pcb/F7008_2_5GPOE_V1_2.c similarity index 100% rename from machine/F7008_2_5.c rename to machine/pcb/F7008_2_5GPOE_V1_2.c diff --git a/machine/FG_4GT_2SX_V2_0.c b/machine/pcb/FG_4GT_2SX_V2_0.c similarity index 100% rename from machine/FG_4GT_2SX_V2_0.c rename to machine/pcb/FG_4GT_2SX_V2_0.c diff --git a/machine/FG_4GT_2SX_V2_0_init.c b/machine/pcb/FG_4GT_2SX_V2_0_init.c similarity index 100% rename from machine/FG_4GT_2SX_V2_0_init.c rename to machine/pcb/FG_4GT_2SX_V2_0_init.c diff --git a/machine/FG_8GT_1SX.c b/machine/pcb/FG_8GT_1SX.c similarity index 100% rename from machine/FG_8GT_1SX.c rename to machine/pcb/FG_8GT_1SX.c diff --git a/machine/ZOERAX_HG0402XG_V1_1.c b/machine/pcb/HG0402XG_V1_1.c similarity index 100% rename from machine/ZOERAX_HG0402XG_V1_1.c rename to machine/pcb/HG0402XG_V1_1.c diff --git a/machine/pcb/NONAME_20240111.c b/machine/pcb/NONAME_20240111.c new file mode 100644 index 00000000..65e339e6 --- /dev/null +++ b/machine/pcb/NONAME_20240111.c @@ -0,0 +1,58 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .n_sfp = 2, + .log_to_phys_port = {0, 0, 0, 5, 4, 3, 2, 1, 6}, + .phys_to_log_port = {7, 6, 5, 4, 3, 8, 0, 0, 0}, + .is_sfp = {0, 0, 0, 1, 0, 0, 0, 0, 2}, + + // SFP port on SDS0 / logical port 3 + .sfp_port[0].pin_detect = GPIO37, + .sfp_port[0].pin_los = GPIO_NA, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 0, + .sfp_port[0].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), + + // SFP port on SDS1 / logical port 8 + .sfp_port[1].pin_detect = GPIO38, + .sfp_port[1].pin_los = GPIO_NA, + .sfp_port[1].pin_tx_disable = GPIO_NA, + .sfp_port[1].sds = 1, + .sfp_port[1].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), + + .reset_pin = GPIO_NA, + .high_leds = { .mux = LED_28_SYS | LED_29, .enable = LED_27 | LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 3, 0, 0, 2, 2, 3}, + .mac_flash_offset = 0x1FC000, + .led_sets = { + { // RJ45 Ports 3-4 (normal wiring) + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, + LEDS_2G5 | LEDS_LINK | LEDS_ACT, + 0, + 0 + }, + { // Unused + 0, + 0, + 0, + 0 + }, + { // RJ45 Ports 1-2 (reversed wiring) + LEDS_2G5 | LEDS_LINK | LEDS_ACT, + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, + 0, + 0 + }, + { // SFP Ports 5-6 + LEDS_10G | LEDS_LINK | LEDS_ACT, + LEDS_2G5 | LEDS_1G | LEDS_LINK | LEDS_ACT, + 0, + 0 + }, + }, + .led_mux_custom = 1, + .led_mux = { + 0x00,0x01,0x04,0x05,0x08,0x09,0x0c,0x3f,0x0d,0x10,0x11,0x0e,0x14,0x11,0x12,0x15,0x15,0x16,0x18,0x19,0x1a,0x19,0x1d,0x1e,0x1c,0x1d,0x20,0x21 + }, +}; diff --git a/machine/KP_9000_6XH_X.c b/machine/pcb/NONAME_KP_9000_6XH_X.c similarity index 100% rename from machine/KP_9000_6XH_X.c rename to machine/pcb/NONAME_KP_9000_6XH_X.c diff --git a/machine/KP_9000_9XH_X_EU.c b/machine/pcb/NONAME_KP_9000_9XH_X_EU.c similarity index 100% rename from machine/KP_9000_9XH_X_EU.c rename to machine/pcb/NONAME_KP_9000_9XH_X_EU.c diff --git a/machine/pcb/NONAME_S600W_4GT_2XGT_SE.c b/machine/pcb/NONAME_S600W_4GT_2XGT_SE.c new file mode 100644 index 00000000..223c990f --- /dev/null +++ b/machine/pcb/NONAME_S600W_4GT_2XGT_SE.c @@ -0,0 +1,40 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .n_sfp = 0, + .n_10g = 2, + .log_to_phys_port = {0, 0, 0, 5, 1, 2, 3, 4, 6}, + .phys_to_log_port = {4, 5, 6, 7, 3, 8, 0, 0, 0}, + .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 0}, + .reset_pin = GPIO54_ACL_BIT2_EN, + .high_leds = { .mux = LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1 }, + /* Ports 1-4: Green: 2.5GBit, Orange: 10/100/1000MBit + * Ports 5-6: Green: 10GBit, Orange: 5/2.5GBit, None: 10/100/1000MBit + */ + .led_sets = { + { + LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // Yellow + LEDS_2G5 | LEDS_LINK, // Green + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK, // Orange + 0, // Unused + }, + { + LEDS_10G | LEDS_5G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // Yellow + LEDS_10G | LEDS_LINK, // Green + LEDS_5G | LEDS_2G5 | LEDS_LINK, // Orange + 0, // Unused + }, + }, + .led_mux_custom = 1, + .led_mux = { + 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, + 0x3f, 0x3f, 0x3f, 0x0f, 0x20, + 0x21, 0x22, 0x10, 0x11, 0x12, + 0x14, 0x15, 0x16, 0x18, 0x19, + 0x1a, 0x1c, 0x1d, 0x1e, 0x0c, + 0x0d, 0x0e, 0x23 + }, + +}; diff --git a/machine/pcb/PB_2131.c b/machine/pcb/PB_2131.c new file mode 100644 index 00000000..a7d765e3 --- /dev/null +++ b/machine/pcb/PB_2131.c @@ -0,0 +1,47 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .n_sfp = 2, + .log_to_phys_port = {0, 0, 0, 6, 1, 2, 3, 4, 5}, + .phys_to_log_port = {4, 5, 6, 7, 8, 3, 0, 0, 0}, + .is_sfp = {0, 0, 0, 2, 0, 0, 0, 0, 1}, + // Left SFP port (5) + // LED pin 9 + .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, + .sfp_port[0].pin_los = GPIO37, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 1, + .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), + // Right SFP port (6) + // LED pin 24 + .sfp_port[1].pin_detect = GPIO50_I2C_SCL2_UART1_TX, + .sfp_port[1].pin_los = GPIO51_I2C_SDA2_UART1_RX, + .sfp_port[1].pin_tx_disable = GPIO_NA, + .sfp_port[1].sds = 0, + .sfp_port[1].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), + .reset_pin = GPIO_NA, + .high_leds = { .mux = LED_27 | LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, + .led_sets = { + { + // RJ45 Amber LED (left) + LEDS_2G5 | LEDS_LINK, + // RJ45 Green LED (Right) + LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, + 0, + 0, + }, + { + // SFP LED + LEDS_10G | LEDS_5G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, + 0, // unused + 0, // unused + 0 + }, + }, + .led_mux_custom = 1, + .led_mux = { + 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x0f, 0x20, 0x0d, 0x0e, 0x10, 0x11, 0x12, 0x14, 0x15, 0x16, 0x18, 0x19, 0x1a, 0x1c, 0x1d, 0x1e, 0x0c, 0x21, 0x22, 0x23 + }, +}; diff --git a/machine/pcb/PB_2132.c b/machine/pcb/PB_2132.c new file mode 100644 index 00000000..55388d98 --- /dev/null +++ b/machine/pcb/PB_2132.c @@ -0,0 +1,38 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .n_sfp = 1, + .log_to_phys_port = {1, 2, 3, 4, 5, 6, 7, 8, 9}, + .phys_to_log_port = {0, 1, 2, 3, 4, 5, 6, 7, 8}, + .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, + + .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, + .sfp_port[0].pin_los = GPIO37, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 1, + .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), + + .reset_pin = GPIO_NA, + + .high_leds = { .mux = LED_27 | LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1}, + + .led_sets = { + { + /* LED0 = RJ45: Amber LED: 2.5G */ + LEDS_2G5 | LEDS_LINK | LEDS_ACT, + /* LED1 = RJ45: Green LED: 10M / 100M / 1000M */ + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, + 0, + 0 + }, + { + /* SFP+ single Green LED. */ + LEDS_10G | LEDS_5G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, + 0, + 0, + 0 + }, + }, + }; diff --git a/machine/ZX310S_4T2XT.c b/machine/pcb/PCB_310S_4T2XT_V1_0_0_22273.c similarity index 100% rename from machine/ZX310S_4T2XT.c rename to machine/pcb/PCB_310S_4T2XT_V1_0_0_22273.c diff --git a/machine/ZX310S_4T2XT_init.c b/machine/pcb/PCB_310S_4T2XT_V1_0_0_22273_init.c similarity index 100% rename from machine/ZX310S_4T2XT_init.c rename to machine/pcb/PCB_310S_4T2XT_V1_0_0_22273_init.c diff --git a/machine/PCB_AFGW_SWTG218ANS_V_2_0_2.c b/machine/pcb/PCB_AFGW_SWTG218ANS_V2_0_2_23308.c similarity index 100% rename from machine/PCB_AFGW_SWTG218ANS_V_2_0_2.c rename to machine/pcb/PCB_AFGW_SWTG218ANS_V2_0_2_23308.c diff --git a/machine/PCB_AFGW_SWTG218ANS_V_2_0_2_init.c b/machine/pcb/PCB_AFGW_SWTG218ANS_V2_0_2_23308_init.c similarity index 100% rename from machine/PCB_AFGW_SWTG218ANS_V_2_0_2_init.c rename to machine/pcb/PCB_AFGW_SWTG218ANS_V2_0_2_23308_init.c diff --git a/machine/pcb/PCB_K0402W_U13_V2_0.c b/machine/pcb/PCB_K0402W_U13_V2_0.c new file mode 120000 index 00000000..1d6cb219 --- /dev/null +++ b/machine/pcb/PCB_K0402W_U13_V2_0.c @@ -0,0 +1 @@ +PCB_K0402W_V2_0.c \ No newline at end of file diff --git a/machine/PCB_K0402WS_V1.c b/machine/pcb/PCB_K0402W_V1_0.c similarity index 100% rename from machine/PCB_K0402WS_V1.c rename to machine/pcb/PCB_K0402W_V1_0.c diff --git a/machine/PCB_K0402WS_V2.c b/machine/pcb/PCB_K0402W_V2_0.c similarity index 100% rename from machine/PCB_K0402WS_V2.c rename to machine/pcb/PCB_K0402W_V2_0.c diff --git a/machine/HI_K0402WS.c b/machine/pcb/PCB_K0402W_V3_0.c similarity index 100% rename from machine/HI_K0402WS.c rename to machine/pcb/PCB_K0402W_V3_0.c diff --git a/machine/K0501W_V2_0.c b/machine/pcb/PCB_K0501W_V2_0.c similarity index 100% rename from machine/K0501W_V2_0.c rename to machine/pcb/PCB_K0501W_V2_0.c diff --git a/machine/HI_K0801WS.c b/machine/pcb/PCB_K0801W_V2_0.c similarity index 100% rename from machine/HI_K0801WS.c rename to machine/pcb/PCB_K0801W_V2_0.c diff --git a/machine/ZX310S_4T2XH.c b/machine/pcb/PCB_SL310S_4T1T1X_V1_0_1_24107.c similarity index 100% rename from machine/ZX310S_4T2XH.c rename to machine/pcb/PCB_SL310S_4T1T1X_V1_0_1_24107.c diff --git a/machine/pcb/PCB_SWTG018AS_A_V2_0_1_19649.c b/machine/pcb/PCB_SWTG018AS_A_V2_0_1_19649.c new file mode 100644 index 00000000..6e0fd109 --- /dev/null +++ b/machine/pcb/PCB_SWTG018AS_A_V2_0_1_19649.c @@ -0,0 +1,37 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .mac_flash_offset = 0x1FC000, + .n_sfp = 1, + .log_to_phys_port = {1, 2, 3, 4, 5, 6, 7, 8, 9}, + .phys_to_log_port = {0, 1, 2, 3, 4, 5, 6, 7, 8}, + .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, + .sfp_port[0].pin_detect = GPIO38, + .sfp_port[0].pin_los = GPIO_NA, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 1, + .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), + .reset_pin = GPIO48_I2C_SCL1, + .high_leds = { .mux = LED_27 | LED_29, .enable = LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1}, + .led_sets = { + { /* RJ45: First LED, yellow, second LED: green */ + LEDS_2G5 | LEDS_LINK, + LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, + 0, + 0, + }, { /* SFP PORT, SINGLE GREEN LED */ + LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT | LEDS_10G, + 0, + 0, + 0, + }}, + .led_mux_custom = 1, + .led_mux = { 0x00, 0x01, 0x04, 0x05, 0x08, // 65e0 + 0x09, 0x0c, 0x09, 0x0d, 0x10, // 65e4 + 0x11, 0x0e, 0x14, 0x11, 0x12, // 65e8 + 0x15, 0x15, 0x16, 0x18, 0x19, // 65ec + 0x1a, 0x19, 0x1d, 0x1e, 0x1c, // 65f0 + 0x1d, 0x20, 0x21 }, +}; diff --git a/machine/pcb/PCB_SWTG018AS_V2_1_0.c b/machine/pcb/PCB_SWTG018AS_V2_1_0.c new file mode 100644 index 00000000..1eb77872 --- /dev/null +++ b/machine/pcb/PCB_SWTG018AS_V2_1_0.c @@ -0,0 +1,39 @@ +#include "machine_defs.h" + + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .mac_flash_offset = 0x1FC000, + .n_sfp = 1, + .log_to_phys_port = {1, 2, 3, 4, 5, 6, 7, 8, 9}, + .phys_to_log_port = {0, 1, 2, 3, 4, 5, 6, 7, 8}, + .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, + .sfp_port[0].pin_detect = GPIO38, // pulled low on module insert + .sfp_port[0].pin_los = GPIO_NA, // no LOS pin wired + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 1, + .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), + .reset_pin = GPIO54_ACL_BIT2_EN, + .high_leds = { .mux = LED_27 | LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1}, + // LED wiring matches the SWTG018AS-A V2.0 (same PCB family) + .led_sets = { + { /* RJ45: First LED, yellow, second LED: green */ + LEDS_2G5 | LEDS_LINK, + LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, + 0, + 0, + }, { /* SFP set (superseded by the raw register override in machine_custom_init) */ + LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT | LEDS_10G, + 0, + 0, + 0, + }}, + .led_mux_custom = 1, + .led_mux = { 0x00, 0x01, 0x04, 0x05, 0x08, // 65e0 + 0x09, 0x0c, 0x09, 0x0d, 0x10, // 65e4 + 0x11, 0x0e, 0x14, 0x11, 0x12, // 65e8 + 0x15, 0x15, 0x16, 0x18, 0x19, // 65ec + 0x1a, 0x19, 0x1d, 0x1e, 0x1c, // 65f0 + 0x1d, 0x20, 0x21 }, +}; diff --git a/machine/pcb/PCB_SWTG018AS_V2_1_0_init.c b/machine/pcb/PCB_SWTG018AS_V2_1_0_init.c new file mode 100644 index 00000000..bce0b814 --- /dev/null +++ b/machine/pcb/PCB_SWTG018AS_V2_1_0_init.c @@ -0,0 +1,18 @@ +#include "machine_init_defs.h" + +static __code const struct { uint16_t reg; uint32_t val; } custom_init_regs[] = { + { RTL837X_REG_LED3_0_SET1, 0x00100000UL }, + { RTL837X_REG_LED1_0_SET1, 0x01400155UL }, + { RTL837X_REG_LED1_0_SET0, 0x01740141UL }, + { RTL837X_REG_LED_GLB_IO_EN, 0x7f24977fUL }, + { RTL837X_PIN_MUX_0, 0x20db6880UL }, +}; + +void machine_custom_init(void) __banked +{ + uint8_t i; + // REG_SET is a multi-statement macro without a do-while wrapper: braces required + for (i = 0; i < sizeof(custom_init_regs) / sizeof(custom_init_regs[0]); i++) { + REG_SET(custom_init_regs[i].reg, custom_init_regs[i].val); + } +} diff --git a/machine/pcb/PCB_SWTG024AS_A_V2_0_1_19650.c b/machine/pcb/PCB_SWTG024AS_A_V2_0_1_19650.c new file mode 100644 index 00000000..1bf376a6 --- /dev/null +++ b/machine/pcb/PCB_SWTG024AS_A_V2_0_1_19650.c @@ -0,0 +1,46 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .mac_flash_offset = 0x1FC000, + .n_sfp = 2, + .log_to_phys_port = {0, 0, 0, 5, 1, 2, 3, 4, 6}, + .phys_to_log_port = {4, 5, 6, 7, 3, 8, 0, 0, 0}, + .is_sfp = {0, 0, 0, 1, 0, 0, 0, 0, 2}, + + // SFP port on SDS0 / logical port 3 + .sfp_port[0].pin_detect = GPIO37, + .sfp_port[0].pin_los = GPIO_NA, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 0, + .sfp_port[0].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), + + // SFP port on SDS1 / logical port 8 + .sfp_port[1].pin_detect = GPIO38, + .sfp_port[1].pin_los = GPIO_NA, + .sfp_port[1].pin_tx_disable = GPIO_NA, + .sfp_port[1].sds = 1, + .sfp_port[1].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), + + .reset_pin = GPIO48_I2C_SCL1, + .high_leds = { .mux = LED_28_SYS | LED_29, .enable = LED_27 | LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, + .led_sets = { + { + LEDS_2G5 | LEDS_LINK | LEDS_ACT, + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, + LEDS_DUPLEX, + LEDS_2G5 | LEDS_LINK | LEDS_ACT + }, + { + LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, + LEDS_10G | LEDS_LINK | LEDS_ACT, + LEDS_2G5 | LEDS_LINK, + LEDS_COL | LEDS_DUPLEX + }, + }, + .led_mux_custom = 1, + .led_mux = { + 0x00,0x01,0x04,0x05,0x08,0x09,0x0c,0x3f,0x0d,0x10,0x11,0x0e,0x14,0x11,0x12,0x15,0x15,0x16,0x18,0x19,0x1a,0x19,0x1d,0x1e,0x1c,0x1d,0x20,0x21 + }, + }; diff --git a/machine/SWTG024AS_A_2_0_1_5C_1SFP.c b/machine/pcb/PCB_SWTG024AS_A_V2_0_1_19650_HORACO.c similarity index 100% rename from machine/SWTG024AS_A_2_0_1_5C_1SFP.c rename to machine/pcb/PCB_SWTG024AS_A_V2_0_1_19650_HORACO.c diff --git a/machine/pcb/PCB_SWTG024AS_A_V2_0_1_19650_init.c b/machine/pcb/PCB_SWTG024AS_A_V2_0_1_19650_init.c new file mode 100644 index 00000000..311bda3e --- /dev/null +++ b/machine/pcb/PCB_SWTG024AS_A_V2_0_1_19650_init.c @@ -0,0 +1,9 @@ +#include "machine_init_defs.h" + +void machine_custom_init(void) __banked +{ + reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 6); + reg_bit_set(RTL837X_REG_LED_MODE, 17); + reg_bit_clear(RTL837X_REG_LED_MODE, 9); + reg_bit_clear(RTL837X_REG_LED_MODE, 7); +} diff --git a/machine/pcb/PCB_SWTG024AS_V2_0_16895.c b/machine/pcb/PCB_SWTG024AS_V2_0_16895.c new file mode 100644 index 00000000..b1902329 --- /dev/null +++ b/machine/pcb/PCB_SWTG024AS_V2_0_16895.c @@ -0,0 +1,40 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .n_sfp = 1, + .log_to_phys_port = {0, 0, 0, 5, 1, 2, 3, 4, 6}, + .phys_to_log_port = {4, 5, 6, 7, 3, 8, 0, 0, 0}, + .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, + .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, + .sfp_port[0].pin_los = GPIO37, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 1, + .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), + + .reset_pin = GPIO_NA, + .high_leds = { .mux = LED_28_SYS | LED_29, .enable = LED_27 | LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1}, + /* Ports 1-5 RJ45 use set 0, port 9 SFP uses set 1 + * Ports 1-5: Green: 2.5GBit, Amber: 10/100/1000MBit + * SFP-port: Blue: 10GBit, Amber: 100MBit-2.5GBit + */ + .led_sets = { + { + LEDS_2G5 | LEDS_LINK | LEDS_ACT, + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, + LEDS_DUPLEX, + LEDS_2G5 | LEDS_LINK | LEDS_ACT + }, + { + LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, + LEDS_10G | LEDS_LINK | LEDS_ACT, + LEDS_2G5 | LEDS_LINK, + LEDS_COL | LEDS_DUPLEX + }, + }, + .led_mux_custom = 1, + .led_mux = { + 0x00,0x01,0x04,0x05,0x08,0x09,0x0c,0x3f,0x0d,0x10,0x11,0x0e,0x14,0x11,0x12,0x15,0x15,0x16,0x18,0x19,0x1a,0x19,0x1d,0x1e,0x1c,0x1d,0x20,0x21 + }, + }; diff --git a/machine/pcb/PCB_SWTG024AS_V2_0_16895_init.c b/machine/pcb/PCB_SWTG024AS_V2_0_16895_init.c new file mode 100644 index 00000000..98d2f0c6 --- /dev/null +++ b/machine/pcb/PCB_SWTG024AS_V2_0_16895_init.c @@ -0,0 +1,20 @@ +#include "machine_init_defs.h" + +void machine_custom_init(void) __banked +{ + uint16_t pval; + + reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 6); + reg_bit_set(RTL837X_REG_LED_MODE, 17); + reg_bit_clear(RTL837X_REG_LED_MODE, 9); + reg_bit_clear(RTL837X_REG_LED_MODE, 7); + + // OEM firmware sets these companion SDS0 polarity bits for the RTL8221B. + sds_read(0, 0, 0); + pval = SFR_DATA_U16; + sds_write_v(0, 0, 0, pval | 0x100); + + sds_read(0, 6, 2); + pval = SFR_DATA_U16; + sds_write_v(0, 6, 2, pval | 0x4000); +} diff --git a/machine/pcb/PCB_SWTG024AS_V2_0_17452.c b/machine/pcb/PCB_SWTG024AS_V2_0_17452.c new file mode 100644 index 00000000..b07f6d8f --- /dev/null +++ b/machine/pcb/PCB_SWTG024AS_V2_0_17452.c @@ -0,0 +1,38 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .n_sfp = 2, + .log_to_phys_port = {0, 0, 0, 6, 1, 2, 3, 4, 5}, + .phys_to_log_port = {4, 5, 6, 7, 8, 3, 0, 0, 0}, + .is_sfp= {0, 0, 0, 2, 0, 0, 0, 0, 1}, + // Left SFP port (J4) + .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, + .sfp_port[0].pin_los = GPIO37, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 1, + .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), /* GPIO 39 */ + // Right SFP port (J2) + .sfp_port[1].pin_detect = GPIO50_I2C_SCL2_UART1_TX, + .sfp_port[1].pin_los = GPIO51_I2C_SDA2_UART1_RX, + .sfp_port[1].pin_tx_disable = GPIO_NA, + .sfp_port[1].sds = 0, + .sfp_port[1].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), /* GPIO 40 */ + .reset_pin = GPIO_NA, + .high_leds = { .mux = LED_27 | LED_29, .enable = LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, + .led_sets = { + { /* RJ45: Green LED */ + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT | LEDS_10G, + 0, + /* Amber LED */ + LEDS_2G5 | LEDS_LINK | LEDS_ACT, + 0 + }, { /* SFP PORT: SINGLE GREEN LED */ + LEDS_10M | LEDS_100M | LEDS_1G | LEDS_2G5 | LEDS_10G | LEDS_LINK | LEDS_ACT, + 0, + 0, + 0, + }, + }, +}; diff --git a/machine/pcb/PCB_SWTG024AS_V2_0_17452_XIKESTOR.c b/machine/pcb/PCB_SWTG024AS_V2_0_17452_XIKESTOR.c new file mode 100644 index 00000000..b3997fd3 --- /dev/null +++ b/machine/pcb/PCB_SWTG024AS_V2_0_17452_XIKESTOR.c @@ -0,0 +1,39 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .n_sfp = 2, + .log_to_phys_port = {0, 0, 0, 6, 1, 2, 3, 4, 5}, + .phys_to_log_port = {4, 5, 6, 7, 8, 3, 0, 0, 0}, + .is_sfp= {0, 0, 0, 2, 0, 0, 0, 0, 1}, + // Left SFP port (J4) + .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, + .sfp_port[0].pin_los = GPIO_NA, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 1, + .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), /* GPIO 39 */ + // Right SFP port (J2) + .sfp_port[1].pin_detect = GPIO50_I2C_SCL2_UART1_TX, + .sfp_port[1].pin_los = GPIO_NA, + .sfp_port[1].pin_tx_disable = GPIO_NA, + .sfp_port[1].sds = 0, + .sfp_port[1].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), /* GPIO 40 */ + .reset_pin = GPIO54_ACL_BIT2_EN, + .high_leds = { .mux = LED_27 | LED_29, .enable = LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, + .led_sets = { + { /* RJ45: Green LED */ + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT | LEDS_10G, + 0, + /* Amber LED */ + LEDS_2G5 | LEDS_LINK | LEDS_ACT, + 0 + }, { /* SFP PORT: SINGLE GREEN LED */ + LEDS_10M | LEDS_100M | LEDS_1G | LEDS_2G5 | LEDS_10G | LEDS_LINK | LEDS_ACT, + 0, + 0, + 0, + }, + }, + .mac_flash_offset = 0x1FC000, +}; diff --git a/machine/pcb/PCB_SWTG024AS_V2_1_0_19023.c b/machine/pcb/PCB_SWTG024AS_V2_1_0_19023.c new file mode 100644 index 00000000..203724d3 --- /dev/null +++ b/machine/pcb/PCB_SWTG024AS_V2_1_0_19023.c @@ -0,0 +1,54 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .n_sfp = 2, + .log_to_phys_port = {0, 0, 0, 5, 1, 2, 3, 4, 6}, + .phys_to_log_port = {4, 5, 6, 7, 3, 8, 0, 0, 0}, + .is_sfp = {0, 0, 0, 1, 0, 0, 0, 0, 2}, + + // SFP port on SDS0 / logical port 3 + .sfp_port[0].pin_detect = GPIO37, + .sfp_port[0].pin_los = GPIO_NA, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 0, + .sfp_port[0].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), + + // SFP port on SDS1 / logical port 8 + .sfp_port[1].pin_detect = GPIO38, + .sfp_port[1].pin_los = GPIO_NA, + .sfp_port[1].pin_tx_disable = GPIO_NA, + .sfp_port[1].sds = 1, + .sfp_port[1].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), + + .reset_pin = GPIO_NA, + .high_leds = { .mux = LED_28_SYS | LED_29, .enable = LED_27 | LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1 }, + .led_sets = { + { + LEDS_2G5 | LEDS_LINK | LEDS_ACT, + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, + 0, + 0 + }, + { + LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, + LEDS_10G | LEDS_LINK | LEDS_ACT, + 0, + 0 + }, + }, + + .led_mux_custom = 1, + .led_mux = { + 0x00, 0x01, 0x04, 0x05, 0x08, + 0x09, 0x0c, 0x3f, 0x0d, 0x10, + 0x11, 0x3f, 0x14, 0x3f, 0x3f, + 0x15, 0x3f, 0x3f, 0x18, 0x3f, + 0x3f, 0x19, 0x3f, 0x3f, 0x1c, + 0x1d, 0x20, 0x21 + }, +}; + +// Boot 1-4G 6Y +// 1-4Y 5G 6Y \ No newline at end of file diff --git a/machine/pcb/PCB_SWTG024AS_V2_1_0_19023_init.c b/machine/pcb/PCB_SWTG024AS_V2_1_0_19023_init.c new file mode 100644 index 00000000..fbc6bbe3 --- /dev/null +++ b/machine/pcb/PCB_SWTG024AS_V2_1_0_19023_init.c @@ -0,0 +1,22 @@ +#include "machine_init_defs.h" + +void machine_custom_init(void) __banked +{ + // Stock LED_MODE: [8:5]=1, [12:9]=2 (leds_setup hard-codes 5/3); same as clearing bits 7 and 9 + reg_bit_set(RTL837X_REG_LED_MODE, 17); + reg_bit_clear(RTL837X_REG_LED_MODE, 9); + reg_bit_clear(RTL837X_REG_LED_MODE, 7); + + // Stock LED_GLB_IO_EN [27:0] = 0x0f249740: enable LED pins 6, 8, 9, 10, 12, 15, 18, 21, 24-27 + reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 6); + reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 8); + reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 9); + reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 10); + reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 12); + reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 15); + reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 18); + reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 21); + reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 24); + reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 25); + reg_bit_set(RTL837X_REG_LED_GLB_IO_EN, 26); +} \ No newline at end of file diff --git a/machine/pcb/PCB_SWTG115AS_V2_0_16030.c b/machine/pcb/PCB_SWTG115AS_V2_0_16030.c new file mode 100644 index 00000000..dfd48f49 --- /dev/null +++ b/machine/pcb/PCB_SWTG115AS_V2_0_16030.c @@ -0,0 +1,30 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .mac_flash_offset = 0x1FC000, + .n_sfp = 1, + .log_to_phys_port = {0, 0, 0, 5, 1, 2, 3, 4, 6}, + .phys_to_log_port = {4, 5, 6, 7, 3, 8, 0, 0, 0}, + .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, + .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, + .sfp_port[0].pin_los = GPIO37, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 1, + .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), + .reset_pin = GPIO54_ACL_BIT2_EN, + .high_leds = { .mux = LED_27 | LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1}, + .led_sets = { { LEDS_2G5 | LEDS_LINK | LEDS_ACT, // Green LED (right) + 0, // unused + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // Amber LED (left) + 0 + }, // unused + { LEDS_10G | LEDS_5G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, // SFP LED + 0, // unused + 0, // unused + 0 + }, // unused }, + }, + .led_mux_custom = 0, +}; diff --git a/machine/pcb/PCB_SWTG115AS_V2_1_17443.c b/machine/pcb/PCB_SWTG115AS_V2_1_17443.c new file mode 120000 index 00000000..1474e694 --- /dev/null +++ b/machine/pcb/PCB_SWTG115AS_V2_1_17443.c @@ -0,0 +1 @@ +PCB_SWTG115AS_V2_0_16030.c \ No newline at end of file diff --git a/machine/SWTGW218AS.c b/machine/pcb/PCB_SWTG118AS_V2_0_16029.c similarity index 100% rename from machine/SWTGW218AS.c rename to machine/pcb/PCB_SWTG118AS_V2_0_16029.c diff --git a/machine/pcb/PCB_SWTG118AS_V2_1_17462.c b/machine/pcb/PCB_SWTG118AS_V2_1_17462.c new file mode 120000 index 00000000..7c715c89 --- /dev/null +++ b/machine/pcb/PCB_SWTG118AS_V2_1_17462.c @@ -0,0 +1 @@ +PCB_SWTG118AS_V2_0_16029.c \ No newline at end of file diff --git a/machine/pcb/S1100P_8GT_1SX_73N_S_V1_01.c b/machine/pcb/S1100P_8GT_1SX_73N_S_V1_01.c new file mode 100644 index 00000000..9af4d8c3 --- /dev/null +++ b/machine/pcb/S1100P_8GT_1SX_73N_S_V1_01.c @@ -0,0 +1,37 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .mac_flash_offset = 0x1FC000, + .n_sfp = 1, + .log_to_phys_port = {1, 2, 3, 4, 5, 6, 7, 8, 9}, + .phys_to_log_port = {0, 1, 2, 3, 4, 5, 6, 7, 8}, + .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, + .sfp_port[0].pin_detect = GPIO38, + .sfp_port[0].pin_los = GPIO37, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 1, + .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), + .reset_pin = GPIO54_ACL_BIT2_EN, + .high_leds = { .mux = LED_27 | LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, + .port_led_set = {0, 0, 0, 0, 0, 0, 0, 0, 1}, + .led_sets = { + { + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // LED0: orange + 0, + LEDS_2G5 | LEDS_LINK | LEDS_ACT, // LED2: green + 0 + }, + { + LEDS_10G | LEDS_5G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, // SFP LED0: green (both SFP LEDs are green) + 0, 0, 0 + } + }, + .led_mux_custom = 1, + .led_mux = { + 0x00, 0x02, 0x04, 0x06, 0x08, 0x0a, 0x0c, 0x09, + 0x0e, 0x10, 0x12, 0x0e, 0x14, 0x11, 0x12, 0x16, + 0x15, 0x16, 0x18, 0x19, 0x1a, 0x1a, 0x1d, 0x1e, + 0x1c, 0x1e, 0x20, 0x21 + }, +}; diff --git a/machine/pcb/S1100W_8GT_1SX_SE_V1_05.c b/machine/pcb/S1100W_8GT_1SX_SE_V1_05.c new file mode 120000 index 00000000..7c715c89 --- /dev/null +++ b/machine/pcb/S1100W_8GT_1SX_SE_V1_05.c @@ -0,0 +1 @@ +PCB_SWTG118AS_V2_0_16029.c \ No newline at end of file diff --git a/machine/S25G1109FP_V1_3.c b/machine/pcb/S25G1109FP_V1_3.c similarity index 100% rename from machine/S25G1109FP_V1_3.c rename to machine/pcb/S25G1109FP_V1_3.c diff --git a/machine/pcb/S25G2206FP_V1_1.c b/machine/pcb/S25G2206FP_V1_1.c new file mode 100644 index 00000000..b7d5c36c --- /dev/null +++ b/machine/pcb/S25G2206FP_V1_1.c @@ -0,0 +1,39 @@ +#include "machine_defs.h" + +__code const struct machine machine = { + MACHINE_COMMON_SETTING, + .mac_flash_offset = 0x1FC000, + .n_sfp = 2, + .log_to_phys_port = {0, 0, 0, 6, 1, 2, 3, 4, 5}, + .phys_to_log_port = {4, 5, 6, 7, 8, 3, 0, 0, 0}, + .is_sfp= {0, 0, 0, 2, 0, 0, 0, 0, 1}, + // Left SFP port (J4) + .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, + .sfp_port[0].pin_los = GPIO37, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 1, + .sfp_port[0].i2c = I2CBUS( GPIO39_I2C_SDA4, GPIO40_I2C_SCL3_MDC1 ), /* GPIO 39 */ + // Right SFP port (J2) + .sfp_port[1].pin_detect = GPIO50_I2C_SCL2_UART1_TX, + .sfp_port[1].pin_los = GPIO51_I2C_SDA2_UART1_RX, + .sfp_port[1].pin_tx_disable = GPIO_NA, + .sfp_port[1].sds = 0, + .sfp_port[1].i2c = I2CBUS( GPIO41_I2C_SDA3_MDIO1, GPIO40_I2C_SCL3_MDC1 ), /* GPIO 40 */ + .reset_pin = GPIO36_PWM_OUT, + .high_leds = { .mux = LED_27 | LED_29, .enable = LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 1, 0, 0, 0, 0, 1}, + .led_sets = { + { /* RJ45: Green LED */ + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT | LEDS_10G, + 0, + /* Amber LED */ + LEDS_2G5 | LEDS_LINK | LEDS_ACT, + 0 + }, { /* SFP PORT: SINGLE GREEN LED */ + LEDS_10M | LEDS_100M | LEDS_1G | LEDS_2G5 | LEDS_10G | LEDS_LINK | LEDS_ACT, + 0, + 0, + 0, + }, + }, +};