summaryrefslogtreecommitdiff
path: root/Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.inf
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@semihalf.com>2017-10-21 11:40:34 +0200
committerLeif Lindholm <leif.lindholm@linaro.org>2017-11-30 15:50:15 +0000
commita35f740b6a2902387b46135ac777d71214109eeb (patch)
tree732b4cde8ecf7d4cc223e61156799e113904b6ff /Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.inf
parent6813928d6a62e67cf420e2ab72c3226c80121d5a (diff)
downloadedk2-platforms-a35f740b6a2902387b46135ac777d71214109eeb.tar.xz
Marvell/Drivers: MvSpiFlash: Enable using driver in RT
This patch applies necessary modifications, which allow to use MvSpiFlash driver in variable support as a runtime service. Its type is modified to DXE_RUNTIME_DRIVER, as well as an event is created, which converts the pointers to the SpiMasterProtocol and its routines. In order to ensure proper execution of the MvFvbDxe driver, configure initialization order with Depex entry. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.inf')
-rw-r--r--Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.inf11
1 files changed, 9 insertions, 2 deletions
diff --git a/Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.inf b/Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.inf
index 6587f69915..c6bbe5e8ab 100644
--- a/Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.inf
+++ b/Platform/Marvell/Drivers/Spi/Devices/MvSpiFlash.inf
@@ -33,7 +33,7 @@
INF_VERSION = 0x00010005
BASE_NAME = SpiFlashDxe
FILE_GUID = 49d7fb74-306d-42bd-94c8-c0c54b181dd7
- MODULE_TYPE = DXE_DRIVER
+ MODULE_TYPE = DXE_RUNTIME_DRIVER
VERSION_STRING = 1.0
ENTRY_POINT = MvSpiFlashEntryPoint
@@ -54,10 +54,17 @@
UefiLib
DebugLib
MemoryAllocationLib
+ UefiRuntimeLib
+
+[Guids]
+ gEfiEventVirtualAddressChangeGuid
[Protocols]
gMarvellSpiMasterProtocolGuid
gMarvellSpiFlashProtocolGuid
[Depex]
- TRUE
+ #
+ # MvSpiFlashDxe must be loaded prior to variables driver MvFvbDxe
+ #
+ BEFORE gMarvellFvbDxeGuid