From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-x234.google.com (mail-pg0-x234.google.com [IPv6:2607:f8b0:400e:c05::234]) (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 AC1CA81EA7 for ; Tue, 22 Nov 2016 23:08:55 -0800 (PST) Received: by mail-pg0-x234.google.com with SMTP id x23so2865142pgx.1 for ; Tue, 22 Nov 2016 23:08:55 -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=GNlCqe8k3fVvVBIr9TiHn7T37zh1XR8uqNMpUuaofxY=; b=HCTYgSoG+2sCjvTtxdYqlins7q3bwi0+nSjwFKFJp+ppwcV8W/md4Udn2cylg5yhXK jQ2Xh+8lNPPnB0FvSfn9jZ5rVGJRT0a9wtizM5dffCEsIG/HdNQlyDWg9br/MzXTFGak 6E72Gnkk1IUByEbiY+JCPflSx4/YOmTRf9M+8= 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=GNlCqe8k3fVvVBIr9TiHn7T37zh1XR8uqNMpUuaofxY=; b=ZbE8z8lQjZ0Yef5aCkrJFD7dN4PmQ11VINGgbdk+IME4V9jZeFs/jIOpOT782VGtNy OAk7F1Wlqw7gjBVVj4fDmlwQCxGN3E9NP7/Pqnt0BN6gMfxdZObDAdCsZj0vjTUj7hmJ 8yS7CZ4C/7CJagnBbVFAIM+USxgBu2d+SjRS2qyVzksO57GFHofVi2qadXcSeRnVAiCa Re4k1Ao/nyofJncOEGVG6LVkAKNYME7t4MzpXStJm5lDpzJ9aYlkY6lQMlBNCjJ8UmiU oLScckMcJT2VUGPc8mAdNmUia2duwk+5vmkrHTYlN8ExfM4nS6OIZ3sOBSBuo1ltlRpy RASw== X-Gm-Message-State: AKaTC00eb7gPhe+OBS9OcleyzeXlXKJTq5/FBI3BrOnpcOgEcfBK53Ba4RNScD9TYaWgeIbZ X-Received: by 10.99.126.6 with SMTP id z6mr2857364pgc.182.1479884935332; Tue, 22 Nov 2016 23:08:55 -0800 (PST) Received: from localhost.localdomain ([45.56.159.99]) by smtp.gmail.com with ESMTPSA id 65sm49873730pfn.12.2016.11.22.23.08.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Nov 2016 23:08:54 -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 15:08:37 +0800 Message-Id: <1479884921-25398-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [PATCH v7 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 07:08:55 -0000 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 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 | 36 ++- EmbeddedPkg/Universal/MmcDxe/Mmc.h | 25 ++ EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c | 176 +++++++++----- EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c | 291 ++++++++++++++++++++++- 5 files changed, 487 insertions(+), 70 deletions(-) -- 2.7.4