From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-x231.google.com (mail-pa0-x231.google.com [IPv6:2607:f8b0:400e:c03::231]) (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 E01B21A1EDF for ; Wed, 21 Sep 2016 08:02:34 -0700 (PDT) Received: by mail-pa0-x231.google.com with SMTP id oz2so19251910pac.2 for ; Wed, 21 Sep 2016 08:02:34 -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=Yq5NxahL2yFXFzYZijEGSTz+i8/hw6h4thIbaopmjBU=; b=B4iD0+IESfU3xIPuCI38xiEE0Ii7aCBrT+IYHgWAMxsxWFqGUvD1SeHp4JJ8qbo/Xy yF9a7edTms0TQfPkjBl8iUhU0t7fik0FMQSkoMSFBnh9zjKlvhIZUSNKhyIHgK+6Xmao qwgnv0TlwWgM5IiiTbAM4/7d3WbL2w/Gy4EdQ= 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=Yq5NxahL2yFXFzYZijEGSTz+i8/hw6h4thIbaopmjBU=; b=WlvJB24cD4xdz/rXnE6WkW0PfcI5rC0mVhHLOsoBkPuDEPF8gy9az0IwFRbF86PHBs XHGo9v92CS2KhK7zZRtmTy9M6/9J9GcTT5j1lNh44E9yEjJ5Hkf3YOqcC25m1CiJ8StF 0LpEHbZDYorHuGRjJTMmpNMBcgFKAfH35cDtAzI1OAyC91TiD/wv2rbsfBvOGjffDUfo SIWJRomdlhKbhIQgjHPzvh+j9GLgBwfnfUposIlhSoYvlBYiwKxH0V6EdVxjvU1QIcMW xosVqkznC1mIsH+6y/tlMssftvRe/nS8IOK6ic1BE2jgRp4zZHh9BMvN3AJ2oS4rJlWM PryA== X-Gm-Message-State: AE9vXwPmWspz3S172hqeoy/Pz1Wgu2BILkSR8zV1OTjm+dg5W3fxIHrMgTEIs254jRFYkAGG X-Received: by 10.66.27.44 with SMTP id q12mr65583450pag.58.1474470154330; Wed, 21 Sep 2016 08:02:34 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.137]) by smtp.gmail.com with ESMTPSA id 85sm28914221pfw.92.2016.09.21.08.02.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Sep 2016 08:02:33 -0700 (PDT) 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, 21 Sep 2016 23:02:17 +0800 Message-Id: <1474470147-23156-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [PATCH v3 00/10] 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, 21 Sep 2016 15:02:35 -0000 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 (10): MmcDxe: wait OCR busy bit free MmcDxe: move ECSD into CardInfo structure MmcDxe: add SPEC_VERS field in CSD structure MmcDxe: add interface to change io width and speed MmcDxe: declare ECSD structure MmcDxe: set io bus width before reading EXTCSD MmcDxe: Fix uninitialized mediaid for SD 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 | 15 +- EmbeddedPkg/Include/Protocol/MmcHost.h | 29 ++ EmbeddedPkg/Universal/MmcDxe/Mmc.h | 176 +++++++++++- EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c | 175 ++++++++---- EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c | 350 +++++++++++++++++++++-- 5 files changed, 659 insertions(+), 86 deletions(-) -- 2.7.4