From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-x235.google.com (mail-pg0-x235.google.com [IPv6:2607:f8b0:400e:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id CA8B681E8B for ; Wed, 23 Nov 2016 05:36:32 -0800 (PST) Received: by mail-pg0-x235.google.com with SMTP id x23so6346502pgx.1 for ; Wed, 23 Nov 2016 05:36:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=zwNoqAPYwiFw9O1UrGlBci/fmJs90UcwTYkfwwfdsyo=; b=jhYCVEivK57PqIyizZzcz19x4GAUgIgz2TjJsV8zyWXkTiR8e9Sh2O5cwIz+ViN+h7 YJ+cRDsgh0tgIvDhcdg5wnbxysVLWSSwaOgDoXR9C6INOZMiWOFFBbN3LpQZF2Ccoq2c HoAIFeHJNiwU8cV4plbYO04MGdhEagoVlzPB4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zwNoqAPYwiFw9O1UrGlBci/fmJs90UcwTYkfwwfdsyo=; b=kkPnNBLVOzQ+7gzENGigoQda12oMj3nNyxvX/bQlIHuhOsw1sVpS1i7XbKvUyeRCy9 GWLauviGZzmf1hrptAk3vkVi5O2HJC+JjtdjDLluYqBw/PjeGRBE8gajTgm8gLMRHMb0 qg+Mbf0+UfpCPoecAQSVSF6neqbvLQ+lStil5UrFFKUGX6LtORp7t9bUWYrIf2xYwZet 8KERMNEd/hsh/F8e4Z7Nfx3j4kxUdpk6V7NfBunvmSWv1W6nTPCBq9bom7UjYo8iu8a9 HLJZK6eDifyoQcl5CfvQHf4OiWMopAfb92F3ruKwQBSMq6FQdEy+QfRWmUZ4pMqGaMRi 6NtA== X-Gm-Message-State: AKaTC039JsRTMLyZxYTXgp2P9KBzQuXN1IO/uCzlYws057gg3lCcOZQT5yhU6+lVGJDxECgB X-Received: by 10.84.192.1 with SMTP id b1mr6698666pld.113.1479908192216; Wed, 23 Nov 2016 05:36:32 -0800 (PST) Received: from localhost.localdomain ([45.56.159.99]) by smtp.gmail.com with ESMTPSA id t184sm35126910pgt.36.2016.11.23.05.36.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Nov 2016 05:36:31 -0800 (PST) From: Haojian Zhuang To: ryan.harkin@linaro.org, edk2-devel@lists.01.org, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org Cc: Haojian Zhuang Date: Wed, 23 Nov 2016 21:36:20 +0800 Message-Id: <1479908184-9406-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [PATCH v8 0/4] enhance MMC X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2016 13:36:32 -0000 v8: * Avoid to update revision number twice. * Move IsMultiBlock() interface from patch #4 to #1. * Replace 24MHz with 26MHz since 26MHz is specified by spec. v7: * Add revision checking. v6: * Reformat the last 5 patches after 4 MMC patches of this series merged. * Squash original #5 and #6 patches together. * Fix according comments. v5: * Remove patch on MediaId. * Squash two PL180 patches together. v4: * Fix PL180 hang in some cases. Since the proper variable length isn't set for CMD6 & ACMD51. v3: * Fix PL180 hang because of CMD6 & ACMD51 not supported. v2: * Fix print error with missing parameter. * Change CMD51 to ACMD51. * Add the protection after CMD55 for SD. If there's no response of CMD55, skip to send ACMD51. v1: * Wait OCR busy bit free according to eMMC spec. * Define ECSD structure. * Add interface to set IO bus width and speed. * Support to access multiple blocks. Haojian Zhuang (4): MmcDxe: add interface in mmc host protocol MmcDxe: set iospeed and bus width in SD stack PL180: update for indentifying SD MmcDxe: expand to support multiple blocks ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c | 29 ++- EmbeddedPkg/Include/Protocol/MmcHost.h | 35 ++- EmbeddedPkg/Universal/MmcDxe/Mmc.h | 25 ++ EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c | 176 +++++++++----- EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c | 291 ++++++++++++++++++++++- 5 files changed, 486 insertions(+), 70 deletions(-) -- 2.7.4