From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeroen Hofstee Date: Fri, 24 May 2013 20:41:31 +0200 Subject: [U-Boot] [PATCH] drivers:lcd: fix unaligned access on lcd In-Reply-To: <1369381565-13946-1-git-send-email-p.wilczek@samsung.com> References: <1369381565-13946-1-git-send-email-p.wilczek@samsung.com> Message-ID: <519FB45B.1080707@myspectrum.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Signed-off-by: Kyungmin Park > CC: Minkyu Kang > CC: Anatolij Gustschin > --- > 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