2015-05-13 03:19:47 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014 Google Inc.
|
2015-05-13 03:23:27 +02:00
|
|
|
* Copyright (C) 2015 Intel Corporation.
|
2015-05-13 03:19:47 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2015-05-13 03:23:27 +02:00
|
|
|
* Foundation, Inc.
|
2015-05-13 03:19:47 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
// Intel Serial IO Devices in ACPI Mode
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Serial IO Device BAR0 and BAR1 is 4KB */
|
2015-05-13 03:19:47 +02:00
|
|
|
#define SIO_BAR_LEN 0x1000
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Put SerialIO device in D0 state */
|
|
|
|
/* Arg0 - BAR1 of device */
|
|
|
|
/* Arg1 - Set if device is in ACPI mode */
|
|
|
|
|
2015-05-13 03:19:47 +02:00
|
|
|
Method (LPD0, 2, Serialized)
|
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* PCI mode devices will be handled by OS PCI bus driver */
|
2015-05-13 03:19:47 +02:00
|
|
|
If (LEqual (Arg1, 0)) {
|
|
|
|
Return
|
|
|
|
}
|
|
|
|
|
|
|
|
OperationRegion (SPRT, SystemMemory, Add (Arg0, 0x84), 4)
|
|
|
|
Field (SPRT, DWordAcc, NoLock, Preserve)
|
|
|
|
{
|
|
|
|
SPCS, 32
|
|
|
|
}
|
|
|
|
|
|
|
|
And (SPCS, 0xFFFFFFFC, SPCS)
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Read back after writing */
|
2015-07-17 21:14:27 +02:00
|
|
|
Store (SPCS, Local0)
|
2015-05-13 03:19:47 +02:00
|
|
|
}
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Put SerialIO device in D3 state */
|
|
|
|
/* Arg0 - BAR1 of device */
|
|
|
|
/* Arg1 - Set if device is in ACPI mode */
|
|
|
|
|
2015-05-13 03:19:47 +02:00
|
|
|
Method (LPD3, 2, Serialized)
|
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* PCI mode devices will be handled by OS PCI bus driver */
|
2015-05-13 03:19:47 +02:00
|
|
|
If (LEqual (Arg1, 0)) {
|
|
|
|
Return
|
|
|
|
}
|
|
|
|
OperationRegion (SPRT, SystemMemory, Add (Arg0, 0x84), 4)
|
|
|
|
Field (SPRT, DWordAcc, NoLock, Preserve)
|
|
|
|
{
|
|
|
|
SPCS, 32
|
|
|
|
}
|
|
|
|
Or (SPCS, 0x3, SPCS)
|
|
|
|
Store (SPCS, Local0) // Read back after writing
|
|
|
|
}
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Serial IO Resource Consumption for BAR1 */
|
2015-05-13 03:19:47 +02:00
|
|
|
Device (SIOR)
|
|
|
|
{
|
|
|
|
Name (_HID, EISAID("PNP0C02"))
|
2015-05-13 03:23:27 +02:00
|
|
|
Name (_UID, 5)
|
|
|
|
Method(ADDB,3,Serialized) {
|
|
|
|
Name (BUFF, ResourceTemplate()
|
2015-05-13 03:19:47 +02:00
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
Memory32Fixed (ReadWrite, 0x00000000, 0x1000, BUF)
|
|
|
|
})
|
|
|
|
CreateDWordField(BUFF,BUF._BAS,ADDR)
|
|
|
|
CreateDWordField(BUFF,BUF._LEN,LENG)
|
|
|
|
Store(ResourceTemplate(){}, Local0)
|
|
|
|
//Return (RBUF)
|
2015-05-13 03:19:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
Device (I2C0)
|
2015-05-13 03:19:47 +02:00
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Serial IO I2C0 Controller */
|
|
|
|
Name (_HID,"INT3442")
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (_UID, 1)
|
|
|
|
Name (_ADR, 0x00150000)
|
2015-05-13 03:23:27 +02:00
|
|
|
Name (SSCN, Package () { 432, 507, 30 })
|
|
|
|
Name (FMCN, Package () { 72, 160, 30 })
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* BAR0 is assigned during PCI enumeration and saved into NVS */
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (RBUF, ResourceTemplate ()
|
|
|
|
{
|
|
|
|
Memory32Fixed (ReadWrite, 0x00000000, 0x00000000, BAR0)
|
2015-05-13 03:23:27 +02:00
|
|
|
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, , , )
|
|
|
|
{ LPSS_I2C0_IRQ }
|
2015-05-13 03:19:47 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
Method (_CRS, 0, NotSerialized)
|
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Update BAR0 address and length if set in NVS */
|
2015-05-13 03:19:47 +02:00
|
|
|
If (LNotEqual (\S0B0, Zero)) {
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
|
|
|
|
Store (\S0B0, B0AD)
|
|
|
|
Store (SIO_BAR_LEN, B0LN)
|
|
|
|
}
|
|
|
|
Return (RBUF)
|
|
|
|
}
|
2015-07-28 15:13:13 +02:00
|
|
|
|
2015-05-13 03:19:47 +02:00
|
|
|
Method (_STA, 0, NotSerialized)
|
|
|
|
{
|
|
|
|
If (LEqual (\S0EN, 0)) {
|
|
|
|
Return (0x0)
|
|
|
|
} Else {
|
|
|
|
Return (0xF)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
Method (_PS0, 0, Serialized)
|
2015-05-13 03:19:47 +02:00
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
^^LPD0 (\S0B1, \S0EN)
|
|
|
|
}
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
Method (_PS3, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD3 (\S0B1, \S0EN)
|
2015-05-13 03:19:47 +02:00
|
|
|
}
|
2015-05-13 03:23:27 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Device (I2C1)
|
|
|
|
{
|
|
|
|
/* Serial IO I2C1 Controller */
|
|
|
|
Name (_HID,"INT3443")
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (_UID, 1)
|
|
|
|
Name (_ADR, 0x00150001)
|
2015-05-13 03:23:27 +02:00
|
|
|
Name (SSCN, Package () { 528, 640, 30 })
|
|
|
|
Name (FMCN, Package () { 128, 160, 30 })
|
|
|
|
Name (FPCN, Package () { 48, 64, 30})
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* BAR0 is assigned during PCI enumeration and saved into NVS */
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (RBUF, ResourceTemplate ()
|
|
|
|
{
|
|
|
|
Memory32Fixed (ReadWrite, 0x00000000, 0x00000000, BAR0)
|
2015-05-13 03:23:27 +02:00
|
|
|
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, , , )
|
|
|
|
{ LPSS_I2C1_IRQ }
|
2015-05-13 03:19:47 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
Method (_CRS, 0, NotSerialized)
|
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Update BAR0 address and length if set in NVS */
|
2015-05-13 03:19:47 +02:00
|
|
|
If (LNotEqual (\S1B0, Zero)) {
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
|
|
|
|
Store (\S1B0, B0AD)
|
|
|
|
Store (SIO_BAR_LEN, B0LN)
|
|
|
|
}
|
2015-05-13 03:23:27 +02:00
|
|
|
Return (RBUF)
|
2015-05-13 03:19:47 +02:00
|
|
|
}
|
2015-07-28 15:13:13 +02:00
|
|
|
|
2015-05-13 03:19:47 +02:00
|
|
|
Method (_STA, 0, NotSerialized)
|
|
|
|
{
|
|
|
|
If (LEqual (\S1EN, 0)) {
|
|
|
|
Return (0x0)
|
|
|
|
} Else {
|
|
|
|
Return (0xF)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS0, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD0 (\S1B1, \S1EN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS3, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD3 (\S1B1, \S1EN)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
Device (I2C2)
|
|
|
|
{
|
|
|
|
/* Serial IO I2C1 Controller */
|
|
|
|
Name (_HID,"INT3444")
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (_UID, 1)
|
|
|
|
Name (_ADR, 0x00150002)
|
|
|
|
Name (SSCN, Package () { 432, 507, 30 })
|
|
|
|
Name (FMCN, Package () { 72, 160, 30 })
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* BAR0 is assigned during PCI enumeration and saved into NVS */
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (RBUF, ResourceTemplate ()
|
|
|
|
{
|
|
|
|
Memory32Fixed (ReadWrite, 0x00000000, 0x00000000, BAR0)
|
2015-05-13 03:23:27 +02:00
|
|
|
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, , , )
|
|
|
|
{ LPSS_I2C2_IRQ }
|
2015-05-13 03:19:47 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
Method (_CRS, 0, NotSerialized)
|
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Update BAR0 address and length if set in NVS */
|
2015-05-13 03:19:47 +02:00
|
|
|
If (LNotEqual (\S2B0, Zero)) {
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
|
|
|
|
Store (\S2B0, B0AD)
|
|
|
|
Store (SIO_BAR_LEN, B0LN)
|
|
|
|
}
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
Return (RBUF)
|
2015-05-13 03:19:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Method (_STA, 0, NotSerialized)
|
|
|
|
{
|
|
|
|
If (LEqual (\S2EN, 0)) {
|
|
|
|
Return (0x0)
|
|
|
|
} Else {
|
|
|
|
Return (0xF)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS0, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD0 (\S2B1, \S2EN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS3, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD3 (\S2B1, \S2EN)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
Device (I2C3)
|
2015-05-13 03:19:47 +02:00
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Serial IO I2C3 Controller */
|
|
|
|
Name (_HID,"INT3445")
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (_UID, 1)
|
|
|
|
Name (_ADR, 0x00150003)
|
2015-05-13 03:23:27 +02:00
|
|
|
Name (SSCN, Package () { 432, 507, 30 })
|
|
|
|
Name (FMCN, Package () { 72, 160, 30 })
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* BAR0 is assigned during PCI enumeration and saved into NVS */
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (RBUF, ResourceTemplate ()
|
|
|
|
{
|
|
|
|
Memory32Fixed (ReadWrite, 0x00000000, 0x00000000, BAR0)
|
2015-05-13 03:23:27 +02:00
|
|
|
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, , , )
|
|
|
|
{ LPSS_I2C3_IRQ }
|
|
|
|
})
|
|
|
|
|
2015-05-13 03:19:47 +02:00
|
|
|
Method (_CRS, 0, NotSerialized)
|
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Update BAR0 address and length if set in NVS */
|
2015-05-13 03:19:47 +02:00
|
|
|
If (LNotEqual (\S3B0, Zero)) {
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
|
|
|
|
Store (\S3B0, B0AD)
|
|
|
|
Store (SIO_BAR_LEN, B0LN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Return (RBUF)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_STA, 0, NotSerialized)
|
|
|
|
{
|
|
|
|
If (LEqual (\S3EN, 0)) {
|
|
|
|
Return (0x0)
|
|
|
|
} Else {
|
|
|
|
Return (0xF)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS0, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD0 (\S3B1, \S3EN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS3, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD3 (\S3B1, \S3EN)
|
|
|
|
}
|
2015-05-13 03:23:27 +02:00
|
|
|
|
2015-05-13 03:19:47 +02:00
|
|
|
}
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
Device (I2C4)
|
2015-05-13 03:19:47 +02:00
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Serial IO I2C4 Controller */
|
|
|
|
Name (_HID,"INT3446")
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (_UID, 1)
|
2015-05-13 03:23:27 +02:00
|
|
|
Name (_ADR, 0x00190002)
|
|
|
|
Name (SSCN, Package () { 432, 507, 30 })
|
|
|
|
Name (FMCN, Package () { 72, 160, 30 })
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* BAR0 is assigned during PCI enumeration and saved into NVS */
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (RBUF, ResourceTemplate ()
|
|
|
|
{
|
|
|
|
Memory32Fixed (ReadWrite, 0x00000000, 0x00000000, BAR0)
|
2015-05-13 03:23:27 +02:00
|
|
|
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, , , )
|
|
|
|
{ LPSS_I2C4_IRQ }
|
2015-05-13 03:19:47 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
Method (_CRS, 0, NotSerialized)
|
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Update BAR0 address and length if set in NVS*/
|
|
|
|
If (LNotEqual (\S4B0, Zero)) {
|
2015-05-13 03:19:47 +02:00
|
|
|
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
|
|
|
|
Store (\S4B0, B0AD)
|
|
|
|
Store (SIO_BAR_LEN, B0LN)
|
|
|
|
}
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
Return (RBUF)
|
2015-05-13 03:19:47 +02:00
|
|
|
}
|
2015-07-28 15:13:13 +02:00
|
|
|
|
2015-05-13 03:19:47 +02:00
|
|
|
Method (_STA, 0, NotSerialized)
|
|
|
|
{
|
|
|
|
If (LEqual (\S4EN, 0)) {
|
|
|
|
Return (0x0)
|
|
|
|
} Else {
|
|
|
|
Return (0xF)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS0, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD0 (\S4B1, \S4EN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS3, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD3 (\S4B1, \S4EN)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
Device (I2C5)
|
2015-05-13 03:19:47 +02:00
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Serial IO I2C1 Controller */
|
|
|
|
Name (_HID,"INT3447")
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (_UID, 1)
|
2015-05-13 03:23:27 +02:00
|
|
|
Name (_ADR, 0x00190002)
|
|
|
|
Name (SSCN, Package () { 432, 507, 30 })
|
|
|
|
Name (FMCN, Package () { 72, 160, 30 })
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* BAR0 is assigned during PCI enumeration and saved into NVS */
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (RBUF, ResourceTemplate ()
|
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
Memory32Fixed (ReadWrite, 0x00000000, 0x00000000, BAR0)
|
|
|
|
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, , , )
|
|
|
|
{ LPSS_I2C5_IRQ }
|
2015-05-13 03:19:47 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
Method (_CRS, 0, NotSerialized)
|
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Update BAR0 address and length if set in NVS */
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
|
|
|
|
Store (0xFE02A000, B0AD)
|
|
|
|
Store (SIO_BAR_LEN, B0LN)
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
Return (RBUF)
|
2015-05-13 03:19:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Method (_STA, 0, NotSerialized)
|
|
|
|
{
|
|
|
|
If (LEqual (\S5EN, 0)) {
|
|
|
|
Return (0x0)
|
|
|
|
} Else {
|
|
|
|
Return (0xF)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS0, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD0 (\S5B1, \S5EN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS3, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD3 (\S5B1, \S5EN)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
Device (SPI0)
|
2015-05-13 03:19:47 +02:00
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Serial IO PI0 Controller */
|
|
|
|
Name (_HID,"INT3440")
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (_UID, 1)
|
2015-05-13 03:23:27 +02:00
|
|
|
Name (_ADR, 0x001E0002)
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* BAR0 is assigned during PCI enumeration and saved into NVS */
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (RBUF, ResourceTemplate ()
|
|
|
|
{
|
|
|
|
Memory32Fixed (ReadWrite, 0x00000000, 0x00000000, BAR0)
|
2015-05-13 03:23:27 +02:00
|
|
|
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, , , )
|
|
|
|
{ LPSS_SPI0_IRQ }
|
2015-05-13 03:19:47 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
Method (_CRS, 0, NotSerialized)
|
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Update BAR0 address and length if set in NVS */
|
2015-05-13 03:19:47 +02:00
|
|
|
If (LNotEqual (\S6B0, Zero)) {
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
|
|
|
|
Store (\S6B0, B0AD)
|
|
|
|
Store (SIO_BAR_LEN, B0LN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Return (RBUF)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_STA, 0, NotSerialized)
|
|
|
|
{
|
|
|
|
If (LEqual (\S6EN, 0)) {
|
|
|
|
Return (0x0)
|
|
|
|
} Else {
|
|
|
|
Return (0xF)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Method (_PS0, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD0 (\S6B1, \S6EN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS3, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD3 (\S6B1, \S6EN)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
Device (SPI1)
|
2015-05-13 03:19:47 +02:00
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Serial IO SPI1 Controller */
|
|
|
|
Name (_HID,"INT3441")
|
|
|
|
Name (_UID, 1)
|
|
|
|
Name (_ADR, 0x001E0003)
|
|
|
|
|
|
|
|
/* BAR0 is assigned during PCI enumeration and saved into NVS */
|
|
|
|
Name (RBUF, ResourceTemplate ()
|
|
|
|
{
|
|
|
|
Memory32Fixed (ReadWrite, 0x00000000, 0x00000000, BAR0)
|
|
|
|
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, , , )
|
|
|
|
{ LPSS_SPI1_IRQ }
|
|
|
|
})
|
|
|
|
|
|
|
|
Method (_CRS, 0, NotSerialized)
|
2015-05-13 03:19:47 +02:00
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Update BAR0 address and length if set in NVS */
|
|
|
|
If (LNotEqual (\S7B0, Zero)) {
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
|
|
|
|
Store (\S7B0, B0AD)
|
|
|
|
Store (SIO_BAR_LEN, B0LN)
|
2015-05-13 03:19:47 +02:00
|
|
|
}
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
Return (RBUF)
|
|
|
|
}
|
|
|
|
Method (_STA, 0, NotSerialized)
|
|
|
|
{
|
|
|
|
If (LEqual (\S7EN, 0)) {
|
|
|
|
Return (0x0)
|
|
|
|
} Else {
|
|
|
|
Return (0xF)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS0, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD0 (\S7B1, \S7EN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS3, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD3 (\S7B1, \S7EN)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Device (UAR0)
|
|
|
|
{
|
|
|
|
/* Serial IO UART0 Controller */
|
|
|
|
Name (_HID,"INT3448")
|
|
|
|
Name (_UID, 1)
|
|
|
|
Name (_ADR, 0x001E0000)
|
|
|
|
|
|
|
|
/* BAR0 is assigned during PCI enumeration and saved into NVS */
|
|
|
|
Name (RBUF, ResourceTemplate ()
|
|
|
|
{
|
|
|
|
Memory32Fixed (ReadWrite, 0x00000000, 0x00000000, BAR0)
|
|
|
|
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, , , )
|
|
|
|
{ LPSS_UART0_IRQ }
|
|
|
|
})
|
|
|
|
|
|
|
|
Method (_CRS, 0, NotSerialized)
|
|
|
|
{
|
|
|
|
/* Update BAR0 address and length if set in NVS */
|
|
|
|
If (LNotEqual (\S8B0, Zero)) {
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
|
|
|
|
Store (\S8B0, B0AD)
|
|
|
|
Store (SIO_BAR_LEN, B0LN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Return (RBUF)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_STA, 0, NotSerialized)
|
|
|
|
{
|
|
|
|
If (LEqual (\S8EN, 0)) {
|
|
|
|
Return (0x0)
|
|
|
|
} Else {
|
|
|
|
Return (0xF)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS0, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD0 (\S8B1, \S8EN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS3, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD3 (\S8B1, \S8EN)
|
2015-05-13 03:19:47 +02:00
|
|
|
}
|
2015-05-13 03:23:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Device (UAR1)
|
|
|
|
{
|
|
|
|
/* Serial IO UART1 Controller */
|
|
|
|
Name (_HID,"INT3449")
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (_UID, 1)
|
2015-05-13 03:23:27 +02:00
|
|
|
Name (_ADR, 0x001E0001)
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* BAR0 is assigned during PCI enumeration and saved into NVS */
|
2015-05-13 03:19:47 +02:00
|
|
|
Name (RBUF, ResourceTemplate ()
|
|
|
|
{
|
|
|
|
Memory32Fixed (ReadWrite, 0x00000000, 0x00000000, BAR0)
|
2015-05-13 03:23:27 +02:00
|
|
|
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, , , )
|
|
|
|
{ LPSS_UART1_IRQ }
|
2015-05-13 03:19:47 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
Method (_CRS, 0, NotSerialized)
|
|
|
|
{
|
|
|
|
// Update BAR0 address and length if set in NVS
|
2015-05-13 03:23:27 +02:00
|
|
|
If (LNotEqual (\S9B0, Zero)) {
|
2015-05-13 03:19:47 +02:00
|
|
|
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
|
2015-05-13 03:23:27 +02:00
|
|
|
Store (\S9B0, B0AD)
|
2015-05-13 03:19:47 +02:00
|
|
|
Store (SIO_BAR_LEN, B0LN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Return (RBUF)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_STA, 0, NotSerialized)
|
|
|
|
{
|
2015-05-13 03:23:27 +02:00
|
|
|
If (LEqual (\S9EN, 0)) {
|
2015-05-13 03:19:47 +02:00
|
|
|
Return (0x0)
|
|
|
|
} Else {
|
|
|
|
Return (0xF)
|
|
|
|
}
|
|
|
|
}
|
2015-05-13 03:23:27 +02:00
|
|
|
|
|
|
|
Method (_PS0, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD0 (\S9B1, \S9EN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS3, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD3 (\S9B1, \S9EN)
|
|
|
|
}
|
2015-05-13 03:19:47 +02:00
|
|
|
}
|
2015-05-13 03:23:27 +02:00
|
|
|
|
|
|
|
Device (UAR2)
|
|
|
|
{
|
|
|
|
/* Serial IO UART1 Controller */
|
|
|
|
Name (_HID,"INT344A")
|
|
|
|
Name (_UID, 1)
|
|
|
|
Name (_ADR, 0x00190000)
|
|
|
|
|
|
|
|
/* BAR0 is assigned during PCI enumeration and saved into NVS */
|
|
|
|
Name (RBUF, ResourceTemplate ()
|
|
|
|
{
|
|
|
|
Memory32Fixed (ReadWrite, 0x00000000, 0x00000000, BAR0)
|
|
|
|
Interrupt (ResourceConsumer, Level, ActiveLow, Shared, , , )
|
|
|
|
{ LPSS_UART2_IRQ }
|
|
|
|
})
|
|
|
|
|
|
|
|
Method (_CRS, 0, NotSerialized)
|
|
|
|
{
|
|
|
|
/* Update BAR0 address and length if set in NVS */
|
|
|
|
If (LNotEqual (\SAB0, Zero)) {
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._BAS, B0AD)
|
|
|
|
CreateDwordField (^RBUF, ^BAR0._LEN, B0LN)
|
|
|
|
Store (\SAB0, B0AD)
|
|
|
|
Store (SIO_BAR_LEN, B0LN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Return (RBUF)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_STA, 0, NotSerialized)
|
|
|
|
{
|
|
|
|
If (LEqual (\SAEN, 0)) {
|
|
|
|
Return (0x0)
|
|
|
|
} Else {
|
|
|
|
Return (0xF)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS0, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD0 (\SAB1, \SAEN)
|
|
|
|
}
|
|
|
|
|
|
|
|
Method (_PS3, 0, Serialized)
|
|
|
|
{
|
|
|
|
^^LPD3 (\SAB1, \SAEN)
|
|
|
|
}
|
|
|
|
}
|