MLK-17785 mx7ulp_evk: Update DDR freq to 352.8Mhz for ULP B0
authorYe Li <ye.li@nxp.com>
Tue, 6 Mar 2018 08:19:13 +0000 (00:19 -0800)
committerYe Li <ye.li@nxp.com>
Tue, 13 Mar 2018 07:15:16 +0000 (00:15 -0700)
commita48daae2d43cb0415ad8b3cfca0f6d064ac6cd74
treebc03fd7241e19d5234b32fa45fa586e45ae91e32
parent004f1d339d3cc919fe606a38cab443d39d82772b
MLK-17785 mx7ulp_evk: Update DDR freq to 352.8Mhz for ULP B0

On i.MX7ULP B0, the DDR clock target is increased from 320Mhz to 380Mhz.
We update DDR clock relevant settings to approach the target. But since the
limitation on LCDIF pix clock for HDMI output
(refer commit dba948539edd4611610d9f1fc3711d1d922262ae), we set DDR clock to
352.8Mhz (25.2Mhz * 14) by using the clock path:

APLL PFD0 -> DDR CLK -> NIC0 -> NIC1 -> LCDIF clock

To reduce the impact to entire system, the NIC0_DIV and NIC1_DIV are kept,
so the divider 14 is calculated as:
14 = (NIC0_DIV + 1) * (NIC1_DIV + 1) * (LCDIF_PCC_DIV + 1)

NIC0_DIV:      1
NIC1_DIV:      0
LCDIF_PCC_DIV: 6

APLL and APLL PFD0 settings:

PFD0 FRAC:  27
APLL MULT:  22
APLL NUM:   1
APLL DENOM: 20

This patch applies the new settings for both DCD and plugin.
There is no DDR script change on this new frequency.
Overnight memtester is passed.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
board/freescale/mx7ulp_evk/imximage.cfg
board/freescale/mx7ulp_evk/plugin.S