[coreboot-gerrit] Change in coreboot[master]: soc/braswell: fix scope for I2C ACPI devices

Matt DeVillier (Code Review) gerrit at coreboot.org
Tue Jun 6 22:53:29 CEST 2017


Matt DeVillier has uploaded this change for review. ( https://review.coreboot.org/20055


Change subject: soc/braswell: fix scope for I2C ACPI devices
......................................................................

soc/braswell: fix scope for I2C ACPI devices

For an unknown reason, the I2C ACPI devices were placed
under \SB intead of \SB.PCI0, as with all other non-Atom
based Intel platforms.  While Linux is tolerant of this,
Windows is not.  Correct by moving I2C ACPI devices where
they belong.

Also, adjust I2C devices at board level for intel/strago
and google/cyan as to not break compilation.

Change-Id: Iaf8211bd86d6261ee8c4d9c4262338f7fe19ef43
Signed-off-by: Matt DeVillier <matt.devillier at gmail.com>
---
M src/mainboard/google/cyan/acpi/mainboard.asl
M src/mainboard/intel/strago/acpi/mainboard.asl
M src/soc/intel/braswell/acpi/southcluster.asl
3 files changed, 20 insertions(+), 17 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/55/20055/1

diff --git a/src/mainboard/google/cyan/acpi/mainboard.asl b/src/mainboard/google/cyan/acpi/mainboard.asl
index 218d81b..31b9090 100644
--- a/src/mainboard/google/cyan/acpi/mainboard.asl
+++ b/src/mainboard/google/cyan/acpi/mainboard.asl
@@ -26,7 +26,7 @@
 	}
 }
 
-Scope (\_SB.I2C1)
+Scope (\_SB.PCI0.I2C1)
 {
 	Device (ETSA)
 	{
@@ -44,7 +44,7 @@
 					ControllerInitiated,      /* SlaveMode */
 					400000,                   /* ConnectionSpeed */
 					AddressingMode7Bit,       /* AddressingMode */
-					"\\_SB.I2C1",             /* ResourceSource */
+					"\\_SB.PCI0.I2C1",        /* ResourceSource */
 				)
 				GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
 					 "\\_SB.GPSW") { BOARD_TOUCH_GPIO_INDEX }
@@ -57,7 +57,7 @@
 					ControllerInitiated,      /* SlaveMode */
 					400000,                   /* ConnectionSpeed */
 					AddressingMode7Bit,       /* AddressingMode */
-					"\\_SB.I2C1",             /* ResourceSource */
+					"\\_SB.PCI0.I2C1",        /* ResourceSource */
 				)
 				GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
 					 "\\_SB.GPNC") { BOARD_EVT_TOUCH_GPIO_INDEX }
@@ -86,7 +86,7 @@
 	}
 }
 
-Scope (\_SB.I2C2)
+Scope (\_SB.PCI0.I2C2)
 {
 	/* Maxim Audio Codec */
 	Device (MAXM)   /* Audio Codec driver I2C */
@@ -115,7 +115,7 @@
 					ControllerInitiated,	/* SlaveMode: default to ControllerInitiated */
 					400000,			/* ConnectionSpeed: in Hz */
 					AddressingMode7Bit,	/* Addressing Mode: default to 7 bit */
-					"\\_SB.I2C2",		/* ResourceSource: I2C bus controller name */
+					"\\_SB.PCI0.I2C2",	/* ResourceSource: I2C bus controller name */
 				)
 
 				GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
@@ -159,7 +159,7 @@
 					ControllerInitiated,	/* SlaveMode: default to ControllerInitiated */
 					400000,	/* ConnectionSpeed: in Hz */
 					AddressingMode7Bit,	/* Addressing Mode: default to 7 bit */
-					"\\_SB.I2C2",	/* ResourceSource: I2C bus controller name */
+					"\\_SB.PCI0.I2C2",	/* ResourceSource: I2C bus controller name */
 				)
 
 				GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
@@ -176,7 +176,7 @@
 	}
 }
 
-Scope (\_SB.I2C6)
+Scope (\_SB.PCI0.I2C6)
 {
 	Device (ETPA)
 	{
@@ -192,7 +192,7 @@
 				ControllerInitiated,      /* SlaveMode */
 				400000,                   /* ConnectionSpeed */
 				AddressingMode7Bit,       /* AddressingMode */
-				"\\_SB.I2C6",             /* ResourceSource */
+				"\\_SB.PCI0.I2C6",        /* ResourceSource */
 			)
 			GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
 				 "\\_SB.GPNC") { BOARD_TRACKPAD_GPIO_INDEX }
@@ -214,7 +214,7 @@
 	}
 }
 
-Scope (\_SB.LPEA)
+Scope (\_SB.PCI0.LPEA)
 {
 	Name (GBUF, ResourceTemplate ()
 	{
diff --git a/src/mainboard/intel/strago/acpi/mainboard.asl b/src/mainboard/intel/strago/acpi/mainboard.asl
index c559296..1c9b7a7 100644
--- a/src/mainboard/intel/strago/acpi/mainboard.asl
+++ b/src/mainboard/intel/strago/acpi/mainboard.asl
@@ -26,7 +26,7 @@
 	}
 }
 
-Scope (\_SB.I2C1)
+Scope (\_SB.PCI.I2C1)
 {
 	Device (ATSB)
 	{
@@ -44,7 +44,7 @@
 					ControllerInitiated,      /* SlaveMode */
 					400000,                   /* ConnectionSpeed */
 					AddressingMode7Bit,       /* AddressingMode */
-					"\\_SB.I2C1",             /* ResourceSource */
+					"\\_SB.PCI0.I2C1",        /* ResourceSource */
 				)
 				Interrupt (ResourceConsumer, Edge, ActiveLow)
 				{
@@ -83,7 +83,7 @@
 					ControllerInitiated,      /* SlaveMode */
 					400000,                   /* ConnectionSpeed */
 					AddressingMode7Bit,       /* AddressingMode */
-					"\\_SB.I2C1",             /* ResourceSource */
+					"\\_SB.PCI0.I2C1",        /* ResourceSource */
 				)
 				Interrupt (ResourceConsumer, Edge, ActiveLow)
 				{
@@ -109,7 +109,7 @@
 	}
 }
 
-Scope (\_SB.I2C5)
+Scope (\_SB.PCI0.I2C5)
 {
 	/* Realtek Audio Codec */
 	Device (RTEK)   /* Audio Codec driver I2C */
@@ -129,7 +129,7 @@
 					ControllerInitiated,	/* SlaveMode: default to ControllerInitiated */
 					400000,			/* ConnectionSpeed: in Hz */
 					AddressingMode7Bit,	/* Addressing Mode: default to 7 bit */
-					"\\_SB.I2C5",		/* ResourceSource: I2C bus controller name */
+					"\\_SB.PCI0.I2C5"	/* ResourceSource: I2C bus controller name */
 				)
 
 			 /* Jack Detect (index 0) */
@@ -146,7 +146,7 @@
 	}
 }
 
-Scope (\_SB.I2C6)
+Scope (\_SB.PCI0.I2C6)
 {
 	Device (ETPA)
 	{
@@ -162,7 +162,7 @@
 				ControllerInitiated,      /* SlaveMode */
 				400000,                   /* ConnectionSpeed */
 				AddressingMode7Bit,       /* AddressingMode */
-				"\\_SB.I2C6",             /* ResourceSource */
+				"\\_SB.PCI0.I2C6",        /* ResourceSource */
 			)
 			GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,,
 				 "\\_SB.GPNC") { BOARD_TRACKPAD_GPIO_INDEX }
@@ -183,7 +183,7 @@
 	}
 }
 
-Scope (\_SB.LPEA)
+Scope (\_SB.PCI0.LPEA)
 {
 	Name (GBUF, ResourceTemplate ()
 	{
diff --git a/src/soc/intel/braswell/acpi/southcluster.asl b/src/soc/intel/braswell/acpi/southcluster.asl
index 36250c1..7617662 100644
--- a/src/soc/intel/braswell/acpi/southcluster.asl
+++ b/src/soc/intel/braswell/acpi/southcluster.asl
@@ -253,7 +253,10 @@
 {
 	/* GPIO Devices */
 	#include "gpio.asl"
+}
 
+Scope (\_SB.PCI0)
+{
 	/* LPSS Devices */
 	#include "lpss.asl"
 

-- 
To view, visit https://review.coreboot.org/20055
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaf8211bd86d6261ee8c4d9c4262338f7fe19ef43
Gerrit-Change-Number: 20055
Gerrit-PatchSet: 1
Gerrit-Owner: Matt DeVillier <matt.devillier at gmail.com>



More information about the coreboot-gerrit mailing list