Stephen Warren 6d3307195d lcd: calculate line_length after lcd_ctrl_init()
When an LCD driver is actually driving a regular external display, e.g.
an HDMI monitor, the display resolution might not be known until the
display controller has initialized, i.e. during lcd_ctrl_init(). However,
lcd.c calculates lcd_line_length before calling this function, thus
relying on a hard-coded resolution in struct panel_info.

Instead, defer this calculation until after lcd_ctrl_init() has had the
chance to dynamically determine the resolution. This needs to happen
before lcd_clear(), since the value is used there.

grep indicates that no code outside lcd.c uses this lcd_line_length; in
particular, no lcd_ctrl_init() implementations read it.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Anatolij Gustschin <agust@denx.de>
2013-03-20 15:29:39 +01:00
..
2013-03-15 16:14:00 -04:00
2013-03-15 16:14:00 -04:00
2012-11-04 11:00:35 -07:00
2012-10-03 16:01:22 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2011-10-22 01:22:21 +02:00
2012-11-04 11:00:35 -07:00
2013-02-20 08:52:29 -05:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:34 -07:00
2012-11-04 11:00:34 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:34 -07:00
2012-12-11 13:17:33 -07:00
2013-02-20 08:52:41 -05:00
2013-03-12 23:28:40 +01:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2011-04-08 00:44:27 -04:00
2011-07-28 16:41:06 +02:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2013-03-12 12:43:31 -04:00
2012-11-04 11:00:35 -07:00
2012-09-27 12:22:11 -05:00
2012-12-19 15:51:57 -07:00
2013-01-08 10:54:33 +09:00
2012-11-04 11:00:35 -07:00
2012-11-04 11:00:35 -07:00
2012-12-11 13:18:13 -07:00
2012-08-09 23:39:18 +02:00
2012-12-13 11:46:56 -07:00
2012-12-11 13:17:34 -07:00
2011-12-07 08:41:22 +01:00
2011-02-02 22:36:10 +01:00
2010-01-18 00:23:00 +01:00
2011-10-22 01:13:35 +02:00
2012-11-04 11:00:36 -07:00
2012-11-04 11:00:35 -07:00