@@ -59,7 +59,6 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemRevision
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorRevision
- gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase
gSynQuacerTokenSpaceGuid.PcdNetsecEepromBase
gSynQuacerTokenSpaceGuid.PcdNetsecPhyAddress
@@ -72,4 +72,8 @@
#define SYNQUACER_MMIO_TIMER_CTL_BASE 0x2A810000
#define SYNQUACER_MMIO_TIMER_CNT_BASE0 0x2A830000
+// PL011 UART
+#define SYNQUACER_UART0_BASE 0x2A400000
+#define SYNQUACER_UART0_SIZE SIZE_4KB
+
#endif
@@ -137,7 +137,7 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 1, "SNI", "SYNQUACR",
Name (_HID, "ARMH0011")
Name (_UID, Zero)
Name (_CRS, ResourceTemplate () {
- Memory32Fixed (ReadWrite, FixedPcdGet32 (PcdSerialRegisterBase), 0x1000)
+ Memory32Fixed (ReadWrite, SYNQUACER_UART0_BASE, SYNQUACER_UART0_SIZE)
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 95 }
})
}
@@ -19,6 +19,7 @@
#include <IndustryStandard/Acpi61.h>
#include <IndustryStandard/SerialPortConsoleRedirectionTable.h>
+#include <Platform/MemoryMap.h>
#include "AcpiTables.h"
@@ -47,7 +48,7 @@ STATIC EFI_ACPI_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE Spcr = {
32,
0,
EFI_ACPI_5_1_DWORD,
- FixedPcdGet32 (PcdSerialRegisterBase)
+ SYNQUACER_UART0_BASE
},
//
// InterruptType
Instead of using the generic PcdSerialRegisterBase PCD for generating the DSDT object for the PL011 UART, add PL011 base and size #defines to the memory map header file, and use those instead. This will allow us to switch to a different UART for DEBUG and/or serial console output in a future patch. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> --- Silicon/Socionext/SynQuacer/AcpiTables/AcpiTables.inf | 1 - Silicon/Socionext/SynQuacer/Include/Platform/MemoryMap.h | 4 ++++ Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl | 2 +- Silicon/Socionext/SynQuacer/AcpiTables/Spcr.aslc | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) -- 2.19.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel