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 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 Cc: Haojian Zhuang 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: [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: , X-List-Received-Date: Wed, 21 Sep 2016 15:02:46 -0000 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(+) 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 -- 2.7.4