From patchwork Sun Mar 24 15:46:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 1063241 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) 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=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="ecT8zAG2"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44S1y8073Yz9sST for ; Mon, 25 Mar 2019 02:48:15 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id A9018C21E75; Sun, 24 Mar 2019 15:47:29 +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=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 1331FC21EBA; Sun, 24 Mar 2019 15:47:06 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2AE0CC21EC9; Sun, 24 Mar 2019 15:47:01 +0000 (UTC) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by lists.denx.de (Postfix) with ESMTPS id 7AB70C21BE5 for ; Sun, 24 Mar 2019 15:46:58 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id y197so6539283wmd.0 for ; Sun, 24 Mar 2019 08:46:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LlB4ZvH4I2A0IN7g6Br6BCwG6b9DWjL1LW6pShjJnkU=; b=ecT8zAG2NT8xces0IVpuvjC4hzRrmPAXTMLan9g34y223l2aNhvrFngYqlX76qoHmj oLgTL3+WMrhlpz0Z5RdCUbVzpWZfP+670cBcYvYBGr4Gchc/TKhvIZxnBGb4SMZvdALL /lhlfa9JBB5wpsMwf2EPTD+l6yrTi3b3vQZ/IVDsjeDLxenlCPUcHNOIV1KYjZEluQNr sYvx9F+E9Bwv5JiyIX9L5bn2xMF/RDaQ/H+xk8vfZG1dxgV2OTXyfaBO8TjACGXlt+nB o4dF4EOfzqP4LainLuPtWm0lgL4LyFJOLYLdLSfftTx31zKnd/7BBm6rSQKuYPb/rXQS XxUg== 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=LlB4ZvH4I2A0IN7g6Br6BCwG6b9DWjL1LW6pShjJnkU=; b=KjyNcRJScTen1ioLndJDdKU6Wg1YWY3SGC0vw+bdP0c/Mn6XaLAzk7dVQJy4VcEppb GakjlaIBxLWqp1jDvrtIxRVffSV+eCJZAZ5RFlD9/hOLsE+41nWWQxSrmdF7qVjgtoHD A8Ye5nMWHlyXmhTpDBNBQDbL3CFvA1Fwa7kpwcz/E5JipH5vFy4zhN5LTyUhKJVKJ51r 0ewaHDHvtUn9g3XlmPz+TuBiaMxTooPxEOvaISWhYdartd+f8tDwrzwi3oAMSmlhUWNx FaA1e9idq3Gc+8AxQdCIT5tXSNS8UjjBi/h0SmZDZLCzorwCgE9ADWH3C6jD6W8EZK+A y7JQ== X-Gm-Message-State: APjAAAXBiWeGJvtHwoQDcgolOf+6QloQTykSWPWwPUq9dldgAKcXABzB 6yxoWzw8SyGSsfcMO4bIO6C+UmE09mJqllUR X-Google-Smtp-Source: APXvYqyP6M7GDeQLvNRBsU63OsDA3cRnu4yFwmmAs+xm/X8Dz/VFqLj8vShnawofXGH/TpRFp33twA== X-Received: by 2002:a1c:7311:: with SMTP id d17mr2975522wmb.115.1553442417878; Sun, 24 Mar 2019 08:46:57 -0700 (PDT) Received: from localhost.localdomain (cag06-8-78-203-165-84.fbx.proxad.net. [78.203.165.84]) by smtp.gmail.com with ESMTPSA id k11sm28917683wmk.45.2019.03.24.08.46.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Mar 2019 08:46:57 -0700 (PDT) From: Fabien Parent To: u-boot@lists.denx.de Date: Sun, 24 Mar 2019 16:46:33 +0100 Message-Id: <20190324154638.29800-3-fparent@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190324154638.29800-1-fparent@baylibre.com> References: <20190324154638.29800-1-fparent@baylibre.com> MIME-Version: 1.0 Cc: trini@konsulko.com, ryder.lee@mediatek.com, stephane.leprovost@mediatek.com, GSS_MTK_Uboot_upstream@mediatek.com Subject: [U-Boot] [PATCH v3 2/7] mmc: mtk-sd: add support for MT8516 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" Add config for handling MT8516 SoC. Signed-off-by: Fabien Parent Acked-by: Ryder Lee --- v3: * No change v2: * No change --- drivers/mmc/mtk-sd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index eed98b769c..b44686fbc9 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/mtk-sd.c @@ -1381,8 +1381,18 @@ static const struct msdc_compatible mt7623_compat = { .enhance_rx = false }; +static const struct msdc_compatible mt8516_compat = { + .clk_div_bits = 12, + .pad_tune0 = true, + .async_fifo = true, + .data_tune = true, + .busy_check = true, + .stop_clk_fix = true, +}; + static const struct udevice_id msdc_ids[] = { { .compatible = "mediatek,mt7623-mmc", .data = (ulong)&mt7623_compat }, + { .compatible = "mediatek,mt8516-mmc", .data = (ulong)&mt8516_compat }, {} };