gpu/drm: ingenic: Check for display size in CRTC atomic check
authorPaul Cercueil <paul@crapouillou.net>
Tue, 10 Dec 2019 14:41:41 +0000 (15:41 +0100)
committerPaul Cercueil <paul@crapouillou.net>
Sat, 14 Dec 2019 18:26:39 +0000 (19:26 +0100)
commita7c909b7c037fa687ffa734ba2ac8526f8e298f4
tree02ff19fab8b1ba401d41de0bed8d774cab353a04
parent96ea0ae692fe382dc7a5d66289d8fbd4a369614d
gpu/drm: ingenic: Check for display size in CRTC atomic check

Check that the requested display size isn't above the limits supported
by the CRTC.

- JZ4750 and older support up to 800x600;
- JZ4755 supports up to 1024x576;
- JZ4760 and JZ4770 support up to 720p;
- JZ4780 supports up to 2k.

v2: No change

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20191210144142.33143-5-paul@crapouillou.net
# *** extracted tags ***
Acked-by: Sam Ravnborg <sam@ravnborg.org>
drivers/gpu/drm/ingenic/ingenic-drm.c