Loading drivers/media/platform/msm/camera_v2/sensor/csiphy/include/msm_csiphy_5_0_1_hwreg.h +2 −1 Original line number Original line Diff line number Diff line /* Copyright (c) 2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. * * * This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -99,6 +99,7 @@ struct csiphy_reg_3ph_parms_t csiphy_v5_0_1_3ph = { {0x70C, 0xA5}, {0x70C, 0xA5}, {0x38, 0xFE}, {0x38, 0xFE}, {0x81c, 0x2}, {0x81c, 0x2}, {0x700, 0x80}, }; }; struct csiphy_settings_t csiphy_combo_mode_v5_0_1 = { struct csiphy_settings_t csiphy_combo_mode_v5_0_1 = { Loading drivers/media/platform/msm/camera_v2/sensor/csiphy/include/msm_csiphy_5_0_hwreg.h +2 −1 Original line number Original line Diff line number Diff line /* Copyright (c) 2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. * * * This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -100,6 +100,7 @@ struct csiphy_reg_3ph_parms_t csiphy_v5_0_3ph = { {0x70C, 0x16}, {0x70C, 0x16}, {0x38, 0xFE}, {0x38, 0xFE}, {0x81c, 0x6}, {0x81c, 0x6}, {0x700, 0x80}, }; }; struct csiphy_settings_t csiphy_combo_mode_v5_0 = { struct csiphy_settings_t csiphy_combo_mode_v5_0 = { Loading drivers/media/platform/msm/camera_v2/sensor/csiphy/msm_csiphy.c +17 −7 Original line number Original line Diff line number Diff line /* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved. * * * This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -46,6 +46,7 @@ #define MSM_CSIPHY_DRV_NAME "msm_csiphy" #define MSM_CSIPHY_DRV_NAME "msm_csiphy" #define CLK_LANE_OFFSET 1 #define CLK_LANE_OFFSET 1 #define NUM_LANES_OFFSET 4 #define NUM_LANES_OFFSET 4 #define CLOCK_LANE 0x02 #define CSI_3PHASE_HW 1 #define CSI_3PHASE_HW 1 #define MAX_DPHY_DATA_LN 4 #define MAX_DPHY_DATA_LN 4 Loading Loading @@ -683,12 +684,21 @@ static int msm_csiphy_2phase_lane_config_v50( csiphybase + csiphy_dev->ctrl_reg-> csiphybase + csiphy_dev->ctrl_reg-> csiphy_3ph_reg. csiphy_3ph_reg. mipi_csiphy_2ph_lnn_ctrl15.addr + offset); mipi_csiphy_2ph_lnn_ctrl15.addr + offset); if (mask == CLOCK_LANE) msm_camera_io_w(csiphy_dev->ctrl_reg-> csiphy_3ph_reg. mipi_csiphy_2ph_lnck_ctrl0.data, csiphybase + csiphy_dev->ctrl_reg-> csiphy_3ph_reg. mipi_csiphy_2ph_lnck_ctrl0.addr); else msm_camera_io_w(csiphy_dev->ctrl_reg-> msm_camera_io_w(csiphy_dev->ctrl_reg-> csiphy_3ph_reg. csiphy_3ph_reg. mipi_csiphy_2ph_lnn_ctrl0.data, mipi_csiphy_2ph_lnn_ctrl0.data, csiphybase + csiphy_dev->ctrl_reg-> csiphybase + csiphy_dev->ctrl_reg-> csiphy_3ph_reg. csiphy_3ph_reg. mipi_csiphy_2ph_lnn_ctrl0.addr + offset); mipi_csiphy_2ph_lnn_ctrl0.addr + offset); msm_camera_io_w(csiphy_dev->ctrl_reg-> msm_camera_io_w(csiphy_dev->ctrl_reg-> csiphy_3ph_reg. csiphy_3ph_reg. mipi_csiphy_2ph_lnn_cfg1.data, mipi_csiphy_2ph_lnn_cfg1.data, Loading drivers/media/platform/msm/camera_v2/sensor/csiphy/msm_csiphy.h +2 −1 Original line number Original line Diff line number Diff line /* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved. * * * This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -141,6 +141,7 @@ struct csiphy_reg_3ph_parms_t { struct csiphy_reg_t mipi_csiphy_2ph_lnck_ctrl3; struct csiphy_reg_t mipi_csiphy_2ph_lnck_ctrl3; struct csiphy_reg_t mipi_csiphy_2ph_lnn_ctrl14; struct csiphy_reg_t mipi_csiphy_2ph_lnn_ctrl14; struct csiphy_reg_t mipi_csiphy_3ph_cmn_ctrl7_cphy; struct csiphy_reg_t mipi_csiphy_3ph_cmn_ctrl7_cphy; struct csiphy_reg_t mipi_csiphy_2ph_lnck_ctrl0; }; }; struct csiphy_ctrl_t { struct csiphy_ctrl_t { Loading Loading
drivers/media/platform/msm/camera_v2/sensor/csiphy/include/msm_csiphy_5_0_1_hwreg.h +2 −1 Original line number Original line Diff line number Diff line /* Copyright (c) 2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. * * * This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -99,6 +99,7 @@ struct csiphy_reg_3ph_parms_t csiphy_v5_0_1_3ph = { {0x70C, 0xA5}, {0x70C, 0xA5}, {0x38, 0xFE}, {0x38, 0xFE}, {0x81c, 0x2}, {0x81c, 0x2}, {0x700, 0x80}, }; }; struct csiphy_settings_t csiphy_combo_mode_v5_0_1 = { struct csiphy_settings_t csiphy_combo_mode_v5_0_1 = { Loading
drivers/media/platform/msm/camera_v2/sensor/csiphy/include/msm_csiphy_5_0_hwreg.h +2 −1 Original line number Original line Diff line number Diff line /* Copyright (c) 2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. * * * This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -100,6 +100,7 @@ struct csiphy_reg_3ph_parms_t csiphy_v5_0_3ph = { {0x70C, 0x16}, {0x70C, 0x16}, {0x38, 0xFE}, {0x38, 0xFE}, {0x81c, 0x6}, {0x81c, 0x6}, {0x700, 0x80}, }; }; struct csiphy_settings_t csiphy_combo_mode_v5_0 = { struct csiphy_settings_t csiphy_combo_mode_v5_0 = { Loading
drivers/media/platform/msm/camera_v2/sensor/csiphy/msm_csiphy.c +17 −7 Original line number Original line Diff line number Diff line /* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved. * * * This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -46,6 +46,7 @@ #define MSM_CSIPHY_DRV_NAME "msm_csiphy" #define MSM_CSIPHY_DRV_NAME "msm_csiphy" #define CLK_LANE_OFFSET 1 #define CLK_LANE_OFFSET 1 #define NUM_LANES_OFFSET 4 #define NUM_LANES_OFFSET 4 #define CLOCK_LANE 0x02 #define CSI_3PHASE_HW 1 #define CSI_3PHASE_HW 1 #define MAX_DPHY_DATA_LN 4 #define MAX_DPHY_DATA_LN 4 Loading Loading @@ -683,12 +684,21 @@ static int msm_csiphy_2phase_lane_config_v50( csiphybase + csiphy_dev->ctrl_reg-> csiphybase + csiphy_dev->ctrl_reg-> csiphy_3ph_reg. csiphy_3ph_reg. mipi_csiphy_2ph_lnn_ctrl15.addr + offset); mipi_csiphy_2ph_lnn_ctrl15.addr + offset); if (mask == CLOCK_LANE) msm_camera_io_w(csiphy_dev->ctrl_reg-> csiphy_3ph_reg. mipi_csiphy_2ph_lnck_ctrl0.data, csiphybase + csiphy_dev->ctrl_reg-> csiphy_3ph_reg. mipi_csiphy_2ph_lnck_ctrl0.addr); else msm_camera_io_w(csiphy_dev->ctrl_reg-> msm_camera_io_w(csiphy_dev->ctrl_reg-> csiphy_3ph_reg. csiphy_3ph_reg. mipi_csiphy_2ph_lnn_ctrl0.data, mipi_csiphy_2ph_lnn_ctrl0.data, csiphybase + csiphy_dev->ctrl_reg-> csiphybase + csiphy_dev->ctrl_reg-> csiphy_3ph_reg. csiphy_3ph_reg. mipi_csiphy_2ph_lnn_ctrl0.addr + offset); mipi_csiphy_2ph_lnn_ctrl0.addr + offset); msm_camera_io_w(csiphy_dev->ctrl_reg-> msm_camera_io_w(csiphy_dev->ctrl_reg-> csiphy_3ph_reg. csiphy_3ph_reg. mipi_csiphy_2ph_lnn_cfg1.data, mipi_csiphy_2ph_lnn_cfg1.data, Loading
drivers/media/platform/msm/camera_v2/sensor/csiphy/msm_csiphy.h +2 −1 Original line number Original line Diff line number Diff line /* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved. * * * This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -141,6 +141,7 @@ struct csiphy_reg_3ph_parms_t { struct csiphy_reg_t mipi_csiphy_2ph_lnck_ctrl3; struct csiphy_reg_t mipi_csiphy_2ph_lnck_ctrl3; struct csiphy_reg_t mipi_csiphy_2ph_lnn_ctrl14; struct csiphy_reg_t mipi_csiphy_2ph_lnn_ctrl14; struct csiphy_reg_t mipi_csiphy_3ph_cmn_ctrl7_cphy; struct csiphy_reg_t mipi_csiphy_3ph_cmn_ctrl7_cphy; struct csiphy_reg_t mipi_csiphy_2ph_lnck_ctrl0; }; }; struct csiphy_ctrl_t { struct csiphy_ctrl_t { Loading