sunxi: video: Add support for video-mode environment variable
authorHans de Goede <hdegoede@redhat.com>
Fri, 19 Dec 2014 13:03:40 +0000 (14:03 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 14 Jan 2015 13:56:38 +0000 (14:56 +0100)
commit5f33993b7e9a3a3bfc6887780d4101e684b11359
treec5653bf631e77aad1b04d9f4f51a8c6215e4a48b
parentbe8ec6330627c8413e5bd15ccf6c32a98677e704
sunxi: video: Add support for video-mode environment variable

Add support for the standard video-mode environment variable using the
videomodes.c video_get_ctfb_res_modes() helper function.

This will allow users to specify the resolution e.g. :

setenv video-mode sunxi:video-mode=1280x1024-24@60
saveenv

Also make the reserved fb mem slightly larger to allow 1920x1200 to work.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Acked-by: Anatolij Gustschin <agust@denx.de>
drivers/video/sunxi_display.c
include/configs/sunxi-common.h