From patchwork Sun Aug 20 15:11:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 803739 X-Patchwork-Delegate: yamada.m@jp.panasonic.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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TblP6n6l"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xb0kF0sXDz9sMN for ; Mon, 21 Aug 2017 01:15:17 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B8D6FC22028; Sun, 20 Aug 2017 15:13:22 +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_DNSWL_NONE, 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 D0A25C21EE8; Sun, 20 Aug 2017 15:12:13 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C0659C21FFE; Sun, 20 Aug 2017 15:12:11 +0000 (UTC) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by lists.denx.de (Postfix) with ESMTPS id EF92CC21FF5 for ; Sun, 20 Aug 2017 15:12:01 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id f8so8532957wrf.3 for ; Sun, 20 Aug 2017 08:12:01 -0700 (PDT) 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; bh=xuxqFTTJcM8RuR7bQqSPzUhUzco0xV4kyZeoo9ZDz5o=; b=TblP6n6lHKkkVZt8i8OYCqoZgnCMnIFYu4/qr6M8vpZUcqQE9l/6CvrWx5NXTYU8TP xuFbkuDI4Z0cU0oJLEXEyeastlTa9bFpkbD9CLtneh9DkR2Ytx+n/U7SGfLbyrAabFsa aN4ahg0xBhCp9qWTTiyAUoBP8X28ahoeX7M3AvKqTP//dgDX6YSF13KVDJKDWgk5RYLB pyI+vdYZUz5V7/jca+4KnOpw7C65RJTCNYq5Quf77LQO34Y1N2tAg42yZombVC2KxcM/ IYFikOZ+PG9wcRHH1I6Ihv0u6F2ICgA5+826/Z4nNSQ6ra2WlV1BgXklNgCCM6n+sJAW KXPA== 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; bh=xuxqFTTJcM8RuR7bQqSPzUhUzco0xV4kyZeoo9ZDz5o=; b=puzncSoZD6e8xiTlw59zor7bZjCHAGbr1a76LEw9tVkidAV2tOxzaskKPbFvU4VFhK N+FVXZomRwU16lxVlGq6QMwnN67vol8FhlHBbwVSzZPudQvXeqCcO+qORTBfV9jwpw8r oXjH7HqYDb1BE7FwrUcDfPyxq8NODYE6G+Zcxm5mXWitsjmnKsyO9rLdh47A75qAg/Ff NoezFo10lF/+QTeVSlqO+PnphSNcbCBaL5ZGRIKvC3fCZdjTAX7grsqz3OROvV26UmT1 cojeTV7/bmzoOwgMW5hYs18vBbDdA754hy+V3TjXnzHVkDGT5XDqq5+SU2Ro2X4kD+8d InPg== X-Gm-Message-State: AHYfb5gthQ17dc2CeCkckJAkgeoE02pQGcWxbGiaUOyxY9iTmcSVpGtA 69EXrsTelNHP7TFZ2oo= X-Received: by 10.28.156.129 with SMTP id f123mr5366146wme.177.1503241921386; Sun, 20 Aug 2017 08:12:01 -0700 (PDT) Received: from kurokawa.lan (ip-86-49-107-50.net.upcbroadband.cz. [86.49.107.50]) by smtp.gmail.com with ESMTPSA id q16sm9834574wrg.44.2017.08.20.08.12.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Aug 2017 08:12:00 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: u-boot@lists.denx.de Date: Sun, 20 Aug 2017 17:11:19 +0200 Message-Id: <20170820151119.2303-5-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170820151119.2303-1-marek.vasut+renesas@gmail.com> References: <20170820151119.2303-1-marek.vasut+renesas@gmail.com> Cc: Marek Vasut Subject: [U-Boot] [PATCH 5/5] mmc: uniphier-sd: Add support for R8A7795 and R7A7796 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add OF match entries and quirks for Renesas RCar Gen3 controllers into the driver. The IP this driver handles is in fact Matsushita one and in used both in Socionext and Renesas chips. Signed-off-by: Marek Vasut Cc: Masahiro Yamada Cc: Jaehoon Chung Acked-by: Masahiro Yamada --- drivers/mmc/Kconfig | 7 ++++--- drivers/mmc/uniphier-sd.c | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 56c352e72a..892437ed91 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/Kconfig @@ -162,12 +162,13 @@ config SH_SDHI Support for the on-chip SDHI host controller on SuperH/Renesas ARM SoCs platform config MMC_UNIPHIER - bool "UniPhier SD/MMC Host Controller support" - depends on ARCH_UNIPHIER + bool "UniPhier/RCar SD/MMC Host Controller support" + depends on ARCH_UNIPHIER || ARCH_RMOBILE depends on BLK && DM_MMC depends on OF_CONTROL help - This selects support for the SD/MMC Host Controller on UniPhier SoCs. + This selects support for the Matsushita SD/MMC Host Controller on + SocioNext UniPhier and Renesas RCar SoCs. config MMC_SANDBOX bool "Sandbox MMC support" diff --git a/drivers/mmc/uniphier-sd.c b/drivers/mmc/uniphier-sd.c index 77a6d60c5c..5c16f88d9c 100644 --- a/drivers/mmc/uniphier-sd.c +++ b/drivers/mmc/uniphier-sd.c @@ -834,6 +834,8 @@ static int uniphier_sd_probe(struct udevice *dev) } static const struct udevice_id uniphier_sd_match[] = { + { .compatible = "renesas,sdhi-r8a7795", .data = UNIPHIER_SD_CAP_64BIT }, + { .compatible = "renesas,sdhi-r8a7796", .data = UNIPHIER_SD_CAP_64BIT }, { .compatible = "socionext,uniphier-sdhc", .data = 0 }, { /* sentinel */ } };