.. | .. |
---|
437 | 437 | } else { |
---|
438 | 438 | s->output_if |= dp->id ? VOP_OUTPUT_IF_eDP1 : VOP_OUTPUT_IF_eDP0; |
---|
439 | 439 | } |
---|
| 440 | + |
---|
| 441 | + if (dp->plat_data.dual_connector_split) { |
---|
| 442 | + s->output_flags |= ROCKCHIP_OUTPUT_DUAL_CONNECTOR_SPLIT_MODE; |
---|
| 443 | + |
---|
| 444 | + if (dp->plat_data.left_display) |
---|
| 445 | + s->output_if_left_panel |= dp->id ? |
---|
| 446 | + VOP_OUTPUT_IF_eDP1 : |
---|
| 447 | + VOP_OUTPUT_IF_eDP0; |
---|
| 448 | + } |
---|
| 449 | + |
---|
440 | 450 | s->output_bpc = di->bpc; |
---|
441 | 451 | s->bus_flags = di->bus_flags; |
---|
442 | 452 | s->tv_state = &conn_state->tv; |
---|
.. | .. |
---|
678 | 688 | device_property_read_u32(dev, "min-refresh-rate", &dp->min_refresh_rate); |
---|
679 | 689 | device_property_read_u32(dev, "max-refresh-rate", &dp->max_refresh_rate); |
---|
680 | 690 | |
---|
| 691 | + if (dp->data->split_mode && device_property_read_bool(dev, "dual-connector-split")) { |
---|
| 692 | + dp->plat_data.dual_connector_split = true; |
---|
| 693 | + if (device_property_read_bool(dev, "left-display")) |
---|
| 694 | + dp->plat_data.left_display = true; |
---|
| 695 | + } |
---|
| 696 | + |
---|
681 | 697 | ret = component_add(dev, &rockchip_dp_component_ops); |
---|
682 | 698 | if (ret) |
---|
683 | 699 | goto err_dp_remove; |
---|