summaryrefslogtreecommitdiff
path: root/board/freescale/mx7dsabresd/plugin.S
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2016-01-29 10:06:34 +0800
committerguoyin.chen <guoyin.chen@freescale.com>2016-03-04 15:53:40 +0800
commitacbda20bc8466f9262dfacccf43c39495fd467e1 (patch)
tree6b96db4575b8861279ad04a38f4582e80948a395 /board/freescale/mx7dsabresd/plugin.S
parent99859095c1e466f35dc9a121ab4b0fbb78b2f454 (diff)
downloadu-boot-imx-acbda20bc8466f9262dfacccf43c39495fd467e1.zip
u-boot-imx-acbda20bc8466f9262dfacccf43c39495fd467e1.tar.gz
u-boot-imx-acbda20bc8466f9262dfacccf43c39495fd467e1.tar.bz2
MLK-12346 imx: mx7d: switch to use DRAM_PLL, but not DRAM_ALT_CLK_ROOT
To simplify kernel clock management, we switch to use DRAM_PLL for DRAM controller and DDR PHY, but not use DRAM_ALT_CLK_ROOT. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board/freescale/mx7dsabresd/plugin.S')
-rw-r--r--board/freescale/mx7dsabresd/plugin.S27
1 files changed, 21 insertions, 6 deletions
diff --git a/board/freescale/mx7dsabresd/plugin.S b/board/freescale/mx7dsabresd/plugin.S
index 796716f..5c4bc86 100644
--- a/board/freescale/mx7dsabresd/plugin.S
+++ b/board/freescale/mx7dsabresd/plugin.S
@@ -45,13 +45,28 @@ TUNE_END:
bne FREQ_DEFAULT_533
/* Change to 400Mhz for TO1.1 */
+ ldr r0, =ANATOP_BASE_ADDR
+ ldr r1, =0x70
+ ldr r2, =0x00703021
+ str r2, [r0, r1]
+ ldr r1, =0x90
+ ldr r2, =0x0
+ str r2, [r0, r1]
+ ldr r1, =0x70
+ ldr r2, =0x00603021
+ str r2, [r0, r1]
+
+ ldr r3, =0x80000000
+wait_lock:
+ ldr r2, [r0, r1]
+ and r2, r3
+ cmp r2, r3
+ bne wait_lock
+
ldr r0, =CCM_BASE_ADDR
- ldr r1, =0x15000000
- ldr r2, =0xa080
- str r1, [r0, r2]
- ldr r1, =0x01000000
- ldr r2, =0x9880
- str r1, [r0, r2]
+ ldr r1, =0x9880
+ ldr r2, =0x1
+ str r2, [r0, r1]
FREQ_DEFAULT_533:
.endm