mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
Fdt16550SerialPortHookLib does not provide a constructor and expects SerialPortLib to call PlatformHookSerialPortInitialize(). Add an early FDT 16550 serial port probe library that invokes the platform serial hook from its constructor. This allows the FDT to be parsed early, the 16550 serial port base address to be extracted, and the serial port PCD to be populated. It is needed during early boot so the serial port memory map can be set up using the populated serial port PCD. The probe library wraps the hook call in its constructor instead of reusing PlatformHookSerialPortInitialize() directly. This avoids duplicate global definitions in modules that already link against the PlatformHookLib instance. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> |
||
|---|---|---|
| .. | ||
| EarlyFdt16550SerialPortHookLib.c | ||
| EarlyFdt16550SerialPortHookLib.inf | ||
| EarlyFdt16550SerialPortProbeLib.c | ||
| EarlyFdt16550SerialPortProbeLib.inf | ||
| Fdt16550SerialPortHookLib.c | ||
| Fdt16550SerialPortHookLib.inf | ||
| Fdt16550SerialPortHookLib.uni | ||