[coreboot-gerrit] Change in coreboot[master]: src/soc/intel/braswell/acpi/lpss.asl: Remove disabled SPI1 and PWM de...

Frans Hendriks (Code Review) gerrit at coreboot.org
Wed Oct 31 11:55:07 CET 2018


Frans Hendriks has uploaded this change for review. ( https://review.coreboot.org/29374


Change subject: src/soc/intel/braswell/acpi/lpss.asl: Remove disabled SPI1 and PWM devices
......................................................................

src/soc/intel/braswell/acpi/lpss.asl: Remove disabled SPI1 and PWM devices

ACPI code for these devices is enabled, but devices are disabled on the platform.
Remove these devices when disabled.

BUG=N/A
TEST=Intel CherryHill CRB

Change-Id: I97aeb725ee5fb162b958e4f83f73814c55a6066b
Signed-off-by: Frans Hendriks <fhendriks at eltan.com>
---
M src/soc/intel/braswell/Kconfig
M src/soc/intel/braswell/acpi/lpss.asl
2 files changed, 14 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/74/29374/1

diff --git a/src/soc/intel/braswell/Kconfig b/src/soc/intel/braswell/Kconfig
index 6e3adcd..1f44e78 100644
--- a/src/soc/intel/braswell/Kconfig
+++ b/src/soc/intel/braswell/Kconfig
@@ -127,6 +127,13 @@
 	string
 	default "soc/intel/braswell/bootblock/timestamp.inc"
 
+config INCLUDE_SPI1_AND_PWM
+	bool "Include ASL code for SPI1 and PWM devices"
+	default y
+	help
+		Enable this if the SPI1 and PWM interfaces are supported
+		This requires an FSP update.
+
 config ENABLE_LPE_DEVICES
 	bool "Include ASL code for LPE devices"
 	default y
diff --git a/src/soc/intel/braswell/acpi/lpss.asl b/src/soc/intel/braswell/acpi/lpss.asl
index 4cc93cc..5e71101 100644
--- a/src/soc/intel/braswell/acpi/lpss.asl
+++ b/src/soc/intel/braswell/acpi/lpss.asl
@@ -2,6 +2,7 @@
  * This file is part of the coreboot project.
  *
  * Copyright (C) 2013 Google Inc.
+ * Copyright (C) 2018 Eltan B.V.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -522,6 +523,11 @@
 	}
 }
 
+//
+// Remove the devices that can't be enabled from ASL. This will keep Linux from trying to
+// use them even tough they are disabled.
+//
+#if IS_ENABLED(CONFIG_INCLUDE_SPI1_AND_PWM)
 Device (SPI1)
 {
 	Name (_HID, "8086228E")
@@ -630,6 +636,7 @@
 		}
 	}
 }
+#endif
 
 Device (UAR1)
 {

-- 
To view, visit https://review.coreboot.org/29374
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I97aeb725ee5fb162b958e4f83f73814c55a6066b
Gerrit-Change-Number: 29374
Gerrit-PatchSet: 1
Gerrit-Owner: Frans Hendriks <fhendriks at eltan.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181031/29006387/attachment-0001.html>


More information about the coreboot-gerrit mailing list