sb/intel/lynxpoint: Add Kconfig option to hide Intel ME
On lynxpoint devices, coreboot currently disables and hides the ME PCI interface by default, without any way to opt out of this behavior. Add a Kconfig option to allow for leaving the ME PCI interface enabled, but set the default to disabled as to leave the current behavior unchanged. Change-Id: I994cb5b05829eddad2e423a7440a9458f9952370 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71195 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
committed by
Felix Held
parent
42f704a967
commit
52c553e838
@@ -543,6 +543,9 @@ void intel_me_finalize(struct device *dev)
|
||||
/* Try to send EOP command so ME stops accepting other commands */
|
||||
mkhi_end_of_post();
|
||||
|
||||
if (!CONFIG(DISABLE_ME_PCI))
|
||||
return;
|
||||
|
||||
/* Make sure IO is disabled */
|
||||
pci_and_config16(dev, PCI_COMMAND,
|
||||
~(PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY | PCI_COMMAND_IO));
|
||||
@@ -903,7 +906,7 @@ static void intel_me_init(struct device *dev)
|
||||
static void intel_me_enable(struct device *dev)
|
||||
{
|
||||
/* Avoid talking to the device in S3 path */
|
||||
if (acpi_is_wakeup_s3()) {
|
||||
if (acpi_is_wakeup_s3() && CONFIG(DISABLE_ME_PCI)) {
|
||||
dev->enabled = 0;
|
||||
pch_disable_devfn(dev);
|
||||
}
|
||||
|
Reference in New Issue
Block a user