Lines Matching refs:lanes
113 * 2. Configure MIPI Camera Sensor to put all Tx lanes in LP-11 state.
121 * clock lanes of the D-PHY are in LP-11 state.
145 static void csi2_set_lanes(struct csi2_dev *csi2, unsigned int lanes)
147 writel(lanes - 1, csi2->base + CSI2_N_LANES);
254 /* Waits for low-power LP-11 state on data and clock lanes. */
255 static void csi2_dphy_wait_stopstate(struct csi2_dev *csi2, unsigned int lanes)
260 mask = PHY_STOPSTATECLK | (((1 << lanes) - 1) << PHY_STOPSTATEDATA_BIT);
304 static int csi2_get_active_lanes(struct csi2_dev *csi2, unsigned int *lanes)
309 *lanes = csi2->data_lanes;
331 "Unsupported mbus config: too many data lanes %u\n",
336 *lanes = mbus_config.bus.mipi_csi2.num_data_lanes;
343 unsigned int lanes;
358 ret = csi2_get_active_lanes(csi2, &lanes);
363 csi2_set_lanes(csi2, lanes);
371 csi2_dphy_wait_stopstate(csi2, lanes);
696 dev_dbg(csi2->dev, "data lanes: %d\n", vep.bus.mipi_csi2.num_data_lanes);