echo -n "Start script" # #Mode: MODE_10_2_XGPON #Hmm looks like you're using frac-N ... can't use JBert's onboard reference. #Rate: 9953280000, Ref: 50e6 #Die temperature = 47 °C #Starting initSerdes() dw 0x80144038 # 0x0 sw 0x80144034 0x8000 dw 0x80144038 # 0x5c00013 dw 0x80144038 # 0x5c00013 sw 0xff8026bc 0x0 dw 0xff8026bc # 0x0 # beginTransaction dw 0x80144014 # 0x53c080 # fieldWrite NGPON_GEARBOX_RX_CTL_0[cfNGponGboxRxFrcHunt], 0x0 #sw 0x80144014 0x534080 dw 0x80144014 # 0x534080 # fieldWrite NGPON_GEARBOX_RX_CTL_0[cfNGponGboxRxOutDataFlip], 0x0 #sw 0x80144014 0x530083 # endTransaction sw 0x80144014 0x530083 # fieldWrite WAN_TOP_MISC_0[cr_xgwan_top_wan_misc_refin_en], 0x1 sw 0x80144040 0x2 # fieldWrite WAN_TOP_MISC_1 0 sw 0x80144044 0x0 # fieldWrite WAN_TOP_MISC_2[cr_xgwan_top_wan_misc_pmd_por_h_rstb], 0x0 sw 0x80144048 0x12000000 dw 0x80144024 # 0x80060 # fieldWrite NGPON_GEARBOX_TX_CTL[cfNGponGboxTxEn], 0x1 sw 0x80144024 0x80061 #dw 0x80144004 # 0x10300 # fieldWrite GPON_GEARBOX_0[cr_xgwan_top_wan_misc_gpon_gearbox_fifo_cfg_0_rx_16bit_order], 0x1 #sw 0x80144004 0x4010300 #dw 0x80144004 # 0x4010300 # fieldWrite GPON_GEARBOX_0[cr_xgwan_top_wan_misc_gpon_gearbox_fifo_cfg_0_tx_16bit_order], 0x1 #sw 0x80144004 0x5010300 #dw 0x80144010 # 0x1c00 #sw 0x80144010 0x3001c00 #sw 0x80144048 0x0 #dw 0x80144048 # 0x0 # beginTransaction #dw 0x80144050 # 0x0 # fieldWrite WAN_SERDES_PLL_CTL[cfg_pll1_lcref_sel], 0x0 #sw 0x80144050 0x0 #dw 0x80144050 # 0x0 # fieldWrite WAN_SERDES_PLL_CTL[cfg_pll1_refin_en], 0x1 #sw 0x80144050 0x100 #dw 0x80144050 # 0x100 # fieldWrite WAN_SERDES_PLL_CTL[cfg_pll0_lcref_sel], 0x1 #sw 0x80144050 0x104 #dw 0x80144050 # 0x104 # fieldWrite WAN_SERDES_PLL_CTL[cfg_pll0_refin_en], 0x1 #sw 0x80144050 0x105 # endTransaction sw 0x80144050 0x105 #dw 0x80144048 # 0x0 # fieldWrite WAN_TOP_MISC_2[cr_xgwan_top_wan_misc_pmd_por_h_rstb], 0x1 #sw 0x80144048 0x20 #dw 0x80144048 # 0x20 # fieldWrite WAN_TOP_MISC_2[cr_xgwan_top_wan_misc_pmd_core_1_dp_h_rstb], 0x1 #sw 0x80144048 0x30 #dw 0x80144048 # 0x30 # fieldWrite WAN_TOP_MISC_2[cr_xgwan_top_wan_misc_pmd_core_0_dp_h_rstb], 0x1 sw 0x80144048 0x12000038 dw 0x80144048 # 0x38 # fieldWrite WAN_TOP_MISC_2[cr_xgwan_top_wan_misc_pmd_ln_h_rstb], 0x1 #sw 0x80144048 0x3c #dw 0x80144048 # 0x3c # fieldWrite WAN_TOP_MISC_2[cr_xgwan_top_wan_misc_pmd_ln_dp_h_rstb], 0x1 sw 0x80144048 0x1200003e #sw 0x80144040 0x0 #dw 0x80144040 # 0x0 #sw 0x80144044 0x0 # beginTransaction #dw 0x80144048 # 0x3e # fieldWrite WAN_TOP_MISC_2[cr_xgwan_top_wan_misc_pmd_rx_osr_mode], 0x0 #sw 0x80144048 0x3e #dw 0x80144048 # 0x3e # fieldWrite WAN_TOP_MISC_2[cr_xgwan_top_wan_misc_pmd_tx_osr_mode], 0x0 #sw 0x80144048 0x3e # endTransaction #sw 0x80144048 0x3e # beginTransaction #sw 0x8014404c 0x0 #dw 0x8014404c # 0x0 # fieldWrite WAN_TOP_MISC_3[cr_xgwan_top_wan_misc_wan_cfg_laser_oe], 0x1 #sw 0x8014404c 0x80 # endTransaction sw 0x8014404c 0xEC # For XGPON and NGPON sw 0x80144058 0x0 # writePONSerdesReg (0x0800) 0xd0b9 0x0000 0x0004 sw 0x80144060 0x800d0b9 sw 0x80144064 0xfffb sw 0x8014405c 0x3 dw 0x80144068 # 0x10004 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b9 0x0000 0x0004 sw 0x80144060 0x900d0b9 sw 0x80144064 0xfffb sw 0x8014405c 0x3 dw 0x80144068 # 0x10004 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0b1 0x0080 0x0080 sw 0x80144060 0x800d0b1 sw 0x80144064 0x80ff7f sw 0x8014405c 0x3 dw 0x80144068 # 0x18001 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0b1 0x0000 0x0040 sw 0x80144060 0x800d0b1 sw 0x80144064 0xffbf sw 0x8014405c 0x3 dw 0x80144068 # 0x18081 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0b4 0x0300 0x0300 sw 0x80144060 0x800d0b4 sw 0x80144064 0x300fcff sw 0x8014405c 0x3 dw 0x80144068 # 0x10077 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0b4 0x2000 0x3000 sw 0x80144060 0x800d0b4 sw 0x80144064 0x2000cfff sw 0x8014405c 0x3 dw 0x80144068 # 0x10377 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0b4 0x4000 0x4000 sw 0x80144060 0x800d0b4 sw 0x80144064 0x4000bfff sw 0x8014405c 0x3 dw 0x80144068 # 0x12377 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0b7 0x432c 0xffff sw 0x80144060 0x800d0b7 sw 0x80144064 0x432c0000 sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0b8 0x0000 0x0003 sw 0x80144060 0x800d0b8 sw 0x80144064 0xfffc sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0b8 0x0000 0x0004 sw 0x80144060 0x800d0b8 sw 0x80144064 0xfffb sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0b8 0x0c70 0x3ff0 sw 0x80144060 0x800d0b8 sw 0x80144064 0xc70c00f sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0b6 0x0001 0x0001 sw 0x80144060 0x800d0b6 sw 0x80144064 0x1fffe sw 0x8014405c 0x3 dw 0x80144068 # 0x145c0 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0b8 0x8000 0x8000 sw 0x80144060 0x800d0b8 sw 0x80144064 0x80007fff sw 0x8014405c 0x3 dw 0x80144068 # 0x10c70 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0b8 0x4000 0x0000 #disable dithering set bit 14 to 0 !!!! sw 0x80144060 0x800d0b8 sw 0x80144064 0x4000ffff sw 0x8014405c 0x3 dw 0x80144068 # 0x18c70 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0b8 0x0000 0x0008 sw 0x80144060 0x800d0b8 sw 0x80144064 0xfff7 sw 0x8014405c 0x3 dw 0x80144068 # 0x1cc70 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd08d 0x0000 0x0001 sw 0x80144060 0x800d08d sw 0x80144064 0xfffe sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b1 0x0000 0x0080 sw 0x80144060 0x900d0b1 sw 0x80144064 0xff7f sw 0x8014405c 0x3 dw 0x80144068 # 0x18001 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b1 0x0000 0x0040 sw 0x80144060 0x900d0b1 sw 0x80144064 0xffbf sw 0x8014405c 0x3 dw 0x80144068 # 0x18001 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b4 0x0000 0x0300 sw 0x80144060 0x900d0b4 sw 0x80144064 0xfcff sw 0x8014405c 0x3 dw 0x80144068 # 0x10077 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b4 0x2000 0x3000 sw 0x80144060 0x900d0b4 sw 0x80144064 0x2000cfff sw 0x8014405c 0x3 dw 0x80144068 # 0x10077 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b4 0x4000 0x4000 sw 0x80144060 0x900d0b4 sw 0x80144064 0x4000bfff sw 0x8014405c 0x3 dw 0x80144068 # 0x12077 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b7 0x432c 0xffff sw 0x80144060 0x900d0b7 sw 0x80144064 0x432c0000 sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b8 0x0000 0x0003 sw 0x80144060 0x900d0b8 sw 0x80144064 0xfffc sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b8 0x0000 0x0004 sw 0x80144060 0x900d0b8 sw 0x80144064 0xfffb sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b8 0x0c70 0x3ff0 sw 0x80144060 0x900d0b8 sw 0x80144064 0xc70c00f sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b6 0x0001 0x0001 sw 0x80144060 0x900d0b6 sw 0x80144064 0x1fffe sw 0x8014405c 0x3 dw 0x80144068 # 0x145c0 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b8 0x8000 0x8000 sw 0x80144060 0x900d0b8 sw 0x80144064 0x80007fff sw 0x8014405c 0x3 dw 0x80144068 # 0x10c70 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b8 0x4000 0x4000 sw 0x80144060 0x900d0b8 sw 0x80144064 0x4000bfff sw 0x8014405c 0x3 dw 0x80144068 # 0x18c70 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd0b8 0x0000 0x0008 sw 0x80144060 0x900d0b8 sw 0x80144064 0xfff7 sw 0x8014405c 0x3 dw 0x80144068 # 0x1cc70 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd08d 0x0002 0x0002 sw 0x80144060 0x800d08d sw 0x80144064 0x3fffc sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd050 0x0003 0x0007 sw 0x80144060 0x800d050 sw 0x80144064 0x3fff8 sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd001 0x0004 0x0004 sw 0x80144060 0x800d001 sw 0x80144064 0x4fffb sw 0x8014405c 0x3 dw 0x80144068 # 0x10004 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd003 0x0000 0x0300 sw 0x80144060 0x800d003 sw 0x80144064 0xfcff sw 0x8014405c 0x3 dw 0x80144068 # 0x100f0 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd001 0x0000 0x0040 sw 0x80144060 0x800d001 sw 0x80144064 0xffbf sw 0x8014405c 0x3 dw 0x80144068 # 0x10004 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd017 0x0000 0x000f sw 0x80144060 0x800d017 sw 0x80144064 0xfff0 sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd017 0x0000 0x0f00 sw 0x80144060 0x800d017 sw 0x80144064 0xf0ff sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd017 0x0000 0x3000 sw 0x80144060 0x800d017 sw 0x80144064 0xcfff sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd017 0x0000 0xc000 sw 0x80144060 0x800d017 sw 0x80144064 0x3fff sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd001 0x0000 0x0080 sw 0x80144060 0x800d001 sw 0x80144064 0xff7f sw 0x8014405c 0x3 dw 0x80144068 # 0x10004 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd002 0x02b2 0xffff sw 0x80144060 0x800d002 sw 0x80144064 0x2b20000 sw 0x8014405c 0x3 dw 0x80144068 # 0x10690 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd018 0x0000 0x000f sw 0x80144060 0x800d018 sw 0x80144064 0xfff0 sw 0x8014405c 0x3 dw 0x80144068 # 0x10011 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd018 0x0000 0x0300 sw 0x80144060 0x800d018 sw 0x80144064 0xfcff sw 0x8014405c 0x3 dw 0x80144068 # 0x10010 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd001 0x0001 0x0001 sw 0x80144060 0x800d001 sw 0x80144064 0x1fffe sw 0x8014405c 0x3 dw 0x80144068 # 0x10004 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd003 0x0000 0x0002 sw 0x80144060 0x800d003 sw 0x80144064 0xfffd sw 0x8014405c 0x3 dw 0x80144068 # 0x100f0 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd003 0x0030 0x00f0 sw 0x80144060 0x800d003 sw 0x80144064 0x30ff0f sw 0x8014405c 0x3 dw 0x80144068 # 0x100f0 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd041 0x0007 0x000f sw 0x80144060 0x800d041 sw 0x80144064 0x7fff0 sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd042 0x0003 0x0007 sw 0x80144060 0x800d042 sw 0x80144064 0x3fff8 sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd02b 0x0000 0x3e00 sw 0x80144060 0x800d02b sw 0x80144064 0xc1ff sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd02b 0x0100 0x01ff sw 0x80144060 0x800d02b sw 0x80144064 0x100fe00 sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd02b 0x8000 0x8000 sw 0x80144060 0x800d02b sw 0x80144064 0x80007fff sw 0x8014405c 0x3 dw 0x80144068 # 0x10100 sw 0x8014405c 0x0 sw 0x80144060 0x800d00a sw 0x8014405c 0x2 dw 0x80144068 # 0x10000 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # readPONSerdesReg (0x0800) 0xd00a # 0x0000 # writePONSerdesReg (0x0800) 0xd004 0x4000 0x7000 sw 0x80144060 0x800d004 sw 0x80144064 0x40008fff sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0400 0x0400 sw 0x80144060 0x800d004 sw 0x80144064 0x400fbff sw 0x8014405c 0x3 dw 0x80144068 # 0x14000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0001 0x007f sw 0x80144060 0x800d004 sw 0x80144064 0x1ff80 sw 0x8014405c 0x3 dw 0x80144068 # 0x14400 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14401 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0200 0x0200 sw 0x80144060 0x800d004 sw 0x80144064 0x200fdff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 sw 0x80144060 0x800d00a sw 0x8014405c 0x2 dw 0x80144068 # 0x10000 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # readPONSerdesReg (0x0800) 0xd00a # 0x0000 # writePONSerdesReg (0x0800) 0xd004 0x2000 0x7000 sw 0x80144060 0x800d004 sw 0x80144064 0x20008fff sw 0x8014405c 0x3 dw 0x80144068 # 0x14601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0400 0x0400 sw 0x80144060 0x800d004 sw 0x80144064 0x400fbff sw 0x8014405c 0x3 dw 0x80144068 # 0x12601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd004 0x0001 0x007f sw 0x80144060 0x800d004 sw 0x80144064 0x1ff80 sw 0x8014405c 0x3 dw 0x80144068 # 0x12601 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd080 0x4000 0x4000 #sw 0x80144060 0x800d080 #sw 0x80144064 0x4000bfff #sw 0x8014405c 0x3 #dw 0x80144068 # 0x10000 #sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd080 0x0000 0x000f #sw 0x80144060 0x800d080 #sw 0x80144064 0xfff0 #sw 0x8014405c 0x3 #dw 0x80144068 # 0x14000 #sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd080 0x8000 0x8000 #sw 0x80144060 0x800d080 #sw 0x80144064 0x80007fff #sw 0x8014405c 0x3 #dw 0x80144068 # 0x14000 #sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd080 0x0000 0x00f0 #sw 0x80144060 0x800d080 #sw 0x80144064 0xff0f #sw 0x8014405c 0x3 #dw 0x80144068 # 0x1c000 #sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd07c 0x0180 0x0180 sw 0x80144060 0x800d07c sw 0x80144064 0x100fe7f sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0a1 0x0001 0x0001 sw 0x80144060 0x800d0a1 sw 0x80144064 0x1fffe sw 0x8014405c 0x3 dw 0x80144068 # 0x1007e sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0a1 0x0006 0x000e /* AssafA ??? */ sw 0x80144060 0x800d0a1 sw 0x80144064 0x6fff1 sw 0x8014405c 0x3 dw 0x80144068 # 0x1007f sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0a1 0x0020 0x0070 sw 0x80144060 0x800d0a1 sw 0x80144064 0x20ff8f sw 0x8014405c 0x3 dw 0x80144068 # 0x10077 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd092 0xA804 0xffff /* AssafA ??? */ sw 0x80144060 0x800d092 sw 0x80144064 0xA8040000 sw 0x8014405c 0x3 dw 0x80144068 # 0x1a807 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd092 0xA804 0xffff /* AssafA ??? */ sw 0x80144060 0x900d092 sw 0x80144064 0xA8040000 sw 0x8014405c 0x3 dw 0x80144068 # 0x1a807 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd154 0x2000 0x2000 sw 0x80144060 0x800d154 sw 0x80144064 0x2000dfff sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0900) 0xd154 0x2000 0x2000 sw 0x80144060 0x900d154 sw 0x80144064 0x2000dfff sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 dw 0x80144094 # 0x403 sw 0x80144060 0x800d01e sw 0x8014405c 0x2 dw 0x80144068 # 0x10000 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 ####### ####### # writePONSerdesReg (0x0800) 0xd081 0x0002 0x0002 sw 0x80144060 0x800d081 sw 0x80144064 0x2fffd sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # beginTransaction #dw 0x80144014 # 0x530080 # fieldWrite NGPON_GEARBOX_RX_CTL_0[cfNGponGboxRxFifoRdPtr], 0x8 #sw 0x80144014 0x8530080 #dw 0x80144014 # 0x8530080 # fieldWrite NGPON_GEARBOX_RX_CTL_0[cfNGponGboxRxFifoPtrLd], 0x1 #sw 0x80144014 0x8530090 #dw 0x80144014 # 0x8530090 # fieldWrite NGPON_GEARBOX_RX_CTL_0[cfNGponGboxRxSerDataFlip], 0x1 #sw 0x80144014 0x85300d0 #dw 0x80144014 # 0x85300d0 # fieldWrite NGPON_GEARBOX_RX_CTL_0[cfNGponGboxRxMode], 0x1 #sw 0x80144014 0x85300d4 #dw 0x80144024 # 0x80061 # fieldWrite NGPON_GEARBOX_TX_CTL[cfNGponGboxTxFifoDataRdPtr], 0x8 #sw 0x80144024 0x80061 #dw 0x80144024 # 0x80061 # fieldWrite NGPON_GEARBOX_TX_CTL[cfNGponGboxTxFifoVldPtrLd], 0x1 #sw 0x80144024 0x80065 #dw 0x80144024 # 0x80065 # fieldWrite NGPON_GEARBOX_TX_CTL[cfNGponGboxTxFifoPtrLd], 0x1 #sw 0x80144024 0x80067 #dw 0x80144024 # 0x80067 # fieldWrite NGPON_GEARBOX_TX_CTL[cfNGponGboxTxFifoVldOff], 0x1e #sw 0x80144024 0x81e67 # endTransaction #sw 0x80144024 0x81e67 #sw 0x80144014 0x85300d4 # writePONSerdesReg (0x0800) 0xd0d1 0x000a 0x000e sw 0x80144060 0x800d0d1 sw 0x80144064 0xafff1 sw 0x8014405c 0x3 dw 0x80144068 # 0x1002a sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0e1 0x0000 0x000e sw 0x80144060 0x800d0e1 sw 0x80144064 0xfff0 sw 0x8014405c 0x3 dw 0x80144068 # 0x1000a sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0a0 0x0000 0xffff sw 0x80144060 0x800d0a0 sw 0x80144064 0x0 sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0e0 0x0000 0x0001 sw 0x80144060 0x800d0e0 sw 0x80144064 0xfffe sw 0x8014405c 0x3 dw 0x80144068 # 0x1e000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0e1 0x0000 0x0001 # was 0x0001 0x0001 sw 0x80144060 0x800d0e1 sw 0x80144064 0x0fffe sw 0x8014405c 0x3 dw 0x80144068 # 0x1000a sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd070 0x2003 0x7007 sw 0x80144060 0x800d070 sw 0x80144064 0x2003dffc sw 0x8014405c 0x3 dw 0x80144068 # 0x12000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0e2 0x0000 0x0000 #disable loopback!!! sw 0x80144060 0x800d0e2 sw 0x80144064 0x0fff0 sw 0x8014405c 0x3 dw 0x80144068 # 0x10002 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd070 0x0000 0x0004 #sw 0x80144060 0x800d070 #sw 0x80144064 0xfffb #sw 0x8014405c 0x3 #dw 0x80144068 # 0x12000 #sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd070 0x0000 0x0002 #sw 0x80144060 0x800d070 #sw 0x80144064 0xfffd #sw 0x8014405c 0x3 #dw 0x80144068 # 0x12000 #sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd070 0x0000 0x0001 #sw 0x80144060 0x800d070 #sw 0x80144064 0xfffe #sw 0x8014405c 0x3 #dw 0x80144068 # 0x12000 #sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0e4 0x0000 0x0001 sw 0x80144060 0x800d0e4 sw 0x80144064 0x3ffff sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 dw 0x80144048 # 0x3e # fieldWrite WAN_TOP_MISC_2[cr_xgwan_top_wan_misc_pmd_tx_disable], 0x0 #sw 0x80144048 0x3e # writePONSerdesReg (0x0800) 0xd0a2 0x0000 0x6000 sw 0x80144060 0x800d0a2 sw 0x80144064 0x9fff sw 0x8014405c 0x3 dw 0x80144068 # 0x1000c sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0a2 0x000d 0x000f sw 0x80144060 0x800d0a2 sw 0x80144064 0xdfff0 sw 0x8014405c 0x3 dw 0x80144068 # 0x1000c sw 0x8014405c 0x0 dw 0x80144048 # 0x3e # fieldWrite WAN_TOP_MISC_2[cr_xgwan_top_wan_misc_pmd_tx_disable], 0x0 #sw 0x80144048 0x3e # writePONSerdesReg (0x0800) 0xd00d 0x0000 0xffff sw 0x80144060 0x800d00d sw 0x80144064 0x0 sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 sw 0x80144060 0x800d00d sw 0x8014405c 0x2 dw 0x80144068 # 0x10000 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # readPONSerdesReg (0x0800) 0xd00d # 0x0000 # writePONSerdesReg (0x0800) 0xd00d 0x0000 0xffff sw 0x80144060 0x800d00d sw 0x80144064 0x0 sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 sw 0x80144060 0x800d00d sw 0x8014405c 0x2 dw 0x80144068 # 0x10000 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # readPONSerdesReg (0x0800) 0xd00d # 0x0000 sw 0x80144060 0x800d01a sw 0x8014405c 0x2 dw 0x80144068 # 0x10000 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 ###### ####### # writePONSerdesReg (0x0800) 0xd0e0 0x0000 0x0001 sw 0x80144060 0x800d0e0 sw 0x80144064 0xfffe sw 0x8014405c 0x3 dw 0x80144068 # 0x1e000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd070 0x2003 0x7007 sw 0x80144060 0x800d070 sw 0x80144064 0x2003dffc sw 0x8014405c 0x3 dw 0x80144068 # 0x12000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd050 0x0003 0x0007 sw 0x80144060 0x800d050 sw 0x80144064 0x3fff8 sw 0x8014405c 0x3 dw 0x80144068 # 0x10003 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0e4 0x0001 0x0001 sw 0x80144060 0x800d0e4 sw 0x80144064 0x3ffff sw 0x8014405c 0x3 dw 0x80144068 # 0x10000 sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd070 0x0001 0x0001 #sw 0x80144060 0x800d070 #sw 0x80144064 0x1fffe #sw 0x8014405c 0x3 #dw 0x80144068 # 0x15000 #sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd070 0x0002 0x0002 #sw 0x80144060 0x800d070 #sw 0x80144064 0x2fffd #sw 0x8014405c 0x3 #dw 0x80144068 # 0x15001 #sw 0x8014405c 0x0 # # writePONSerdesReg (0x0800) 0xd070 0x0004 0x0004 # sw 0x80144060 0x800d070 # sw 0x80144064 0x4fffb # sw 0x8014405c 0x3 # dw 0x80144068 # 0x15003 # sw 0x8014405c 0x0 # writePONSerdesReg (0x0800) 0xd0e2 0x0001 0x0000 sw 0x80144060 0x800d0e2 sw 0x80144064 0x3ffff sw 0x8014405c 0x3 dw 0x80144068 # 0x10002 sw 0x8014405c 0x0 # Gearbox rx ctrl sw 0x80144014 0x085300d7 dw 0x80144094 echo -n "DONE"