Re: [edk2-devel] [PATCH v4 1/2] UefiPayloadPkg: Implement a new SerialPortLib instance

2022-08-22 Thread Guo Dong
In SerialPortInitialize(), these code could be removed. + Count = 0; + + GuidHob = GetFirstGuidHob (&gUniversalPayloadSerialPortInfoGuid); + while (GuidHob != NULL) { +Count++; +GuidHob = GET_NEXT_HOB (GuidHob); +GuidHob = GetNextGuidHob (&gUniversalPayloadSerialPortInfoGuid, Guid

[edk2-devel] [PATCH v4 1/2] UefiPayloadPkg: Implement a new SerialPortLib instance

2022-07-25 Thread kavya
Add new Serial port library instance that consumes the HOB defined in MdeModulePkg/Include/UniversalPayload/SerialPortInfo.h to support multiple UART's. Cc: Guo Dong Cc: Ray Ni Cc: Sean Rhodes Cc: Gua Guo Signed-off-by: Kavya --- UefiPayloadPkg/Library/BaseSerialPortLibHob/BaseSerialPortLibH