OSDN Git Service

drm: simple_kms_helper: Add mode_valid() callback support
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Feb 2018 07:28:59 +0000 (08:28 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Feb 2018 07:42:17 +0000 (08:42 +0100)
commit40275dc4edb49d7ed543eb847f618dc12e5a024c
treeafecf3102f03967ce4c4166fe6b16a2b33deb22a
parent1aecabb5b2d1dc1a821cdecda607eb70a8dd5124
drm: simple_kms_helper: Add mode_valid() callback support

The PL111 needs to filter valid modes based on memory bandwidth.
I guess it is a pretty simple operation, so we can still claim
the DRM KMS helper pipeline is simple after adding this (optional)
vtable callback.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180220072859.3386-1-linus.walleij@linaro.org
drivers/gpu/drm/drm_simple_kms_helper.c
include/drm/drm_simple_kms_helper.h