diff options
author | Robin Gong <yibin.gong@nxp.com> | 2016-02-03 16:54:38 +0800 |
---|---|---|
committer | guoyin.chen <guoyin.chen@freescale.com> | 2016-03-04 15:35:56 +0800 |
commit | 62248ef80dabbd7601ff4e2969368d7bf54896d9 (patch) | |
tree | c670934734a90b60a9bee452a8c372adc966424b /board/freescale/mx7dsabresd | |
parent | 015a8f9e3e37633e1cedc856ddc220fd24f82eb8 (diff) | |
download | u-boot-imx-62248ef80dabbd7601ff4e2969368d7bf54896d9.zip u-boot-imx-62248ef80dabbd7601ff4e2969368d7bf54896d9.tar.gz u-boot-imx-62248ef80dabbd7601ff4e2969368d7bf54896d9.tar.bz2 |
MLK-12371-2: imx: mx7dsabresd: fix POR reset failed after DDR enter retention
Since DDR enter retention mode after kernel enter DSM mode, we have to exit DDR
retention mode before uboot boot, so add this in DCD and plugin code.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Diffstat (limited to 'board/freescale/mx7dsabresd')
-rw-r--r-- | board/freescale/mx7dsabresd/imximage.cfg | 3 | ||||
-rw-r--r-- | board/freescale/mx7dsabresd/imximage_TO_1_0.cfg | 3 | ||||
-rw-r--r-- | board/freescale/mx7dsabresd/plugin.S | 6 |
3 files changed, 12 insertions, 0 deletions
diff --git a/board/freescale/mx7dsabresd/imximage.cfg b/board/freescale/mx7dsabresd/imximage.cfg index db4c939..106c277 100644 --- a/board/freescale/mx7dsabresd/imximage.cfg +++ b/board/freescale/mx7dsabresd/imximage.cfg @@ -57,6 +57,9 @@ CHECK_BITS_SET 4 0x30360070 0x80000000 DATA 4 0x30389880 0x1 DATA 4 0x30340004 0x4F400005 +/* Clear then set bit30 to ensure exit from DDR retention */ +DATA 4 0x30360388 0x40000000 +DATA 4 0x30360384 0x40000000 DATA 4 0x30391000 0x00000002 DATA 4 0x307a0000 0x01040001 diff --git a/board/freescale/mx7dsabresd/imximage_TO_1_0.cfg b/board/freescale/mx7dsabresd/imximage_TO_1_0.cfg index 11f113a..588474f 100644 --- a/board/freescale/mx7dsabresd/imximage_TO_1_0.cfg +++ b/board/freescale/mx7dsabresd/imximage_TO_1_0.cfg @@ -51,6 +51,9 @@ CSF CONFIG_CSF_SIZE */ DATA 4 0x30340004 0x4F400005 +/* Clear then set bit30 to ensure exit from DDR retention */ +DATA 4 0x30360388 0x40000000 +DATA 4 0x30360384 0x40000000 DATA 4 0x30391000 0x00000002 DATA 4 0x307a0000 0x01040001 diff --git a/board/freescale/mx7dsabresd/plugin.S b/board/freescale/mx7dsabresd/plugin.S index 5c4bc86..2dce883 100644 --- a/board/freescale/mx7dsabresd/plugin.S +++ b/board/freescale/mx7dsabresd/plugin.S @@ -79,6 +79,12 @@ FREQ_DEFAULT_533: ldr r1, =0x4f400005 str r1, [r0, #0x4] + /* clear/set bit30 of SNVS_MISC_CTRL to ensure exit from ddr retention */ + ldr r0, =ANATOP_BASE_ADDR + ldr r1, =(0x1 << 30) + str r1, [r0, #0x388] + str r1, [r0, #0x384] + ldr r0, =SRC_BASE_ADDR ldr r1, =0x2 ldr r2, =0x1000 |