From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x22c.google.com (mail-pf0-x22c.google.com [IPv6:2607:f8b0:400e:c00::22c]) (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 394E681E1F for ; Mon, 21 Nov 2016 23:50:37 -0800 (PST) Received: by mail-pf0-x22c.google.com with SMTP id i88so2964837pfk.2 for ; Mon, 21 Nov 2016 23:50:37 -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=+A0I14qCmx6jteap5u+oDg3bo3yaa1bej5AoK8a98QQ=; b=X18LHwoNX9LTW2/poTASDQA9YLFhacYJ+eQ87M+bKDaDcrVvUan6guSeluaR6nNEdb QM0R2oM+8WJgBFXqdLfNizFWSKQ/JV7buJM0mmVf+NT6fsEHSD7Ovil/dq2HLJmdcrEA R4bCOk/dCaHXNXRjoB+CBJ7K2hL0k+lMRWelk= 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=+A0I14qCmx6jteap5u+oDg3bo3yaa1bej5AoK8a98QQ=; b=c+NyAYOE8XfBrBe0axnLdPAXd08qmTwQIF3KndOwd+69bgL2RZNV+6CFXILPtv4h3K THpuEOaLWxHCAF1vKe7+5mPI5mZK1a7lCsEx7o1VE6Dl98VXa1zZIBcn9im8StKmXnMO Hh0xhLcGiWLZR88IUDsMasdsC64fWZdCOp0SxoicV0NvntTzjjOrlMK8f5B/7g6LPq4k CFN1BC9ENuaX+yKEYhJ2aVT7jHHSW+xhNeElVfXROjJ9RrFpIlVe1sq+U1ykAzBkRHk4 8jgVq0tarT4Qi/Tea3CE+QzIukKgufHkvUeqvMGlBaBPmbeQB9GswOvqkhNjsHtjISj6 WPbA== X-Gm-Message-State: AKaTC03Gml43JJDpgbxLgaC2iqvwU2nrN5F29Wx9JCyRFZm1ck0mdHoyKrE6MYUYQGHtP/dI X-Received: by 10.99.146.76 with SMTP id s12mr41165908pgn.8.1479801036688; Mon, 21 Nov 2016 23:50:36 -0800 (PST) Received: from localhost.localdomain ([45.56.159.13]) by smtp.gmail.com with ESMTPSA id f132sm26323216pfa.72.2016.11.21.23.50.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 23:50:36 -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: Tue, 22 Nov 2016 15:50:24 +0800 Message-Id: <1479801028-3587-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [PATCH v6 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: Tue, 22 Nov 2016 07:50:37 -0000 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 to change io width and speed 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 | 29 +++ EmbeddedPkg/Universal/MmcDxe/Mmc.h | 25 ++ EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c | 176 +++++++++----- EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c | 291 ++++++++++++++++++++++- 5 files changed, 481 insertions(+), 69 deletions(-) -- 2.7.4