]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel/panel-sitronix-st7701: Infer horizontal pixel count from TFT mode
authorMarek Vasut <marex@denx.de>
Sun, 10 Jul 2022 19:44:35 +0000 (21:44 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 19 Jul 2022 08:39:00 +0000 (10:39 +0200)
commit799121f74cc4a0a9b2adfad08f694eb2054e8624
tree3007dc5af1ccadbd74733dc17867919595af0ab3
parent2c80285ed595cbdefb0c37afaa5336108f2a77ce
drm/panel/panel-sitronix-st7701: Infer horizontal pixel count from TFT mode

The horizontal pixel 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 horizontal pixel 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-7-marex@denx.de
drivers/gpu/drm/panel/panel-sitronix-st7701.c