[Freedreno] [PATCH v2 04/13] drm/bridge: lt9611: fix programming of video modes
Neil Armstrong
neil.armstrong at linaro.org
Thu Jan 12 09:27:05 UTC 2023
On 08/01/2023 17:56, Dmitry Baryshkov wrote:
> Program the upper part of the hfront_porch into the proper register.
>
> Fixes: 23278bf54afe ("drm/bridge: Introduce LT9611 DSI to HDMI bridge")
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
> ---
> drivers/gpu/drm/bridge/lontium-lt9611.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/bridge/lontium-lt9611.c b/drivers/gpu/drm/bridge/lontium-lt9611.c
> index deb503ca956a..f377052a45a4 100644
> --- a/drivers/gpu/drm/bridge/lontium-lt9611.c
> +++ b/drivers/gpu/drm/bridge/lontium-lt9611.c
> @@ -187,7 +187,8 @@ static void lt9611_mipi_video_setup(struct lt9611 *lt9611,
>
> regmap_write(lt9611->regmap, 0x8319, (u8)(hfront_porch % 256));
>
> - regmap_write(lt9611->regmap, 0x831a, (u8)(hsync_porch / 256));
> + regmap_write(lt9611->regmap, 0x831a, (u8)(hsync_porch / 256) |
> + ((hfront_porch / 256) << 4));
> regmap_write(lt9611->regmap, 0x831b, (u8)(hsync_porch % 256));
> }
>
Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>
More information about the Freedreno
mailing list