Skip to content

Commit 6dd1de1

Browse files
Philippe Schenkersuperna9999
authored andcommitted
drm/bridge: lt8912b: set hdmi or dvi mode
The Lontium LT8912 does have a setting for DVI or HDMI. This patch reads from EDID what the display needs and sets it accordingly. Fixes: 30e2ae9 ("drm/bridge: Introduce LT8912B DSI to HDMI bridge") Signed-off-by: Philippe Schenker <[email protected]> Acked-by: Adrien Grassein <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent da73a94 commit 6dd1de1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/bridge/lontium-lt8912b.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ static int lt8912_video_setup(struct lt8912 *lt)
323323
vsync_activehigh ? BIT(0) : 0);
324324
ret |= regmap_update_bits(lt->regmap[I2C_MAIN], 0xab, BIT(1),
325325
hsync_activehigh ? BIT(1) : 0);
326+
ret |= regmap_update_bits(lt->regmap[I2C_MAIN], 0xb2, BIT(0),
327+
lt->connector.display_info.is_hdmi ? BIT(0) : 0);
326328

327329
return ret;
328330
}

0 commit comments

Comments
 (0)