summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-06-25 17:06:17 -0300
committerPeng Fan <Peng.Fan@freescale.com>2015-06-29 21:42:02 +0800
commitc50c21be896e3fb55047150fa2c6c980b4df5af7 (patch)
tree1cb4c209b91678cf087995cbe9a322e07848abf7
parent96edf3b9d7fd38d6059e158392eadca521ecb4d2 (diff)
downloadu-boot-imx-c50c21be896e3fb55047150fa2c6c980b4df5af7.zip
u-boot-imx-c50c21be896e3fb55047150fa2c6c980b4df5af7.tar.gz
u-boot-imx-c50c21be896e3fb55047150fa2c6c980b4df5af7.tar.bz2
MLK-11201 mx7: clock: Fix PLL divider for the 100MHz case
We should divide the 1000MHz ENET PLL clock by 10 in order to achieve 100MHz, so fix the divider accordingly. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> (cherry picked from commit f75fba3a63f23ef980a98c4072f38d71fbd6fdba)
-rw-r--r--arch/arm/cpu/armv7/mx7/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/mx7/clock.c b/arch/arm/cpu/armv7/mx7/clock.c
index 39fdd75..0bfa2e3 100644
--- a/arch/arm/cpu/armv7/mx7/clock.c
+++ b/arch/arm/cpu/armv7/mx7/clock.c
@@ -315,7 +315,7 @@ static u32 mxc_get_pll_enet_derive(int derive)
break;
case PLL_ENET_MAIN_100M_CLK:
if (reg & CCM_ANALOG_PLL_ENET_ENABLE_CLK_100MHZ_MASK)
- return freq / 16;
+ return freq / 10;
break;
case PLL_ENET_MAIN_50M_CLK:
if (reg & CCM_ANALOG_PLL_ENET_ENABLE_CLK_50MHZ_MASK)