Commit 747e9c9980375ce79e2917ed39bbe159e88e10ca
1 parent
9c2069ad87
Exists in
smarc-rel_imx_4.1.15_2.0.0_ga
MLK-12985 imx: mx6sx: Disable ENET clock before switching clock parent
Need to gate ENET clock when switching to a new clock parent, because the mux is not glitchless. Signed-off-by: Ye.Li <ye.li@nxp.com>
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
arch/arm/cpu/armv7/mx6/clock.c
... | ... | @@ -974,6 +974,11 @@ |
974 | 974 | writel(reg, &anatop->pll_enet); |
975 | 975 | |
976 | 976 | #ifdef CONFIG_MX6SX |
977 | + /* Disable enet system clcok before switching clock parent */ | |
978 | + reg = readl(&imx_ccm->CCGR3); | |
979 | + reg &= ~MXC_CCM_CCGR3_ENET_MASK; | |
980 | + writel(reg, &imx_ccm->CCGR3); | |
981 | + | |
977 | 982 | /* |
978 | 983 | * Set enet ahb clock to 200MHz |
979 | 984 | * pll2_pfd2_396m-> ENET_PODF-> ENET_AHB |