diff --git a/techpack/camera/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c b/techpack/camera/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c index 042daa4ece8ce..4271115071ba4 100644 --- a/techpack/camera/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c +++ b/techpack/camera/drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c @@ -5,6 +5,7 @@ */ #include +#include #include @@ -934,12 +935,19 @@ int32_t cam_csiphy_config_dev(struct csiphy_device *csiphy_dev, } //csiphy_3phase only - if ((csiphy_dev->csiphy_info[index].data_rate/1000000) > csiphy_hack_rate_mb) - { - for (i = 0; i < csiphy_override_cnt; i += 2) + if (get_hw_version_platform() == HARDWARE_PROJECT_J18 || + get_hw_version_platform() == HARDWARE_PROJECT_K2 || + get_hw_version_platform() == HARDWARE_PROJECT_K3S || + get_hw_version_platform() == HARDWARE_PROJECT_K8 || + get_hw_version_platform() == HARDWARE_PROJECT_K11 || + get_hw_version_platform() == HARDWARE_PROJECT_K3S) { + if ((csiphy_dev->csiphy_info[index].data_rate/1000000) > csiphy_hack_rate_mb) { - cam_io_w_mb(csiphy_override[i+1], csiphybase + csiphy_override[i]); - CAM_DBG(CAM_CSIPHY, "csiphy_cfg_override [0x%x, 0x%x]", csiphy_override[i], csiphy_override[i+1]); + for (i = 0; i < csiphy_override_cnt; i += 2) + { + cam_io_w_mb(csiphy_override[i+1], csiphybase + csiphy_override[i]); + CAM_DBG(CAM_CSIPHY, "csiphy_cfg_override [0x%x, 0x%x]", csiphy_override[i], csiphy_override[i+1]); + } } } }