.io_dpd_bit = 1,
};
-static struct tegra_io_dpd csic_io = {
- .name = "CSIC",
- .io_dpd_reg_index = 1,
- .io_dpd_bit = 10,
-};
-
-static struct tegra_io_dpd csid_io = {
- .name = "CSID",
- .io_dpd_reg_index = 1,
- .io_dpd_bit = 11,
-};
-
static struct tegra_io_dpd csie_io = {
.name = "CSIE",
.io_dpd_reg_index = 1,
if (unlikely(WARN_ON(!pw || !pw->dovdd || !pw->avdd)))
return -EFAULT;
- /* disable CSIC/D IOs DPD mode to turn on camera for ardbeg */
- tegra_io_dpd_disable(&csic_io);
- tegra_io_dpd_disable(&csid_io);
-
if (ardbeg_get_extra_regulators())
goto ov5693_front_poweron_fail;
gpio_set_value(CAM_RSTN, 0);
ov5693_front_poweron_fail:
- /* put CSIC/D IOs into DPD mode to save additional power for ardbeg */
- tegra_io_dpd_enable(&csic_io);
- tegra_io_dpd_enable(&csid_io);
pr_err("%s FAILED\n", __func__);
return -ENODEV;
}
static int ardbeg_ov5693_front_power_off(struct ov5693_power_rail *pw)
{
if (unlikely(WARN_ON(!pw || !pw->dovdd || !pw->avdd))) {
- /* put CSIC/D IOs into DPD mode to
- * save additional power for ardbeg
- */
- tegra_io_dpd_enable(&csic_io);
- tegra_io_dpd_enable(&csid_io);
return -EFAULT;
}
regulator_disable(pw->dovdd);
regulator_disable(pw->avdd);
- /* put CSIC/D IOs into DPD mode to save additional power for ardbeg */
- tegra_io_dpd_enable(&csic_io);
- tegra_io_dpd_enable(&csid_io);
return 0;
}
*/
tegra_io_dpd_enable(&csia_io);
tegra_io_dpd_enable(&csib_io);
- tegra_io_dpd_enable(&csic_io);
- tegra_io_dpd_enable(&csid_io);
tegra_io_dpd_enable(&csie_io);
#if IS_ENABLED(CONFIG_SOC_CAMERA_PLATFORM)