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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id BA816C433EF for ; Thu, 13 Jan 2022 19:29:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 20C7A8319A; Thu, 13 Jan 2022 20:29:42 +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="UeYYmOn9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 28089831CA; Thu, 13 Jan 2022 20:29:41 +0100 (CET) Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (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 57FF8830EA for ; Thu, 13 Jan 2022 20:29:38 +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-x52b.google.com with SMTP id u21so26896635edd.5 for ; Thu, 13 Jan 2022 11:29:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=wK9F0ldnHN4ro5/YQKZ37wsqzyIuW2oaBJOE7b02OCU=; b=UeYYmOn9d0Xg1PzDHmosYkFysllUlc9cElQ1fpoOioyUgvodzvM54NXuiFXi1jm3j1 tAerC+AEQnLOEAaQbE1W2Drff/i1VAK2n42najUkdbpPohgwU1RAeYQYNCFOMEg32DLr bN0C+5/pAYpCTF2m8aKpa7ysWSFVo8hWvRu6gDCOhv59h5LkjjvWBqd69J522T+QVbb0 MCCur5Jngyekd/g1JPmo9D1sRxSkwMzb3gZDO4U96pJhIHWNMjw8K6f28uUHeE4JejzO psjhHM6ryn715K/AIYSndlDGrfT9azTcDMZbcGP7xSji3GIkah+RSD1pLtxmoWKcIuKl V03w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=wK9F0ldnHN4ro5/YQKZ37wsqzyIuW2oaBJOE7b02OCU=; b=D5sjOWod0xV0NibVtuRhmloCzyxOFt9BO31IMAd1Me+yIm21l+C3v63VJsHv/qe0yu xyFEaCqUZz8p3QZZmeAuN2nEix2JciCe/8ntkFeo440P+NHQa4brFdzoDVd8IbaNbU+j JV1mE7K1Tm1U45mn2xU5DN+NjnBNx4gBFWArq9fqrb3jnGWHk5+8OYTPb8rwsk5cjKKM gHZ5o+wOkiDC8ammJgDPpaYpNx/FBZS8qWSv/7yGGde3VJfjDZ8ESCKIecYewY8XDper tuP2SA7oHvQNgfCD+Kg2up6nVRhJFqV8Eq3tRKiptxz4/XQm2SQXL6F82tUFVe9N0oxG K2Lg== X-Gm-Message-State: AOAM531tN8JijAEtZ7G/a+Y/x0y2wqK61yay9IgpH3a84zCD8yO4dRq3 +73n6UBxj4bxXC3ZeNIZLRo= X-Google-Smtp-Source: ABdhPJz0vWxLQEg4sc+FZC4jh0gAE2wL4IRU2JKnNR93QfvecxTEGpSEeQecAiz7iYttuWkHUMUHbQ== X-Received: by 2002:a05:6402:f16:: with SMTP id i22mr5519500eda.165.1642102177960; Thu, 13 Jan 2022 11:29:37 -0800 (PST) Received: from [192.168.0.74] ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id y2sm1572065eda.45.2022.01.13.11.29.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jan 2022 11:29:37 -0800 (PST) Message-ID: Date: Thu, 13 Jan 2022 22:29:31 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 4/4] rockchip: sdhci: Add HS400 Enhanced Strobe support for RK3568 Content-Language: en-US To: =?UTF-8?B?6LW15Luq5bOw?= , u-boot Cc: Peng Fan , Ashok Reddy Soma , Samuel Dionne-Riel , Aswath Govindraju , Philipp Tomsich , Jagan Teki , Stephen Carlson , Michal Simek , =?UTF-8?B?5p2o5Yev?= , Faiz Abbas , sjg , Peter Robinson , Jaehoon Chung , Jack Mitchell References: <20220111133931.7866-1-alpernebiyasak@gmail.com> <20220111133931.7866-5-alpernebiyasak@gmail.com> <2022011210025303440329@rock-chips.com> From: Alper Nebi Yasak In-Reply-To: <2022011210025303440329@rock-chips.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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 On 12/01/2022 05:03, 赵仪峰 wrote: > The Synopsys DWC MSHC for RK3568 and RK3588 need config > DWCMSHC_EMMC_CONTROL.bit0 = 1 (CARD_IS_EMMC) > to enable Data Strobe pin for HS400 and HS400ES. > > reference code: > #define DWCMSHC_EMMC_CONTROL 0x52c > #define DWCMSHC_CARD_IS_EMMC BIT(0) > > /* set CARD_IS_EMMC bit to enable Data Strobe for HS400 and HS400ES */ > ctrl = sdhci_readw(host, DWCMSHC_EMMC_CONTROL); > ctrl |= DWCMSHC_CARD_IS_EMMC; > sdhci_writew(host, ctrl, DWCMSHC_EMMC_CONTROL); I think I'll do this in rk3568_emmc_phy_init() and set/unset the bit based on IS_MMC(host->mmc). (FWIW, it doesn't look like the Linux driver [1] sets this bit.) [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/mmc/host/sdhci-of-dwcmshc.c?h=master