]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/SdMmcOverride: Add GetOperatingParam notify phase
authorAlbecki, Mateusz <mateusz.albecki@intel.com>
Wed, 26 Jun 2019 13:10:02 +0000 (21:10 +0800)
committerHao A Wu <hao.a.wu@intel.com>
Mon, 1 Jul 2019 01:19:26 +0000 (09:19 +0800)
commitf56cc67f62b25f524d95d77696d9dab5514a798a
tree6e7db69ae978c84c31090e1d1c337f0bb9fb6fe4
parenta37e18f6fc108f9f19678b2c9920713a6dd92d94
MdeModulePkg/SdMmcOverride: Add GetOperatingParam notify phase

https://bugzilla.tianocore.org/show_bug.cgi?id=1882

The new notify phase allows platform to configure additional
bus parameters in addition to parameters that can already be configured
with capability override. Specifically we allow to configure bus width,
clock frequency and driver strength. If platform doesn't wish to configure
some of the parameters it can left it on default values and driver will
assume it's standard behavior with respect to those parameters.
The definition of the SD_MMC_BUS_MODE has been extended to
incorporate SD card default speed and high speed.

Tests on Marvell boards were also performed by Marcin Wojtas
<mw@semihalf.com>:

https://edk2.groups.io/g/devel/message/42999

Board 1 (out of tree): SD - OK, MMC - OK
Board 2: (Armada80x0McBin): SD - OK, MMC - OK
Board 3: (Armada70x0Db): SD - problems, MMC - OK

Please note that the problem on Armada70x0Db SD devices are introduced by
adding new types of SD bus modes, a subsequent patch within edk2-platforms
repository will be proposed to address it.
(More details can be referred from the above link.)

Signed-off-by: Mateusz Albecki <mateusz.albecki@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Regression-tested-by: Sumit Garg <sumit.garg@linaro.org>
MdeModulePkg/Include/Protocol/SdMmcOverride.h