echo
echo -----------------------------------------------------------------------
echo Reading Lamarr JESD SERDES status regs
echo -----------------------------------------------------------------------
echo
echo LANEx_CTL_STS regs - RX_OK=bit1, RX_LOSS=bit0
echo
echo JESD LANE0_CTL_STS \(0x02325FE0\)
devmem2 0x02325FE0 | grep Read | sed 's/.*: //'
echo
echo JESD LANE1_CTL_STS \(0x02325FE4\)
devmem2 0x02325FE4 | grep Read | sed 's/.*: //'
echo
echo JESD LANE2_CTL_STS \(0x02327FE0\)
devmem2 0x02327FE0 | grep Read | sed 's/.*: //'
echo
echo JESD LANE3_CTL_STS \(0x02327FE4\)
devmem2 0x02327FE4 | grep Read | sed 's/.*: //'
echo
echo JESD_SERDES PLL_CTRL regs - TX_PLL_OK=bit28, RX_LN_1_0_OK=bits9_8, RX_LN_1_0_SD_STATE=bits1_0
echo
echo JESD_SERDES_0 PLL_CTRL \(0x02325FF4\)
devmem2 0x02325FF4 | grep Read | sed 's/.*: //'
echo
echo JESD_SERDES_1 PLL_CTRL \(0x02327FF4\)
devmem2 0x02327FF4 | grep Read | sed 's/.*: //'
echo
echo
echo -----------------------------------------------------------------------
echo Reading Lamarr DFE JESD-RX regs
echo -----------------------------------------------------------------------
echo
echo JESDRX_LANE0_CFG \(0x25D41404\)
devmem2 0x25D41404 | grep Read | sed 's/.*: //'
echo
echo JESDRX_LANE1_CFG \(0x25D41408\)
devmem2 0x25D41408 | grep Read | sed 's/.*: //'
echo
echo JESDRX_LANE2_CFG \(0x25D4140c\)
devmem2 0x25D4140c | grep Read | sed 's/.*: //'
echo
echo JESDRX_LANE3_CFG \(0x25D41410\)
devmem2 0x25D41410 | grep Read | sed 's/.*: //'
echo
echo JESDRX_FIFO_FLAG/LANE_ERROR_LANE0 \(0x25D41C08\)
devmem2 0x25D41C08 w 0x00000000 > /dev/null
devmem2 0x25D41C08 | grep Read | sed 's/.*: //'
echo
echo JESDRX_FIFO_FLAG/LANE_ERROR_LANE1 \(0x25D41C48\)
devmem2 0x25D41C48 w 0x00000000 > /dev/null
devmem2 0x25D41C48 | grep Read | sed 's/.*: //'
echo
echo JESDRX_FIFO_FLAG/LANE_ERROR_LANE2 \(0x25D41C88\)
devmem2 0x25D41C88 w 0x00000000 > /dev/null
devmem2 0x25D41C88 | grep Read | sed 's/.*: //'
echo
echo JESDRX_FIFO_FLAG/LANE_ERROR_LANE3 \(0x25D41CC8\)
devmem2 0x25D41CC8 w 0x00000000 > /dev/null
devmem2 0x25D41CC8 | grep Read | sed 's/.*: //'
echo
echo JESDRX_CS_STATE \(0x25D40030\)
devmem2 0x25D40030 | grep Read | sed 's/.*: //'
echo
echo JESDRX_FS_STATE \(0x25D40034\)
devmem2 0x25D40034 | grep Read | sed 's/.*: //'
echo
echo JESDRX_SYSREF_ERR \(0x25D42008\)
devmem2 0x25D42008 w 0x00000000 > /dev/null
devmem2 0x25D42008 | grep Read | sed 's/.*: //'
echo
echo JESDRX_ERR_CNT_LINK0 \(0x25D41830\)
devmem2 0x25D41830 | grep Read | sed 's/.*: //'
echo
echo JESDRX_ERR_CNT_LINK1 \(0x25D41870\)
devmem2 0x25D41870 | grep Read | sed 's/.*: //'
echo
echo JESDRX_SKEW_LINK0 \(0x25D4182C\)
devmem2 0x25D4182C | grep Read | sed 's/.*: //'
echo
echo JESDRX_SKEW_LINK1 \(0x25D4186C\)
devmem2 0x25D4186C | grep Read | sed 's/.*: //'
echo

echo -----------------------------------------------------------------------
echo Reading Lamarr DFE JESD-TX regs
echo -----------------------------------------------------------------------
echo
echo JESDTX_LANE0_CFG \(0x25D01404\)
devmem2 0x25D01404 | grep Read | sed 's/.*: //'
echo
echo JESDTX_LANE1_CFG \(0x25D01408\)
devmem2 0x25D01408 | grep Read | sed 's/.*: //'
echo
echo JESDTX_LANE2_CFG \(0x25D0140c\)
devmem2 0x25D0140c | grep Read | sed 's/.*: //'
echo
echo JESDTX_LANE3_CFG \(0x25D01410\)
devmem2 0x25D01410 | grep Read | sed 's/.*: //'
echo
echo JESDTX_FIFO_FLAG_LANE0 \(0x25D01C08\)
devmem2 0x25D01C08 w 0x00000000 > /dev/null
devmem2 0x25D01C08 | grep Read | sed 's/.*: //'
echo
echo JESDTX_FIFO_FLAG_LANE1 \(0x25D01C48\)
devmem2 0x25D01C48 w 0x00000000 > /dev/null
devmem2 0x25D01C48 | grep Read | sed 's/.*: //'
echo
echo JESDTX_FIFO_FLAG_LANE2 \(0x25D01C88\)
devmem2 0x25D01C88 w 0x00000000 > /dev/null
devmem2 0x25D01C88 | grep Read | sed 's/.*: //'
echo
echo JESDTX_FIFO_FLAG_LANE3 \(0x25D01CC8\)
devmem2 0x25D01CC8 w 0x00000000 > /dev/null
devmem2 0x25D01CC8 | grep Read | sed 's/.*: //'
echo
echo JESDTX_SYNC_STATE \(0x25D00030\)
devmem2 0x25D00030 | grep Read | sed 's/.*: //'
echo
echo JESDTX_SYSREF_ERR \(0x25D02008\)
devmem2 0x25D02008 w 0x00000000 > /dev/null
devmem2 0x25D02008 | grep Read | sed 's/.*: //'
echo
echo JESDTX_ERR_CNT_LINK0 \(0x25D01828\)
devmem2 0x25D01828 | grep Read | sed 's/.*: //'
echo
echo JESDTX_ERR_CNT_LINK1 \(0x25D01868\)
devmem2 0x25D01868 | grep Read | sed 's/.*: //'
echo
echo JESDTX_FIRST_SYNC_REQ \(0x25D00034\)
devmem2 0x25D00034 | grep Read | sed 's/.*: //'
echo

