Message ID | 20230330095941.428122-6-francesco@dolcini.it (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/bridge: tc358768: Improve parallel RGB input configuration | expand |
diff --git a/drivers/gpu/drm/bridge/tc358768.c b/drivers/gpu/drm/bridge/tc358768.c index f4499ae7bee6..4462264274af 100644 --- a/drivers/gpu/drm/bridge/tc358768.c +++ b/drivers/gpu/drm/bridge/tc358768.c @@ -854,6 +854,11 @@ static void tc358768_bridge_pre_enable(struct drm_bridge *bridge) if (mode->flags & DRM_MODE_FLAG_PHSYNC) tc358768_update_bits(priv, TC358768_PP_MISC, BIT(0), BIT(0)); + /* PDataF: Parallel Data Format */ + val = 0; + of_property_read_u32(bridge->of_node, "toshiba,input-rgb-mode", &val); + tc358768_update_bits(priv, TC358768_CONFCTL, BIT(8) | BIT(9), val << 8); + /* Start DSI Tx */ tc358768_write(priv, TC358768_DSI_START, 0x1);