]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
fsl/deepsleep: avoid the DDR restore from being optimized out
authorTang Yuantian <Yuantian.Tang@freescale.com>
Mon, 20 Apr 2015 03:16:56 +0000 (11:16 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:35:23 +0000 (22:35 +0200)
commit0dcb321effb70edafb5a92e770f1a508a1302f5b
treea96cb5db89ac29085c1ae6bf13b38a6eec65e036
parent940bd1d4d37166af8e3d7307195e5c46445009fe
fsl/deepsleep: avoid the DDR restore from being optimized out

Function dp_ddr_restore is to restore the first 128-byte space
of DDR. However those codes may be optimized out by compiler
since the destination address is at 0x0. In order to avoid
compiler optimization, we restore the space from high address,
which is not at 0x0, to low address.

Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
board/freescale/common/mpc85xx_sleep.c