phy: rockchip: csi2-dphy: modify to adapt fast reverse camera if CONFIG_VIDEO_REVERSE_IMAGE=y

Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I9ce4c20ea056f1b39b2f29e57a55d79331919759
This commit is contained in:
Jianwei Fan
2022-08-02 11:58:28 +00:00
committed by Tao Huang
parent ce5b84ec53
commit edfb48bcad
3 changed files with 13 additions and 4 deletions

View File

@@ -120,4 +120,7 @@ struct csi2_dphy_hw {
void (*ttl_mode_disable)(struct csi2_dphy_hw *hw);
};
int rockchip_csi2_dphy_hw_init(void);
int rockchip_csi2_dphy_init(void);
#endif

View File

@@ -979,16 +979,19 @@ static struct platform_driver rockchip_csi2_dphy_hw_driver = {
.of_match_table = rockchip_csi2_dphy_hw_match_id,
},
};
#if defined(CONFIG_VIDEO_ROCKCHIP_THUNDER_BOOT_ISP) && !defined(CONFIG_INITCALL_ASYNC)
static int __init rockchip_csi2_dphy_hw_init(void)
int rockchip_csi2_dphy_hw_init(void)
{
return platform_driver_register(&rockchip_csi2_dphy_hw_driver);
}
#if defined(CONFIG_VIDEO_ROCKCHIP_THUNDER_BOOT_ISP) && !defined(CONFIG_INITCALL_ASYNC)
subsys_initcall(rockchip_csi2_dphy_hw_init);
#else
#if !defined(CONFIG_VIDEO_REVERSE_IMAGE)
module_platform_driver(rockchip_csi2_dphy_hw_driver);
#endif
#endif
MODULE_AUTHOR("Rockchip Camera/ISP team");
MODULE_DESCRIPTION("Rockchip MIPI CSI2 DPHY HW driver");

View File

@@ -806,16 +806,19 @@ struct platform_driver rockchip_csi2_dphy_driver = {
.of_match_table = rockchip_csi2_dphy_match_id,
},
};
#if defined(CONFIG_VIDEO_ROCKCHIP_THUNDER_BOOT_ISP) && !defined(CONFIG_INITCALL_ASYNC)
static int __init rockchip_csi2_dphy_init(void)
int rockchip_csi2_dphy_init(void)
{
return platform_driver_register(&rockchip_csi2_dphy_driver);
}
#if defined(CONFIG_VIDEO_ROCKCHIP_THUNDER_BOOT_ISP) && !defined(CONFIG_INITCALL_ASYNC)
subsys_initcall(rockchip_csi2_dphy_init);
#else
#if !defined(CONFIG_VIDEO_REVERSE_IMAGE)
module_platform_driver(rockchip_csi2_dphy_driver);
#endif
#endif
MODULE_AUTHOR("Rockchip Camera/ISP team");
MODULE_DESCRIPTION("Rockchip MIPI CSI2 DPHY driver");