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)
committerYork Sun <yorksun@freescale.com>
Mon, 4 May 2015 16:25:06 +0000 (09:25 -0700)
commit1a56fcea9f47ce9184f4dafd3e856de2d85d47cd
tree29e6e1e5e306b9d8563c80eb146d2803098ed47c
parent438031e1bc0a733f9494f2cb954725cd79543e1e
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