From: "Marcin Wojtas" <mw@semihalf.com>
To: devel@edk2.groups.io
Cc: leif@nuviainc.com, ardb+tianocore@kernel.org, mw@semihalf.com,
jaz@semihalf.com, kostap@marvell.com, upstream@semihalf.com
Subject: [edk2-platforms PATCH 1/4] Marvell: PlatInitDxe: Use more adequate print during init
Date: Fri, 16 Apr 2021 22:54:11 +0200 [thread overview]
Message-ID: <20210416205414.355203-2-mw@semihalf.com> (raw)
In-Reply-To: <20210416205414.355203-1-mw@semihalf.com>
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@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
next prev parent reply other threads:[~2021-04-16 20:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-16 20:54 [edk2-platforms PATCH 0/4] Marvell misc improvements Marcin Wojtas
2021-04-16 20:54 ` Marcin Wojtas [this message]
2021-04-16 20:54 ` [edk2-platforms PATCH 2/4] Marvell: Armada7k8/OcteonTx: Enhance NIC ACPI description Marcin Wojtas
2021-04-16 20:54 ` [edk2-platforms PATCH 3/4] SolidRun/Armada80x0McBin: Add 2.5G NIC port description in ACPI Marcin Wojtas
2021-04-16 20:54 ` [edk2-platforms PATCH 4/4] Marvell/Cn9132Db: Enable ACPI support Marcin Wojtas
2021-04-19 7:50 ` [edk2-platforms PATCH 0/4] Marvell misc improvements Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210416205414.355203-2-mw@semihalf.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox