From patchwork Tue Nov 8 15:21:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 81341 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1603927qge; Tue, 8 Nov 2016 07:22:06 -0800 (PST) X-Received: by 10.99.142.201 with SMTP id k192mr7380727pge.174.1478618526617; Tue, 08 Nov 2016 07:22:06 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id p6si28950887pgf.238.2016.11.08.07.22.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Nov 2016 07:22:06 -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; 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 0538D81D83; Tue, 8 Nov 2016 07:22:03 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-pf0-x236.google.com (mail-pf0-x236.google.com [IPv6:2607:f8b0:400e:c00::236]) (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 77E6981D69 for ; Tue, 8 Nov 2016 07:22:02 -0800 (PST) Received: by mail-pf0-x236.google.com with SMTP id 189so109754709pfz.3 for ; Tue, 08 Nov 2016 07:22:05 -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:in-reply-to:references; bh=a2PzlJ8EFw9L8xl6XM3QomodJ76FcB3Zg8f5gdO8bjY=; b=WVf7sACvrnmp9BIstF4iaYznoUH8kteRs158rxRm7RRAkOVwmaaNKSkt84mabZoL8C 7uqnbzpccrXbQ0Be4lfZKo4BKuvIN9eY/9vLDwnGz2MY+fmGuQZ+pjmIey4c+lcN3gsg X/uzA5KH+8sXrmvN3QdInJtgdGo7CgXPTdoMY= 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=a2PzlJ8EFw9L8xl6XM3QomodJ76FcB3Zg8f5gdO8bjY=; b=YcF+4KL1cNENI5AB1WwFVhr/Qu8GaJHJNlkqPe5sNCk9vrBhClJRDg1ympfV8w/0Qh Q9R8AnygF+CM8nxUjYBgSms4SZNt5TUKuXqGoKERi0Hyu1/1BfWcaaW5FPK4xPmheqEs lYNqzAwnnBzx0p7gnF+UDPYtHBN1tcqEG2GXnDACVBLu6RL928RB8HimSxRIoB5ahjxn WMyzaGojItY7/QY9xgix1168uA3l03kFIOtoodW9dYPh1cREd38+TitKE3c7TKVvm+us 9NUYqcnMMnyD9wOrAvh0e/johQjAISpC+5WjmY5E2DhO7ZbR/8Jg8+Dy6+3D6cBQ6H3O vHuw== X-Gm-Message-State: ABUngvf+PZ+dk7eQhwXtMMI3oc/YcQaXAmVuMVnnpLK+oGitEBNmbsvTPYCySSR6HMIQMPho X-Received: by 10.99.42.80 with SMTP id q77mr19688771pgq.3.1478618525425; Tue, 08 Nov 2016 07:22:05 -0800 (PST) Received: from localhost.localdomain ([45.56.159.76]) by smtp.gmail.com with ESMTPSA id g10sm7971804pac.14.2016.11.08.07.22.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Nov 2016 07:22:05 -0800 (PST) From: Haojian Zhuang To: ryan.harkin@linaro.org, edk2-devel@lists.01.org, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org Date: Tue, 8 Nov 2016 23:21:09 +0800 Message-Id: <1478618476-12608-5-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1478618476-12608-1-git-send-email-haojian.zhuang@linaro.org> References: <1478618476-12608-1-git-send-email-haojian.zhuang@linaro.org> Subject: [edk2] [PATCH v4 04/11] 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..a242291 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