]> git.sur5r.net Git - u-boot/commit
video: bcm2835: respect the pitch value
authorAndre Heider <a.heider@gmail.com>
Sat, 9 Nov 2013 10:07:53 +0000 (11:07 +0100)
committerAnatolij Gustschin <agust@denx.de>
Tue, 12 Nov 2013 08:35:40 +0000 (09:35 +0100)
commit44376eff256da60625f99c1f3559c290f148fc1c
tree098876d78f7828f70d2bafa16e45c9df0284f232
parentcefa47171276509fee89d8084da15409285e481b
video: bcm2835: respect the pitch value

Depending on the firmware's video options [1] the active SDTV or
HDTV mode can yield a framebuffer with noncontiguous horizontal lines,
giving a messed up display, for both, u-boot and the loaded kernel.

Fix this by setting lcd_line_length to the pitch value of the configured
framebuffer.

[1] http://elinux.org/RPiconfig#Video_mode_options

Signed-off-by: Andre Heider <a.heider@gmail.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
drivers/video/bcm2835.c