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

Commit c582ee16 authored by Alok Pandey's avatar Alok Pandey
Browse files

msm: camera: isp: handling lane config parsing



It makes sure that correct lane configuration is parsed and
updated for correct lane number.

Change-Id: I826ef7e333e8c38630d88973fa35a6e41c4fc61b
Signed-off-by: default avatarAlok Pandey <akumarpa@codeaurora.org>
parent ab4de3ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -202,7 +202,7 @@ static int cam_csid_ppi_init_hw(void *hw_priv, void *init_args,
		ppi_cfg.lane_cfg, num_lanes, cphy);

	for (i = 0; i < num_lanes; i++) {
		lanes[i] = ppi_cfg.lane_cfg & (0x3 << (4 * i));
		lanes[i] = (ppi_cfg.lane_cfg & (0x3 << (4 * i))) >> (4*i);
		(lanes[i] < 2) ? (dl0 = true) : (dl1 = true);
		CAM_DBG(CAM_ISP, "lanes[%d] %d", i, lanes[i]);
	}