Lines Matching refs:sensor
453 v4l2_warn(sd, "No link between dphy and sensor\n");
487 static void csi2_dphy_config_dual_mode(struct csi2_dphy *dphy, struct csi2_sensor *sensor)
505 write_grf_reg(hw, GRF_DPHY_CSI2PHY_DATALANE_EN, GENMASK(sensor->lanes - 1, 0));
513 write_grf_reg(hw, GRF_DPHY_CSI2PHY_DATALANE_EN, GENMASK(sensor->lanes - 1, 0));
526 write_grf_reg(hw, GRF_DPHY_CSI2PHY_DATALANE_EN0, GENMASK(sensor->lanes - 1, 0));
541 write_grf_reg(hw, GRF_DPHY_CSI2PHY_DATALANE_EN1, GENMASK(sensor->lanes - 1, 0));
558 write_grf_reg(hw, GRF_DPHY_CSI2PHY_DATALANE_EN0, GENMASK(sensor->lanes - 1, 0));
564 write_grf_reg(hw, GRF_DPHY_CSI2PHY_DATALANE_EN1, GENMASK(sensor->lanes - 1, 0));
576 struct csi2_sensor *sensor = sd_to_sensor(dphy, sensor_sd);
594 val |= (GENMASK(sensor->lanes - 1, 0) << CSI2_DPHY_CTRL_DATALANE_ENABLE_OFFSET_BIT) |
602 val |= (GENMASK(sensor->lanes - 1, 0) << CSI2_DPHY_CTRL_DATALANE_ENABLE_OFFSET_BIT);
606 val |= (GENMASK(sensor->lanes - 1, 0) << CSI2_DPHY_CTRL_DATALANE_SPLIT_LANE2_3_OFFSET_BIT);
613 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) {
625 csi2_dphy_config_dual_mode(dphy, sensor);
635 if (sensor->lanes > 0x00) {
638 if (sensor->lanes > 0x01) {
641 if (sensor->lanes > 0x02) {
644 if (sensor->lanes > 0x03) {
650 if (sensor->lanes > 0x00) {
653 if (sensor->lanes > 0x01) {
660 if (sensor->lanes > 0x00) {
663 if (sensor->lanes > 0x01) {
687 if (sensor->lanes > 0x00) {
690 if (sensor->lanes > 0x01) {
693 if (sensor->lanes > 0x02) {
696 if (sensor->lanes > 0x03) {
759 struct csi2_sensor *sensor = sd_to_sensor(dphy, sensor_sd);
767 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) {
771 } else if (sensor->mbus.type == V4L2_MBUS_CSI2_CPHY) {
778 if (sensor->mbus.type == V4L2_MBUS_CSI2_CPHY) {
787 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) {
809 if (sensor->lanes > 0x00) {
813 if (sensor->lanes > 0x01) {
817 if (sensor->lanes > 0x02) {
821 if (sensor->lanes > 0x03) {
826 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) {
830 if (sensor->lanes > 0x00) {
833 if (sensor->lanes > 0x01) {
836 if (sensor->lanes > 0x02) {
839 if (sensor->lanes > 0x03) {
844 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) {
851 if (sensor->lanes > 0) {
856 if (sensor->lanes > 1) {
861 if (sensor->lanes > 0x02) {
866 if (sensor->lanes > 0x03) {
893 struct csi2_sensor *sensor = sd_to_sensor(dphy, sensor_sd);
900 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) {
903 if (sensor->lanes > 0x00) {
906 if (sensor->lanes > 0x01) {
909 if (sensor->lanes > 0x02) {
912 if (sensor->lanes > 0x03) {