示例#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");
}