MLK-13924 mx7ulp: Fix APLL num and denom setting issue
authorYe Li <ye.li@nxp.com>
Tue, 14 Feb 2017 03:39:12 +0000 (11:39 +0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:28:37 +0000 (04:28 -0700)
commiteb57e881e8d6387c494241d943543ec0dad845f6
tree252518144889f42423ee6d6b1e2b14bb0a313ba0
parent900182ba78625592a88769e9a4aef85bb6581347
MLK-13924 mx7ulp: Fix APLL num and denom setting issue

For the current APLL setting, as we want the APLL PFD0 to meet DDR clock 320Mhz requirement.
We set MULT to 20, NUM to 4 and DENOM to 2, to get final 22 multiplier. But according to the RM,
the NUM should always be less than the DENOM. So our setting violates the rule.

Actually the ROM has already set the MULT to 22 and leave NUM/DENOM in default value. The calculated APLL PFD0 clock
is 318.9888Mhz, which also meet the DDR requirement.
To fix the issue, we remove the PLL settings in DCD to use default value from ROM, and only set the PFD0 FRAC.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 8cc70b1ded5309dee522aa00b43bd702a209ba51)
(cherry picked from commit 4eb0fbdacfe0678e41d1ebf35c7863736e83637e)
board/freescale/mx7ulp_evk/imximage.cfg
board/freescale/mx7ulp_evk/plugin.S