]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel/panel-sitronix-st7701: Infer vertical line count from TFT mode
authorMarek Vasut <marex@denx.de>
Sun, 10 Jul 2022 19:44:33 +0000 (21:44 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 19 Jul 2022 08:38:57 +0000 (10:38 +0200)
commitc9201019b00f64d75690aca9e2670f4c07b120c8
treeb43e6b3a1bfeffa8fefb0b65fcaa9d55e3b25876
parent2be44c3185f3f8f4f18dc01d21e2d6b3100f9901
drm/panel/panel-sitronix-st7701: Infer vertical line count from TFT mode

The vertical line count is a property of the TFT matrix. Currently the
driver hard-codes content of this register to specific value which is
only compatible with one TFT matrix, likely the TS8550B one.

Calculate the vertical line count from the mode instead.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Guido Günther <agx@sigxcpu.org>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220710194437.289042-5-marex@denx.de
drivers/gpu/drm/panel/panel-sitronix-st7701.c