summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2017-04-13 11:40:46 +0800
committerYe Li <ye.li@nxp.com>2017-04-14 11:07:54 +0800
commitf2d1f95053632e6460610bb0f49b36492280174b (patch)
tree420e7c8f5ee2e72ee6e9d9ec5e4f137d34a6f4ca
parent5c0433b30240f05397d24c073bc03b6fe1c84f73 (diff)
downloadu-boot-imx-f2d1f95053632e6460610bb0f49b36492280174b.zip
u-boot-imx-f2d1f95053632e6460610bb0f49b36492280174b.tar.gz
u-boot-imx-f2d1f95053632e6460610bb0f49b36492280174b.tar.bz2
MLK-14689 mx7ulp: Workaround APLL PFD2 to 345.6Mhz
The GPU uses APLL PFD2 as its clock parent (483.84Mhz) with divider set to 1. This frequecy is out of ULP A0 spec. The MAX rate for GPU is 350Mhz. So we simply configure the APLL PFD2 to 345.6Mhz (FRAC=28) to workaround the problem. The correct fix should let GPU handle the clock rate in kernel. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit e931d534fd68e0e639082766de17a20e705fd908)
-rw-r--r--arch/arm/cpu/armv7/mx7ulp/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/mx7ulp/clock.c b/arch/arm/cpu/armv7/mx7ulp/clock.c
index 6246ef5..590a34d 100644
--- a/arch/arm/cpu/armv7/mx7ulp/clock.c
+++ b/arch/arm/cpu/armv7/mx7ulp/clock.c
@@ -287,9 +287,9 @@ void clock_init(void)
scg_a7_soscdiv_init();
- /*APLL PFD1 = 270Mhz, PFD2=480Mhz, PFD3=800Mhz */
+ /*APLL PFD1 = 270Mhz, PFD2=345.6Mhz, PFD3=800Mhz */
scg_enable_pll_pfd(SCG_APLL_PFD1_CLK, 35);
- scg_enable_pll_pfd(SCG_APLL_PFD2_CLK, 20);
+ scg_enable_pll_pfd(SCG_APLL_PFD2_CLK, 28);
scg_enable_pll_pfd(SCG_APLL_PFD3_CLK, 12);
init_clk_lpuart();