soc/intel/common: Add function to set BILD bit in RTC
commit55597ff2799d0028179f0ce84a5c9cfec4971194
authorRizwan Qureshi <rizwan.qureshi@intel.com>
Thu, 9 Aug 2018 12:40:24 +0000 (9 18:10 +0530)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 6 Sep 2018 10:28:19 +0000 (6 10:28 +0000)
tree5f14409f142fc193746edbe2e59bd75c934ab5d9
parentadfaea5400248a5f729cf29d5bbdaa6d199f1c23
soc/intel/common: Add function to set BILD bit in RTC

Add a function to set the Bios Interface Lock Down bit (bit 31)
in RTC Configuration register (0x3400). This bit when set prevents
the top swap enable bit (bit 0) in the RTC BUC register (0x3414)
from being changed.

Change-Id: Iacaeeb0d6cabcf0c2c46a58948457ab832351476
Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
Reviewed-on: https://review.coreboot.org/28057
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/soc/intel/common/block/include/intelblocks/rtc.h
src/soc/intel/common/block/rtc/rtc.c