Skip to content
Snippets Groups Projects
Commit 27e3a3c7 authored by Ye.Li's avatar Ye.Li Committed by Stefano Babic
Browse files

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: default avatarPeng Fan <peng.fan@nxp.com>
Signed-off-by: default avatarYe.Li <ye.li@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
parent 29e0cfb4
No related branches found
No related tags found
No related merge requests found
...@@ -881,6 +881,11 @@ int enable_fec_anatop_clock(int fec_id, enum enet_freq freq) ...@@ -881,6 +881,11 @@ int enable_fec_anatop_clock(int fec_id, enum enet_freq freq)
writel(reg, &anatop->pll_enet); writel(reg, &anatop->pll_enet);
#ifdef CONFIG_MX6SX #ifdef CONFIG_MX6SX
/* Disable enet system clcok before switching clock parent */
reg = readl(&imx_ccm->CCGR3);
reg &= ~MXC_CCM_CCGR3_ENET_MASK;
writel(reg, &imx_ccm->CCGR3);
/* /*
* Set enet ahb clock to 200MHz * Set enet ahb clock to 200MHz
* pll2_pfd2_396m-> ENET_PODF-> ENET_AHB * pll2_pfd2_396m-> ENET_PODF-> ENET_AHB
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment