summaryrefslogtreecommitdiff
path: root/ArmVirtPkg/Include
diff options
context:
space:
mode:
authorSami Mujawar <sami.mujawar@arm.com>2020-10-02 22:14:02 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-10-16 17:21:04 +0000
commitd30886d24c1c7e916015cbf0ec5a88498f686e28 (patch)
treed70020cb9f2e654fc1292a76312bba030bef09d5 /ArmVirtPkg/Include
parent1c03498a25dede9cb24481c5e2b9dc0c463f8414 (diff)
downloadedk2-d30886d24c1c7e916015cbf0ec5a88498f686e28.zip
edk2-d30886d24c1c7e916015cbf0ec5a88498f686e28.tar.gz
edk2-d30886d24c1c7e916015cbf0ec5a88498f686e28.tar.bz2
ArmVirtPkg: GUID Hob for 16550 UART base address
Introduce a new GUID Hob gEarly16550UartBaseAddressGuid to cache the base address of the 16550 UART, for when PCD access is not available. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Ard Biesheuvel <Ard.Biesheuvel@arm.com> Acked-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'ArmVirtPkg/Include')
-rw-r--r--ArmVirtPkg/Include/Guid/Early16550UartBaseAddress.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/ArmVirtPkg/Include/Guid/Early16550UartBaseAddress.h b/ArmVirtPkg/Include/Guid/Early16550UartBaseAddress.h
new file mode 100644
index 0000000..6b76f37
--- /dev/null
+++ b/ArmVirtPkg/Include/Guid/Early16550UartBaseAddress.h
@@ -0,0 +1,22 @@
+/** @file
+ GUID for the HOB that caches the base address of the 16550 serial port, for
+ when PCD access is not available.
+
+ Copyright (c) 2020, ARM Limited. All rights reserved.
+
+ SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#ifndef EARLY_16550_UART_BASE_ADDRESS_H__
+#define EARLY_16550_UART_BASE_ADDRESS_H__
+
+#define EARLY_16550_UART_BASE_ADDRESS_GUID { \
+ 0xea67ca3e, 0x1f54, 0x436b, { \
+ 0x97, 0x88, 0xd4, 0xeb, 0x29, 0xc3, 0x42, 0x67 \
+ } \
+ }
+
+extern EFI_GUID gEarly16550UartBaseAddressGuid;
+
+#endif // EARLY_16550_UART_BASE_ADDRESS_H__