* [edk2-devel][PATCH V1 1/1] Platform/Sgi: Add memory map entry for debug uart controller
@ 2022-11-18 11:32 Tony K Nadackal
0 siblings, 0 replies; only message in thread
From: Tony K Nadackal @ 2022-11-18 11:32 UTC (permalink / raw)
To: devel; +Cc: Ard Biesheuvel, Sami Mujawar, Thomas Abraham
The UART0 controller connected in the AXI expansion space is used as the
debug UART controller. Add platform memory map descriptor for this UART
controller.
Signed-off-by: Tony K Nadackal <tony.nadackal@arm.com>
---
Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c | 6 ++++++
1 file changed, 6 insertions(+)
Link to github branch with the patch in this series -
https://github.com/tonykn-arm/edk2-platforms/tree/dbguart
diff --git a/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c b/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c
index 8139b75d8e..096fae000c 100644
--- a/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c
+++ b/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c
@@ -171,6 +171,12 @@ ArmPlatformGetVirtualMemoryMap (
VirtualMemoryTable[Index].Length = SIZE_64KB;
VirtualMemoryTable[Index].Attributes = ARM_MEMORY_REGION_ATTRIBUTE_DEVICE;
+ // Expansion AXI - Debug UART
+ VirtualMemoryTable[++Index].PhysicalBase = FixedPcdGet64 (PcdSerialDbgRegisterBase);
+ VirtualMemoryTable[Index].VirtualBase = FixedPcdGet64 (PcdSerialDbgRegisterBase);
+ VirtualMemoryTable[Index].Length = SIZE_64KB;
+ VirtualMemoryTable[Index].Attributes = ARM_MEMORY_REGION_ATTRIBUTE_DEVICE;
+
// DDR - (2GB - 16MB)
VirtualMemoryTable[++Index].PhysicalBase = PcdGet64 (PcdSystemMemoryBase);
VirtualMemoryTable[Index].VirtualBase = PcdGet64 (PcdSystemMemoryBase);
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-18 11:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-18 11:32 [edk2-devel][PATCH V1 1/1] Platform/Sgi: Add memory map entry for debug uart controller Tony K Nadackal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox