intel PCI ops: Remove explicit PCI MMCONF access
MMCONF was explicitly used here to avoid races of 0xcf8/0xcfc access being non-atomic and/or need to access 4kiB of PCI config space. All these platforms now have MMCONF_SUPPORT_DEFAULT. I liked the style of code in pci_mmio_cfg.h more, and used those to replace the ones in io.h. Change-Id: Ib5e6a451866c95d1edb9060c7f94070830b90e92 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/17689 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
@@ -45,10 +45,10 @@ void intel_pch_finalize_smm(void)
|
||||
RCBA_AND_OR(8, 0x3420, ~0U, (1 << 7));
|
||||
|
||||
/* Global SMI Lock */
|
||||
pcie_or_config16(PCH_LPC_DEV, 0xa0, 1 << 4);
|
||||
pci_or_config16(PCH_LPC_DEV, 0xa0, 1 << 4);
|
||||
|
||||
/* GEN_PMCON Lock */
|
||||
pcie_or_config8(PCH_LPC_DEV, 0xa6, (1 << 1) | (1 << 2));
|
||||
pci_or_config8(PCH_LPC_DEV, 0xa6, (1 << 1) | (1 << 2));
|
||||
|
||||
/* R/WO registers */
|
||||
RCBA32(0x21a4) = RCBA32(0x21a4);
|
||||
|
@@ -45,10 +45,10 @@ void intel_pch_finalize_smm(void)
|
||||
RCBA_AND_OR(8, 0x3420, ~0U, (1 << 7));
|
||||
|
||||
/* Global SMI Lock */
|
||||
pcie_or_config16(PCH_LPC_DEV, 0xa0, 1 << 4);
|
||||
pci_or_config16(PCH_LPC_DEV, 0xa0, 1 << 4);
|
||||
|
||||
/* GEN_PMCON Lock */
|
||||
pcie_or_config8(PCH_LPC_DEV, 0xa6, (1 << 1) | (1 << 2));
|
||||
pci_or_config8(PCH_LPC_DEV, 0xa6, (1 << 1) | (1 << 2));
|
||||
|
||||
/* R/WO registers */
|
||||
RCBA32(0x21a4) = RCBA32(0x21a4);
|
||||
|
Reference in New Issue
Block a user