sb/intel/bd82x6x/finalize: Lock ETR3 CF9GR

Lock CF9GR as documented in "100-series-chipset-datasheet-vol-2.pdf"

Change-Id: I2cb30267a6342db1f3b11715034219ffb18ca678
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/19543
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Patrick Rudolph 2017-05-03 18:38:21 +02:00
parent cfa2eaa4cc
commit 7565cf1a49
2 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,9 @@ void intel_pch_finalize_smm(void)
/* GEN_PMCON Lock */ /* GEN_PMCON Lock */
pci_or_config8(PCH_LPC_DEV, GEN_PMCON_LOCK, (1 << 1) | (1 << 2)); pci_or_config8(PCH_LPC_DEV, GEN_PMCON_LOCK, (1 << 1) | (1 << 2));
/* ETR3: CF9GR Lockdown */
pci_update_config32(PCH_LPC_DEV, ETR3, ~ETR3_CF9GR, ETR3_CF9LOCK);
/* R/WO registers */ /* R/WO registers */
RCBA32(0x21a4) = RCBA32(0x21a4); RCBA32(0x21a4) = RCBA32(0x21a4);
pci_write_config32(PCI_DEV(0, 27, 0), 0x74, pci_write_config32(PCI_DEV(0, 27, 0), 0x74,

View File

@ -144,6 +144,7 @@ early_usb_init (const struct southbridge_usb_port *portmap);
#define ETR3 0xac #define ETR3 0xac
#define ETR3_CWORWRE (1 << 18) #define ETR3_CWORWRE (1 << 18)
#define ETR3_CF9GR (1 << 20) #define ETR3_CF9GR (1 << 20)
#define ETR3_CF9LOCK (1 << 31)
/* GEN_PMCON_3 bits */ /* GEN_PMCON_3 bits */
#define RTC_BATTERY_DEAD (1 << 2) #define RTC_BATTERY_DEAD (1 << 2)