Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp566350imm; Fri, 8 Jun 2018 01:19:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLneTxs34KZ1c47I+wW5RDDyRMnYFcFj4TE6/uqrrna7XIubYQ/yC7CV0EA3evt6/XHitFb X-Received: by 2002:a17:902:8d8d:: with SMTP id v13-v6mr5512016plo.362.1528445999723; Fri, 08 Jun 2018 01:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528445999; cv=none; d=google.com; s=arc-20160816; b=m/QdM4pHbjAy1EA6y1QsEenxZKquj1gVUv3zPcYotdB5ewwNCY/XzG6BnAE4r/9XDR 4YNhDhuceGiFGrlHA4Q+Cn6Ji6hF69rl5nWlK9gOSUjYpsppqDN21a1lmsNs9u6D3GxN GysPDASti48z/6HiVzVSvAdv2JGpucnZu6rCAkY2mzJZ/fR8G8d7F+qqkm/mdPjt0ki6 JNdMJvzlbCagt87hIAV86f7lHxFiHttjX22FkmWtmICa3DwNXrezPqOjiS5z7SouOi7z EC+PH+P/yAdTPtPJd/CAzZrP4wpkRTfLDaGjFAZUhkfdtPiBODoBPa2ANy0VLkJc/C4N +zRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ynREAb8J460H3KB3El0lvkcMpoVil9SAoa2TrCeuB+w=; b=jmcLEc89u5WkcBhLGuDlptqoWE+le7nn1JqkFN9M4uzuON/CfnjZFlf6LAy/DrC5/e nJjEcZAaeyKgJlMzurnWv8DwG8mRnj3OHqUMtUEG6JrG9Xvet/UNDDk746uQV/SahcQw BGwQ8u0wjxazdHuOc16v3HngPzOClcQw/RBTy0aKz9Nc8qkxvIqKFdlbGCrm1Oas7xJD mBamEH4ui/B6Wx/tb4DjqwjP72+lCOvQzWbBpXdaEfEHN3l94QjK+5uMzSR84dMuZWVZ OwT1Gp0VJaRJSQm1yXnb4W7ymi2etK0RkSb5Jq4zpLZcKy/DwVrzKiZovRh1CXqQOB1F pcAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BRi1eyFw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g20-v6si11675184pgv.427.2018.06.08.01.19.45; Fri, 08 Jun 2018 01:19:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BRi1eyFw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932081AbeFHISx (ORCPT + 99 others); Fri, 8 Jun 2018 04:18:53 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:40906 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752753AbeFHISr (ORCPT ); Fri, 8 Jun 2018 04:18:47 -0400 Received: by mail-pl0-f68.google.com with SMTP id t12-v6so7844663plo.7 for ; Fri, 08 Jun 2018 01:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ynREAb8J460H3KB3El0lvkcMpoVil9SAoa2TrCeuB+w=; b=BRi1eyFw1rj4kB9r0PBU4Zrd+RiKaPaswEmSra3Gxg8SYSDAU0TvTDGqIJRrIlM3Ux wpQJzUAtLDQsTovkuCAl8yUGO+svLNfJeAgioAskESe+XFj423DmCwKyW2crn1XU/s8n fPYVnwH4A5FeSq51VK0GoqPVgIv4lkL6fTbQA= 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; bh=ynREAb8J460H3KB3El0lvkcMpoVil9SAoa2TrCeuB+w=; b=ZelFte+kkop3Z2lvMw4fL0/QLhQNIbxC35u++In//ycYELIAoEMIzQx+ASkavUWPR7 4z7jNKRH+8rUjPSoCNPozsHqcpxhLWEiQkfrO23qQ+R9ACYqBCOaWXy4I004ZIudfzf9 /3xv/Fqk710F9LmfN7qCD6OeTiDdjIv7TsVSziEflKkBy6lPSjgItcQjbs1LTiKeRkFC moqis36mF9H/7OHBgYIBbUVN+fmu0jpfFBOSAZ9VHTUr0+CUyb+Ar/KE9c8ug+tIDlzG WYP3RpiwJGKNMjMe/aUzImLcyMPPhrzkBX8b+X9pPvV1MoXjpYHvWcjOPsBNWqkStSRJ ig9g== X-Gm-Message-State: APt69E3OuHmYglCVcew36AQ1hlCYSq4KCaq+z8CD1wWggcEHafcHorlm i754V1/XEoGjFvEb9clfknP74A== X-Received: by 2002:a17:902:784d:: with SMTP id e13-v6mr5664123pln.197.1528445926948; Fri, 08 Jun 2018 01:18:46 -0700 (PDT) Received: from ubt.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id s4-v6sm72243947pgp.35.2018.06.08.01.18.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Jun 2018 01:18:45 -0700 (PDT) From: Chunyan Zhang To: Ulf Hansson , Adrian Hunter Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Baolin Wang , Billows Wu , zhang.lyra@gmail.com Subject: [PATCH 0/6] mmc: add support for sdhci 4.0 Date: Fri, 8 Jun 2018 16:18:07 +0800 Message-Id: <1528445893-14530-1-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From the SD host controller version 4.0 on, SDHCI implementation either is version 3 compatible or version 4 mode. This patch-set covers those changes which are common for SDHCI 4.0 version, regardless of whether they are used with SD or eMMC storage devices. This patchset also added a new sdhci driver for Spreadtrum's controller which supports v4.0 mode. This patchset has been tested on Spreadtrum's mobile phone, emmc can be initialized, mounted, read and written, with these changes for common sdhci framework and sdhci-sprd driver. Chunyan Zhang (6): mmc: sdhci: add sd host v4 mode mmc: sdhci: made changes for System Address register of SDMA mmc: sdhci: add ADMA2 64-bit addressing support for V4 mode mmc: sdhci: add 32-bit block count support for v4 mode mmc: sdhci: add CMD23 support for v4 mode mmc: host: sdhci-sprd: added Spreadtrum's host controller R11 drivers/mmc/host/Kconfig | 13 ++ drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-sprd-r11.c | 472 ++++++++++++++++++++++++++++++++++++++ drivers/mmc/host/sdhci.c | 85 +++++-- drivers/mmc/host/sdhci.h | 31 ++- 5 files changed, 580 insertions(+), 22 deletions(-) create mode 100644 drivers/mmc/host/sdhci-sprd-r11.c -- 2.7.4