Browse Source

msm: camera: icp: Update BPS register SWI for lanai

Update register offsets for BPS 880.

CRs-Fixed: 3175809
Change-Id: Idd7583a624126b3aea3ca704904002147f59966e
Signed-off-by: Karthik Anantha Ram <[email protected]>
Karthik Anantha Ram 3 năm trước cách đây
mục cha
commit
564ff107fd

+ 16 - 0
drivers/cam_icp/icp_hw/bps_hw/bps_dev.c

@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-only
 // SPDX-License-Identifier: GPL-2.0-only
 /*
 /*
  * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
  * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
  */
  */
 
 
 #include <linux/module.h>
 #include <linux/module.h>
@@ -41,6 +42,17 @@ static struct cam_bps_device_hw_info cam_bps680_hw_info = {
 	.cdm_rst_val = 0x7F,
 	.cdm_rst_val = 0x7F,
 };
 };
 
 
+static struct cam_bps_device_hw_info cam_bps880_hw_info = {
+	.hw_idx = 0,
+	.pwr_ctrl = 0x48,
+	.pwr_status = 0x44,
+	.top_rst_cmd = 0x1008,
+	.top_irq_status = 0x100C,
+	.cdm_rst_cmd = 0x10,
+	.cdm_irq_status = 0x44,
+	.cdm_rst_val = 0x7F,
+};
+
 static bool cam_bps_cpas_cb(uint32_t client_handle, void *userdata,
 static bool cam_bps_cpas_cb(uint32_t client_handle, void *userdata,
 	struct cam_cpas_irq_data *irq_data)
 	struct cam_cpas_irq_data *irq_data)
 {
 {
@@ -235,6 +247,10 @@ static const struct of_device_id cam_bps_dt_match[] = {
 		.compatible = "qcom,cam-bps680",
 		.compatible = "qcom,cam-bps680",
 		.data = &cam_bps680_hw_info,
 		.data = &cam_bps680_hw_info,
 	},
 	},
+	{
+		.compatible = "qcom,cam-bps880",
+		.data = &cam_bps880_hw_info,
+	},
 	{}
 	{}
 };
 };
 MODULE_DEVICE_TABLE(of, cam_bps_dt_match);
 MODULE_DEVICE_TABLE(of, cam_bps_dt_match);