Hi Leif,
2017-03-14 20:50 GMT+01:00 Leif Lindholm leif.lindholm@linaro.org:
On Tue, Mar 14, 2017 at 07:37:27PM +0100, Marcin Wojtas wrote:
Replace default RealTimeClockLib with newly added support and also specify RTC base address in a dedicated PCD.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Marcin Wojtas mw@semihalf.com
Platforms/Marvell/Armada/Armada.dsc.inc | 3 ++- Platforms/Marvell/Armada/Armada70x0.dsc | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/Platforms/Marvell/Armada/Armada.dsc.inc b/Platforms/Marvell/Armada/Armada.dsc.inc index d7dbc81..cf8ae5f 100644 --- a/Platforms/Marvell/Armada/Armada.dsc.inc +++ b/Platforms/Marvell/Armada/Armada.dsc.inc @@ -92,7 +92,8 @@ PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
# Reset and Time libraries
- RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
EfiTimeBaseLib|OpenPlatformPkg/Library/EfiTimeBaseLib/EfiTimeBaseLib.inf
RealTimeClockLib|OpenPlatformPkg/Platforms/Marvell/Armada/Library/RealTimeClockLib/RealTimeClockLib.inf EfiResetSystemLib|OpenPlatformPkg/Platforms/Marvell/Library/ResetSystemLib/MvResetSystemLib.inf
# Network support
diff --git a/Platforms/Marvell/Armada/Armada70x0.dsc b/Platforms/Marvell/Armada/Armada70x0.dsc index 8b554a4..dde19dc 100644 --- a/Platforms/Marvell/Armada/Armada70x0.dsc +++ b/Platforms/Marvell/Armada/Armada70x0.dsc @@ -148,6 +148,9 @@ gMarvellTokenSpaceGuid.PcdResetRegAddress|0xf06f0084 gMarvellTokenSpaceGuid.PcdResetRegMask|0x1
- #RTC
- gMarvellTokenSpaceGuid.PcdRtcBaseAddress|0xf2284000
Much as I detest hardcoded base addresses, and RTC really is a single one in a system, so...
Here's surprise - soon we will add Armada 8k support, which comprise 2 RTC modules, from which we pick one:)
Reviewed-by: Leif Lindholm leif.lindholm@linaro.org
#SATA gMarvellTokenSpaceGuid.PcdSataBaseAddress|0xF2540000
-- 1.8.3.1