media: i2c: maxim4c: MIPI VC count does not affected by data lane count

Change-Id: I56938bf429e6b64287aa47acd5c77823c108f18b
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
This commit is contained in:
Cody Xie
2023-10-12 15:24:15 +08:00
committed by Tao Huang
parent 42c10d6d16
commit 1d32cf5ad0
2 changed files with 6 additions and 17 deletions

View File

@@ -29,12 +29,13 @@
* V2.03.00
* 1. remote device add the maxim4c prefix to driver name.
*
* V2.04.03
* V2.04.04
* 1. Add regulator supplier dependencies.
* 2. Add config ssc-ratio property
* 3. Add debugfs entry to change MIPI timing
* 4. Use PM runtime autosuspend feature
* 5. Fix unbalanced disabling for PoC regulator
* 6. MIPI VC count does not affected by data lane count
*
*/
#include <linux/clk.h>
@@ -65,7 +66,7 @@
#include "maxim4c_api.h"
#define DRIVER_VERSION KERNEL_VERSION(2, 0x04, 0x03)
#define DRIVER_VERSION KERNEL_VERSION(2, 0x04, 0x04)
#define MAXIM4C_XVCLK_FREQ 25000000

View File

@@ -786,21 +786,9 @@ static int maxim4c_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad,
val |= V4L2_MBUS_CSI2_CONTINUOUS_CLOCK;
val |= (1 << (data_lanes - 1));
switch (data_lanes) {
case 4:
val |= V4L2_MBUS_CSI2_CHANNEL_3;
fallthrough;
case 3:
val |= V4L2_MBUS_CSI2_CHANNEL_2;
fallthrough;
case 2:
val |= V4L2_MBUS_CSI2_CHANNEL_1;
fallthrough;
case 1:
default:
val |= V4L2_MBUS_CSI2_CHANNEL_0;
break;
}
val |= V4L2_MBUS_CSI2_CHANNEL_3 | V4L2_MBUS_CSI2_CHANNEL_2 |
V4L2_MBUS_CSI2_CHANNEL_1 | V4L2_MBUS_CSI2_CHANNEL_0;
config->type = V4L2_MBUS_CSI2_DPHY;
config->flags = val;