Hi,
On top of latest NonDiscoverable PciEmulation support I submit v2 of Xenon SdMmc driver. Improvements after review of v1 have been implemented, also entire SdMmcPciHcDxe was imported to new driver's directory.
Code is also available in the github: https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/commits/opp-...
We are looking forward to any comments or remarks.
Best regards, Marcin
Changelog: v1 -> v2
- Import whole stack from MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/ - Move driver to Drivers/SdMmc/Xenon/ directory - Use Slot number 0 only, since XENON is using only this one - Remove unnecessary delay - Move SD/MMC PHY configuration to MPP lib (additional commit) - Replace comments with defines - Add descriptions to delays - Improve commit logs
Jan Dąbroś (4): Platforms/Marvell: MppLib: Configure SD/MMC PHY Drivers/SdMmc: Import SdMmcPciHcDxe driver Drivers/SdMmc: Adjust Sd stack to fulfill Xenon controller demands Platforms/Marvell: Enable SD/MMC stack for Armada70x0 platforms
Marcin Wojtas (1): Platforms/Marvell: Enable SD/MMC for Armada70x0 board
Drivers/SdMmc/Xenon/MvComponentName.c | 211 +++ Drivers/SdMmc/Xenon/MvEmmcDevice.c | 1162 ++++++++++++++++ Drivers/SdMmc/Xenon/MvSdDevice.c | 1190 ++++++++++++++++ Drivers/SdMmc/Xenon/MvSdMmcPciHcDxe.c | 1784 ++++++++++++++++++++++++ Drivers/SdMmc/Xenon/MvSdMmcPciHcDxe.h | 785 +++++++++++ Drivers/SdMmc/Xenon/MvSdMmcPciHcDxe.inf | 78 ++ Drivers/SdMmc/Xenon/MvSdMmcPciHcDxe.uni | 23 + Drivers/SdMmc/Xenon/MvSdMmcPciHcDxeExtra.uni | 19 + Drivers/SdMmc/Xenon/MvSdMmcPciHci.c | 1923 ++++++++++++++++++++++++++ Drivers/SdMmc/Xenon/MvSdMmcPciHci.h | 546 ++++++++ Drivers/SdMmc/Xenon/XenonSdhci.c | 659 +++++++++ Drivers/SdMmc/Xenon/XenonSdhci.h | 346 +++++ Platforms/Marvell/Armada/Armada.dsc.inc | 5 + Platforms/Marvell/Armada/Armada70x0.dsc | 1 + Platforms/Marvell/Armada/Armada70x0.fdf | 7 +- Platforms/Marvell/Library/MppLib/MppLib.c | 45 + Platforms/Marvell/Library/MppLib/MppLib.inf | 1 + 17 files changed, 8784 insertions(+), 1 deletion(-) create mode 100644 Drivers/SdMmc/Xenon/MvComponentName.c create mode 100755 Drivers/SdMmc/Xenon/MvEmmcDevice.c create mode 100644 Drivers/SdMmc/Xenon/MvSdDevice.c create mode 100755 Drivers/SdMmc/Xenon/MvSdMmcPciHcDxe.c create mode 100644 Drivers/SdMmc/Xenon/MvSdMmcPciHcDxe.h create mode 100644 Drivers/SdMmc/Xenon/MvSdMmcPciHcDxe.inf create mode 100644 Drivers/SdMmc/Xenon/MvSdMmcPciHcDxe.uni create mode 100644 Drivers/SdMmc/Xenon/MvSdMmcPciHcDxeExtra.uni create mode 100644 Drivers/SdMmc/Xenon/MvSdMmcPciHci.c create mode 100644 Drivers/SdMmc/Xenon/MvSdMmcPciHci.h create mode 100755 Drivers/SdMmc/Xenon/XenonSdhci.c create mode 100644 Drivers/SdMmc/Xenon/XenonSdhci.h