All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 5/9] mmc: tmio: sdhi: Adjust HS400 calibration offsets
Date: Sat, 23 Nov 2019 13:36:21 +0100	[thread overview]
Message-ID: <20191123123625.111794-5-marek.vasut+renesas@gmail.com> (raw)
In-Reply-To: <20191123123625.111794-1-marek.vasut+renesas@gmail.com>

Adjust the TMPPORT3 offsets according to the latest information
from the chip vendor.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
---
V2: Rebase on u-boot/master, no other change
---
 drivers/mmc/renesas-sdhi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c
index 8c96e5c8a4..79672653ff 100644
--- a/drivers/mmc/renesas-sdhi.c
+++ b/drivers/mmc/renesas-sdhi.c
@@ -604,22 +604,22 @@ static void renesas_sdhi_filter_caps(struct udevice *dev)
 	    (rmobile_get_cpu_rev_integer() == 1) &&
 	    (rmobile_get_cpu_rev_fraction() > 2)) {
 		priv->adjust_hs400_enable = true;
-		priv->adjust_hs400_offset = 0;
+		priv->adjust_hs400_offset = 3;
 		priv->adjust_hs400_calibrate = 0x9;
 	}
 
 	/* M3N can use HS400 with manual adjustment */
 	if (rmobile_get_cpu_type() == RMOBILE_CPU_TYPE_R8A77965) {
 		priv->adjust_hs400_enable = true;
-		priv->adjust_hs400_offset = 0;
+		priv->adjust_hs400_offset = 3;
 		priv->adjust_hs400_calibrate = 0x0;
 	}
 
 	/* E3 can use HS400 with manual adjustment */
 	if (rmobile_get_cpu_type() == RMOBILE_CPU_TYPE_R8A77990) {
 		priv->adjust_hs400_enable = true;
-		priv->adjust_hs400_offset = 0;
-		priv->adjust_hs400_calibrate = 0x2;
+		priv->adjust_hs400_offset = 3;
+		priv->adjust_hs400_calibrate = 0x4;
 	}
 
 	/* H3 ES1.x, ES2.0 and M3W ES1.0, ES1.1, ES1.2 uses 4 tuning taps */
-- 
2.24.0.359.ga6e4e5af0a

  parent reply	other threads:[~2019-11-23 12:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-23 12:36 [U-Boot] [PATCH V2 1/9] mmc: tmio: sdhi: Track current tap number in private data Marek Vasut
2019-11-23 12:36 ` [U-Boot] [PATCH V2 2/9] mmc: tmio: sdhi: Track SMPCMP valu " Marek Vasut
2019-11-23 12:36 ` [U-Boot] [PATCH V2 3/9] mmc: tmio: sdhi: Use 4 tuning taps on M3W up to ES1.2 Marek Vasut
2019-11-23 12:36 ` [U-Boot] [PATCH V2 4/9] mmc: tmio: sdhi: Adjust DT2FF settings for HS400 mode Marek Vasut
2019-11-23 12:36 ` Marek Vasut [this message]
2019-11-23 12:36 ` [U-Boot] [PATCH V2 6/9] mmc: tmio: sdhi: Disable auto-retuning in HS400 Marek Vasut
2019-11-23 12:36 ` [U-Boot] [PATCH V2 7/9] mmc: tmio: sdhi: Add SCC error checking Marek Vasut
2019-11-23 12:36 ` [U-Boot] [PATCH V2 8/9] mmc: tmio: sdhi: Skip bad taps Marek Vasut
2019-11-23 12:36 ` [U-Boot] [PATCH V2 9/9] mmc: tmio: sdhi: Add calibration tables Marek Vasut

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=20191123123625.111794-5-marek.vasut+renesas@gmail.com \
    --to=marek.vasut@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.