From patchwork Mon Feb 4 10:58:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 1035827 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="FX/Ncz41"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43tPqH3MJQz9s3l for ; Mon, 4 Feb 2019 21:59:39 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 14ACEC21F4E; Mon, 4 Feb 2019 10:59:28 +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=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 054C3C21F87; Mon, 4 Feb 2019 10:59:01 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DF3DEC21F58; Mon, 4 Feb 2019 10:58:57 +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 EF353C21F2B for ; Mon, 4 Feb 2019 10:58:53 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id y8so12859343wmi.4 for ; Mon, 04 Feb 2019 02:58:53 -0800 (PST) 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=XFyLyc2TSCuAJsYhaX16cYZbD2cxUF0tOoeZpwjIMZE=; b=FX/Ncz41Kizsdb9XlloIXoMA8YTTEKGtWejbYorM9O0SJEx8GUrD2G/b4vw9npYZmL VUvHjH4y4T6y/R9Uws2BtCpsG5DebNprjbIif2GpVXkQHD6qEFpcU5hnxxEaexltQH0m mTN2mokeIjDvldvY0nRbmgq+3LTyJcdRLrIAxSLz2Z36A11xxLwp8Y+bPdUil5cN2EhG UXrab9a5K5NIB20FmEGEF5BSHwc0KQajlSoBat14UXTurH8+zw24e3yjSgZNf0cHiJoY XoucqENl3J9G7KL0VHVLkFYgO6Rlzzojd8c25137y23T2bqSpM9N9DNhMwtS7Bun/REO o5uA== 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=XFyLyc2TSCuAJsYhaX16cYZbD2cxUF0tOoeZpwjIMZE=; b=iMIJoqNQyULUAUjbfBORMppmsFgRmuzm1t15wTwOTEOVttBYqKASoyfHoAb+Q2AUJY JuGS4KJU2LhDnG/W6JPjMLIL4HFYs3+scc2qMAc3TtTgmun1s4h2DPFwVOZ3qyqNTKsM VRXfaeQHxIR6QUEPRc7exQsBczU0QYk3hPUkqb8i3gt0+2iO8sRNqmobGU21Scx3nEPm lju+S756vsbnF6pBxAW5f1Pki2yEQf6Az7AZSQnHmesqSDM8QrfIolbnjQK/AKpyY99Z 65EfvwC5n3O2w2dmaYIqk5/NE7xSSow0HHxz0vqXzVS9fhZCBYwemW7l5rIbbEA4fLMv A0AQ== X-Gm-Message-State: AHQUAuYrQGOR7iK5Ou8bH9aGyd0C7RtLIZbOzVdpFxVGIZmLqUUPwq2Q ax+fHzvkpJvABCYYNmBx2YAYoTZY1lI= X-Google-Smtp-Source: AHgI3IYJN6mm7FFKAo9J29qGpM3VqAMnkJ36+W/njoGXlL5smLw5KLYfDNZohQSOWQl+hw7MHZSl+w== X-Received: by 2002:a1c:7409:: with SMTP id p9mr13303235wmc.136.1549277933248; Mon, 04 Feb 2019 02:58:53 -0800 (PST) Received: from localhost.localdomain (aputeaux-684-1-8-223.w90-86.abo.wanadoo.fr. [90.86.125.223]) by smtp.gmail.com with ESMTPSA id e9sm16193217wro.16.2019.02.04.02.58.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 02:58:52 -0800 (PST) From: Fabien Parent To: u-boot@lists.denx.de Date: Mon, 4 Feb 2019 11:58:42 +0100 Message-Id: <20190204105846.26889-3-fparent@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190204105846.26889-1-fparent@baylibre.com> References: <20190204105846.26889-1-fparent@baylibre.com> MIME-Version: 1.0 Cc: trini@konsulko.com, ryder.lee@mediatek.com, stephane.leprovost@mediatek.com, ccaione@baylibre.com, GSS_MTK_Uboot_upstream@mediatek.com Subject: [U-Boot] [PATCH 2/6] 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 --- 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 8573ea7430..9373481f50 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/mtk-sd.c @@ -1384,8 +1384,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 }, {} };