Recent changes in the EDK2 mainline resulted in breaking
RTC functionality of Armada platforms.
The RealTimeClockLib instance calls gDS->SetMemorySpaceAttributes()
in the LibRtcInitialize() public function. This DXE service depends
on the CPU Arch Protocol. Add it to the depex.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
---
Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf b/Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf
index 2f842e8..59c71c4 100644
--- a/Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf
+++ b/Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf
@@ -25,7 +25,7 @@
FILE_GUID = fa81e889-045b-4c96-9093-742554fd0588
MODULE_TYPE = BASE
VERSION_STRING = 1.0
- LIBRARY_CLASS = RealTimeClockLib
+ LIBRARY_CLASS = RealTimeClockLib|DXE_RUNTIME_DRIVER
[Sources.common]
RealTimeClockLib.c
@@ -50,3 +50,6 @@
[Pcd]
gMarvellTokenSpaceGuid.PcdRtcEnabled
+
+[Depex.common.DXE_RUNTIME_DRIVER]
+ gEfiCpuArchProtocolGuid
--
2.7.4
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
On 16 April 2018 at 07:09, Marcin Wojtas <mw@semihalf.com> wrote: > Recent changes in the EDK2 mainline resulted in breaking > RTC functionality of Armada platforms. > > The RealTimeClockLib instance calls gDS->SetMemorySpaceAttributes() > in the LibRtcInitialize() public function. This DXE service depends > on the CPU Arch Protocol. Add it to the depex. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> > --- > Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf b/Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf > index 2f842e8..59c71c4 100644 > --- a/Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf > +++ b/Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf > @@ -25,7 +25,7 @@ > FILE_GUID = fa81e889-045b-4c96-9093-742554fd0588 > MODULE_TYPE = BASE > VERSION_STRING = 1.0 > - LIBRARY_CLASS = RealTimeClockLib > + LIBRARY_CLASS = RealTimeClockLib|DXE_RUNTIME_DRIVER > > [Sources.common] > RealTimeClockLib.c > @@ -50,3 +50,6 @@ > > [Pcd] > gMarvellTokenSpaceGuid.PcdRtcEnabled > + > +[Depex.common.DXE_RUNTIME_DRIVER] > + gEfiCpuArchProtocolGuid > -- > 2.7.4 > _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel
On 04/16/18 07:09, Marcin Wojtas wrote: > Recent changes in the EDK2 mainline resulted in breaking > RTC functionality of Armada platforms. > > The RealTimeClockLib instance calls gDS->SetMemorySpaceAttributes() > in the LibRtcInitialize() public function. This DXE service depends > on the CPU Arch Protocol. Add it to the depex. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Marcin Wojtas <mw@semihalf.com> > --- > Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf b/Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf > index 2f842e8..59c71c4 100644 > --- a/Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf > +++ b/Silicon/Marvell/Armada7k8k/Library/RealTimeClockLib/RealTimeClockLib.inf > @@ -25,7 +25,7 @@ > FILE_GUID = fa81e889-045b-4c96-9093-742554fd0588 > MODULE_TYPE = BASE > VERSION_STRING = 1.0 > - LIBRARY_CLASS = RealTimeClockLib > + LIBRARY_CLASS = RealTimeClockLib|DXE_RUNTIME_DRIVER > > [Sources.common] > RealTimeClockLib.c > @@ -50,3 +50,6 @@ > > [Pcd] > gMarvellTokenSpaceGuid.PcdRtcEnabled > + > +[Depex.common.DXE_RUNTIME_DRIVER] > + gEfiCpuArchProtocolGuid > Acked-by: Laszlo Ersek <lersek@redhat.com> _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel
© 2016 - 2024 Red Hat, Inc.