[edk2-devel] [edk2-platforms PATCH 1/4] Marvell: PlatInitDxe: Use more adequate print during init
Marcin Wojtas
mw at semihalf.com
Fri Apr 16 20:54:11 UTC 2021
One of first logs visible during DXE initialization is a fixed
string "Armada Platform Init", which is pretty generic and not
true for CN913X platforms. Modify it to use already exesting
vendor/product name PCDs.
Signed-off-by: Marcin Wojtas <mw at semihalf.com>
---
Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.inf | 4 ++++
Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.c | 5 ++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.inf b/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.inf
index 9f4447afc2..b63e9b6325 100644
--- a/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.inf
+++ b/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.inf
@@ -40,6 +40,10 @@
gEdkiiPlatformHasAcpiGuid
gEfiEventReadyToBootGuid
+[FixedPcd]
+ gMarvellTokenSpaceGuid.PcdProductManufacturer
+ gMarvellTokenSpaceGuid.PcdProductPlatformName
+
[Protocols]
gMarvellPlatformInitCompleteProtocolGuid ## PRODUCES
diff --git a/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.c b/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.c
index 758412c48c..927abb9400 100644
--- a/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.c
+++ b/Silicon/Marvell/Armada7k8k/Drivers/PlatInitDxe/PlatInitDxe.c
@@ -95,7 +95,10 @@ ArmadaPlatInitDxeEntryPoint (
EFI_STATUS Status;
EFI_EVENT Event;
- DEBUG ((DEBUG_ERROR, "\nArmada Platform Init\n\n"));
+ DEBUG ((DEBUG_ERROR,
+ "\n%a %a Init\n\n",
+ (CHAR8 *)PcdGetPtr (PcdProductManufacturer),
+ (CHAR8 *)PcdGetPtr (PcdProductPlatformName)));
Status = gBS->InstallProtocolInterface (&ImageHandle,
&gMarvellPlatformInitCompleteProtocolGuid,
--
2.29.0
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#74221): https://edk2.groups.io/g/devel/message/74221
Mute This Topic: https://groups.io/mt/82152760/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list