From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Cc: Haojian Zhuang 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: [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: , X-List-Received-Date: Tue, 08 Nov 2016 15:22:02 -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..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 -- 2.7.4