]> git.proxmox.com Git - mirror_edk2.git/commit - PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h
PcAtChipsetPkg/PcRtc: Add two new PCD for RTC Index/Target registers
authorRuiyu Ni <ruiyu.ni@intel.com>
Fri, 25 May 2018 08:29:48 +0000 (16:29 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Mon, 28 May 2018 06:49:29 +0000 (14:49 +0800)
commit36dd3c781e204a97d548ce3595ef6f6b6337bc1f
tree8d1fa93bf276f4eee8091df427134fba3b9d6680
parent5a57246eab80f00ae2481970d12a2abc345a2730
PcAtChipsetPkg/PcRtc: Add two new PCD for RTC Index/Target registers

In certain HW implementation, the BIT7 of RTC Index register(0x70) is
for NMI sources enable/disable but the BIT7 of 0x70 cannot be read
before writing. Software which doesn't want to change the NMI sources
enable/disable setting can write to the alias register 0x74, through
which only BIT0 ~ BIT6 of 0x70 is modified.
So two new PCDs are added so that platform can have the flexibility
to change the default RTC register addresses from 0x70/0x71 to
0x74/0x75.
With the new PCDs added, it can also support special HW that provides
RTC storage in a different register pairs.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
PcAtChipsetPkg/PcAtChipsetPkg.dec
PcAtChipsetPkg/PcAtChipsetPkg.uni
PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h
PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf