From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x235.google.com (mail-pf0-x235.google.com [IPv6:2607:f8b0:400e:c00::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 4A04581D4F for ; Tue, 8 Nov 2016 07:21:41 -0800 (PST) Received: by mail-pf0-x235.google.com with SMTP id 189so109750677pfz.3 for ; Tue, 08 Nov 2016 07:21:44 -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=hWGAGA2lccG9bSJzDD7IvLhpGxmqX6WZ9QZEcWd14ow=; b=NY/7Er9mRGwo1lSiIigOGB5FmmAbVbASB+pKIIhQgKqLtqf99zR7zgtKnxMPNkGFXc y3/h4fZh5FOc2AC5a36RiXdgnZmgoUtnrCKvxnP/sFA5gA9a4wwfX0oudsrOUHGh31q/ Xoae2Yw3GbsKUeKLMLQUnhtQ9IdZmM2ec4QgM= 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=hWGAGA2lccG9bSJzDD7IvLhpGxmqX6WZ9QZEcWd14ow=; b=PAx2pDZN8HakmMNb//owu5Xm3hByg83XXPtG3N/iuGj7FaqeH5J2N+WARB46vtC1GI 2W3iyQid7PzvQnrN5074w6dzLiwybNOUWSNWywUF1/7XD3hmXpcFp20EbuOcJLHDJ8q7 nwY5/Rp96HXe1WHM3deG0UKLne+KVVBIs7bYgmKHvR9wNJNujw6sybjFxS57b/EYmSN6 B+xQeyoGs2Xh9vOHhW+6MTmWFtjxXVHwLMb08Y+v+adgbPQCBXrETc6mAUbnsmp3nF5k B0reQcW5+B6SIiVVqxDpArcY7SjmyxiZP3wzJEkkrwjzqq9zBD8gZ66M83+NG8+8GHMF /o/g== X-Gm-Message-State: ABUngveREE1ieZTSxNi0eC9wIlMWEmCX6bZQQS7SwlfJwfw/7+Hjayo6FhD5NuwiUCz/d3bL X-Received: by 10.98.75.157 with SMTP id d29mr24071292pfj.14.1478618504170; Tue, 08 Nov 2016 07:21:44 -0800 (PST) Received: from localhost.localdomain ([45.56.159.76]) by smtp.gmail.com with ESMTPSA id g10sm7971804pac.14.2016.11.08.07.21.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Nov 2016 07:21:43 -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, 8 Nov 2016 23:21:05 +0800 Message-Id: <1478618476-12608-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [PATCH v4 00/11] 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, 08 Nov 2016 15:21:41 -0000 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 (11): 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 PL180: set variable length for CMD6 and ACMD51 ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c | 29 +- EmbeddedPkg/Include/Protocol/MmcHost.h | 29 ++ EmbeddedPkg/Universal/MmcDxe/Mmc.h | 176 ++++++++++- EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c | 175 +++++++---- EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c | 354 +++++++++++++++++++++-- 5 files changed, 669 insertions(+), 94 deletions(-) -- 2.7.4