mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
Merge "msm: camera: csiphy: Add support for CSIPHY fuse" into camera-kernel.lnx.4.0
This commit is contained in:
commit
bfecc47f10
1 changed files with 10 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include "cam_csiphy_soc.h"
|
||||
#include "cam_csiphy_core.h"
|
||||
#include <media/cam_sensor.h>
|
||||
#include <dt-bindings/msm/msm-camera.h>
|
||||
#include "camera_main.h"
|
||||
|
||||
static struct dentry *root_dentry;
|
||||
|
|
@ -209,6 +210,15 @@ static int cam_csiphy_component_bind(struct device *dev,
|
|||
CAM_ERR(CAM_CSIPHY, "DT parsing failed: %d", rc);
|
||||
goto csiphy_no_resource;
|
||||
}
|
||||
/* validate PHY FUSE only for CSIPHY4 */
|
||||
if ((new_csiphy_dev->soc_info.index == 4) &&
|
||||
!cam_cpas_is_feature_supported(
|
||||
CAM_CPAS_CSIPHY_FUSE,
|
||||
(1 << new_csiphy_dev->soc_info.index), NULL)) {
|
||||
CAM_ERR(CAM_CSIPHY, "PHY%d is not supported: %d",
|
||||
new_csiphy_dev->soc_info.index);
|
||||
goto csiphy_no_resource;
|
||||
}
|
||||
|
||||
new_csiphy_dev->v4l2_dev_str.internal_ops =
|
||||
&csiphy_subdev_intern_ops;
|
||||
|
|
|
|||
Loading…
Reference in a new issue