Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee4cc1c2 authored by Vijay kumar Tumati's avatar Vijay kumar Tumati Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: sensor: Receive sensor output data rate information



Program data rate specific camera hardware registers using this
information.

Change-Id: I0a64fd6f5b0e9ae0a5edee836998d8fea0e7478d
Signed-off-by: default avatarVijay kumar Tumati <vtumati@codeaurora.org>
parent 808693b4
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -782,10 +782,10 @@ static int msm_csiphy_lane_config(struct csiphy_device *csiphy_dev,
		ratio = csiphy_dev->csiphy_max_clk/clk_rate;
		csiphy_params->settle_cnt = csiphy_params->settle_cnt/ratio;
	}
	CDBG("%s csiphy_params, mask = 0x%x cnt = %d\n",
	CDBG("%s csiphy_params, mask = 0x%x cnt = %d, data rate = %lu\n",
		__func__,
		csiphy_params->lane_mask,
		csiphy_params->lane_cnt);
		csiphy_params->lane_cnt, csiphy_params->data_rate);
	CDBG("%s csiphy_params, settle cnt = 0x%x csid %d\n",
		__func__, csiphy_params->settle_cnt,
		csiphy_params->csid_core);
+1 −0
Original line number Diff line number Diff line
@@ -1386,6 +1386,7 @@ struct msm_camera_csiphy_params {
	uint16_t lane_mask;
	uint8_t combo_mode;
	uint8_t csid_core;
	unsigned long data_rate;
};

struct msm_camera_csi2_params {
+1 −0
Original line number Diff line number Diff line
@@ -367,6 +367,7 @@ struct msm_camera_csiphy_params {
	unsigned char csid_core;
	unsigned int csiphy_clk;
	unsigned char csi_3phase;
	unsigned long data_rate;
};

struct msm_camera_i2c_seq_reg_array {