From: Peng Fan <van.freenix@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] imx: mx6sx: Disable ENET clock before switching clock parent
Date: Fri, 28 Oct 2016 13:26:54 +0800 [thread overview]
Message-ID: <20161028052652.GA22033@linux-7smt.suse> (raw)
In-Reply-To: <1475917109-16284-1-git-send-email-peng.fan@nxp.com>
Hi Stefano,
Ping..
Thanks,
Peng.
On Sat, Oct 08, 2016 at 04:58:29PM +0800, Peng Fan wrote:
>From: "Ye.Li" <ye.li@nxp.com>
>
>Need to gate ENET clock when switching to a new clock parent, because
>the mux is not glitchless.
>
>Signed-off-by: Peng Fan <peng.fan@nxp.com>
>Signed-off-by: Ye.Li <ye.li@nxp.com>
>Cc: Stefano Babic <sbabic@denx.de>
>---
> arch/arm/cpu/armv7/mx6/clock.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
>diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c
>index ae3143c..96fbd81 100644
>--- a/arch/arm/cpu/armv7/mx6/clock.c
>+++ b/arch/arm/cpu/armv7/mx6/clock.c
>@@ -881,6 +881,11 @@ int enable_fec_anatop_clock(int fec_id, enum enet_freq freq)
> writel(reg, &anatop->pll_enet);
>
> #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
> * pll2_pfd2_396m-> ENET_PODF-> ENET_AHB
>--
>2.6.2
>
next prev parent reply other threads:[~2016-10-28 5:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-08 8:58 [U-Boot] [PATCH] imx: mx6sx: Disable ENET clock before switching clock parent Peng Fan
2016-10-28 5:26 ` Peng Fan [this message]
2016-11-14 8:21 ` Stefano Babic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161028052652.GA22033@linux-7smt.suse \
--to=van.freenix@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.