drm/panel: innolux-ej030na and abt-y030xx067a: add .enable and .disable
authorChristophe Branchereau <cbranchereau@gmail.com>
Mon, 21 Mar 2022 13:36:51 +0000 (14:36 +0100)
committerPaul Cercueil <paul@crapouillou.net>
Tue, 5 Apr 2022 20:41:36 +0000 (21:41 +0100)
commita271bf324150846a253f5cf5406faf600bf64b0c
tree3164c22616c532d9ac24144cf43cbdab5baee000
parent49956b505c53923723370a8960ae8fcd9e2b2116
drm/panel: innolux-ej030na and abt-y030xx067a: add .enable and .disable

Following the introduction of bridge_atomic_enable in the ingenic
drm driver, the crtc is enabled between .prepare and .enable, if
it exists. Add it so the backlight is only enabled after the crtc is, to
avoid graphical issues.

As we're moving the "sleep out" command out of the init sequence
into .enable for the ABT, we need to switch the regmap cache
to REGCACHE_FLAT to be able to use regmap_set_bits, given this
panel registers are write-ony and read as 0.

Signed-off-by: Christophe Branchereau <cbranchereau@gmail.com>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
[pcercuei: Remove empty line after opening brace]
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220321133651.291592-4-cbranchereau@gmail.com
drivers/gpu/drm/panel/panel-abt-y030xx067a.c
drivers/gpu/drm/panel/panel-innolux-ej030na.c