|
@@ -469,10 +469,10 @@ static int fimc_md_parse_port_node(struct fimc_md *fmd,
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
v4l2_of_parse_endpoint(ep, &endpoint);
|
|
v4l2_of_parse_endpoint(ep, &endpoint);
|
|
- if (WARN_ON(endpoint.port == 0) || index >= FIMC_MAX_SENSORS)
|
|
|
|
|
|
+ if (WARN_ON(endpoint.base.port == 0) || index >= FIMC_MAX_SENSORS)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- pd->mux_id = (endpoint.port - 1) & 0x1;
|
|
|
|
|
|
+ pd->mux_id = (endpoint.base.port - 1) & 0x1;
|
|
|
|
|
|
rem = of_graph_get_remote_port_parent(ep);
|
|
rem = of_graph_get_remote_port_parent(ep);
|
|
of_node_put(ep);
|
|
of_node_put(ep);
|
|
@@ -494,13 +494,13 @@ static int fimc_md_parse_port_node(struct fimc_md *fmd,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
- if (fimc_input_is_parallel(endpoint.port)) {
|
|
|
|
|
|
+ if (fimc_input_is_parallel(endpoint.base.port)) {
|
|
if (endpoint.bus_type == V4L2_MBUS_PARALLEL)
|
|
if (endpoint.bus_type == V4L2_MBUS_PARALLEL)
|
|
pd->sensor_bus_type = FIMC_BUS_TYPE_ITU_601;
|
|
pd->sensor_bus_type = FIMC_BUS_TYPE_ITU_601;
|
|
else
|
|
else
|
|
pd->sensor_bus_type = FIMC_BUS_TYPE_ITU_656;
|
|
pd->sensor_bus_type = FIMC_BUS_TYPE_ITU_656;
|
|
pd->flags = endpoint.bus.parallel.flags;
|
|
pd->flags = endpoint.bus.parallel.flags;
|
|
- } else if (fimc_input_is_mipi_csi(endpoint.port)) {
|
|
|
|
|
|
+ } else if (fimc_input_is_mipi_csi(endpoint.base.port)) {
|
|
/*
|
|
/*
|
|
* MIPI CSI-2: only input mux selection and
|
|
* MIPI CSI-2: only input mux selection and
|
|
* the sensor's clock frequency is needed.
|
|
* the sensor's clock frequency is needed.
|
|
@@ -508,7 +508,7 @@ static int fimc_md_parse_port_node(struct fimc_md *fmd,
|
|
pd->sensor_bus_type = FIMC_BUS_TYPE_MIPI_CSI2;
|
|
pd->sensor_bus_type = FIMC_BUS_TYPE_MIPI_CSI2;
|
|
} else {
|
|
} else {
|
|
v4l2_err(&fmd->v4l2_dev, "Wrong port id (%u) at node %s\n",
|
|
v4l2_err(&fmd->v4l2_dev, "Wrong port id (%u) at node %s\n",
|
|
- endpoint.port, rem->full_name);
|
|
|
|
|
|
+ endpoint.base.port, rem->full_name);
|
|
}
|
|
}
|
|
/*
|
|
/*
|
|
* For FIMC-IS handled sensors, that are placed under i2c-isp device
|
|
* For FIMC-IS handled sensors, that are placed under i2c-isp device
|