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

int32_t csi_enable_mclk ( int  src,
bool  flag,
bool  wait 
)

csi_enable_mclk

Parameters:
src enum define which source to control the clk CSI_MCLK_VF CSI_MCLK_ENC CSI_MCLK_RAW CSI_MCLK_I2C
flag true to enable mclk, false to disable mclk
wait true to wait 100ms make clock stable, false not wait
Returns:
0 for success

Definition at line 135 of file fsl_csi.c.

{
      if (flag == true) {
            csi_mclk_enable();
            if (wait == true)
                  msleep(10);
            pr_debug("Enable csi clock from source %d\n", src);
            g_csi_mclk_on = true;
      } else {
            csi_mclk_disable();
            pr_debug("Disable csi clock from source %d\n", src);
            g_csi_mclk_on = false;
      }

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index