From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-x22c.google.com (mail-pg0-x22c.google.com [IPv6:2607:f8b0:400e:c05::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 B1D3381DB6 for ; Sat, 12 Nov 2016 22:48:06 -0800 (PST) Received: by mail-pg0-x22c.google.com with SMTP id x23so34353841pgx.1 for ; Sat, 12 Nov 2016 22:48:11 -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=UKy5AYZq5HK2eKLevJOoto01g3n3QuINTQwzKrBRk9U=; b=gS4VG0H2DJI1uYmVpKIZeFJsZey37YZuqtmx5nZqI7jlwkUUV4Icm40ZRI5Maovx1F k7QfzikXu3muZVw5HrG3FpqLNNxGfJaRmYXd/zQjhLB9v1CfvnHZq6VZi1vsIXpcb6r9 Y98rqckfjGkzQSHtdbvGVKk8+IcQG6SueuD80= 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=UKy5AYZq5HK2eKLevJOoto01g3n3QuINTQwzKrBRk9U=; b=W1wwhLHX/2wYtxumk3YdScWtlDVHnPoTszAK+YF6EN51gKDWM74LgIitnsTeDFLzuA YTG16BHa8wfatSMH6Vod9GUdnftwaZb5FtSIGrg7wTLk2nBiycPuTGVtUv9utynjMcds QKSxGovmSgTCTzL8S2U1V9zCn2jZtmNkbu0fjGqivXCKcgPpRDimi+EkEBXAGZgwcngC emohezF2jUj5cMued3CTigA5whk5TR+QFxutGhZAhFxgunNQly9/1DiGimdFf6B7tzCp DvnKcFv4ReRCslTSVbuX/PoC8epc/G3Hq/YL/hHMczdR1PzIwpchbScvRmEpn4vPJEeC yknA== X-Gm-Message-State: ABUngvfgcI6er8Ar2FcQdF64sWB3ar1nySBgx/tlAnyMgTtS85Nz+WCUjEnWpH89aP38pbcq X-Received: by 10.98.35.5 with SMTP id j5mr23485633pfj.91.1479019690700; Sat, 12 Nov 2016 22:48:10 -0800 (PST) Received: from localhost.localdomain ([45.56.159.75]) by smtp.gmail.com with ESMTPSA id a66sm26198365pfa.64.2016.11.12.22.48.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 12 Nov 2016 22:48:10 -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: Sun, 13 Nov 2016 14:47:49 +0800 Message-Id: <1479019678-12621-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [PATCH v5 0/9] 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: Sun, 13 Nov 2016 06:48:06 -0000 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 (9): MmcDxe: wait OCR busy bit free MmcDxe: move ECSD into CardInfo structure MmcDxe: declare ECSD structure MmcDxe: add SPEC_VERS field in CSD structure MmcDxe: add interface to change io width and speed MmcDxe: set io bus width before reading EXTCSD MmcDxe: set iospeed and bus width in SD stack MmcDxe: expand to support multiple blocks PL180: update for indentifying SD ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c | 29 +- EmbeddedPkg/Include/Protocol/MmcHost.h | 29 ++ EmbeddedPkg/Universal/MmcDxe/Mmc.h | 176 +++++++++++- EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c | 177 ++++++++---- EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c | 347 +++++++++++++++++++++-- 5 files changed, 664 insertions(+), 94 deletions(-) -- 2.7.4