AnsweredAssumed Answered

TC358749XBG调试mipi_csi2寄存器全为0

Question asked by lin ben on Jul 1, 2019
Latest reply on Jul 9, 2019 by jimmychan

当我加载TC358749XBG驱动时mipi_csi2寄存器发生如下变化,在调用mipi_csi2_disable中的clk_disable_unprepare(info->dphy_clk);后mipi_csi2的寄存器全变为0,想知道是什么原因会导致这种情况呢?

 

MIPI_CSI2_VERSION =  0x3130302A
MIPI_CSI2_N_LANES =  0x00000001
MIPI_CSI2_PHY_SHUTDOWNZ =  0x00000001
MIPI_CSI2_DPHY_RSTZ =  0x00000001
MIPI_CSI2_CSI2_RESETN =  0x00000001
MIPI_CSI2_PHY_STATE =  0x00000300
MIPI_CSI2_DATA_IDS_1 =  0x00000000
MIPI_CSI2_DATA_IDS_2 =  0x00000000
MIPI_CSI2_ERR1 =  0x00000000
MIPI_CSI2_ERR2 =  0x00000000
MIPI_CSI2_MASK1 =  0x00000000
MIPI_CSI2_MASK2 =  0x00000000
MIPI_CSI2_PHY_TST_CTRL0 =  0x00000000
MIPI_CSI2_PHY_TST_CTRL1 =  0x00001414
MIPI_CSI2_SFT_RESET =  0x00000000


mipi_csi2_disable:130


MIPI_CSI2_VERSION =  0x00000000
MIPI_CSI2_N_LANES =  0x00000000
MIPI_CSI2_PHY_SHUTDOWNZ =  0x00000000
MIPI_CSI2_DPHY_RSTZ =  0x00000000
MIPI_CSI2_CSI2_RESETN =  0x00000000
MIPI_CSI2_PHY_STATE =  0x00000000
MIPI_CSI2_DATA_IDS_1 =  0x00000000
MIPI_CSI2_DATA_IDS_2 =  0x00000000
MIPI_CSI2_ERR1 =  0x00000000
MIPI_CSI2_ERR2 =  0x00000000
MIPI_CSI2_MASK1 =  0x00000000
MIPI_CSI2_MASK2 =  0x00000000
MIPI_CSI2_PHY_TST_CTRL0 =  0x00000000
MIPI_CSI2_PHY_TST_CTRL1 =  0x00000000
MIPI_CSI2_SFT_RESET =  0x00000000

Outcomes