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

Commit 8342a85b authored by Abhishek Kondaveeti's avatar Abhishek Kondaveeti Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: Fix CAMIF PDAF Config



Control CAMIF subsample pattern and enable from
userspace. Remove the hardcoding for CAMIF config.

Change-Id: I5719d4e309ba264dca150e72abe4f10c5f856392
Signed-off-by: default avatarAbhishek Kondaveeti <akondave@codeaurora.org>
parent d68ce08f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1000,7 +1000,7 @@ static int cam_vfe_bus_acquire_wm(
		rsrc_data->height = 0;
		rsrc_data->stride = 1;
		rsrc_data->en_cfg = 0x3;
	}  else if (rsrc_data->index == 9) {
	}  else if (rsrc_data->index == 9 || rsrc_data->index == 10) {
		/* Write master 9 - Raw dump */
		rsrc_data->width = rsrc_data->width * 2;
		rsrc_data->stride = rsrc_data->width;
+1 −8
Original line number Diff line number Diff line
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-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
@@ -234,13 +234,6 @@ static int cam_vfe_camif_resource_start(
	CAM_DBG(CAM_ISP, "hw id:%d core_cfg val:%d", camif_res->hw_intf->hw_idx,
		val);

	cam_io_w_mb(0x00400040, rsrc_data->mem_base +
		rsrc_data->camif_reg->camif_config);
	cam_io_w_mb(0x1, rsrc_data->mem_base +
			rsrc_data->camif_reg->line_skip_pattern);
	cam_io_w_mb(0x1, rsrc_data->mem_base +
			rsrc_data->camif_reg->pixel_skip_pattern);

	/* epoch config with 20 line */
	cam_io_w_mb(rsrc_data->reg_data->epoch_line_cfg,
		rsrc_data->mem_base + rsrc_data->camif_reg->epoch_irq);