sunxi: video: Prepare for lcd support
authorHans de Goede <hdegoede@redhat.com>
Sun, 21 Dec 2014 13:49:34 +0000 (14:49 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 14 Jan 2015 13:56:39 +0000 (14:56 +0100)
commit0e045215578bc67fab00009ba4985bbdcd90de23
treec5abfe6507356a862db62db872ef7ab97d2f0f72
parent1c092205a251165950ce59118d253984e6386005
sunxi: video: Prepare for lcd support

Refactor sunxi_mode_set into a bunch of helpers, and make it do a switch
case on sunxi_display.monitor to decide what to do.

Also rename sunxi_lcdc_mode_set to sunxi_lcdc_tcon1_mode_set, as it sets the
timings for tcon1, and for lcd support we need a similar function operating
on tcon0.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/video/sunxi_display.c