From patchwork Fri Feb 26 09:27:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 62975 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp608560lbc; Fri, 26 Feb 2016 01:28:30 -0800 (PST) X-Received: by 10.98.70.139 with SMTP id o11mr631226pfi.123.1456478910807; Fri, 26 Feb 2016 01:28:30 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id y6si1872743par.58.2016.02.26.01.28.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Feb 2016 01:28:30 -0800 (PST) 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; 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 430101A1E17; Fri, 26 Feb 2016 01:28:35 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-oi0-x22f.google.com (mail-oi0-x22f.google.com [IPv6:2607:f8b0:4003:c06::22f]) (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 CBC6A1A1E0D for ; Fri, 26 Feb 2016 01:28:33 -0800 (PST) Received: by mail-oi0-x22f.google.com with SMTP id j125so59096219oih.0 for ; Fri, 26 Feb 2016 01:28:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:from:to:cc:subject:date:in-reply-to:references :mime-version; bh=Q6/Nj+yrCqPvvBI+tQu0Y7pYorsA5opMdtAJA2ghJLo=; b=SBpLZn9owrJkHW3/+TioHSgqrib69IJCvJsnb5qOHAP81GlCVlyezAe4BQYM3xbTPp 3WKn0CUWxIXOzq7wl9ejL33pHlPTDeTLSO7BXpqndzHUbeoaxrgaEihnWbEwO4dh8xHj DtQVHmfm6uxtHRfd7qR0n+0nVn+bVu6DiRPYE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:from:to:cc:subject:date:in-reply-to :references:mime-version; bh=Q6/Nj+yrCqPvvBI+tQu0Y7pYorsA5opMdtAJA2ghJLo=; b=Jy4NEm/zMKoTuvxSkv2NV0EMHUY9aYMf606HAaWqyax63ji8jJq8TGmVNjRhQorr+q 8455+qAp6OPao4U3yL7wtVGvKQZgNEaYuG6JW+wencKF5dleqwcALHbgSi8TszFFac2n 2JltlJJbMPR+4iuKLvfPiryxWzSw5mOJqjUJzZlUsahBl+dZyGlEH2J8KYWjs5iTWDbU rSJr1s291M0uz5f3CPx0fRPECszKBzRA/lvN7QUsG6mKw1MbaE+4eblT/dFmJaNgc8/i ZLZTfJ/2dIGaBdokIEotVTLUqHW2Z00BVTf3CC3Dvw5dqWXmzY7fTgyP81Ld+aU2qYJg 6uCQ== X-Gm-Message-State: AD7BkJIrLAI+Wu5ol0z6/XiB2nkkqaoteDrA3Jvhcs5WFEAk8KuDZUNFQXKloeSfA7Hx/VMJ X-Received: by 10.202.211.199 with SMTP id k190mr321600oig.95.1456478908336; Fri, 26 Feb 2016 01:28:28 -0800 (PST) Received: from mail.hotmail.com (blu004-wss1s2.hotmail.com. [134.170.2.217]) by smtp.gmail.com with ESMTPSA id ym6sm8244262obc.23.2016.02.26.01.28.26 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Feb 2016 01:28:27 -0800 (PST) Received: from BLU437-SMTP102 ([134.170.2.215]) by BLU004-WSS1S2.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Fri, 26 Feb 2016 01:28:26 -0800 X-TMN: [uGwKzPKrZ/GO4a0r310BLDJvBdtyYwPS] Message-ID: From: Haojian Zhuang To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org Date: Fri, 26 Feb 2016 17:27:51 +0800 X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456478876-23434-1-git-send-email-haojian.zhuang@linaro.org> References: <1456478876-23434-1-git-send-email-haojian.zhuang@linaro.org> X-OriginalArrivalTime: 26 Feb 2016 09:28:24.0026 (UTC) FILETIME=[0A37A3A0:01D17078] MIME-Version: 1.0 Cc: Haojian Zhuang Subject: [edk2] [PATCH 4/9] MmcDxe: add interface to change io width and speed X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , 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(+) -- 1.9.1 _______________________________________________ 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