예제 #1
0
static void s3c_csis_stop(struct platform_device *pdev)
{
	struct s3c_platform_csis *plat;

	s3c_csis_disable_interrupt();
	s3c_csis_system_off();
	s3c_csis_phy_off();

	plat = to_csis_plat(&pdev->dev);
	if (plat->cfg_phy_global)
		plat->cfg_phy_global(/*pdev,*/ 0);
}
예제 #2
0
파일: csis.c 프로젝트: SelfImp/m9
void s3c_csis_stop(struct platform_device *pdev)
{
	struct s3c_platform_csis *plat;

	s3c_csis_disable_interrupt();
	s3c_csis_system_off();
	s3c_csis_phy_off();
	if(pdev)
		plat = to_csis_plat(&pdev->dev);
	else
		plat = to_csis_plat(s3c_csis->dev);
	if (plat->cfg_phy_global)
		plat->cfg_phy_global(pdev, 0);
	s3c_csis_clk_off(to_platform_device(s3c_csis->dev));
	info("Samsung MIPI-CSI2 operation stoped\n");
}
예제 #3
0
void s3c_csis_stop(int csis_id)
{
	struct platform_device *pdev = NULL;
	struct s3c_platform_csis *pdata = NULL;

	pdev = to_platform_device(s3c_csis[csis_id]->dev);
	pdata = to_csis_plat(&pdev->dev);

	s3c_csis_disable_interrupt(pdev);
	s3c_csis_system_off(pdev);
	s3c_csis_phy_off(pdev);

	if (pdata->cfg_phy_global)
		pdata->cfg_phy_global(0);

	if (pdata->clk_off) {
		if (s3c_csis[csis_id]->clock != NULL)
			pdata->clk_off(pdev, &s3c_csis[csis_id]->clock);
	}
}
예제 #4
0
void s3c_csis_stop(void)
{
    struct platform_device *pdev = NULL;
    struct s3c_platform_csis *pdata = NULL;

    pdev = to_platform_device(s3c_csis->dev);
    pdata = to_csis_plat(&pdev->dev);

    s3c_csis_disable_interrupt();
    s3c_csis_system_off();
    s3c_csis_phy_off();

    if (pdata->cfg_phy_global)
        pdata->cfg_phy_global(0);

    if (pdata->clk_off)
        pdata->clk_off(pdev, &s3c_csis->clock);

    regulator_disable(s3c_csis->regulator);

    debug("Samsung MIPI-CSI2 operation end\n");
}
예제 #5
0
void s3c_csis_stop(int csis_id)
{
    struct platform_device *pdev = NULL;
    struct s3c_platform_csis *pdata = NULL;

    pdev = to_platform_device(s3c_csis[csis_id]->dev);
    pdata = to_csis_plat(&pdev->dev);

    s3c_csis_disable_interrupt(pdev);
    s3c_csis_system_off(pdev);
    s3c_csis_phy_off(pdev);

    if (pdata->cfg_phy_global)
        pdata->cfg_phy_global(0);

    if (pdata->clk_off) {
        if (s3c_csis[csis_id]->clock != NULL)
            pdata->clk_off(pdev, &s3c_csis[csis_id]->clock);
    }
    ///#ifdef CONFIG_VIDEO_S5K4ECGX
    mipi_start = 0;//zxz 2012-3-21 temp for 5m sensor
    ///#endif
    info("++Samsung MIPI-CSIS operation stop\n");
}