OSDN Git Service

msm: camera: sensor: Receive sensor output data rate information
authorVijay kumar Tumati <vtumati@codeaurora.org>
Thu, 8 Mar 2018 16:04:23 +0000 (21:34 +0530)
committerVijay kumar Tumati <vtumati@codeaurora.org>
Wed, 18 Apr 2018 04:48:27 +0000 (10:18 +0530)
Program data rate specific camera hardware registers using this
information.

Change-Id: I0a64fd6f5b0e9ae0a5edee836998d8fea0e7478d
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
drivers/media/platform/msm/camera_v2/sensor/csiphy/msm_csiphy.c
include/uapi/media/msm_camera.h
include/uapi/media/msm_camsensor_sdk.h

index a8d7c1f..30abd68 100644 (file)
@@ -1,4 +1,4 @@
-/* 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
@@ -797,10 +797,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);
index 39e6927..8fb69ae 100644 (file)
@@ -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 {
index 08605ac..4d348c7 100644 (file)
@@ -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 {