[U-Boot] [PATCH] drivers:lcd: fix unaligned access on lcd

Jeroen Hofstee jeroen at myspectrum.nl
Fri May 24 20:41:31 CEST 2013


Hello Piotr,

On 05/24/2013 09:46 AM, Piotr Wilczek wrote:
> This patch replace 'le32_to_cpu' function with 'get_unaligend_le32' to
> avoid unaligned access exception on some ARM platforms (ex Trats2).
>
> Signed-off-by: Piotr Wilczek <p.wilczek at samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
> CC: Minkyu Kang <mk7.kang at samsung.com>
> CC: Anatolij Gustschin <agust at denx.de>
> ---
>   common/lcd.c |   12 +++++++-----
>   1 file changed, 7 insertions(+), 5 deletions(-)
>
> ntf("Error: only support 16 bpix");
If you use an aligned address + 2 as the BMP location, the aligned
accesses should work. If you have user input (which I doubt) you
can set CONFIG_SPLASHIMAGE_GUARD (see README).

The cm_t35 LCD thread has more info if you are interested.

Regards,
Jeroen




More information about the U-Boot mailing list