summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/lynxpoint/acpi/serialio.asl
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/intel/lynxpoint/acpi/serialio.asl')
-rw-r--r--src/southbridge/intel/lynxpoint/acpi/serialio.asl166
1 files changed, 83 insertions, 83 deletions
diff --git a/src/southbridge/intel/lynxpoint/acpi/serialio.asl b/src/southbridge/intel/lynxpoint/acpi/serialio.asl
index 164b623584..845949ce98 100644
--- a/src/southbridge/intel/lynxpoint/acpi/serialio.asl
+++ b/src/southbridge/intel/lynxpoint/acpi/serialio.asl
@@ -1,28 +1,28 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-// Intel LynxPoint Serial IO Devices in ACPI Mode
+// Intel Serial IO Devices in ACPI Mode
// Serial IO Device BAR0 and BAR1 is 4KB
#define SIO_BAR_LEN 0x1000
// This is defined in SSDT2 which is generated at boot based
// on whether or not the device is enabled in ACPI mode.
-External(\S0EN)
-External(\S1EN)
-External(\S2EN)
-External(\S3EN)
-External(\S4EN)
-External(\S5EN)
-External(\S6EN)
-External(\S7EN)
+External (\S0EN)
+External (\S1EN)
+External (\S2EN)
+External (\S3EN)
+External (\S4EN)
+External (\S5EN)
+External (\S6EN)
+External (\S7EN)
// Serial IO Resource Consumption for BAR1
Device (SIOR)
{
- Name (_HID, EISAID("PNP0C02"))
+ Name (_HID, EISAID ("PNP0C02"))
Name (_UID, 4)
- Name (RBUF, ResourceTemplate()
+ Name (RBUF, ResourceTemplate ()
{
// Serial IO BAR1 (PCI config space) resources
Memory32Fixed (ReadWrite, 0x00000000, 0x00000000, B1D0) // SDMA
@@ -39,67 +39,67 @@ Device (SIOR)
Method (_CRS, 0, NotSerialized)
{
// SDMA
- If (LNotEqual (\S0B1, Zero)) {
+ If (\S0B1 != 0) {
CreateDwordField (^RBUF, ^B1D0._BAS, B0AD)
CreateDwordField (^RBUF, ^B1D0._LEN, B0LN)
- Store (\S0B1, B0AD)
- Store (SIO_BAR_LEN, B0LN)
+ B0AD = \S0B1
+ B0LN = SIO_BAR_LEN
}
// I2C0
- If (LNotEqual (\S1B1, Zero)) {
+ If (\S1B1 != 0) {
CreateDwordField (^RBUF, ^B1D1._BAS, B1AD)
CreateDwordField (^RBUF, ^B1D1._LEN, B1LN)
- Store (\S1B1, B1AD)
- Store (SIO_BAR_LEN, B1LN)
+ B1AD = \S1B1
+ B1LN = SIO_BAR_LEN
}
// I2C1
- If (LNotEqual (\S2B1, Zero)) {
+ If (\S2B1 != 0) {
CreateDwordField (^RBUF, ^B1D2._BAS, B2AD)
CreateDwordField (^RBUF, ^B1D2._LEN, B2LN)
- Store (\S2B1, B2AD)
- Store (SIO_BAR_LEN, B2LN)
+ B2AD = \S2B1
+ B2LN = SIO_BAR_LEN
}
// SPI0
- If (LNotEqual (\S3B1, Zero)) {
+ If (\S3B1 != 0) {
CreateDwordField (^RBUF, ^B1D3._BAS, B3AD)
CreateDwordField (^RBUF, ^B1D3._LEN, B3LN)
- Store (\S3B1, B3AD)
- Store (SIO_BAR_LEN, B3LN)
+ B3AD = \S3B1
+ B3LN = SIO_BAR_LEN
}
// SPI1
- If (LNotEqual (\S4B1, Zero)) {
+ If (\S4B1 != 0) {
CreateDwordField (^RBUF, ^B1D4._BAS, B4AD)
CreateDwordField (^RBUF, ^B1D4._LEN, B4LN)
- Store (\S4B1, B4AD)
- Store (SIO_BAR_LEN, B4LN)
+ B4AD = \S4B1
+ B4LN = SIO_BAR_LEN
}
// UART0
- If (LNotEqual (\S5B1, Zero)) {
+ If (\S5B1 != 0) {
CreateDwordField (^RBUF, ^B1D5._BAS, B5AD)
CreateDwordField (^RBUF, ^B1D5._LEN, B5LN)
- Store (\S5B1, B5AD)
- Store (SIO_BAR_LEN, B5LN)
+ B5AD = \S5B1
+ B5LN = SIO_BAR_LEN
}
// UART1
- If (LNotEqual (\S6B1, Zero)) {
+ If (\S6B1 != 0) {
CreateDwordField (^RBUF, ^B1D6._BAS, B6AD)
CreateDwordField (^RBUF, ^B1D6._LEN, B6LN)
- Store (\S6B1, B6AD)
- Store (SIO_BAR_LEN, B6LN)
+ B6AD = \S6B1
+ B6LN = SIO_BAR_LEN
}
// SDIO
- If (LNotEqual (\S7B1, Zero)) {
+ If (\S7B1 != 0) {
CreateDwordField (^RBUF, ^B1D7._BAS, B7AD)
CreateDwordField (^RBUF, ^B1D7._LEN, B7LN)
- Store (\S7B1, B7AD)
- Store (SIO_BAR_LEN, B7LN)
+ B7AD = \S7B1
+ B7LN = SIO_BAR_LEN
}
Return (RBUF)
@@ -122,11 +122,11 @@ Device (SDMA)
Method (_CRS, 0, NotSerialized)
{
// Update BAR0 address and length if set in NVS
- If (LNotEqual (\S0B0, Zero)) {
+ If (\S0B0 != 0) {
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
- Store (\S0B0, B0AD)
- Store (SIO_BAR_LEN, B0LN)
+ B0AD = \S0B0
+ B0LN = SIO_BAR_LEN
}
Return (RBUF)
@@ -134,7 +134,7 @@ Device (SDMA)
Method (_STA, 0, NotSerialized)
{
- If (LEqual (\S0EN, 0)) {
+ If (\S0EN == 0) {
Return (0x0)
} Else {
Return (0xF)
@@ -169,15 +169,15 @@ Device (I2C0)
Method (_CRS, 0, NotSerialized)
{
// Update BAR0 address and length if set in NVS
- If (LNotEqual (\S1B0, Zero)) {
+ If (\S1B0 != 0) {
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
- Store (\S1B0, B0AD)
- Store (SIO_BAR_LEN, B0LN)
+ B0AD = \S1B0
+ B0LN = SIO_BAR_LEN
}
// Check if Serial IO DMA Controller is enabled
- If (LNotEqual (\_SB.PCI0.SDMA._STA, Zero)) {
+ If (\_SB.PCI0.SDMA._STA != 0) {
Return (ConcatenateResTemplate (RBUF, DBUF))
} Else {
Return (RBUF)
@@ -186,7 +186,7 @@ Device (I2C0)
Method (_STA, 0, NotSerialized)
{
- If (LEqual (\S1EN, 0)) {
+ If (\S1EN == 0) {
Return (0x0)
} Else {
Return (0xF)
@@ -204,21 +204,21 @@ Device (I2C0)
// Put controller in D0 state
Method (_PS0, 0, Serialized)
{
- And (^PSAT, 0xfffffffc, ^PSAT)
- Store (^PSAT, Local0) // Read back after writing
+ ^PSAT &= 0xfffffffc
+ Local0 = ^PSAT // Read back after writing
// Use Local0 to avoid iasl warning: Method Local is set but never used
- And(Local0, Ones, Local0)
+ Local0 &= Ones
}
// Put controller in D3Hot state
Method (_PS3, 0, Serialized)
{
- Or (^PSAT, 0x00000003, ^PSAT)
- Store (^PSAT, Local0) // Read back after writing
+ ^PSAT |= 0x00000003
+ Local0 = ^PSAT // Read back after writing
// Use Local0 to avoid iasl warning: Method Local is set but never used
- And(Local0, Ones, Local0)
+ Local0 &= Ones
}
}
@@ -249,15 +249,15 @@ Device (I2C1)
Method (_CRS, 0, NotSerialized)
{
// Update BAR0 address and length if set in NVS
- If (LNotEqual (\S2B0, Zero)) {
+ If (\S2B0 != 0) {
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
- Store (\S2B0, B0AD)
- Store (SIO_BAR_LEN, B0LN)
+ B0AD = \S2B0
+ B0LN = SIO_BAR_LEN
}
// Check if Serial IO DMA Controller is enabled
- If (LNotEqual (\_SB.PCI0.SDMA._STA, Zero)) {
+ If (\_SB.PCI0.SDMA._STA != 0) {
Return (ConcatenateResTemplate (RBUF, DBUF))
} Else {
Return (RBUF)
@@ -266,7 +266,7 @@ Device (I2C1)
Method (_STA, 0, NotSerialized)
{
- If (LEqual (\S2EN, 0)) {
+ If (\S2EN == 0) {
Return (0x0)
} Else {
Return (0xF)
@@ -284,21 +284,21 @@ Device (I2C1)
// Put controller in D0 state
Method (_PS0, 0, Serialized)
{
- And (^PSAT, 0xfffffffc, ^PSAT)
- Store (^PSAT, Local0) // Read back after writing
+ ^PSAT &= 0xfffffffc
+ Local0 = ^PSAT // Read back after writing
// Use Local0 to avoid iasl warning: Method Local is set but never used
- And(Local0, Ones, Local0)
+ Local0 &= Ones
}
// Put controller in D3Hot state
Method (_PS3, 0, Serialized)
{
- Or (^PSAT, 0x00000003, ^PSAT)
- Store (^PSAT, Local0) // Read back after writing
+ ^PSAT |= 0x00000003
+ Local0 = ^PSAT // Read back after writing
// Use Local0 to avoid iasl warning: Method Local is set but never used
- And(Local0, Ones, Local0)
+ Local0 &= Ones
}
}
@@ -319,11 +319,11 @@ Device (SPI0)
Method (_CRS, 0, NotSerialized)
{
// Update BAR0 address and length if set in NVS
- If (LNotEqual (\S3B0, Zero)) {
+ If (\S3B0 != 0) {
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
- Store (\S3B0, B0AD)
- Store (SIO_BAR_LEN, B0LN)
+ B0AD = \S3B0
+ B0LN = SIO_BAR_LEN
}
Return (RBUF)
@@ -331,7 +331,7 @@ Device (SPI0)
Method (_STA, 0, NotSerialized)
{
- If (LEqual (\S3EN, 0)) {
+ If (\S3EN == 0) {
Return (0x0)
} Else {
Return (0xF)
@@ -363,15 +363,15 @@ Device (SPI1)
Method (_CRS, 0, NotSerialized)
{
// Update BAR0 address and length if set in NVS
- If (LNotEqual (\S4B0, Zero)) {
+ If (\S4B0 != 0) {
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
- Store (\S4B0, B0AD)
- Store (SIO_BAR_LEN, B0LN)
+ B0AD = \S4B0
+ B0LN = SIO_BAR_LEN
}
// Check if Serial IO DMA Controller is enabled
- If (LNotEqual (\_SB.PCI0.SDMA._STA, Zero)) {
+ If (\_SB.PCI0.SDMA._STA != 0) {
Return (ConcatenateResTemplate (RBUF, DBUF))
} Else {
Return (RBUF)
@@ -380,7 +380,7 @@ Device (SPI1)
Method (_STA, 0, NotSerialized)
{
- If (LEqual (\S4EN, 0)) {
+ If (\S4EN == 0) {
Return (0x0)
} Else {
Return (0xF)
@@ -412,15 +412,15 @@ Device (UAR0)
Method (_CRS, 0, NotSerialized)
{
// Update BAR0 address and length if set in NVS
- If (LNotEqual (\S5B0, Zero)) {
+ If (\S5B0 != 0) {
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
- Store (\S5B0, B0AD)
- Store (SIO_BAR_LEN, B0LN)
+ B0AD = \S5B0
+ B0LN = SIO_BAR_LEN
}
// Check if Serial IO DMA Controller is enabled
- If (LNotEqual (\_SB.PCI0.SDMA._STA, Zero)) {
+ If (\_SB.PCI0.SDMA._STA != 0) {
Return (ConcatenateResTemplate (RBUF, DBUF))
} Else {
Return (RBUF)
@@ -429,7 +429,7 @@ Device (UAR0)
Method (_STA, 0, NotSerialized)
{
- If (LEqual (\S5EN, 0)) {
+ If (\S5EN == 0) {
Return (0x0)
} Else {
Return (0xF)
@@ -454,11 +454,11 @@ Device (UAR1)
Method (_CRS, 0, NotSerialized)
{
// Update BAR0 address and length if set in NVS
- If (LNotEqual (\S6B0, Zero)) {
+ If (\S6B0 != 0) {
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
- Store (\S6B0, B0AD)
- Store (SIO_BAR_LEN, B0LN)
+ B0AD = \S6B0
+ B0LN = SIO_BAR_LEN
}
Return (RBUF)
@@ -466,7 +466,7 @@ Device (UAR1)
Method (_STA, 0, NotSerialized)
{
- If (LEqual (\S6EN, 0)) {
+ If (\S6EN == 0) {
Return (0x0)
} Else {
Return (0xF)
@@ -491,11 +491,11 @@ Device (SDIO)
Method (_CRS, 0, NotSerialized)
{
// Update BAR0 address and length if set in NVS
- If (LNotEqual (\S7B0, Zero)) {
+ If (\S7B0 != 0) {
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
- Store (\S7B0, B0AD)
- Store (SIO_BAR_LEN, B0LN)
+ B0AD = \S7B0
+ B0LN = SIO_BAR_LEN
}
Return (RBUF)
@@ -503,7 +503,7 @@ Device (SDIO)
Method (_STA, 0, NotSerialized)
{
- If (LEqual (\S7EN, 0)) {
+ If (\S7EN == 0) {
Return (0x0)
} Else {
Return (0xF)