History log of /device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHci.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a00df2e5626f6aafafb9bdfd3e189402b1329530 07-Jul-2016 Hao Wu <hao.a.wu@intel.com> MdeModulePkg SdBlockIoPei: Initialize 'SwitchResp' elements before using

The commit makes sure that the elements in array 'SwitchResp' get
initialized before being used.

Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHci.c
6263ae931d66d3aaace09e6819e305ef171a806a 03-May-2016 Feng Tian <feng.tian@intel.com> MdeModulePkg/SdMmcPciHcDxe: Check SD's supported bus mode before switch

Before switch to a bus mode, we need check if the SD device supports
this bus mode.

Cc: Wu, Hao A <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHci.c
8c983d3e06da799e623a9f46fcaa207455482091 03-May-2016 Feng Tian <feng.tian@intel.com> MdeModulePkg/SdMmcPciHcDxe: Error handling enhance on tuning procedure

Enhance the code to reset tuning circuit when tuning error case happens.

Cc: Wu, Hao A <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHci.c
e7e89b0861fa561c2c13eee3271655c100b3abb9 29-Apr-2016 Feng Tian <feng.tian@intel.com> MdeModulePkg/SdMmcPciHcDxe: Using PIO rather than DMA for clock tuning

The original code is using ADMA mode to do clock tuning procedure. It
may have problem on some SD/MMC host controllers as there is no way to
know when to send next tuning cmd.

Update it to PIO mode to strictly follow SD Host Controller Simplified
Specification 3.0 Figure 2-29. By this way, if the Buffer Read Ready
interrupt is set, we could know it's ok to send the next clock tuning
cmd.

Cc: Wu, Hao A <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHci.c
cb9cb9e2aaec95f89f3c0dfc411226aa6c42461a 29-Apr-2016 Feng Tian <feng.tian@intel.com> MdeModulePkg/SdMmcPciHcDxe: Use BaseClk if the target clock is larger

The original code has a bug to calculate which clock freq should be
used when the target clock freq is larger than the BaseClock Freq
provided by the system.

Cc: Wu, Hao A <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHci.c
2a8b78cfd5f9e0f7f7a8c7111813054fb9040554 12-Apr-2016 Feng Tian <feng.tian@intel.com> MdeModulePkg/Sd: wait 1ms before check DATA line in voltage switch proc

According to SD Host Controller 3.0 spec figure 3-10, we have to wait
1ms before checking DAT[3:0] in voltage switch proc

Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHci.c
48555339beb65f90bd42995a15bd38cd45e378f5 23-Mar-2016 Feng Tian <feng.tian@intel.com> MdeModulePkg/SdMmc: Add EDKII SD/MMC stack

This stack includes:
1. Dxe phase support by:
1) SdMmcPciHcDxe driver to consume PciIo and produce
SdMmcPassThru.
2) SdDxe driver to consume SdMmcPassThru to produce
BlkIo1/BlkIo2.
3) EmmcDxe driver to consume SdMmcPassThru to produce
BlkIo1/BlkIo2/SSP.

2. Pei phase support
1) SdBlockIoPei driver to consume SdMmcHostController
Ppi and produce VirutalBlkIo1&2.
2) EmmcBlockIoPei driver to consume SdMmcHostController
Ppi and produce VirutalBlkIo1&2.
3) SdMmcPciHcPei driver to produce SdMmcHostController
Ppi.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHci.c