CM_ARM_SERIAL_PORT_INFO\r
);\r
\r
-/** Initialize the PL011 UART with the parameters obtained from\r
+/** Initialize the PL011/SBSA UART with the parameters obtained from\r
the Configuration Manager.\r
\r
@param [in] SerialPortInfo Pointer to the Serial Port Information.\r
AcpiDbg2.Dbg2DeviceInfo[DBG_PORT_INDEX_PORT1].Dbg2Device.PortSubtype =\r
SerialPortInfo->PortSubtype;\r
\r
- // Initialize the serial port\r
- Status = SetupDebugUart (SerialPortInfo);\r
- if (EFI_ERROR (Status)) {\r
- DEBUG ((\r
- DEBUG_ERROR,\r
- "ERROR: DBG2: Failed to configure debug serial port. Status = %r\n",\r
- Status\r
- ));\r
- goto error_handler;\r
+ if ((SerialPortInfo->PortSubtype ==\r
+ EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_ARM_PL011_UART) ||\r
+ (SerialPortInfo->PortSubtype ==\r
+ EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_ARM_SBSA_GENERIC_UART_2X) ||\r
+ (SerialPortInfo->PortSubtype ==\r
+ EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_ARM_SBSA_GENERIC_UART)) {\r
+ // Initialize the serial port\r
+ Status = SetupDebugUart (SerialPortInfo);\r
+ if (EFI_ERROR (Status)) {\r
+ DEBUG ((\r
+ DEBUG_ERROR,\r
+ "ERROR: DBG2: Failed to configure debug serial port. Status = %r\n",\r
+ Status\r
+ ));\r
+ goto error_handler;\r
+ }\r
}\r
\r
*Table = (EFI_ACPI_DESCRIPTION_HEADER*)&AcpiDbg2;\r