]> git.baikalelectronics.ru Git - uboot.git/commit
video: cfb_console: fix 32-bit display on 64-bit architectures
authorAndre Przywara <andre.przywara@arm.com>
Mon, 6 Mar 2017 01:13:38 +0000 (01:13 +0000)
committerAnatolij Gustschin <agust@denx.de>
Tue, 7 Mar 2017 20:18:23 +0000 (21:18 +0100)
commit91b3091c599053f07dbd9841bd5b5f2010c23a25
tree9b6a2e2c41744d19a5e36ea8b4b6a06e5a7f783e
parent34ae57eaff318064654287fb01685f68c2052ea2
video: cfb_console: fix 32-bit display on 64-bit architectures

"unsigned long" is a lousy data type when it comes to match peripheral
hardware registers with a fixed size.
Just do the obvious and match a 32-bit display format with an "u32"
data type for casting.
This fixes the logo display on 64-bit architectures, which produced
a black line on the right side of the logo with non-black backgrounds.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/video/cfb_console.c