Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

int ipu_csi_enable_mclk ( int  csi,
bool  flag,
bool  wait 
)

ipu_csi_enable_mclk

Parameters:
csi csi 0 or csi 1
flag true to enable mclk, false to disable mclk
wait true to wait 100ms make clock stable, false not wait
Returns:
Returns 0 on success

Definition at line 172 of file ipu_capture.c.

{
      if (flag) {
            clk_enable(g_csi_clk[csi]);
            if (wait == true)
                  msleep(10);
      } else
            clk_disable(g_csi_clk[csi]);

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index