audk/PcAtChipsetPkg
Sami Mujawar 015be4075f PcAtChipsetPkg: Add MMIO Support to RTC driver
Some virtual machine managers like Kvmtool emulate the MC146818
RTC controller in the MMIO space so that architectures that do
not support I/O Mapped I/O can use the RTC. This patch adds MMIO
support to the RTC controller driver.

The PCD PcdRtcUseMmio has been added to select I/O or MMIO support.
  If PcdRtcUseMmio is:
    TRUE  - Indicates the RTC port registers are in MMIO space.
    FALSE - Indicates the RTC port registers are in I/O space.
            Default is I/O space.

Additionally two new PCDs PcdRtcIndexRegister64 and
PcdRtcTargetRegister64 have been introduced to provide the base
address for the RTC registers in the MMIO space.

When MMIO support is selected (PcdRtcUseMmio == TRUE) the driver
converts the pointers to the RTC MMIO registers so that the
RTC registers are accessible post ExitBootServices.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
2020-10-16 17:21:04 +00:00
..
Bus/Pci/IdeControllerDxe PcAtChipsetPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:20 -07:00
HpetTimerDxe PcAtChipsetPkg: Fix spelling errors 2019-10-22 17:28:09 -07:00
Include PcAtChipsetPkg: Fix spelling errors 2019-10-22 17:28:09 -07:00
Library PcAtChipsetPkg: Fix few typos 2020-02-10 22:30:07 +00:00
PcatRealTimeClockRuntimeDxe PcAtChipsetPkg: Add MMIO Support to RTC driver 2020-10-16 17:21:04 +00:00
PcAtChipsetPkg.ci.yaml PcAtChipsetPkg/PcAtChipsetPkg.ci.yaml: Add configuration for Ecc check 2020-08-17 03:28:09 +00:00
PcAtChipsetPkg.dec PcAtChipsetPkg: Add MMIO Support to RTC driver 2020-10-16 17:21:04 +00:00
PcAtChipsetPkg.dsc PcAtChipsetPkg: PcAtChipsetPkg.dsc add UefiCpuLib LibraryClass 2020-07-07 23:25:16 +00:00
PcAtChipsetPkg.uni PcAtChipsetPkg: add PcdRealTimeClockUpdateTimeout 2019-09-04 02:06:25 +08:00
PcAtChipsetPkgExtra.uni PcAtChipsetPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:20 -07:00