From: 赵仪峰 <yifeng.zhao@rock-chips.com>
To: "Jaehoon Chung" <jh80.chung@samsung.com>, sjg <sjg@chromium.org>,
杨凯 <kever.yang@rock-chips.com>
Cc: "Peng Fan" <peng.fan@nxp.com>,
"Philipp Tomsich" <philipp.tomsich@vrull.eu>,
u-boot <u-boot@lists.denx.de>,
"Philipp Zabel" <p.zabel@pengutronix.de>
Subject: Re: Re: [PATCH] mmc: rockchip_sdhci: enable strobe line for HS400
Date: Mon, 18 Oct 2021 09:08:08 +0800 [thread overview]
Message-ID: <2021101809071587792831@rock-chips.com> (raw)
In-Reply-To: 7dd0b2e7-bdd6-d24c-ac9b-706b471cc28a@samsung.com
Hi Jaehoon
> Just wonder about doesn't it affect to other mode?
The strobe line will only be used in hs400 mode and will not affect other modes.
Best Regards,
Yifeng Zhao
>
On 10/15/21 5:41 PM, Yifeng Zhao wrote:
> The default configuration of rk3399 EMMC PHY does not enable the
> strobe line, and EMMC controller will got data transmission error
> at HS400 mode.
>
> Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
> ---
>
> drivers/mmc/rockchip_sdhci.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c
> index 1ac00587d4..278473899c 100644
> --- a/drivers/mmc/rockchip_sdhci.c
> +++ b/drivers/mmc/rockchip_sdhci.c
> @@ -143,6 +143,9 @@ static void rk3399_emmc_phy_power_on(struct rockchip_emmc_phy *phy, u32 clock)
> writel(RK_CLRSETBITS(3 << 12, freqsel << 12), &phy->emmcphy_con[0]);
> writel(RK_CLRSETBITS(1 << 1, 1 << 1), &phy->emmcphy_con[6]);
>
> + /* REN Enable on STRB Line for HS400 */
> + writel(RK_CLRSETBITS(0, 1 << 9), &phy->emmcphy_con[2]);
> +
Just wonder about doesn't it affect to other mode?
Best Regards,
Jaehoon Chung
> read_poll_timeout(readl, &phy->emmcphy_status, dllrdy,
> PHYCTRL_DLL_LOCK_WO_TMOUT(dllrdy), 1, 5000);
> }
>
next prev parent reply other threads:[~2021-10-18 1:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20211015084147epcas1p3e1a65248a2b3c0f6d776bbb58ca9409a@epcas1p3.samsung.com>
2021-10-15 8:41 ` [PATCH] mmc: rockchip_sdhci: enable strobe line for HS400 Yifeng Zhao
2021-10-15 12:40 ` Kever Yang
2021-10-17 22:07 ` Jaehoon Chung
2021-10-18 1:08 ` 赵仪峰 [this message]
2021-10-18 1:52 ` Jaehoon Chung
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=2021101809071587792831@rock-chips.com \
--to=yifeng.zhao@rock-chips.com \
--cc=jh80.chung@samsung.com \
--cc=kever.yang@rock-chips.com \
--cc=p.zabel@pengutronix.de \
--cc=peng.fan@nxp.com \
--cc=philipp.tomsich@vrull.eu \
--cc=sjg@chromium.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox