]> git.baikalelectronics.ru Git - kernel.git/commit
sun4i/drm: engine: Add mode_set callback
authorJernej Skrabec <jernej.skrabec@gmail.com>
Sun, 24 Apr 2022 16:26:24 +0000 (11:26 -0500)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 26 Apr 2022 12:24:16 +0000 (14:24 +0200)
commita9df027b0f4910438ff8532b436e0fb58030a02b
tree83831a3dde06486e14a0efb651c2bbd8ba103d23
parent66a8f9dc20572a8d7eb3e2fc81f7b4d75930e7dc
sun4i/drm: engine: Add mode_set callback

This optional callback is useful for setting properties which depends
only on current mode. Such properties are width, height and interlaced
output.

These properties are currently set in update layer callback for primary
plane which is less than ideal. More about that in follow up patches,
which will migrate that code to this newly defined callback.

Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220424162633.12369-7-samuel@sholland.org
drivers/gpu/drm/sun4i/sun4i_crtc.c
drivers/gpu/drm/sun4i/sunxi_engine.h