Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6BCAC433EF for ; Mon, 1 Nov 2021 09:08:28 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D76B961027 for ; Mon, 1 Nov 2021 09:08:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D76B961027 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2264C834B0; Mon, 1 Nov 2021 10:08:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="AV0z9Yts"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DF47781F0B; Mon, 1 Nov 2021 10:08:22 +0100 (CET) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E8C5A81197 for ; Mon, 1 Nov 2021 10:08:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ed1-x531.google.com with SMTP id g10so61828688edj.1 for ; Mon, 01 Nov 2021 02:08:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vEwN5u/DGAA0It0u6se3fMYRMNWrOhbuHvNfKgjPOXE=; b=AV0z9Ytst4+cDH+hhj1Uei1c8QEu3SRbYm7X8yQvPl07vpjnlRv3/rjkrtid1AEoJA uznqpwZaPJQzcGrMbuQfGdZNL/b65+QeRMovyzDrbh+u4aD10J4M3kX3CB+Z/ojiiTJ+ Gydy+mbw5jrTkSV1n5Yi0rG9E8QPePC5ESgTASqDQxVOYAxBc23voMxvifEDorywkAYi DYo64sbrIQE1RwAyO6GMZ/aVRrFNWfqxB5CrFbDh5g7udxcBgqxl9oT3rIazpDecO3Ts DBEnN7andFico1hDofdl0LBasksp5QKNBhTZ9ItkDh1flQI7BR/47BdkA6BNtHaVjUP5 efXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vEwN5u/DGAA0It0u6se3fMYRMNWrOhbuHvNfKgjPOXE=; b=amFcp5TYcTm8VfBIXMyWe4C63Omv5ZLdYD+kcSz6/m5govKZX3gxK9I53mxLv59S3c zLUu+/Rg7juaGzKmYicZwCRwTY2Mp/DfuJ7IDPxBKPfv+qJDkJAWfzRVAOnYLgdP6He0 gs500sEEvCv/wi9P5f/hmGMfi6YYR9poKeWqxj0/pdcfqSqat195bnoAxgUawtSd55LL +uPMGOzZq5yXrXaS9Y0tMvIDoUDlM/P64sLOVQJbmYGtetgQfLaCt9Ee62/+eCYGvG/9 ZXyy7MEjCBfWongKRFfgoyKbIc8OLWN+ZmeiLYRxmLyA1wcC5aOLIBG11nd8zDhoCpB4 J1PA== X-Gm-Message-State: AOAM5317J20oAkYL/ywSgLINtVKaEyRF5HVPBZuJun4YS/1xHyK92csz LgJqRnylKMAwC5pUX0/GngFqwV3Vy9tPscJJ X-Google-Smtp-Source: ABdhPJzjv9H/kQKbUgx5/V6VtekD1WeJPCGKHASPeRjbV+vTh/ZdfIZMmR9ZJrOkT36Kn6fG5OsRnQ== X-Received: by 2002:a05:6402:42d0:: with SMTP id i16mr39317951edc.63.1635757699565; Mon, 01 Nov 2021 02:08:19 -0700 (PDT) Received: from localhost.localdomain ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id m1sm6745680ejn.121.2021.11.01.02.08.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Nov 2021 02:08:19 -0700 (PDT) From: Alper Nebi Yasak To: u-boot@lists.denx.de Cc: Aswath Govindraju , Michal Simek , Philipp Tomsich , Jaehoon Chung , Stephen Carlson , Kever Yang , Faiz Abbas , Yifeng Zhao , Simon Glass , Philipp Tomsich , Peng Fan , Ashok Reddy Soma , Alper Nebi Yasak Subject: [PATCH 0/3] rockchip: sdhci: Add HS400 Enhanced Strobe support Date: Mon, 1 Nov 2021 12:07:51 +0300 Message-Id: <20211101090755.23762-1-alpernebiyasak@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean I'm trying to make my gru-kevin's eMMC work properly (it times out while tuning for HS400 and stops working when reinitialized via "mmc dev 0"). While experimenting with what works on my board I ended up implementing HS400ES support. And while I'm at it, I decided to do it for RK3568 as well since it turned out easy enough. Both are ported from relevant Linux drivers. I'm trying this with "load mmc 0:1 0xd0000000 /bigfile $size" and getting the following speeds; and with "mmc info" the following differences: gru-kevin mmc0 | w/o this series | w/ this series --------------------+---------------------------+------------------- Bus Speed | 52000000 | 200000000 Mode | MMC High Speed (52MHz) | HS400ES (200 MHz) 8MiB Load Speed | ~9.5 MiB/s | ~51.5 MiB/s 256MiB Load Speed | ~177.8 MiB/s | ~114.5 MiB/s Listing partitions, listing files, reading files and the loaded bytes all look fine to me, but I'm not sure I haven't missed anything. Alper Nebi Yasak (3): mmc: sdhci: Add HS400 Enhanced Strobe support rockchip: sdhci: Add HS400 Enhanced Strobe support for RK3399 rockchip: sdhci: Add HS400 Enhanced Strobe support for RK3568 drivers/mmc/rockchip_sdhci.c | 51 ++++++++++++++++++++++++++++++++++++ drivers/mmc/sdhci.c | 18 +++++++++++++ include/sdhci.h | 1 + 3 files changed, 70 insertions(+) -- 2.33.1