From patchwork Sun Nov 10 15:40:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 1192627 X-Patchwork-Delegate: van.freenix@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Id2T1U8F"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 479ytK2WDHz9sP4 for ; Mon, 11 Nov 2019 02:42:01 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 0F33DC21DFA; Sun, 10 Nov 2019 15:41:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id D8C88C21E07; Sun, 10 Nov 2019 15:41:38 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DB84BC21E0B; Sun, 10 Nov 2019 15:40:43 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by lists.denx.de (Postfix) with ESMTPS id C8A98C21E36 for ; Sun, 10 Nov 2019 15:40:40 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id i12so5073846wro.5 for ; Sun, 10 Nov 2019 07:40:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=P5o+o7XsGtcEJ33QuyAO9ksz7XLOlJy/3pTfL7mMscM=; b=Id2T1U8FNlPibCZPoqX0AlgOuIaDmJFB4XfATfonG+XHzZgEXdHrCwXu69Fk3mauZo NNy5IdlURP3fl+lGrhBoiWWUUfCZESFabvdAjCZpDNanysGFEFA+fGmpc9uOJJ75cDjD Unmewz0I2e4KYEsrs3VYcy9G1aLZZrNdwWPiLwqacq24YtUy/OuahTyfQzIAq0GvtX5n td2jyEOW40zAS28QSBRrIi8Mruw+/oSmqJoHZWALLpVUTk3tYpyD8sT0ObpV31T7i8r9 lFvsVmBpwqnC82JjvzlC/qySU8i6og1CZqrpxG+PaRV8izW4+15KS3mJ7/PsT4XilNsY khgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=P5o+o7XsGtcEJ33QuyAO9ksz7XLOlJy/3pTfL7mMscM=; b=evthfe/93tEroHY1iGe5loPR+++RHIiwZjoqhPw4n7AUBZDTRfaRgfhk5/TT4K43vF kVMHpctXG76FCVN0KQb0nuMasj2J8hOahe+bulqCEjkAlMOyb89EMiV3gOmeA1AN2utQ BdPdMjgeCcjNDP1KYteRIGsocgrb5HK23/aLl+gFkpkqoZoPDNyzuVR79WerFOCW3AR9 dgP7EGev8txEvtJ+yC7gSMCSVcKcV6YU0d0Se+ThcZTjdojccRkBq4GmRUy4sS4t08sD FK2u5b9a8SVtlNxj2jR8RexDmL7GIK6J/kA3QPqjMvNipuCM/W1ttQAM7YyDxQ+hXlu5 x/jg== X-Gm-Message-State: APjAAAWZJt/Et/Qaw+wvhmh1KIsbvgZCXZDuAleGDvLj5VBkUn7Df7ym Y0G5kw60Srg6TuequlVfcKZ8PzFmXmY= X-Google-Smtp-Source: APXvYqzusbjgWm4fdbnjsB54AAuz56Ioo5RRct5fXEK/fB5I/NskcDRMPq5RlTCBW+Z3S3DyXMQZBg== X-Received: by 2002:a5d:694d:: with SMTP id r13mr16254575wrw.395.1573400440149; Sun, 10 Nov 2019 07:40:40 -0800 (PST) Received: from chi.lan (p578adb1c.dip0.t-ipconnect.de. [87.138.219.28]) by smtp.gmail.com with ESMTPSA id v10sm24948918wmg.48.2019.11.10.07.40.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2019 07:40:39 -0800 (PST) From: Marek Vasut X-Google-Original-From: Marek Vasut To: u-boot@lists.denx.de Date: Sun, 10 Nov 2019 16:40:08 +0100 Message-Id: <20191110154012.24603-5-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.24.0.rc1 In-Reply-To: <20191110154012.24603-1-marek.vasut+renesas@gmail.com> References: <20191110154012.24603-1-marek.vasut+renesas@gmail.com> MIME-Version: 1.0 Cc: Marek Vasut Subject: [U-Boot] [PATCH 5/9] mmc: tmio: sdhi: Adjust HS400 calibration offsets X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Adjust the TMPPORT3 offsets according to the latest information from the chip vendor. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- 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 */