summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2017-03-28 16:52:12 +0800
committerYe Li <ye.li@nxp.com>2017-06-12 03:19:08 -0500
commitdb3ece42971246ce078fb135509f1f33dfd00f2d (patch)
treece9dcb075eb24af3c040d22495ddb3da5cd9a325 /board
parent0750492425879ceb463314a2e2378bee794e9a62 (diff)
downloadu-boot-imx-db3ece42971246ce078fb135509f1f33dfd00f2d.zip
u-boot-imx-db3ece42971246ce078fb135509f1f33dfd00f2d.tar.gz
u-boot-imx-db3ece42971246ce078fb135509f1f33dfd00f2d.tar.bz2
MLK-14533 mx7ulp_evk: Change APLL and its PFD0 frequencies
To support HDMI display on EVK board, the LCDIF pix clock must be 25.2Mhz. Since the its PCC divider range is from 1-8, the max rate of LCDIF PCC source clock is 201.6Mhz. This limits the source clock must from NIC1 bus clock or NIC1 clock, other sources from APLL PFDs are higher than this max rate. The NIC1 bus clock and NIC1 clock are from DDRCLK whose parent source is APLL PFD0, so we must change the APLL PFD0 and have impact to DDRCLK, NIC1 and NIC1 bus. Eventually, this requests to set the APLL PFD0 frequency to 302.4Mhz (25.2 * 12), with settings: PFD0 FRAC: 32 APLL MULT: 22 APLL NUM: 2 APLL DENOM: 5 Signed-off-by: Ye Li <ye.li@nxp.com> Tested-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit 91be2789a93288cc087cd9e8db522c8308ef007c) (cherry picked from commit 40fd4ea8d86142a7182d13a99db4f2b4d1b55d35)
Diffstat (limited to 'board')
-rw-r--r--board/freescale/mx7ulp_evk/imximage.cfg8
-rw-r--r--board/freescale/mx7ulp_evk/plugin.S20
2 files changed, 26 insertions, 2 deletions
diff --git a/board/freescale/mx7ulp_evk/imximage.cfg b/board/freescale/mx7ulp_evk/imximage.cfg
index 36df804..a5c8c4e 100644
--- a/board/freescale/mx7ulp_evk/imximage.cfg
+++ b/board/freescale/mx7ulp_evk/imximage.cfg
@@ -44,8 +44,14 @@ CSF CONFIG_CSF_SIZE
*/
DATA 4 0x403f00dc 0x00000000
DATA 4 0x403e0040 0x01000020
+DATA 4 0x403e0500 0x01000000
DATA 4 0x403e050c 0x80808080
-DATA 4 0x403e050c 0x8080801E
+DATA 4 0x403e0508 0x00160000
+DATA 4 0x403E0510 0x00000002
+DATA 4 0x403E0514 0x00000005
+DATA 4 0x403e0500 0x00000001
+CHECK_BITS_SET 4 0x403e0500 0x01000000
+DATA 4 0x403e050c 0x80808020
CHECK_BITS_SET 4 0x403e050c 0x00000040
DATA 4 0x403E0030 0x00000001
DATA 4 0x403e0040 0x11000020
diff --git a/board/freescale/mx7ulp_evk/plugin.S b/board/freescale/mx7ulp_evk/plugin.S
index 2a5b551..81ebcc5 100644
--- a/board/freescale/mx7ulp_evk/plugin.S
+++ b/board/freescale/mx7ulp_evk/plugin.S
@@ -14,10 +14,28 @@
ldr r2, =0x403e0000
ldr r3, =0x01000020
str r3, [r2, #0x40]
+ ldr r3, =0x01000000
+ str r3, [r2, #0x500]
ldr r3, =0x80808080
str r3, [r2, #0x50c]
- ldr r3, =0x8080801E
+ ldr r3, =0x00160000
+ str r3, [r2, #0x508]
+ ldr r3, =0x00000002
+ str r3, [r2, #0x510]
+ ldr r3, =0x00000005
+ str r3, [r2, #0x514]
+ ldr r3, =0x00000001
+ str r3, [r2, #0x500]
+
+ ldr r3, =0x01000000
+wait1:
+ ldr r4, [r2, #0x500]
+ and r4, r3
+ cmp r4, r3
+ bne wait1
+
+ ldr r3, =0x80808020
str r3, [r2, #0x50c]
ldr r3, =0x00000040