From patchwork Wed Sep 21 15:02:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 76697 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp2096966qgf; Wed, 21 Sep 2016 08:02:47 -0700 (PDT) X-Received: by 10.66.251.166 with SMTP id zl6mr39015293pac.77.1474470167565; Wed, 21 Sep 2016 08:02:47 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id p75si37714615pfj.135.2016.09.21.08.02.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Sep 2016 08:02:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 402AA1A1EF7; Wed, 21 Sep 2016 08:02:46 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org 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 CD6381A1EF6 for ; Wed, 21 Sep 2016 08:02:45 -0700 (PDT) Received: by mail-pa0-x231.google.com with SMTP id oz2so19253280pac.2 for ; Wed, 21 Sep 2016 08:02:45 -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:in-reply-to:references; bh=NQVJ0Q+k8I8p8aZkjaLUrqkGxLruEI19H8BLJDJc/wo=; b=gGEqiqLnhgccnsDzonm7OcUoswF/qMe0t3txLB7HkPtWbUnwVULPFCXsitvCUM4qpp nxjOrsDWwwc0yZYPPqxvT6eGM35Fx0KG+lWqoa8vcHzVGKZcOKZ7IsdkMJwU1f6Ws9rb qzbENhCY503ZFw9zk5sSQ0w+pUDahXtGnZefc= 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:in-reply-to :references; bh=NQVJ0Q+k8I8p8aZkjaLUrqkGxLruEI19H8BLJDJc/wo=; b=W7qxc3xVd0iLJI1pM3zGWhzXLaRl+wYkpTnKUh5f4YfJxl20NZYp3X9oqTzFMWQjQ9 iN/kVnX+jkhMPXIdEJwZX3m+0WwOGQasoUojcvHlkVEA9GcfexQpJlMc0BDwlvFjcyGa auDcTIunVlT8K8oif8Vt62CFHH0ADtAcwdnIkl8BF8LV/JZKjmO6P86Q8/8+Tk5ldLc1 ayC0f8Ii9dGPw812xl825cJs/gByNIeg8N3bkZYk84U4/0iKNEUIvmKFP6NtNgpe118C iQRQNL6t4UAtiPEo7XmV3faDaFPCDIzW04bOglgISixR4ilB9AnY9mnUToVCww3WmVi6 HSMw== X-Gm-Message-State: AE9vXwMMgDJZjzi9TChnlln+WmSQ3nS4VRTHb7KSqPbceltQWdFThAB9Q1LV1h4JvxLUn+Iv X-Received: by 10.66.127.14 with SMTP id nc14mr65455415pab.18.1474470165541; Wed, 21 Sep 2016 08:02:45 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.137]) by smtp.gmail.com with ESMTPSA id 85sm28914221pfw.92.2016.09.21.08.02.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Sep 2016 08:02:44 -0700 (PDT) From: Haojian Zhuang To: ryan.harkin@linaro.org, edk2-devel@lists.01.org, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org Date: Wed, 21 Sep 2016 23:02:21 +0800 Message-Id: <1474470147-23156-5-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474470147-23156-1-git-send-email-haojian.zhuang@linaro.org> References: <1474470147-23156-1-git-send-email-haojian.zhuang@linaro.org> Subject: [edk2] [PATCH v3 04/10] MmcDxe: add interface to change io width and speed 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: , Cc: Haojian Zhuang MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" By default, MMC is initialized with 1-bit mode and less than 400KHz bus clock. It causes MMC working inefficiently. Add the interface to change the bus width and speed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Haojian Zhuang --- EmbeddedPkg/Include/Protocol/MmcHost.h | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/EmbeddedPkg/Include/Protocol/MmcHost.h b/EmbeddedPkg/Include/Protocol/MmcHost.h index 89f2e80..13e99e7 100644 --- a/EmbeddedPkg/Include/Protocol/MmcHost.h +++ b/EmbeddedPkg/Include/Protocol/MmcHost.h @@ -131,6 +131,12 @@ typedef EFI_STATUS (EFIAPI *MMC_WRITEBLOCKDATA) ( IN UINT32 *Buffer ); +typedef EFI_STATUS (EFIAPI *MMC_SETIOS) ( + IN EFI_MMC_HOST_PROTOCOL *This, + IN UINT32 BusClockRate, + IN UINT32 BusWidth + ); + struct _EFI_MMC_HOST_PROTOCOL { @@ -147,6 +153,8 @@ struct _EFI_MMC_HOST_PROTOCOL { MMC_READBLOCKDATA ReadBlockData; MMC_WRITEBLOCKDATA WriteBlockData; + MMC_SETIOS SetIos; + }; #define MMC_HOST_PROTOCOL_REVISION 0x00010001 // 1.1