diff --git a/8150/builtin/DSDT.aml b/8150/builtin/DSDT.aml
index 0d5952a..6b6a6d2 100644
Binary files a/8150/builtin/DSDT.aml and b/8150/builtin/DSDT.aml differ
diff --git a/8150/shared-src/8150_AND/cust_touch.asl b/8150/shared-src/8150_AND/cust_touch.asl
index b91227b..f31c021 100644
--- a/8150/shared-src/8150_AND/cust_touch.asl
+++ b/8150/shared-src/8150_AND/cust_touch.asl
@@ -33,20 +33,13 @@
// SPDX-License-Identifier: MIT
//
-Name(TCSS, 1)
-
//
// HIDSPI Touch Driver
//
Device (TSPI)
{
Method(_HID) {
- if(LEqual(TCSS, 1)) {
- Return("MSHW0162")
- }
- else {
- Return("MSHW0134")
- }
+ Return("MSHW0162")
}
Name(_CID, "PNP0C51")
Alias(\_SB.PSUB, _SUB)
@@ -173,6 +166,8 @@ Device (TSPI)
{
Store(DBUF, \_SB.PEP0.FLD0)
}
+
+ Store(0, FLAG)
}
Method(_PS3, 0x0, NotSerialized)
diff --git a/8150/shared-src/8150_AND/cust_touch_resources.asl b/8150/shared-src/8150_AND/cust_touch_resources.asl
index 0a09820..6bb68a6 100644
--- a/8150/shared-src/8150_AND/cust_touch_resources.asl
+++ b/8150/shared-src/8150_AND/cust_touch_resources.asl
@@ -58,33 +58,51 @@ Scope(\_SB_.PEP0)
{
"DSTATE", 0,
+ Package()
+ {
+ "PMICVREGVOTE",
+ Package()
+ {
+ "PPP_RESOURCE_ID_LDO9_A", // Voltage Regulator ID
+ 1, // Voltage Regulator type = LDO
+ 1200000, // Voltage 1.2V : microvolts ( V )
+ 1, // Enable = Enable
+ 0, // Power Mode = LPM
+ 0, // Head Room
+ }
+ },
+
+ Package(){"DELAY", Package(){5}},
+
Package()
{
"TLMMGPIO", // Identifier: PMIC GPIO. Top Level Mode Mux (TLMM)
Package()
{
- 1, // Pin Number: GPIO_1
+ 0, // Pin Number: GPIO_0
1, // State / OutVal: 0 == Low, 1 == High
0, // Function Select: 0 == Generic I/O Pin, non-zero == Alternate Function
1, // Direction: 0 == Input, 1 == Output
- 3, // Pull Type: 0 == No Pull, 1 == Pull Down, 2 == Keeper, 3 == Pull Up
- 3, // Strength: 0 == 2 mA, 1 == 4 mA, 2 == 6 mA, 3 == 8 mA, 4 == 10 mA, 5 == 12 mA, 4 == 14 mA, 7 == 16 mA
+ 0, // Pull Type: 0 == No Pull, 1 == Pull Down, 2 == Keeper, 3 == Pull Up
+ 0, // Strength: 0 == 2 mA, 1 == 4 mA, 2 == 6 mA, 3 == 8 mA, 4 == 10 mA, 5 == 12 mA, 4 == 14 mA, 7 == 16 mA
},
},
- Package(){"DELAY", Package(){300}},
+ Package(){"DELAY", Package(){2}},
+
+ Package(){"DELAY", Package(){2}},
Package()
{
"TLMMGPIO", // Identifier: PMIC GPIO. Top Level Mode Mux (TLMM)
Package()
{
- 0, // Pin Number: GPIO_0
+ 1, // Pin Number: GPIO_1
1, // State / OutVal: 0 == Low, 1 == High
0, // Function Select: 0 == Generic I/O Pin, non-zero == Alternate Function
1, // Direction: 0 == Input, 1 == Output
- 3, // Pull Type: 0 == No Pull, 1 == Pull Down, 2 == Keeper, 3 == Pull Up
- 3, // Strength: 0 == 2 mA, 1 == 4 mA, 2 == 6 mA, 3 == 8 mA, 4 == 10 mA, 5 == 12 mA, 4 == 14 mA, 7 == 16 mA
+ 0, // Pull Type: 0 == No Pull, 1 == Pull Down, 2 == Keeper, 3 == Pull Up
+ 0, // Strength: 0 == 2 mA, 1 == 4 mA, 2 == 6 mA, 3 == 8 mA, 4 == 10 mA, 5 == 12 mA, 4 == 14 mA, 7 == 16 mA
},
},
},
@@ -108,30 +126,42 @@ Scope(\_SB_.PEP0)
"TLMMGPIO", // Identifier: PMIC GPIO. Top Level Mode Mux (TLMM)
Package()
{
- 0, // Pin Number: GPIO_0
+ 1, // Pin Number: GPIO_1
0, // State / OutVal: 0 == Low, 1 == High
0, // Function Select: 0 == Generic I/O Pin, non-zero == Alternate Function
1, // Direction: 0 == Input, 1 == Output
- 1, // Pull Type: 0 == No Pull, 1 == Pull Down, 2 == Keeper, 3 == Pull Up
+ 0, // Pull Type: 0 == No Pull, 1 == Pull Down, 2 == Keeper, 3 == Pull Up
0, // Strength: 0 == 2 mA, 1 == 4 mA, 2 == 6 mA, 3 == 8 mA, 4 == 10 mA, 5 == 12 mA, 4 == 14 mA, 7 == 16 mA
},
},
- Package(){"DELAY", Package(){10}},
-
Package()
{
"TLMMGPIO", // Identifier: PMIC GPIO. Top Level Mode Mux (TLMM)
Package()
{
- 1, // Pin Number: GPIO_1
+ 0, // Pin Number: GPIO_0
0, // State / OutVal: 0 == Low, 1 == High
0, // Function Select: 0 == Generic I/O Pin, non-zero == Alternate Function
1, // Direction: 0 == Input, 1 == Output
- 1, // Pull Type: 0 == No Pull, 1 == Pull Down, 2 == Keeper, 3 == Pull Up
+ 0, // Pull Type: 0 == No Pull, 1 == Pull Down, 2 == Keeper, 3 == Pull Up
0, // Strength: 0 == 2 mA, 1 == 4 mA, 2 == 6 mA, 3 == 8 mA, 4 == 10 mA, 5 == 12 mA, 4 == 14 mA, 7 == 16 mA
},
},
+
+ Package()
+ {
+ "PMICVREGVOTE",
+ Package()
+ {
+ "PPP_RESOURCE_ID_LDO9_A", // Voltage Regulator ID
+ 1, // Voltage Regulator type = LDO
+ 0, // Voltage 1.2V : microvolts ( V )
+ 0, // Enable = Disable
+ 0, // Power Mode = LPM
+ 0, // Head Room
+ },
+ },
}
}
})
diff --git a/8150/shared-src/8150_AND/cust_usb_sbux_mux.asl b/8150/shared-src/8150_AND/cust_usb_sbux_mux.asl
index 646c24d..4ddc609 100644
--- a/8150/shared-src/8150_AND/cust_usb_sbux_mux.asl
+++ b/8150/shared-src/8150_AND/cust_usb_sbux_mux.asl
@@ -29,7 +29,7 @@
//
Device (CFSA)
{
- Name (_HID, "FSA4480")
+ Name (_HID, "FSA04480")
Alias(\_SB.PSUB, _SUB)
Method (_CRS, 0x0, NotSerialized)
diff --git a/8150/shared-src/8150_AND/panelcfg.asl b/8150/shared-src/8150_AND/panelcfg.asl
index e6075a2..70f7db7 100644
--- a/8150/shared-src/8150_AND/panelcfg.asl
+++ b/8150/shared-src/8150_AND/panelcfg.asl
@@ -28,8 +28,8 @@ Name (PCFG,
LGSW43416
LG Primary DSI Command Mode AMOLED Panel with DSC DV (1350x1800 24bpp)
- 0xAF0D
- 0x01C2
+ 0xE430
+ 0x3416
0x000000
0x09
0x13
@@ -106,7 +106,7 @@ Name (PCFG,
False
120
False
- 500000000
+ 412000000
0x00000009
2
1
diff --git a/8150/shared-src/8150_AND/panelcfg2.asl b/8150/shared-src/8150_AND/panelcfg2.asl
index 9d664aa..5fe8cce 100644
--- a/8150/shared-src/8150_AND/panelcfg2.asl
+++ b/8150/shared-src/8150_AND/panelcfg2.asl
@@ -28,8 +28,8 @@ Name (PCF2,
LGSW43416
LG Secondary DSI Command Mode AMOLED Panel with DSC DV (1350x1800 24bpp)
- 0xAF0D
- 0x01C2
+ 0xE430
+ 0x2416
0x000000
0x09
0x13
@@ -106,7 +106,7 @@ Name (PCF2,
False
120
False
- 500000000
+ 412000000
0x00000009
2
1
diff --git a/8150/shared-src/8150_AND/surface_additional_thermal_zones.asl b/8150/shared-src/8150_AND/surface_additional_thermal_zones.asl
index 49df8c5..f8ed15b 100644
--- a/8150/shared-src/8150_AND/surface_additional_thermal_zones.asl
+++ b/8150/shared-src/8150_AND/surface_additional_thermal_zones.asl
@@ -28,7 +28,7 @@
//
ThermalZone (AMX1)
{
- Name (_HID, "QCOM0562")
+ Name (_HID, "QCOM0563")
Name (_UID, 20)
Name(_TZD, Package (){\_SB.PEP0})
Method(_DEP) {
@@ -50,11 +50,11 @@ ThermalZone (AMX1)
//
ThermalZone (AMX2)
{
- Name (_HID, "QCOM0563")
+ Name (_HID, "QCOM0566")
Name (_UID, 21)
Name(_TZD, Package (){\_SB.PEP0})
Method(_DEP) {
- Return (Package() {\_SB.PEP0, \_SB.ADC1})
+ Return (Package() {\_SB.PEP0, \_SB.ADC2})
}
Name (_TC1, 2)
@@ -85,11 +85,11 @@ ThermalZone (AMX3)
//
ThermalZone (AMX4)
{
- Name (_HID, "QCOM0565")
+ Name (_HID, "QCOM0568")
Name (_UID, 23)
Method(_DEP) {
- Return (Package() {\_SB.PEP0, \_SB.ADC1})
+ Return (Package() {\_SB.PEP0, \_SB.ADC2})
}
}
@@ -98,12 +98,12 @@ ThermalZone (AMX4)
//
ThermalZone (AMX5)
{
- Name (_HID, "QCOM0566")
+ Name (_HID, "QCOM0567")
Name (_UID, 24)
Name (_CRT, 3258)
Name(_TZD, Package (){\_SB.PEP0})
Method(_DEP) {
- Return (Package() {\_SB.PEP0, \_SB.ADC1})
+ Return (Package() {\_SB.PEP0, \_SB.ADC2})
}
Name (_TC1, 2)
Name (_TC2, 2)
@@ -120,32 +120,32 @@ ThermalZone (AMX5)
//
ThermalZone (PMOD)
{
- Name (_HID, "QCOM0567")
+ Name (_HID, "QCOM0562")
Name (_UID, 29)
Method(_DEP) {
- Return (Package() {\_SB.PEP0, \_SB.ADC1})
+ Return (Package() {\_SB.PEP0, \_SB.ADC2})
}
}
//
// Qualcomm ADC Temperature Monitor Device 8 (PMIC_TEMP2)
//
-ThermalZone (PMI1)
+ThermalZone (PMB1)
{
- Name (_HID, "QCOM0569")
+ Name (_HID, "QCOM0565")
Name (_UID, 12)
Name (_TZP, 300)
Method(_DEP) {
- Return (Package() {\_SB.PEP0, \_SB.ADC1})
+ Return (Package() {\_SB.PEP0, \_SB.ADC2})
}
}
-//
+/*//
// Qualcomm ADC Temperature Monitor Device 9 (CHG_TEMP)
//
-ThermalZone (PMI2)
+ThermalZone (PMB2)
{
Name (_HID, "QCOM056A")
Name (_UID, 13)
@@ -154,9 +154,9 @@ ThermalZone (PMI2)
Method(_DEP) {
Return (Package() {\_SB.PEP0, \_SB.ADC1})
}
-}
+}*/
-//
+/*//
// Qualcomm ADC Temperature Monitor Device 7 (SKIN_THERM)
//
ThermalZone (AUX)
@@ -168,4 +168,74 @@ ThermalZone (AUX)
Method(_DEP) {
Return (Package() {\_SB.PEP0, \_SB.ADC1})
}
+}*/
+
+//
+// Qualcomm ADC Temperature Monitor Device 10 (SYS_THERM4)
+//
+ThermalZone (PML1)
+{
+ Name (_HID, "QCOM056A")
+ Name (_UID, 30)
+ Name (_TZP, 300)
+
+ Method(_DEP) {
+ Return (Package() {\_SB.PEP0, \_SB.ADC3})
+ }
+}
+
+/*//
+// Qualcomm ADC Temperature Monitor Device 11 (SYS_THERM5)
+//
+ThermalZone (PML2)
+{
+ Name (_HID, "QCOM056B")
+ Name (_UID, 30)
+ Name (_TZP, 300)
+
+ Method(_DEP) {
+ Return (Package() {\_SB.PEP0, \_SB.ADC3})
+ }
+}
+
+//
+// Qualcomm ADC Temperature Monitor Device 12 (SYS_THERM6)
+//
+ThermalZone (PMB3)
+{
+ Name (_HID, "QCOM05D9")
+ Name (_UID, 31)
+ Name (_TZP, 300)
+
+ Method(_DEP) {
+ Return (Package() {\_SB.PEP0, \_SB.ADC2})
+ }
}
+
+//
+// Qualcomm ADC Temperature Monitor Device 12 (SYS_THERM7)
+//
+ThermalZone (PMB4)
+{
+ Name (_HID, "QCOM05DA")
+ Name (_UID, 32)
+ Name (_TZP, 300)
+
+ Method(_DEP) {
+ Return (Package() {\_SB.PEP0, \_SB.ADC2})
+ }
+}
+
+//
+// Qualcomm ADC Temperature Monitor Device 13 (SYS_THERM8)
+//
+ThermalZone (PML3)
+{
+ Name (_HID, "QCOM05DB")
+ Name (_UID, 32)
+ Name (_TZP, 300)
+
+ Method(_DEP) {
+ Return (Package() {\_SB.PEP0, \_SB.ADC3})
+ }
+}*/
\ No newline at end of file
diff --git a/8150/shared-src/8150_AND/surface_cabinets.asl b/8150/shared-src/8150_AND/surface_cabinets.asl
index 387b2fd..6581474 100644
--- a/8150/shared-src/8150_AND/surface_cabinets.asl
+++ b/8150/shared-src/8150_AND/surface_cabinets.asl
@@ -498,4 +498,4 @@ Name(_PLD,
0x00, 0x00, 0x00, 0x00
}
}
- })
+ })
\ No newline at end of file
diff --git a/8150/shared-src/8150_AND/surface_charger_thermal_zones.asl b/8150/shared-src/8150_AND/surface_charger_thermal_zones.asl
index 984e6f3..c120ec6 100644
--- a/8150/shared-src/8150_AND/surface_charger_thermal_zones.asl
+++ b/8150/shared-src/8150_AND/surface_charger_thermal_zones.asl
@@ -131,88 +131,113 @@ Scope (\_SB)
{
Local0 = ~19 // -19C
Local1 = ~9 // -9C
- Local2 = XCOM (Local0, Local1, Arg0, 927)
- Local3 = YCOM (964, 927)
- Local3 = TCOM (Local2, Local3, Local1)
+ Local2 = XCOM (Local0, Local1, Arg0, 927) // Temperature in Kelvin
+ Local3 = YCOM (964, 927) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, Local1) // Temperature in deci C
}
ElseIf ((Arg0 >= 876))
{
Local1 = ~9 // -9C
- Local2 = XCOM (Local1, 0, Arg0, 876)
- Local3 = YCOM (927, 876)
- Local3 = TCOM (Local2, Local3, 0)
+ // +0C
+ Local2 = XCOM (Local1, 0, Arg0, 876) // Temperature in Kelvin
+ Local3 = YCOM (927, 876) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, 0) // Temperature in deci C
}
ElseIf ((Arg0 >= 811))
{
- Local2 = XCOM (0, 10, Arg0, 811)
- Local3 = YCOM (876, 811)
- Local3 = TCOM (Local2, Local3, 10)
+ // +0C
+ // +10C
+ Local2 = XCOM (0, 10, Arg0, 811) // Temperature in Kelvin
+ Local3 = YCOM (876, 811) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, 10) // Temperature in deci C
}
ElseIf ((Arg0 >= 732))
{
- Local2 = XCOM (10, 20, Arg0, 732)
- Local3 = YCOM (811, 732)
- Local3 = TCOM (Local2, Local3, 20)
+ // +10C
+ // +20C
+ Local2 = XCOM (10, 20, Arg0, 732) // Temperature in Kelvin
+ Local3 = YCOM (811, 732) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, 20) // Temperature in deci C
}
ElseIf ((Arg0 >= 645))
{
- Local2 = XCOM (20, 30, Arg0, 645)
- Local3 = YCOM (732, 645)
- Local3 = TCOM (Local2, Local3, 30)
+ // +20C
+ // +30C
+ Local2 = XCOM (20, 30, Arg0, 645) // Temperature in Kelvin
+ Local3 = YCOM (732, 645) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, 30) // Temperature in deci C
}
ElseIf ((Arg0 >= 600))
{
- Local2 = XCOM (30, 35, Arg0, 600)
- Local3 = YCOM (645, 600)
- Local3 = TCOM (Local2, Local3, 35)
+ // +30C
+ // +35C
+ Local2 = XCOM (30, 35, Arg0, 600) // Temperature in Kelvin
+ Local3 = YCOM (645, 600) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, 35) // Temperature in deci C
}
ElseIf ((Arg0 >= 555))
{
- Local2 = XCOM (35, 40, Arg0, 555)
- Local3 = YCOM (600, 555)
- Local3 = TCOM (Local2, Local3, 40)
+ // +35C
+ // +40C
+ Local2 = XCOM (35, 40, Arg0, 555) // Temperature in Kelvin
+ Local3 = YCOM (600, 555) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, 40) // Temperature in deci C
}
ElseIf ((Arg0 >= 511))
{
- Local2 = XCOM (40, 45, Arg0, 511)
- Local3 = YCOM (555, 511)
- Local3 = TCOM (Local2, Local3, 45)
+ // +40C
+ // +45C
+ Local2 = XCOM (40, 45, Arg0, 511) // Temperature in Kelvin
+ Local3 = YCOM (555, 511) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, 45) // Temperature in deci C
}
ElseIf ((Arg0 >= 468))
{
- Local2 = XCOM (45, 50, Arg0, 468)
- Local3 = YCOM (511, 468)
- Local3 = TCOM (Local2, Local3, 50)
+ // +45C
+ // +50C
+ Local2 = XCOM (45, 50, Arg0, 468) // Temperature in Kelvin
+ Local3 = YCOM (511, 468) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, 50) // Temperature in deci C
}
ElseIf ((Arg0 >= 427))
{
- Local2 = XCOM (50, 55, Arg0, 427)
- Local3 = YCOM (468, 427)
- Local3 = TCOM (Local2, Local3, 55)
+ // +50C
+ // +55C
+ Local2 = XCOM (50, 55, Arg0, 427) // Temperature in Kelvin
+ Local3 = YCOM (468, 427) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, 55) // Temperature in deci C
}
ElseIf ((Arg0 >= 388))
{
- Local2 = XCOM (55, 60, Arg0, 388)
- Local3 = YCOM (427, 388)
- Local3 = TCOM (Local2, Local3, 60)
+ // +55C
+ // +60C
+ Local2 = XCOM (55, 60, Arg0, 388) // Temperature in Kelvin
+ Local3 = YCOM (427, 388) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, 60) // Temperature in deci C
}
ElseIf ((Arg0 >= 352))
{
- Local2 = XCOM (60, 65, Arg0, 352)
- Local3 = YCOM (388, 352)
- Local3 = TCOM (Local2, Local3, 65)
+ // +60C
+ // +65C
+ Local2 = XCOM (60, 65, Arg0, 352) // Temperature in Kelvin
+ Local3 = YCOM (388, 352) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, 65) // Temperature in deci C
}
ElseIf ((Arg0 >= 319))
{
- Local2 = XCOM (65, 70, Arg0, 319)
- Local3 = YCOM (352, 319)
- Local3 = TCOM (Local2, Local3, 70)
+ // +65C
+ // +70C
+ Local2 = XCOM (65, 70, Arg0, 319) // Temperature in Kelvin
+ Local3 = YCOM (352, 319) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, 70) // Temperature in deci C
}
ElseIf ((Arg0 >= 288))
{
- Local2 = XCOM (70, 75, Arg0, 288)
- Local3 = YCOM (319, 288)
- Local3 = TCOM (Local2, Local3, 75)
+ // +70C
+ // +75C
+ Local2 = XCOM (70, 75, Arg0, 288) // Temperature in Kelvin
+ Local3 = YCOM (319, 288) // Modulus in Kelvin (T1 - T2), Maximum Tolerance
+ Local3 = TCOM (Local2, Local3, 75) // Temperature in deci C
}
Else
{
diff --git a/8150/shared-src/8150_AND/surface_lid.asl b/8150/shared-src/8150_AND/surface_lid.asl
index c3ceee6..6b8f75c 100644
--- a/8150/shared-src/8150_AND/surface_lid.asl
+++ b/8150/shared-src/8150_AND/surface_lid.asl
@@ -22,33 +22,31 @@
// SPDX-License-Identifier: MIT
//
-// Device declaration for Hall Effect Sensor
-// Default LIDB Value is 1 because lid open is 1
+//
+// LID Hall Effect Sensor
+//
Device (LID0)
{
- Name (_HID, "PNP0C0D")
- Alias(\_SB.PSUB, _SUB)
- Name (_DEP, Package () { \_SB.GIO0, \_SB.SCM0 })
- Name(LIDB, 1) //LID Buffer value 0=closed, non-zero = open
- Method (_LID, 0, NotSerialized)
- {
- Return(LIDB)
- }
- Method(_PS0, 0x0, NotSerialized)
+ Name (_HID, EisaId ("PNP0C0D"))
+ Name (_UID, 0)
+
+ Method (_DEP, 0, NotSerialized)
{
- If(\_SB.GIO0.GABL)
+ Return (Package ()
{
- Store (\_SB.GIO0.LIDR, \_SB.LID0.LIDB)
- Notify (\_SB.LID0, 0x80)
- }
+ \_SB.GIO0
+ })
}
- Method(_PS3, 0x0, NotSerialized)
+ Method (_LID, 0, NotSerialized)
{
- If(\_SB.GIO0.GABL)
+ If ((\_SB.GIO0.GPH0 == 0))
+ {
+ Return (0)
+ }
+ Else
{
- Store (\_SB.GIO0.LIDR, \_SB.LID0.LIDB)
- Notify (\_SB.LID0, 0x80)
+ Return (1)
}
}
}
\ No newline at end of file
diff --git a/8150/shared-src/8150_AND/surface_thermal_proxy.asl b/8150/shared-src/8150_AND/surface_thermal_proxy.asl
index 2a6ed11..6735780 100644
--- a/8150/shared-src/8150_AND/surface_thermal_proxy.asl
+++ b/8150/shared-src/8150_AND/surface_thermal_proxy.asl
@@ -55,6 +55,7 @@ Device (TPXY)
Name (_CRS, ResourceTemplate ()
{
// GPIO Pin is 121 and Virtual GPIO pin is 320.
+ //GpioInt(Edge, ActiveBoth, Shared, PullNone, 500, "\\_SB.GIO0", 0, ResourceConsumer, , ) {121} // Main Hall Sensor IRQ
GpioInt(Edge, ActiveBoth, Shared, PullUp, 500, "\\_SB.GIO0", 0, ResourceConsumer, , ){320} // Main Hall Sensor IRQ
GpioIo(Shared, PullUp, 500, 0, IoRestrictionInputOnly, "\\_SB.GIO0", 0, ResourceConsumer, , ){121} // Main Hall Sensor IO
GpioIo(Shared, PullUp, 500, 0, IoRestrictionInputOnly, "\\_SB.GIO0", 0, ResourceConsumer, , ){81} // Secondary Hall Sensor IO
diff --git a/8150/src/DSDT.dsl b/8150/src/DSDT.dsl
index 0e65ff6..23adc1d 100644
--- a/8150/src/DSDT.dsl
+++ b/8150/src/DSDT.dsl
@@ -326,7 +326,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Name (BNOP, 0x16)
Name (IFGD, 0x32)
Name (VFGD, 0x32)
- Name (VDD1, 0x1130)
+ Name (VDD1, 0x1126)
Name (FCC1, 0x0E77)
Name (HCLI, Zero)
Name (SCLI, 0x14)
@@ -360,11 +360,6 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (RBUF) /* \_SB_.PEIC._CRS.RBUF */
}
- Method (_STA, 0, NotSerialized) // _STA: Status
- {
- Return (0x0F)
- }
-
Method (PMCF, 0, NotSerialized)
{
Name (CFG0, Package (0x08)
@@ -389,7 +384,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Name (_DEP, Package (0x03) // _DEP: Dependencies
{
\_SB.PMIC,
- \_SB.ADC1,
+ \_SB.ADC2,
\_SB.PEIC
})
Method (_STA, 0, NotSerialized) // _STA: Status
@@ -425,72 +420,68 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
{ // Pin list
0x00E0
}
+ GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
+ "\\_SB.PM01", 0x00, ResourceConsumer, ,
+ RawDataBuffer (0x04) // Vendor Data
+ {
+ 0x00, 0x00, 0x00, 0x0B
+ })
+ { // Pin list
+ 0x020F
+ }
+ GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
+ "\\_SB.PM01", 0x00, ResourceConsumer, ,
+ RawDataBuffer (0x04) // Vendor Data
+ {
+ 0x00, 0x00, 0x00, 0x0B
+ })
+ { // Pin list
+ 0x020C
+ }
+ GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
+ "\\_SB.PM01", 0x00, ResourceConsumer, ,
+ RawDataBuffer (0x04) // Vendor Data
+ {
+ 0x00, 0x00, 0x00, 0x0B
+ })
+ { // Pin list
+ 0x0212
+ }
+ GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
+ "\\_SB.PM01", 0x00, ResourceConsumer, ,
+ RawDataBuffer (0x04) // Vendor Data
+ {
+ 0x00, 0x00, 0x00, 0x0B
+ })
+ { // Pin list
+ 0x0211
+ }
+ GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
+ "\\_SB.PM01", 0x00, ResourceConsumer, ,
+ )
+ { // Pin list
+ 0x0208
+ }
+ GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
+ "\\_SB.PM01", 0x00, ResourceConsumer, ,
+ )
+ { // Pin list
+ 0x0209
+ }
+ GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
+ "\\_SB.PM01", 0x00, ResourceConsumer, ,
+ )
+ { // Pin list
+ 0x020A
+ }
+ GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
+ "\\_SB.PM01", 0x00, ResourceConsumer, ,
+ )
+ { // Pin list
+ 0x020B
+ }
})
- Local0 = RBUF /* \_SB_.PMBT._CRS.RBUF */
- ConcatenateResTemplate (Local0, ResourceTemplate ()
- {
- GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
- "\\_SB.PM01", 0x00, ResourceConsumer, ,
- RawDataBuffer (0x04) // Vendor Data
- {
- 0x00, 0x00, 0x00, 0x0B
- })
- { // Pin list
- 0x020F
- }
- GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
- "\\_SB.PM01", 0x00, ResourceConsumer, ,
- RawDataBuffer (0x04) // Vendor Data
- {
- 0x00, 0x00, 0x00, 0x0B
- })
- { // Pin list
- 0x020C
- }
- GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
- "\\_SB.PM01", 0x00, ResourceConsumer, ,
- RawDataBuffer (0x04) // Vendor Data
- {
- 0x00, 0x00, 0x00, 0x0B
- })
- { // Pin list
- 0x0212
- }
- GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
- "\\_SB.PM01", 0x00, ResourceConsumer, ,
- RawDataBuffer (0x04) // Vendor Data
- {
- 0x00, 0x00, 0x00, 0x0B
- })
- { // Pin list
- 0x0211
- }
- GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
- "\\_SB.PM01", 0x00, ResourceConsumer, ,
- )
- { // Pin list
- 0x0208
- }
- GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
- "\\_SB.PM01", 0x00, ResourceConsumer, ,
- )
- { // Pin list
- 0x0209
- }
- GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
- "\\_SB.PM01", 0x00, ResourceConsumer, ,
- )
- { // Pin list
- 0x020A
- }
- GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
- "\\_SB.PM01", 0x00, ResourceConsumer, ,
- )
- { // Pin list
- 0x020B
- }
- }, Local1)
- Return (Local1)
+ Return (RBUF) /* \_SB_.PMBT._CRS.RBUF */
}
Method (BMNR, 0, NotSerialized)
@@ -533,10 +524,10 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
0xFFFFFFFF,
0xFFFFFFFF,
0xFFFFFFFF,
- "M1067691",
+ "M1122421",
"SMP",
- "M1067691_5550931203CN",
- "5550931203CN",
+ "M1122421_ 11946 28CN",
+ " 11946 28CN",
One,
One,
0x07E2
@@ -693,7 +684,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Name (BCT1, Package (0x0A)
{
- 0x1130,
+ 0x1126,
0x0E77,
Zero,
0x14,
@@ -940,6 +931,11 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
{
\_SB.PMIC
})
+ Method (_STA, 0, NotSerialized) // _STA: Status
+ {
+ Return (0x0B)
+ }
+
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Name (RBUF, ResourceTemplate ()
@@ -1011,11 +1007,6 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
})
Return (CFG0) /* \_SB_.BCL1.BCLQ.CFG0 */
}
-
- Method (_STA, 0, NotSerialized) // _STA: Status
- {
- Return (0x0B)
- }
}
Device (PTCC)
@@ -1499,67 +1490,13 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Break
}
}
- ElseIf ((_T_0 == 0x11))
+ ElseIf ((_T_0 == 0x12))
{
While (One)
{
Name (_T_8, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
_T_8 = ToInteger (Arg3)
If ((_T_8 == Zero))
- {
- If (Arg2)
- {
- \_SB.TZ17.TPSV = Arg1
- Notify (\_SB.TZ17, 0x81) // Thermal Trip Point Change
- }
-
- Return (\_SB.TZ17._PSV ())
- }
- ElseIf ((_T_8 == 0x02))
- {
- If (Arg2)
- {
- \_SB.TZ17.TTSP = Arg1
- Notify (\_SB.TZ17, 0x81) // Thermal Trip Point Change
- }
-
- Return (\_SB.TZ17._TSP ())
- }
- ElseIf ((_T_8 == 0x03))
- {
- If (Arg2)
- {
- \_SB.TZ17.TTC1 = Arg1
- Notify (\_SB.TZ17, 0x81) // Thermal Trip Point Change
- }
-
- Return (\_SB.TZ17._TC1 ())
- }
- ElseIf ((_T_8 == 0x04))
- {
- If (Arg2)
- {
- \_SB.TZ17.TTC2 = Arg1
- Notify (\_SB.TZ17, 0x81) // Thermal Trip Point Change
- }
-
- Return (\_SB.TZ17._TC2 ())
- }
- Else
- {
- Return (0xFFFF)
- }
-
- Break
- }
- }
- ElseIf ((_T_0 == 0x12))
- {
- While (One)
- {
- Name (_T_9, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
- _T_9 = ToInteger (Arg3)
- If ((_T_9 == Zero))
{
If (Arg2)
{
@@ -1569,7 +1506,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ18._PSV ())
}
- ElseIf ((_T_9 == 0x02))
+ ElseIf ((_T_8 == 0x02))
{
If (Arg2)
{
@@ -1579,7 +1516,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ18._TSP ())
}
- ElseIf ((_T_9 == 0x03))
+ ElseIf ((_T_8 == 0x03))
{
If (Arg2)
{
@@ -1589,7 +1526,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ18._TC1 ())
}
- ElseIf ((_T_9 == 0x04))
+ ElseIf ((_T_8 == 0x04))
{
If (Arg2)
{
@@ -1611,9 +1548,9 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
{
While (One)
{
- Name (_T_A, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
- _T_A = ToInteger (Arg3)
- If ((_T_A == Zero))
+ Name (_T_9, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_9 = ToInteger (Arg3)
+ If ((_T_9 == Zero))
{
If (Arg2)
{
@@ -1623,7 +1560,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ19._PSV ())
}
- ElseIf ((_T_A == One))
+ ElseIf ((_T_9 == One))
{
If (Arg2)
{
@@ -1633,7 +1570,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ19._CRT ())
}
- ElseIf ((_T_A == 0x02))
+ ElseIf ((_T_9 == 0x02))
{
If (Arg2)
{
@@ -1643,7 +1580,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ19._TSP ())
}
- ElseIf ((_T_A == 0x03))
+ ElseIf ((_T_9 == 0x03))
{
If (Arg2)
{
@@ -1653,7 +1590,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ19._TC1 ())
}
- ElseIf ((_T_A == 0x04))
+ ElseIf ((_T_9 == 0x04))
{
If (Arg2)
{
@@ -1675,9 +1612,9 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
{
While (One)
{
- Name (_T_B, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
- _T_B = ToInteger (Arg3)
- If ((_T_B == Zero))
+ Name (_T_A, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_A = ToInteger (Arg3)
+ If ((_T_A == Zero))
{
If (Arg2)
{
@@ -1687,7 +1624,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ20._PSV ())
}
- ElseIf ((_T_B == 0x02))
+ ElseIf ((_T_A == 0x02))
{
If (Arg2)
{
@@ -1697,7 +1634,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ20._TSP ())
}
- ElseIf ((_T_B == 0x03))
+ ElseIf ((_T_A == 0x03))
{
If (Arg2)
{
@@ -1707,7 +1644,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ20._TC1 ())
}
- ElseIf ((_T_B == 0x04))
+ ElseIf ((_T_A == 0x04))
{
If (Arg2)
{
@@ -1729,9 +1666,9 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
{
While (One)
{
- Name (_T_C, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
- _T_C = ToInteger (Arg3)
- If ((_T_C == Zero))
+ Name (_T_B, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_B = ToInteger (Arg3)
+ If ((_T_B == Zero))
{
If (Arg2)
{
@@ -1741,7 +1678,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ21._PSV ())
}
- ElseIf ((_T_C == One))
+ ElseIf ((_T_B == One))
{
If (Arg2)
{
@@ -1751,7 +1688,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ21._CRT ())
}
- ElseIf ((_T_C == 0x02))
+ ElseIf ((_T_B == 0x02))
{
If (Arg2)
{
@@ -1761,7 +1698,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ21._TSP ())
}
- ElseIf ((_T_C == 0x03))
+ ElseIf ((_T_B == 0x03))
{
If (Arg2)
{
@@ -1771,7 +1708,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ21._TC1 ())
}
- ElseIf ((_T_C == 0x04))
+ ElseIf ((_T_B == 0x04))
{
If (Arg2)
{
@@ -1793,9 +1730,9 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
{
While (One)
{
- Name (_T_D, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
- _T_D = ToInteger (Arg3)
- If ((_T_D == Zero))
+ Name (_T_C, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_C = ToInteger (Arg3)
+ If ((_T_C == Zero))
{
If (Arg2)
{
@@ -1805,7 +1742,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ22._PSV ())
}
- ElseIf ((_T_D == 0x02))
+ ElseIf ((_T_C == 0x02))
{
If (Arg2)
{
@@ -1815,7 +1752,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ22._TSP ())
}
- ElseIf ((_T_D == 0x03))
+ ElseIf ((_T_C == 0x03))
{
If (Arg2)
{
@@ -1825,7 +1762,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ22._TC1 ())
}
- ElseIf ((_T_D == 0x04))
+ ElseIf ((_T_C == 0x04))
{
If (Arg2)
{
@@ -1847,9 +1784,9 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
{
While (One)
{
- Name (_T_E, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
- _T_E = ToInteger (Arg3)
- If ((_T_E == Zero))
+ Name (_T_D, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_D = ToInteger (Arg3)
+ If ((_T_D == Zero))
{
If (Arg2)
{
@@ -1859,7 +1796,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ38._PSV ())
}
- ElseIf ((_T_E == 0x02))
+ ElseIf ((_T_D == 0x02))
{
If (Arg2)
{
@@ -1869,7 +1806,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ38._TSP ())
}
- ElseIf ((_T_E == 0x03))
+ ElseIf ((_T_D == 0x03))
{
If (Arg2)
{
@@ -1879,7 +1816,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ38._TC1 ())
}
- ElseIf ((_T_E == 0x04))
+ ElseIf ((_T_D == 0x04))
{
If (Arg2)
{
@@ -1901,9 +1838,9 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
{
While (One)
{
- Name (_T_F, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
- _T_F = ToInteger (Arg3)
- If ((_T_F == Zero))
+ Name (_T_E, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_E = ToInteger (Arg3)
+ If ((_T_E == Zero))
{
If (Arg2)
{
@@ -1913,7 +1850,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ40._PSV ())
}
- ElseIf ((_T_F == 0x02))
+ ElseIf ((_T_E == 0x02))
{
If (Arg2)
{
@@ -1923,7 +1860,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ40._TSP ())
}
- ElseIf ((_T_F == 0x03))
+ ElseIf ((_T_E == 0x03))
{
If (Arg2)
{
@@ -1933,7 +1870,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.TZ40._TC1 ())
}
- ElseIf ((_T_F == 0x04))
+ ElseIf ((_T_E == 0x04))
{
If (Arg2)
{
@@ -1951,6 +1888,60 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Break
}
}
+ ElseIf ((_T_0 == 0x2C))
+ {
+ While (One)
+ {
+ Name (_T_F, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_F = ToInteger (Arg3)
+ If ((_T_F == Zero))
+ {
+ If (Arg2)
+ {
+ \_SB.TZ44.TPSV = Arg1
+ Notify (\_SB.TZ44, 0x81) // Thermal Trip Point Change
+ }
+
+ Return (\_SB.TZ44._PSV ())
+ }
+ ElseIf ((_T_F == 0x02))
+ {
+ If (Arg2)
+ {
+ \_SB.TZ44.TTSP = Arg1
+ Notify (\_SB.TZ44, 0x81) // Thermal Trip Point Change
+ }
+
+ Return (\_SB.TZ44._TSP ())
+ }
+ ElseIf ((_T_F == 0x03))
+ {
+ If (Arg2)
+ {
+ \_SB.TZ44.TTC1 = Arg1
+ Notify (\_SB.TZ44, 0x81) // Thermal Trip Point Change
+ }
+
+ Return (\_SB.TZ44._TC1 ())
+ }
+ ElseIf ((_T_F == 0x04))
+ {
+ If (Arg2)
+ {
+ \_SB.TZ44.TTC2 = Arg1
+ Notify (\_SB.TZ44, 0x81) // Thermal Trip Point Change
+ }
+
+ Return (\_SB.TZ44._TC2 ())
+ }
+ Else
+ {
+ Return (0xFFFF)
+ }
+
+ Break
+ }
+ }
ElseIf ((_T_0 == 0x33))
{
While (One)
@@ -54379,21 +54370,21 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
}
},
- Package (0x05)
+ Package (0x08)
{
"DSTATE",
Zero,
Package (0x02)
{
- "TLMMGPIO",
+ "PMICVREGVOTE",
Package (0x06)
{
+ "PPP_RESOURCE_ID_LDO9_A",
One,
+ 0x00124F80,
One,
Zero,
- One,
- 0x03,
- 0x03
+ Zero
}
},
@@ -54402,7 +54393,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
"DELAY",
Package (0x01)
{
- 0x012C
+ 0x05
}
},
@@ -54415,8 +54406,40 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
One,
Zero,
One,
- 0x03,
- 0x03
+ Zero,
+ Zero
+ }
+ },
+
+ Package (0x02)
+ {
+ "DELAY",
+ Package (0x01)
+ {
+ 0x02
+ }
+ },
+
+ Package (0x02)
+ {
+ "DELAY",
+ Package (0x01)
+ {
+ 0x02
+ }
+ },
+
+ Package (0x02)
+ {
+ "TLMMGPIO",
+ Package (0x06)
+ {
+ One,
+ One,
+ Zero,
+ One,
+ Zero,
+ Zero
}
}
},
@@ -54442,34 +54465,39 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
"TLMMGPIO",
Package (0x06)
{
+ One,
Zero,
Zero,
- Zero,
- One,
One,
+ Zero,
Zero
}
},
Package (0x02)
{
- "DELAY",
- Package (0x01)
+ "TLMMGPIO",
+ Package (0x06)
{
- 0x0A
+ Zero,
+ Zero,
+ Zero,
+ One,
+ Zero,
+ Zero
}
},
Package (0x02)
{
- "TLMMGPIO",
+ "PMICVREGVOTE",
Package (0x06)
{
+ "PPP_RESOURCE_ID_LDO9_A",
One,
Zero,
Zero,
- One,
- One,
+ Zero,
Zero
}
}
@@ -67543,13 +67571,13 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
/* 0100 */ 0x3E, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, // >.
/* 0108 */ 0x20, 0x20, 0x3C, 0x4D, 0x61, 0x6E, 0x75, 0x66, // 0xAF0D<
+ /* 0118 */ 0x3E, 0x30, 0x78, 0x45, 0x34, 0x33, 0x30, 0x3C, // >0xE430<
/* 0120 */ 0x2F, 0x4D, 0x61, 0x6E, 0x75, 0x66, 0x61, 0x63, // /Manufac
/* 0128 */ 0x74, 0x75, 0x72, 0x65, 0x49, 0x44, 0x3E, 0x0A, // tureID>.
/* 0130 */ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, //
/* 0138 */ 0x3C, 0x50, 0x72, 0x6F, 0x64, 0x75, 0x63, 0x74, // 0x0
- /* 0148 */ 0x31, 0x43, 0x32, 0x3C, 0x2F, 0x50, 0x72, 0x6F, // 1C20x3
+ /* 0148 */ 0x34, 0x31, 0x36, 0x3C, 0x2F, 0x50, 0x72, 0x6F, // 416.
/* 0160 */ 0x20, 0x20, 0x3C, 0x53, 0x65, 0x72, 0x69, 0x61, // 5
- /* 0E68 */ 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, // 00000000
+ /* 0E60 */ 0x71, 0x75, 0x65, 0x6E, 0x63, 0x79, 0x3E, 0x34, // quency>4
+ /* 0E68 */ 0x31, 0x32, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, // 12000000
/* 0E70 */ 0x3C, 0x2F, 0x44, 0x53, 0x49, 0x42, 0x69, 0x74, // .
@@ -68657,10 +68685,10 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Local0 = Zero
CreateField (RBUF, (Local0 * 0x08), 0x20, PKHR)
Local0 += 0x04
- Local1 = (Arg0 * 0x03FF)
- Local1 /= 0xFF
- Local2 = (Arg0 * 0x03FF)
- Local2 /= 0xFF00
+ Local1 = (Arg0 / 0x40)
+ Local1 &= 0xFF
+ Local2 = (Arg0 / 0x40)
+ Local2 >>= 0x08
Local2 &= 0x03
CreateField (RBUF, (Local0 * 0x08), 0x08, PKCM)
Local0 += One
@@ -68719,13 +68747,13 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
/* 0100 */ 0x69, 0x6F, 0x6E, 0x27, 0x3E, 0x0A, 0x20, 0x20, // ion'>.
/* 0108 */ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3C, 0x4D, // 0xA
- /* 0120 */ 0x46, 0x30, 0x44, 0x3C, 0x2F, 0x4D, 0x61, 0x6E, // F0D0xE
+ /* 0120 */ 0x34, 0x33, 0x30, 0x3C, 0x2F, 0x4D, 0x61, 0x6E, // 430.
/* 0138 */ 0x20, 0x20, 0x20, 0x20, 0x3C, 0x50, 0x72, 0x6F, // 0x01C2<
+ /* 0148 */ 0x3E, 0x30, 0x78, 0x32, 0x34, 0x31, 0x36, 0x3C, // >0x2416<
/* 0150 */ 0x2F, 0x50, 0x72, 0x6F, 0x64, 0x75, 0x63, 0x74, // /Product
/* 0158 */ 0x43, 0x6F, 0x64, 0x65, 0x3E, 0x0A, 0x20, 0x20, // Code>.
/* 0160 */ 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3C, 0x53, // 5000
+ /* 0E68 */ 0x6E, 0x63, 0x79, 0x3E, 0x34, 0x31, 0x32, 0x30, // ncy>4120
/* 0E70 */ 0x30, 0x30, 0x30, 0x30, 0x30, 0x3C, 0x2F, 0x44, // 00000>= 0x08
Local2 &= 0x03
CreateField (RBUF, (Local0 * 0x08), 0x08, PKCM)
Local0 += One
@@ -70177,10 +70205,16 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (\_SB.PINA)
}
- Name (LIDB, One)
Method (_LID, 0, NotSerialized) // _LID: Lid Status
{
- Return (LIDB) /* \_SB_.GPU0.LIDB */
+ If ((\_SB.GIO0.GPH0 == Zero))
+ {
+ Return (Zero)
+ }
+ Else
+ {
+ Return (One)
+ }
}
Method (REGR, 0, NotSerialized)
@@ -70564,20 +70598,6 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Name (_CID, "QCOMFFE3") // _CID: Compatible ID
Name (_UID, Zero) // _UID: Unique ID
Alias (\_SB.PSUB, _SUB)
- OperationRegion (GPOR, GeneralPurposeIo, Zero, One)
- Field (\_SB.GIO0.GPOR, ByteAcc, NoLock, Preserve)
- {
- Connection (
- GpioIo (Shared, PullNone, 0x0000, 0x0000, IoRestrictionNone,
- "\\_SB.GIO0", 0x00, ResourceConsumer, ,
- )
- { // Pin list
- 0x0079
- }
- ),
- LIDR, 1
- }
-
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Name (RBUF, ResourceTemplate ()
@@ -70640,41 +70660,38 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
}
}
+ OperationRegion (ORHL, GeneralPurposeIo, Zero, 0x02)
+ Field (ORHL, ByteAcc, NoLock, Preserve)
+ {
+ Connection (
+ GpioIo (Shared, PullUp, 0x01F4, 0x0000, IoRestrictionInputOnly,
+ "\\_SB.GIO0", 0x00, ResourceConsumer, ,
+ )
+ { // Pin list
+ 0x0079
+ }
+ ),
+ GPH0, 1
+ }
+
Name (_AEI, ResourceTemplate () // _AEI: ACPI Event Interrupts
{
- GpioInt (Edge, ActiveHigh, Exclusive, PullDown, 0x01F4,
- "\\_SB.GIO0", 0x00, ResourceConsumer, ,
- )
- { // Pin list
- 0x00BD
- }
- GpioInt (Edge, ActiveBoth, SharedAndWake, PullUp, 0x01F4,
+ GpioInt (Edge, ActiveBoth, Shared, PullUp, 0x01F4,
"\\_SB.GIO0", 0x00, ResourceConsumer, ,
)
{ // Pin list
- 0x0140
+ 0x0079
}
})
- Method (_EBD, 0, NotSerialized) // _Exx: Edge-Triggered GPE, xx=0x00-0xFF
- {
- Notify (\_SB.GPU0, 0x92) // Device-Specific
- }
-
- Method (_EVT, 1, NotSerialized) // _EVT: Event
+ Name (FLAG, Zero)
+ Method (_E79, 0, Serialized) // _Exx: Edge-Triggered GPE, xx=0x00-0xFF
{
- While (One)
+ If ((FLAG == One))
{
- Name (_T_0, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
- _T_0 = Arg0
- If ((_T_0 == 0x0140))
- {
- \_SB.LID0.LIDB = \_SB.GIO0.LIDR
- \_SB.GPU0.LIDB = \_SB.GIO0.LIDR
- Notify (\_SB.LID0, 0x80) // Status Change
- }
-
- Break
+ Notify (\_SB.LID0, 0x80) // Status Change
}
+
+ FLAG = One
}
}
@@ -73734,34 +73751,25 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Device (LID0)
{
- Name (_HID, "PNP0C0D" /* Lid Device */) // _HID: Hardware ID
- Alias (\_SB.PSUB, _SUB)
- Name (_DEP, Package (0x02) // _DEP: Dependencies
- {
- \_SB.GIO0,
- \_SB.SCM0
- })
- Name (LIDB, One)
- Method (_LID, 0, NotSerialized) // _LID: Lid Status
+ Name (_HID, EisaId ("PNP0C0D") /* Lid Device */) // _HID: Hardware ID
+ Name (_UID, Zero) // _UID: Unique ID
+ Method (_DEP, 0, NotSerialized) // _DEP: Dependencies
{
- Return (LIDB) /* \_SB_.LID0.LIDB */
+ Return (Package (0x01)
+ {
+ \_SB.GIO0
+ })
}
- Method (_PS0, 0, NotSerialized) // _PS0: Power State 0
+ Method (_LID, 0, NotSerialized) // _LID: Lid Status
{
- If (\_SB.GIO0.GABL)
+ If ((\_SB.GIO0.GPH0 == Zero))
{
- \_SB.LID0.LIDB = \_SB.GIO0.LIDR
- Notify (\_SB.LID0, 0x80) // Status Change
+ Return (Zero)
}
- }
-
- Method (_PS3, 0, NotSerialized) // _PS3: Power State 3
- {
- If (\_SB.GIO0.GABL)
+ Else
{
- \_SB.LID0.LIDB = \_SB.GIO0.LIDR
- Notify (\_SB.LID0, 0x80) // Status Change
+ Return (One)
}
}
}
@@ -75773,7 +75781,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
ThermalZone (AMX1)
{
- Name (_HID, "QCOM0562") // _HID: Hardware ID
+ Name (_HID, "QCOM0563") // _HID: Hardware ID
Name (_UID, 0x14) // _UID: Unique ID
Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
{
@@ -75800,7 +75808,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
ThermalZone (AMX2)
{
- Name (_HID, "QCOM0563") // _HID: Hardware ID
+ Name (_HID, "QCOM0566") // _HID: Hardware ID
Name (_UID, 0x15) // _UID: Unique ID
Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
{
@@ -75811,7 +75819,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (Package (0x02)
{
\_SB.PEP0,
- \_SB.ADC1
+ \_SB.ADC2
})
}
@@ -75841,21 +75849,21 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
ThermalZone (AMX4)
{
- Name (_HID, "QCOM0565") // _HID: Hardware ID
+ Name (_HID, "QCOM0568") // _HID: Hardware ID
Name (_UID, 0x17) // _UID: Unique ID
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies
{
Return (Package (0x02)
{
\_SB.PEP0,
- \_SB.ADC1
+ \_SB.ADC2
})
}
}
ThermalZone (AMX5)
{
- Name (_HID, "QCOM0566") // _HID: Hardware ID
+ Name (_HID, "QCOM0567") // _HID: Hardware ID
Name (_UID, 0x18) // _UID: Unique ID
Name (_CRT, 0x0CBA) // _CRT: Critical Temperature
Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
@@ -75867,7 +75875,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (Package (0x02)
{
\_SB.PEP0,
- \_SB.ADC1
+ \_SB.ADC2
})
}
@@ -75883,21 +75891,21 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
ThermalZone (PMOD)
{
- Name (_HID, "QCOM0567") // _HID: Hardware ID
+ Name (_HID, "QCOM0562") // _HID: Hardware ID
Name (_UID, 0x1D) // _UID: Unique ID
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies
{
Return (Package (0x02)
{
\_SB.PEP0,
- \_SB.ADC1
+ \_SB.ADC2
})
}
}
- ThermalZone (PMI1)
+ ThermalZone (PMB1)
{
- Name (_HID, "QCOM0569") // _HID: Hardware ID
+ Name (_HID, "QCOM0565") // _HID: Hardware ID
Name (_UID, 0x0C) // _UID: Unique ID
Name (_TZP, 0x012C) // _TZP: Thermal Zone Polling
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies
@@ -75905,37 +75913,22 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Return (Package (0x02)
{
\_SB.PEP0,
- \_SB.ADC1
+ \_SB.ADC2
})
}
}
- ThermalZone (PMI2)
+ ThermalZone (PML1)
{
Name (_HID, "QCOM056A") // _HID: Hardware ID
- Name (_UID, 0x0D) // _UID: Unique ID
- Name (_TZP, 0x012C) // _TZP: Thermal Zone Polling
- Method (_DEP, 0, NotSerialized) // _DEP: Dependencies
- {
- Return (Package (0x02)
- {
- \_SB.PEP0,
- \_SB.ADC1
- })
- }
- }
-
- ThermalZone (AUX)
- {
- Name (_HID, "QCOM0568") // _HID: Hardware ID
- Name (_UID, 0x0E) // _UID: Unique ID
+ Name (_UID, 0x1E) // _UID: Unique ID
Name (_TZP, 0x012C) // _TZP: Thermal Zone Polling
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies
{
Return (Package (0x02)
{
\_SB.PEP0,
- \_SB.ADC1
+ \_SB.ADC3
})
}
}
@@ -79299,7 +79292,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Device (CFSA)
{
- Name (_HID, "FSA4480") // _HID: Hardware ID
+ Name (_HID, "FSA04480") // _HID: Hardware ID
Alias (\_SB.PSUB, _SUB)
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
@@ -80396,61 +80389,6 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
}
}
- ThermalZone (TZ17)
- {
- Name (_HID, "QCOM0562") // _HID: Hardware ID
- Name (_UID, 0x02) // _UID: Unique ID
- Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
- {
- \_SB.PEP0
- })
- Method (INVT, 0, NotSerialized)
- {
- Return (One)
- }
-
- Method (_MTL, 0, NotSerialized) // _MTL: Minimum Throttle Limit
- {
- Return (0x3C)
- }
-
- Name (TPSV, 0x0B0E)
- Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
- {
- Return (\_SB.TZ17.TPSV)
- }
-
- Name (TTC1, 0x04)
- Method (_TC1, 0, NotSerialized) // _TC1: Thermal Constant 1
- {
- Return (\_SB.TZ17.TTC1)
- }
-
- Name (TTC2, 0x03)
- Method (_TC2, 0, NotSerialized) // _TC2: Thermal Constant 2
- {
- Return (\_SB.TZ17.TTC2)
- }
-
- Name (TTSP, 0x0A)
- Method (_TSP, 0, NotSerialized) // _TSP: Thermal Sampling Period
- {
- Return (\_SB.TZ17.TTSP)
- }
-
- Name (_TZP, Zero) // _TZP: Thermal Zone Polling
- Method (_DEP, 0, NotSerialized) // _DEP: Dependencies
- {
- Return (Package (0x04)
- {
- \_SB.PEP0,
- \_SB.ADC1,
- \_SB.ADC2,
- \_SB.ADC3
- })
- }
- }
-
ThermalZone (TZ18)
{
Name (_HID, "QCOM0565") // _HID: Hardware ID
@@ -80826,6 +80764,49 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Name (_TZP, Zero) // _TZP: Thermal Zone Polling
}
+ ThermalZone (TZ44)
+ {
+ Name (_HID, "QCOM055B") // _HID: Hardware ID
+ Name (_TZD, Package (0x02) // _TZD: Thermal Zone Devices
+ {
+ \_SB.GPU0.MON0,
+ \_SB.GPU0
+ })
+ Name (TPSV, 0x0E2E)
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (\_SB.TZ44.TPSV)
+ }
+
+ Name (TTC1, One)
+ Method (_TC1, 0, NotSerialized) // _TC1: Thermal Constant 1
+ {
+ Return (\_SB.TZ44.TTC1)
+ }
+
+ Name (TTC2, 0x05)
+ Method (_TC2, 0, NotSerialized) // _TC2: Thermal Constant 2
+ {
+ Return (\_SB.TZ44.TTC2)
+ }
+
+ Name (TTSP, 0x14)
+ Method (_TSP, 0, NotSerialized) // _TSP: Thermal Sampling Period
+ {
+ Return (\_SB.TZ44.TTSP)
+ }
+
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Method (_DEP, 0, NotSerialized) // _DEP: Dependencies
+ {
+ Return (Package (0x02)
+ {
+ \_SB.PEP0,
+ \_SB.BCL1
+ })
+ }
+ }
+
ThermalZone (TZ99)
{
Name (_HID, "QCOM055E") // _HID: Hardware ID
@@ -80925,19 +80906,11 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
}
}
- Name (TCSS, One)
Device (TSPI)
{
Method (_HID, 0, NotSerialized) // _HID: Hardware ID
{
- If ((TCSS == One))
- {
- Return ("MSHW0162")
- }
- Else
- {
- Return ("MSHW0134")
- }
+ Return ("MSHW0162")
}
Name (_CID, "PNP0C51") // _CID: Compatible ID
@@ -81083,6 +81056,8 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
{
\_SB.PEP0.FLD0 = DBUF /* \_SB_.TSPI.DBUF */
}
+
+ FLAG = Zero
}
Method (_PS3, 0, NotSerialized) // _PS3: Power State 3
@@ -81356,6 +81331,16 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
Alias (\_SB.PSUB, _SUB)
}
+ Device (FMSL)
+ {
+ Name (_DEP, Package (0x02) // _DEP: Dependencies
+ {
+ \_SB.PEP0,
+ \_SB.BTH0
+ })
+ Name (_HID, "QCOM056F") // _HID: Hardware ID
+ }
+
Device (BTH0)
{
Name (_HID, "QCOM0571") // _HID: Hardware ID
@@ -83233,7 +83218,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
{
Method (CHAN, 0, NotSerialized)
{
- Return (Package (0x07)
+ Return (Package (0x09)
{
Package (0x0B)
{
@@ -83338,6 +83323,36 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
0x02,
0x000186A0,
SYTB
+ },
+
+ Package (0x0B)
+ {
+ "SYS_THERM6",
+ 0x53,
+ One,
+ Zero,
+ 0x02,
+ One,
+ One,
+ One,
+ 0x02,
+ 0x000186A0,
+ SYTB
+ },
+
+ Package (0x0B)
+ {
+ "SYS_THERM7",
+ 0x54,
+ One,
+ Zero,
+ 0x02,
+ One,
+ One,
+ One,
+ 0x02,
+ 0x000186A0,
+ SYTB
}
})
}
@@ -83641,7 +83656,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
{
Method (CHAN, 0, NotSerialized)
{
- Return (Package (0x04)
+ Return (Package (0x05)
{
Package (0x0B)
{
@@ -83701,6 +83716,21 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
0x02,
0x000186A0,
SYTB
+ },
+
+ Package (0x0B)
+ {
+ "SYS_THERM8",
+ 0x53,
+ One,
+ Zero,
+ 0x02,
+ One,
+ One,
+ One,
+ 0x02,
+ 0x000186A0,
+ SYTB
}
})
}
diff --git a/8350-AeoB/builtin/BSRC_I2CR.aeob b/8350-AeoB/builtin/BSRC_I2CR.aeob
index 38e6e67..53d0ebe 100644
Binary files a/8350-AeoB/builtin/BSRC_I2CR.aeob and b/8350-AeoB/builtin/BSRC_I2CR.aeob differ
diff --git a/8350-AeoB/builtin/RAMS.aeob b/8350-AeoB/builtin/RAMS.aeob
new file mode 100644
index 0000000..c588159
Binary files /dev/null and b/8350-AeoB/builtin/RAMS.aeob differ
diff --git a/8350-AeoB/src/BSRC_I2CR.aeobsl b/8350-AeoB/src/BSRC_I2CR.aeobsl
index c349f74..6dad505 100644
--- a/8350-AeoB/src/BSRC_I2CR.aeobsl
+++ b/8350-AeoB/src/BSRC_I2CR.aeobsl
@@ -1073,22 +1073,11 @@ Package ()
},
},
Package ()
- {
- "CLOCK",
- Package ()
- {
- "gcc_qupv3_wrap0_s4_clk",
- 0x0000000000000008,
- 0x000000000124F800,
- 0x0000000000000004,
- },
- },
- Package ()
{
"TLMMGPIO",
Package ()
{
- 0x00000000000000AB,
+ 0x0000000000000014,
0x0000000000000001,
0x0000000000000001,
0x0000000000000001,
@@ -1101,7 +1090,7 @@ Package ()
"TLMMGPIO",
Package ()
{
- 0x00000000000000AC,
+ 0x0000000000000015,
0x0000000000000001,
0x0000000000000001,
0x0000000000000001,
@@ -1125,15 +1114,6 @@ Package ()
"DSTATE",
0x0000000000000003,
Package ()
- {
- "CLOCK",
- Package ()
- {
- "gcc_qupv3_wrap0_s4_clk",
- 0x0000000000000002,
- },
- },
- Package ()
{
"CLOCK",
Package ()
@@ -1210,7 +1190,7 @@ Package ()
"TLMMGPIO",
Package ()
{
- 0x00000000000000AB,
+ 0x0000000000000014,
0x0000000000000000,
0x0000000000000000,
0x0000000000000000,
@@ -1223,7 +1203,7 @@ Package ()
"TLMMGPIO",
Package ()
{
- 0x00000000000000AC,
+ 0x0000000000000015,
0x0000000000000000,
0x0000000000000000,
0x0000000000000000,
diff --git a/8350-AeoB/src/RAMS.aeobsl b/8350-AeoB/src/RAMS.aeobsl
new file mode 100644
index 0000000..1c9a4bb
--- /dev/null
+++ b/8350-AeoB/src/RAMS.aeobsl
@@ -0,0 +1,94 @@
+Package ()
+{
+ "DEVICE",
+ "\_SB.AMSS",
+ Package ()
+ {
+ "COMPONENT",
+ 0x0000000000000000,
+ Package ()
+ {
+ "FSTATE",
+ 0x0000000000000000,
+ Package ()
+ {
+ "NPARESOURCE",
+ Package ()
+ {
+ 0x0000000000000001,
+ "/arc/client/rail_cx",
+ 0x0000000000000180,
+ },
+ },
+ Package ()
+ {
+ "NPARESOURCE",
+ Package ()
+ {
+ 0x0000000000000001,
+ "/arc/client/rail_xo",
+ 0x0000000000000080,
+ },
+ },
+ Package ()
+ {
+ "BUSARB",
+ Package ()
+ {
+ 0x0000000000000003,
+ "ICBID_MASTER_LLCC",
+ "ICBID_SLAVE_EBI1",
+ 0x0000000000000001,
+ 0x0000000000000001,
+ },
+ },
+ },
+ Package ()
+ {
+ "FSTATE",
+ 0x0000000000000001,
+ Package ()
+ {
+ "NPARESOURCE",
+ Package ()
+ {
+ 0x0000000000000001,
+ "/arc/client/rail_cx",
+ 0x0000000000000000,
+ },
+ },
+ Package ()
+ {
+ "NPARESOURCE",
+ Package ()
+ {
+ 0x0000000000000001,
+ "/arc/client/rail_xo",
+ 0x0000000000000000,
+ },
+ },
+ Package ()
+ {
+ "BUSARB",
+ Package ()
+ {
+ 0x0000000000000003,
+ "ICBID_MASTER_LLCC",
+ "ICBID_SLAVE_EBI1",
+ 0x0000000000000000,
+ 0x0000000000000000,
+ },
+ },
+ },
+ },
+ Package ()
+ {
+ "DSTATE",
+ 0x0000000000000000,
+ },
+ Package ()
+ {
+ "DSTATE",
+ 0x0000000000000003,
+ },
+},
diff --git a/8350/builtin/DSDT.aml b/8350/builtin/DSDT.aml
index 1301a88..e14eb86 100644
Binary files a/8350/builtin/DSDT.aml and b/8350/builtin/DSDT.aml differ
diff --git a/8350/shared-src/8350_AND/surface_oem_panel.asl b/8350/shared-src/8350_AND/surface_oem_panel.asl
index 8accaee..f85396a 100644
--- a/8350/shared-src/8350_AND/surface_oem_panel.asl
+++ b/8350/shared-src/8350_AND/surface_oem_panel.asl
@@ -36,12 +36,12 @@ Device (DISP)
{
Name (RBF1, ResourceTemplate ()
{
- /*// TLMM GPIO used to reset the DSI panel
+ // TLMM GPIO used to reset the DSI panel
//
- GpioIo(Exclusive, PullNone, 0, 0, IoRestrictionNone, "\\_SB.GIO0", 0, ResourceConsumer,,) {5}
+ GpioIo(Exclusive, PullNone, 0, 0, IoRestrictionNone, "\\_SB.GIO0", 0, ResourceConsumer,,) {50}
// TLMM GPIO used to reset the DSI panel
//
- GpioIo(Exclusive, PullNone, 0, 0, IoRestrictionNone, "\\_SB.GIO0", 0, ResourceConsumer,,) {6}*/
+ GpioIo(Exclusive, PullNone, 0, 0, IoRestrictionNone, "\\_SB.GIO0", 0, ResourceConsumer,,) {51}
})
Return (RBF1)
}
diff --git a/8350/shared-src/8350_AND/surface_thermal_proxy.asl b/8350/shared-src/8350_AND/surface_thermal_proxy.asl
new file mode 100644
index 0000000..981318c
--- /dev/null
+++ b/8350/shared-src/8350_AND/surface_thermal_proxy.asl
@@ -0,0 +1,149 @@
+//
+// Copyright (c) 2021-2023 DuoWoA authors. All Rights Reserved.
+//
+// Module Name:
+//
+// surface_thermal_proxy.asl
+//
+// Abstract:
+//
+// Contains device definitions for the Thermal Proxy SW Components.
+//
+// Environment:
+//
+// Advanced Configuration and Power Interface (ACPI)
+//
+// Revision History:
+//
+// 2023-09-30 - @gus33000 - Initial revision
+//
+// License:
+//
+// SPDX-License-Identifier: MIT
+//
+
+//
+// Microsoft Thermal Proxy
+//
+Device (TPXY)
+{
+ Name (_HID, "MSFTTPXY")
+ Alias (\_SB.PSUB, _SUB)
+ Name (_UID, 0)
+ Name (_DEP, Package ()
+ {
+ \_SB.SEN2,
+ \_SB.SEN3,
+ \_SB.PMBM
+ })
+
+ Device(\_SB.TPXY.ANG0)
+ {
+ Name(_ADR, 0)
+ }
+
+ Device(\_SB.TPXY.RSC0)
+ {
+ Name(_ADR, 1)
+ }
+
+ Device(\_SB.TPXY.VTS0)
+ {
+ Name(_ADR, 2)
+ }
+
+ Name (_CRS, ResourceTemplate ()
+ {
+ // GPIO Pin is 121 and Virtual GPIO pin is 320.
+ GpioInt(Edge, ActiveBoth, Shared, PullNone, 500, "\\_SB.GIO0", 0, ResourceConsumer, , ){38} // Main Hall Sensor IRQ
+ GpioIo(Shared, PullNone, 500, 0, IoRestrictionInputOnly, "\\_SB.GIO0", 0, ResourceConsumer, , ){38} // Main Hall Sensor IO
+ GpioIo(Shared, PullNone, 500, 0, IoRestrictionInputOnly, "\\_SB.GIO0", 0, ResourceConsumer, , ){80} // Secondary Hall Sensor IO
+ })
+
+ // _DSM - Device-Specific Method
+ //
+ // Arg0: UUID Unique function identifier
+ // Arg1: Integer Revision ID – Will be 0
+ // Arg2: Integer Function Index (0 = Return Supported Functions)
+ // Arg3: Package Parameters
+ //
+ Function(_DSM,{BuffObj, IntObj},{BuffObj, IntObj, IntObj, PkgObj}){
+ // Thermal Proxy interface identifier
+ If ((Arg0 == ToUUID("60e802c9-29f4-479a-bd42-fa5cacc0a385"))) {
+ // Function selector
+ If (Arg2 == 0) {
+ // Switch on the revision level
+ If ((Arg1 == 0)) {
+ // Thermal Proxy v0 : Functions 0-4 inclusive are supported (0b00011111)
+ Return(Buffer() { 0x1F })
+ }
+ }
+ If (Arg2 == 1) { // Sensor info
+ // Switch on the revision level
+ If (Arg1 == 0) {
+ Name(PBUF, Package(0x2D) {
+ "TXY0",
+ 0,
+ 0,
+
+ "BAT0",
+ 1,
+ 1,
+
+ "VTS0",
+ 2,
+ 2,
+ })
+ Return(PBUF)
+ }
+ }
+ If (Arg2 == 2) { // Sensor count
+ // Switch on the revision level
+ If ((Arg1 == 0)) {
+ Name(CBUF, Package(0x01) { 0x03 })
+ Return(CBUF)
+ }
+ }
+ If (Arg2 == 3) { // Vtemp Coefficients
+ // Switch on the revision level
+ If (Arg1 == 0) {
+ Name(VBUF, Package() {
+ 3063,
+ 31,
+ 30,
+ 42,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 3,
+ 3,
+ 3,
+ })
+ Return(VBUF)
+ }
+ }
+ If (Arg2 == 4) { // RsocCoefficients
+ // Switch on the revision level
+ If (Arg1 == 0) {
+ Name(RBUF, Package() {
+ 50,
+ 1,
+ 25,
+ 10
+ })
+ Return(RBUF)
+ }
+ } // Function
+
+ // Unsupported function index
+ Return (Buffer(){0x00});
+ } // {60e802c9-29f4-479a-bd42-fa5cacc0a385}
+ Else {
+ Return (Buffer(){0x00});
+ } // UUID
+ } // _DSM
+}
diff --git a/8350/shared-src/8350_AND/surface_thermal_proxy_thermal_zones.asl b/8350/shared-src/8350_AND/surface_thermal_proxy_thermal_zones.asl
new file mode 100644
index 0000000..dc9699c
--- /dev/null
+++ b/8350/shared-src/8350_AND/surface_thermal_proxy_thermal_zones.asl
@@ -0,0 +1,525 @@
+//
+// Copyright (c) 2021-2023 DuoWoA authors. All Rights Reserved.
+//
+// Module Name:
+//
+// surface_thermal_proxy_thermal_zones.asl
+//
+// Abstract:
+//
+// Contains device definitions for additional Thermal
+// Zones, required by the Thermal Proxy SW Components.
+//
+// Environment:
+//
+// Advanced Configuration and Power Interface (ACPI)
+//
+// Revision History:
+//
+// 2023-09-30 - @gus33000 - Initial revision
+//
+// License:
+//
+// SPDX-License-Identifier: MIT
+//
+
+Scope (\_SB)
+{
+ //
+ // Thermal Zone for Battery Miniclass Thermal Proxy (Angle)
+ //
+ ThermalZone (ATP0)
+ {
+ Name (_TSN, "\\_SB.TPXY.ANG0")
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.ANG0
+ })
+
+ Name (_TZD, Package ()
+ {
+ \_SB.PBM2
+ })
+
+ Name (_TC1, 10)
+ Name (_TC2, 0)
+ Name (_TSP, 600)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3030)
+ }
+ }
+}
+
+//
+// Thermal Zone for PEP (Rsoc)
+//
+ThermalZone (BTP0)
+{
+ Name (_TSN, "\\_SB.TPXY.RSC0")
+
+ Name (_UID, 100)
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.RSC0
+ })
+
+ Name (_TZD, Package ()
+ {
+ \_SB.PEP0
+ })
+
+ Name (_TC1, 10)
+ Name (_TC2, 2)
+ Name (_TZP, 0)
+ Name (_TSP, 50)
+ Name (_MTL, 25)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3531)
+ }
+}
+
+//
+// Thermal Zone for GPU (Rsoc)
+//
+ThermalZone (BTG0)
+{
+ Name (_TSN, "\\_SB.TPXY.RSC0")
+
+ Name (_UID, 101)
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.RSC0
+ })
+
+ Name (_TZD, Package ()
+ {
+ \_SB.GPU0
+ })
+
+ Name (_TC1, 10)
+ Name (_TC2, 2)
+ Name (_TZP, 0)
+ Name (_TSP, 50)
+ Name (_MTL, 30)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3581)
+ }
+}
+
+//
+// Thermal Zone for USB Type-C/PD Switch (Rsoc)
+//
+ThermalZone (BTU0)
+{
+ Name (_TSN, "\\_SB.TPXY.RSC0")
+
+ Name (_UID, 102)
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.RSC0
+ })
+
+ Name (_TZD, Package ()
+ {
+ \_SB.UCS0
+ })
+
+ Name (_TC1, 10)
+ Name (_TC2, 2)
+ Name (_TZP, 0)
+ Name (_TSP, 50)
+ Name (_MTL, 15)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3531)
+ }
+}
+
+//
+// Thermal Zone for USB Type-C/PD Switch (Rsoc)
+//
+ThermalZone (BTU1)
+{
+ Name (_TSN, "\\_SB.TPXY.RSC0")
+
+ Name (_UID, 103)
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.RSC0
+ })
+
+ Name (_TZD, Package ()
+ {
+ \_SB.UCS0
+ })
+
+ Name (_TC1, 10)
+ Name (_TC2, 2)
+ Name (_TZP, 0)
+ Name (_TSP, 50)
+ Name (_MTL, 5)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3631)
+ }
+}
+
+//
+// Thermal Zone for Camera AVStream Mini Driver (Rsoc)
+//
+ThermalZone (BTC0)
+{
+ Name (_TSN, "\\_SB.TPXY.RSC0")
+
+ Name (_UID, 104)
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.RSC0
+ })
+
+ Name (_TZD, Package ()
+ {
+ \_SB.GPU0.AVS0
+ })
+
+ Name (_TC1, 10)
+ Name (_TC2, 2)
+ Name (_TZP, 0)
+ Name (_TSP, 50)
+ Name (_MTL, 15)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3531)
+ }
+}
+
+//
+// Thermal Zone for Camera AVStream Mini Driver (Rsoc)
+//
+ThermalZone (BTC1)
+{
+ Name (_TSN, "\\_SB.TPXY.RSC0")
+
+ Name (_UID, 105)
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.RSC0
+ })
+
+ Name (_TZD, Package ()
+ {
+ \_SB.GPU0.AVS0
+ })
+
+ Name (_TC1, 10)
+ Name (_TC2, 2)
+ Name (_TZP, 0)
+ Name (_TSP, 50)
+ Name (_MTL, 5)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3631)
+ }
+}
+
+//
+// Thermal Zone for Surface Display Panel (Rsoc)
+//
+ThermalZone (BTD0)
+{
+ Name (_TSN, "\\_SB.TPXY.RSC0")
+
+ Name (_UID, 106)
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.RSC0
+ })
+
+ Name (_TZD, Package ()
+ {
+ \_SB.DISP
+ })
+
+ Name (_TC1, 10)
+ Name (_TC2, 2)
+ Name (_TZP, 0)
+ Name (_TSP, 50)
+ Name (_MTL, 15)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3431)
+ }
+}
+
+//
+// Thermal Zone for Surface Display Panel (Rsoc)
+//
+ThermalZone (BTD1)
+{
+ Name (_TSN, "\\_SB.TPXY.RSC0")
+
+ Name (_UID, 107)
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.RSC0
+ })
+
+ Name (_TZD, Package ()
+ {
+ \_SB.DISP
+ })
+
+ Name (_TC1, 10)
+ Name (_TC2, 2)
+ Name (_TZP, 0)
+ Name (_TSP, 50)
+ Name (_MTL, 5)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3631)
+ }
+}
+
+//
+// Thermal Zone for PEP (Vtemp)
+//
+ThermalZone (VMX5)
+{
+ Name (_TSN, "\\_SB.TPXY.VTS0")
+
+ Name (_UID, 74)
+
+ Name (_TZD, Package ()
+ {
+ \_SB.PEP0
+ })
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.VTS0
+ })
+
+ Name (_TC1, 10)
+ Name (_TC2, 2)
+ Name (_TSP, 50)
+ Name (_TZP, 0)
+ Name (_MTL, 25)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3211)
+ }
+}
+
+//
+// Thermal Zone for Big CPUs (Vtemp)
+//
+ThermalZone (VMX6)
+{
+ Name (_TSN, "\\_SB.TPXY.VTS0")
+
+ Name (_UID, 75)
+
+ Name (_TZD, Package (0x04)
+ {
+ \_SB.SYSM.CLUS.CPU4,
+ \_SB.SYSM.CLUS.CPU5,
+ \_SB.SYSM.CLUS.CPU6,
+ \_SB.SYSM.CLUS.CPU7
+ })
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.VTS0
+ })
+
+ Name (_TC1, 5)
+ Name (_TC2, 3)
+ Name (_TSP, 30)
+ Name (_TZP, 0)
+ Name (_MTL, 1)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3181)
+ }
+}
+
+//
+// Thermal Zone for Little CPUs (Vtemp)
+//
+ThermalZone (VMX7)
+{
+ Name (_TSN, "\\_SB.TPXY.VTS0")
+
+ Name (_UID, 76)
+
+ Name (_TZD, Package (0x04)
+ {
+ \_SB.SYSM.CLUS.CPU0,
+ \_SB.SYSM.CLUS.CPU1,
+ \_SB.SYSM.CLUS.CPU2,
+ \_SB.SYSM.CLUS.CPU3
+ })
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.VTS0
+ })
+
+ Name (_TC1, 5)
+ Name (_TC2, 1)
+ Name (_TSP, 30)
+ Name (_TZP, 0)
+ Name (_MTL, 30)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3201)
+ }
+}
+
+//
+// Thermal Zone for GPU (Vtemp)
+//
+ThermalZone (VMX8)
+{
+ Name (_TSN, "\\_SB.TPXY.VTS0")
+
+ Name (_UID, 77)
+
+ Name (_TZD, Package ()
+ {
+ \_SB.GPU0
+ })
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.VTS0
+ })
+
+ Name (_TC1, 5)
+ Name (_TC2, 2)
+ Name (_TSP, 30)
+ Name (_TZP, 0)
+ Name (_MTL, 30)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3191)
+ }
+}
+
+//
+// Thermal Zone for Battery Miniclass (Vtemp)
+//
+ThermalZone (VMX9)
+{
+ Name (_TSN, "\\_SB.TPXY.VTS0")
+
+ Name (_UID, 78)
+
+ Name (_TZD, Package ()
+ {
+ \_SB.PMBM
+ })
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.VTS0
+ })
+
+ Name (_TC1, 20)
+ Name (_TC2, 5)
+ Name (_TSP, 300)
+ Name (_TZP, 0)
+ Name (_MTL, 5)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3171)
+ }
+}
+
+//
+// Thermal Zone for Surface NFC Wireless Charging (Rsoc)
+//
+ThermalZone (WTU1)
+{
+ Name (_TSN, "\\_SB.TPXY.RSC0")
+
+ Name (_UID, 110)
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.RSC0
+ })
+
+ Name (_TZD, Package ()
+ {
+ \_SB.WLCN
+ })
+
+ Name (_TC1, 10)
+ Name (_TC2, 2)
+ Name (_TZP, 0)
+ Name (_TSP, 50)
+ Name (_MTL, 25)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3431)
+ }
+}
+
+//
+// Thermal Zone for Surface NFC Wireless Charging (Rsoc)
+//
+ThermalZone (WTU0)
+{
+ Name (_TSN, "\\_SB.TPXY.RSC0")
+
+ Name (_UID, 111)
+
+ Name (_DEP, Package (0x1)
+ {
+ \_SB.TPXY.RSC0
+ })
+
+ Name (_TZD, Package ()
+ {
+ \_SB.WLCN
+ })
+
+ Name (_TC1, 10)
+ Name (_TC2, 2)
+ Name (_TZP, 0)
+ Name (_TSP, 50)
+ Name (_MTL, 5)
+
+ Method (_PSV, 0, NotSerialized)
+ {
+ Return (3631)
+ }
+}
\ No newline at end of file
diff --git a/8350/shared-src/8350_AND/surface_wireless_charging.asl b/8350/shared-src/8350_AND/surface_wireless_charging.asl
new file mode 100644
index 0000000..2e67ef2
--- /dev/null
+++ b/8350/shared-src/8350_AND/surface_wireless_charging.asl
@@ -0,0 +1,78 @@
+//
+// Copyright (c) 2021-2024 DuoWoA authors. All Rights Reserved.
+//
+// Module Name:
+//
+// surface_wireless_charging.asl
+//
+// Abstract:
+//
+// Contains device definitions for the Surface Pen Wireless Charger.
+//
+// Environment:
+//
+// Advanced Configuration and Power Interface (ACPI)
+//
+// Revision History:
+//
+// 2024-04-27 - @gus33000 - Initial revision
+//
+// License:
+//
+// SPDX-License-Identifier: MIT
+//
+
+//
+// Surface NFC Wireless Charging
+//
+Device (WLCN)
+{
+ Name (_UID, 0)
+ Name (_HID, "MSHW0163")
+
+ Method (_CRS, 0x0, NotSerialized)
+ {
+ Name (RBUF, ResourceTemplate ()
+ {
+ /*I2CSerialBus(0x28, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.I2C6", 0, ResourceConsumer, , )
+ GpioInt(Edge, ActiveHigh, Exclusive, PullDown, 0, "\\_SB.GIO0", 0, ResourceConsumer, , ){28}*/
+ GpioIo(Exclusive, PullNone, 0, 0, IoRestrictionOutputOnly, "\\_SB.GIO0", 0, ResourceConsumer, , ){39}
+ })
+ Return (RBUF)
+ }
+
+ // PEP Proxy Support
+ Name(PGID, Buffer(10) {"\\_SB.WLCN"}) // Device ID buffer - PGID (Pep given ID)
+
+ Name(DBUF, Buffer(DBFL) {}) // Device ID buffer - PGID (Pep given ID)
+ CreateByteField(DBUF, 0x0, STAT) // STATUS 1 BYTE
+ // HIDDEN 1 BYTE (SIZE)
+ CreateByteField(DBUF, 2, DVAL) // Packet value, 1 BYTES Device Status
+ CreateField(DBUF, 24, 160, DEID) // Device ID, 20 BYTES (160 Bits)
+
+ Method (_S1D, 0) { Return (3) } // S1 => D3
+ Method (_S2D, 0) { Return (3) } // S2 => D3
+ Method (_S3D, 0) { Return (3) } // S3 => D3
+
+ Method (_PS0, 0x0, NotSerialized)
+ {
+ Store(Buffer(ESNL){}, DEID)
+ Store(0, DVAL)
+ Store(PGID, DEID)
+ If(\_SB.ABD.AVBL)
+ {
+ Store(DBUF, \_SB.PEP0.FLD0)
+ }
+ }
+
+ Method (_PS3, 0x0, NotSerialized)
+ {
+ Store(Buffer(ESNL){}, DEID)
+ Store(3, DVAL)
+ Store(PGID, DEID)
+ If(\_SB.ABD.AVBL)
+ {
+ Store(DBUF, \_SB.PEP0.FLD0)
+ }
+ }
+}
\ No newline at end of file
diff --git a/8350/shared-src/8350_AND/surface_xbl_hob.asl b/8350/shared-src/8350_AND/surface_xbl_hob.asl
index 517210f..c588446 100644
--- a/8350/shared-src/8350_AND/surface_xbl_hob.asl
+++ b/8350/shared-src/8350_AND/surface_xbl_hob.asl
@@ -156,10 +156,10 @@ Scope(\_SB) {
OperationRegion(XPCA, SystemMemory, 0xE3401000, 0x90)
Field(XPCA, AnyAcc, NoLock, Preserve)
{
- CBTC, 32, // Current Boot Cycle // (00) This variable keeps the total counts of booting of the device.
+ CBOC, 32, // Current Boot Cycle // (00) This variable keeps the total counts of booting of the device.
//
// [00] PMIC PON History Information Block
- BTC0, 32, // Boot Cycle // (01) If BootCycle is zero, it means this record is invalid.
+ BOC0, 32, // Boot Cycle // (01) If BootCycle is zero, it means this record is invalid.
// We can also use this BootCycle to know the gap between the CurrentBootCycle.
// PMIC PON PON Information Block
S3R0, 8, // S3 Reason // (02) S3Reason from SDAM5
@@ -173,7 +173,7 @@ Scope(\_SB) {
OCV0, 32, // Open Circuit Voltage // (09) Battery Open-Circuit Voltage in mV
//
// [01] PMIC PON History Information Block
- BTC1, 32, // Boot Cycle // (10) If BootCycle is zero, it means this record is invalid.
+ BOC1, 32, // Boot Cycle // (10) If BootCycle is zero, it means this record is invalid.
// We can also use this BootCycle to know the gap between the CurrentBootCycle.
// PMIC PON PON Information Block
S3R1, 8, // S3 Reason // (11) S3Reason from SDAM5
@@ -187,7 +187,7 @@ Scope(\_SB) {
OCV1, 32, // Open Circuit Voltage // (18) Battery Open-Circuit Voltage in mV
//
// [02] PMIC PON History Information Block
- BTC2, 32, // Boot Cycle // (19) If BootCycle is zero, it means this record is invalid.
+ BOC2, 32, // Boot Cycle // (19) If BootCycle is zero, it means this record is invalid.
// We can also use this BootCycle to know the gap between the CurrentBootCycle.
// PMIC PON PON Information Block
S3R2, 8, // S3 Reason // (20) S3Reason from SDAM5
@@ -201,7 +201,7 @@ Scope(\_SB) {
OCV2, 32, // Open Circuit Voltage // (26) Battery Open-Circuit Voltage in mV
//
// [03] PMIC PON History Information Block
- BTC3, 32, // Boot Cycle // (28) If BootCycle is zero, it means this record is invalid.
+ BOC3, 32, // Boot Cycle // (28) If BootCycle is zero, it means this record is invalid.
// We can also use this BootCycle to know the gap between the CurrentBootCycle.
// PMIC PON PON Information Block
S3R3, 8, // S3 Reason // (29) S3Reason from SDAM5
@@ -215,7 +215,7 @@ Scope(\_SB) {
OCV3, 32, // Open Circuit Voltage // (36) Battery Open-Circuit Voltage in mV
//
// [04] PMIC PON History Information Block
- BTC4, 32, // Boot Cycle // (37) If BootCycle is zero, it means this record is invalid.
+ BOC4, 32, // Boot Cycle // (37) If BootCycle is zero, it means this record is invalid.
// We can also use this BootCycle to know the gap between the CurrentBootCycle.
// PMIC PON PON Information Block
S3R4, 8, // S3 Reason // (38) S3Reason from SDAM5
diff --git a/8350/src/DSDT.dsl b/8350/src/DSDT.dsl
index 5d22073..be72000 100644
--- a/8350/src/DSDT.dsl
+++ b/8350/src/DSDT.dsl
@@ -18,6 +18,8 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
External (_SB_.TZ52.TTC1, UnknownObj)
External (_SB_.TZ52.TTC2, UnknownObj)
External (_SB_.TZ52.TTSP, UnknownObj)
+ External (_SB_.UBF0.PRT0, UnknownObj)
+ External (_SB_.UBF0.PRT1, UnknownObj)
Scope (\_SB)
{
@@ -435,6 +437,29 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
}
+ Device (PBM2)
+ {
+ Name (_HID, "QCOM0060") // _HID: Hardware ID
+ Alias (\_SB.PSUB, _SUB)
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.PMGK
+ })
+ Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
+ {
+ Name (RBUF, Buffer (0x02)
+ {
+ 0x79, 0x00 // y.
+ })
+ Return (RBUF) /* \_SB_.PBM2._CRS.RBUF */
+ }
+
+ Method (_STA, 0, NotSerialized) // _STA: Status
+ {
+ Return (0x0F)
+ }
+ }
+
Device (BCL1)
{
Name (_HID, "QCOM1A77") // _HID: Hardware ID
@@ -2845,7 +2870,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
"DEVICE",
0x82,
"\\_SB.GPU0",
- Package (0x0B)
+ Package (0x0C)
{
"COMPONENT",
Zero,
@@ -2853,7 +2878,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
{
"FSTATE",
Zero,
- Package (0x13)
+ Package (0x0E)
{
"EXIT",
Package (0x02)
@@ -2910,16 +2935,6 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "gcc_edp3_phy_clkref_en",
- One
- }
- },
-
Package (0x02)
{
"FOOTSWITCH",
@@ -2977,16 +2992,6 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "mdss_0_disp_cc_mdss_ahb_clk",
- One
- }
- },
-
Package (0x02)
{
"CLOCK",
@@ -3002,37 +3007,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
"CLOCK",
Package (0x02)
{
- "mdss_0_disp_cc_mdss_dptx3_pixel0_clk",
- One
- }
- },
-
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "mdss_0_disp_cc_mdss_dptx3_link_clk",
- One
- }
- },
-
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "mdss_0_disp_cc_mdss_dptx3_aux_clk",
- One
- }
- },
-
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "mdss_0_disp_cc_mdss_dptx3_link_intf_clk",
+ "mdss_0_disp_cc_mdss_ahb_clk",
One
}
},
@@ -3091,7 +3066,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
{
"PSTATE_SET",
One,
- Package (0x0C)
+ Package (0x08)
{
"PSTATE",
Zero,
@@ -3141,16 +3116,6 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "mdss_0_disp_cc_mdss_ahb_clk",
- One
- }
- },
-
Package (0x02)
{
"CLOCK",
@@ -3166,37 +3131,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
"CLOCK",
Package (0x02)
{
- "mdss_0_disp_cc_mdss_dptx3_pixel0_clk",
- One
- }
- },
-
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "mdss_0_disp_cc_mdss_dptx3_link_clk",
- One
- }
- },
-
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "mdss_0_disp_cc_mdss_dptx3_aux_clk",
- One
- }
- },
-
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "mdss_0_disp_cc_mdss_dptx3_link_intf_clk",
+ "mdss_0_disp_cc_mdss_ahb_clk",
One
}
}
@@ -3315,6 +3250,72 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
+ Package (0x02)
+ {
+ "PRELOAD_PSTATE",
+ Zero
+ }
+ },
+
+ Package (0x04)
+ {
+ "PSTATE_SET",
+ 0x05,
+ Package (0x07)
+ {
+ "PSTATE",
+ Zero,
+ Package (0x02)
+ {
+ "CLOCK",
+ Package (0x02)
+ {
+ "mdss_0_disp_cc_mdss_rscc_ahb_clk",
+ 0x02
+ }
+ },
+
+ Package (0x02)
+ {
+ "CLOCK",
+ Package (0x02)
+ {
+ "mdss_0_disp_cc_mdss_ahb_clk",
+ 0x02
+ }
+ },
+
+ Package (0x02)
+ {
+ "CLOCK",
+ Package (0x02)
+ {
+ "gcc_disp_xo_clk",
+ 0x02
+ }
+ },
+
+ Package (0x02)
+ {
+ "CLOCK",
+ Package (0x02)
+ {
+ "gcc_disp_ahb_clk",
+ 0x02
+ }
+ },
+
+ Package (0x02)
+ {
+ "CLOCK",
+ Package (0x02)
+ {
+ "mdss_0_disp_cc_xo_clk",
+ 0x02
+ }
+ }
+ },
+
Package (0x02)
{
"PRELOAD_PSTATE",
@@ -3401,6 +3402,16 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
+ Package (0x02)
+ {
+ "CLOCK",
+ Package (0x02)
+ {
+ "gcc_edp2_phy_clkref_en",
+ One
+ }
+ },
+
Package (0x02)
{
"FOOTSWITCH",
@@ -3458,16 +3469,6 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "gcc_edp2_phy_clkref_en",
- One
- }
- },
-
Package (0x02)
{
"CLOCK",
@@ -4151,6 +4152,26 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
+ Package (0x02)
+ {
+ "CLOCK",
+ Package (0x02)
+ {
+ "gcc_edp0_phy_clkref_en",
+ One
+ }
+ },
+
+ Package (0x02)
+ {
+ "CLOCK",
+ Package (0x02)
+ {
+ "gcc_top_edp0_phy_clkref_en",
+ One
+ }
+ },
+
Package (0x02)
{
"FOOTSWITCH",
@@ -4238,26 +4259,6 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "gcc_edp0_phy_clkref_en",
- One
- }
- },
-
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "gcc_top_edp0_phy_clkref_en",
- One
- }
- },
-
Package (0x02)
{
"CLOCK",
@@ -5624,6 +5625,26 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
+ Package (0x02)
+ {
+ "CLOCK",
+ Package (0x02)
+ {
+ "gcc_edp1_phy_clkref_en",
+ One
+ }
+ },
+
+ Package (0x02)
+ {
+ "CLOCK",
+ Package (0x02)
+ {
+ "gcc_top_edp1_phy_clkref_en",
+ One
+ }
+ },
+
Package (0x02)
{
"FOOTSWITCH",
@@ -5716,7 +5737,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
"CLOCK",
Package (0x02)
{
- "gcc_top_edp1_phy_clkref_en",
+ "mdss_0_disp_cc_mdss_rscc_ahb_clk",
One
}
},
@@ -5726,27 +5747,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
"CLOCK",
Package (0x02)
{
- "gcc_edp1_phy_clkref_en",
- One
- }
- },
-
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "mdss_0_disp_cc_mdss_rscc_ahb_clk",
- One
- }
- },
-
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "mdss_0_disp_cc_mdss_ahb_clk",
+ "mdss_0_disp_cc_mdss_ahb_clk",
One
}
},
@@ -8816,10 +8817,75 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
- Package (0x03)
+ Package (0x08)
{
"PSTATE",
0x14,
+ Package (0x02)
+ {
+ "PMICVREGVOTE",
+ Package (0x06)
+ {
+ "PPP_RESOURCE_ID_LDO9_C",
+ One,
+ Zero,
+ Zero,
+ Zero,
+ Zero
+ }
+ },
+
+ Package (0x02)
+ {
+ "PMICVREGVOTE",
+ Package (0x06)
+ {
+ "PPP_RESOURCE_ID_LDO6_C",
+ One,
+ Zero,
+ Zero,
+ Zero,
+ Zero
+ }
+ },
+
+ Package (0x02)
+ {
+ "DELAY",
+ Package (0x01)
+ {
+ 0x23
+ }
+ },
+
+ Package (0x02)
+ {
+ "PMICVREGVOTE",
+ Package (0x06)
+ {
+ "PPP_RESOURCE_ID_LDO9_C",
+ One,
+ 0x002D2A80,
+ One,
+ 0x07,
+ Zero
+ }
+ },
+
+ Package (0x02)
+ {
+ "PMICVREGVOTE",
+ Package (0x06)
+ {
+ "PPP_RESOURCE_ID_LDO6_C",
+ One,
+ 0x002D0370,
+ One,
+ 0x07,
+ Zero
+ }
+ },
+
Package (0x02)
{
"DELAY",
@@ -8830,10 +8896,24 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
- Package (0x03)
+ Package (0x04)
{
"PSTATE",
0x15,
+ Package (0x02)
+ {
+ "PMICVREGVOTE",
+ Package (0x06)
+ {
+ "PPP_RESOURCE_ID_LDO6_C",
+ One,
+ 0x001B7740,
+ One,
+ 0x07,
+ Zero
+ }
+ },
+
Package (0x02)
{
"DELAY",
@@ -8844,10 +8924,38 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
- Package (0x03)
+ Package (0x05)
{
"PSTATE",
0x16,
+ Package (0x02)
+ {
+ "PMICVREGVOTE",
+ Package (0x06)
+ {
+ "PPP_RESOURCE_ID_LDO9_C",
+ One,
+ 0x002D2A80,
+ One,
+ 0x07,
+ Zero
+ }
+ },
+
+ Package (0x02)
+ {
+ "PMICVREGVOTE",
+ Package (0x06)
+ {
+ "PPP_RESOURCE_ID_LDO6_C",
+ One,
+ 0x002D0370,
+ One,
+ 0x07,
+ Zero
+ }
+ },
+
Package (0x02)
{
"DELAY",
@@ -8858,10 +8966,38 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
- Package (0x03)
+ Package (0x05)
{
"PSTATE",
0x17,
+ Package (0x02)
+ {
+ "PMICVREGVOTE",
+ Package (0x06)
+ {
+ "PPP_RESOURCE_ID_LDO9_C",
+ One,
+ Zero,
+ Zero,
+ Zero,
+ Zero
+ }
+ },
+
+ Package (0x02)
+ {
+ "PMICVREGVOTE",
+ Package (0x06)
+ {
+ "PPP_RESOURCE_ID_LDO6_C",
+ One,
+ Zero,
+ Zero,
+ Zero,
+ Zero
+ }
+ },
+
Package (0x02)
{
"DELAY",
@@ -8877,53 +9013,22 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
{
"PSTATE_SET",
One,
- Package (0x03)
+ Package (0x02)
{
"PSTATE",
- Zero,
- Package (0x02)
- {
- "CLOCK",
- Package (0x02)
- {
- "gcc_sdcc2_apps_clk",
- 0x02
- }
- }
+ Zero
},
- Package (0x03)
+ Package (0x02)
{
"PSTATE",
- One,
- Package (0x02)
- {
- "CLOCK",
- Package (0x04)
- {
- "gcc_sdcc2_apps_clk",
- 0x08,
- 0x05F5E100,
- 0x02
- }
- }
+ One
},
- Package (0x03)
+ Package (0x02)
{
"PSTATE",
- 0x02,
- Package (0x02)
- {
- "CLOCK",
- Package (0x04)
- {
- "gcc_sdcc2_apps_clk",
- 0x08,
- 0x0C0A4680,
- 0x02
- }
- }
+ 0x02
}
},
@@ -9097,7 +9202,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
- Package (0x06)
+ Package (0x07)
{
"DSTATE",
Zero,
@@ -9111,6 +9216,17 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
+ Package (0x02)
+ {
+ "TLMMPORT",
+ Package (0x03)
+ {
+ 0x001CF000,
+ 0x7FFF,
+ 0x1FE4
+ }
+ },
+
Package (0x02)
{
"PSTATE_ADJUST",
@@ -9142,7 +9258,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
- Package (0x06)
+ Package (0x07)
{
"DSTATE",
0x03,
@@ -9176,6 +9292,17 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
},
+ Package (0x02)
+ {
+ "TLMMPORT",
+ Package (0x03)
+ {
+ 0x001CF000,
+ 0x7FFF,
+ 0x0A00
+ }
+ },
+
Package (0x02)
{
"PSTATE_ADJUST",
@@ -10154,6 +10281,14 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
})
}
+ Scope (\_SB.PEP0)
+ {
+ }
+
+ Scope (\_SB.PEP0)
+ {
+ }
+
Scope (\_SB.PEP0)
{
Method (PMMX, 0, NotSerialized)
@@ -11164,7 +11299,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
Device (ADSP)
{
- Name (_DEP, Package (0x07) // _DEP: Dependencies
+ Name (_DEP, Package (0x09) // _DEP: Dependencies
{
\_SB.PEP0,
\_SB.PILC,
@@ -11172,7 +11307,9 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
\_SB.IPC0,
\_SB.RPEN,
\_SB.SSDD,
- \_SB.ARPC
+ \_SB.ARPC,
+ \_SB.TFTP,
+ \_SB.PDSR
})
Name (_HID, "QCOM1A1B") // _HID: Hardware ID
Alias (\_SB.PSUB, _SUB)
@@ -11335,20 +11472,19 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
Device (AMSS)
{
Name (_CCA, Zero) // _CCA: Cache Coherency Attribute
- Name (_DEP, Package (0x05) // _DEP: Dependencies
+ Name (_DEP, Package (0x09) // _DEP: Dependencies
{
+ \_SB.PEP0,
\_SB.GLNK,
\_SB.PILC,
\_SB.RFS0,
\_SB.RPEN,
- \_SB.SSDD
+ \_SB.SSDD,
+ \_SB.IPC0,
+ \_SB.TFTP,
+ \_SB.PDSR
})
Name (_HID, "QCOM1A1C") // _HID: Hardware ID
- Method (_STA, 0, NotSerialized) // _STA: Status
- {
- Return (0x0F)
- }
-
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Name (RBUF, ResourceTemplate ()
@@ -11383,11 +11519,9 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
{
Name (_HID, "QCOM1A20") // _HID: Hardware ID
Alias (\_SB.PSUB, _SUB)
- Name (_DEP, Package (0x03) // _DEP: Dependencies
+ Name (_DEP, Package (One) // _DEP: Dependencies
{
- \_SB.GLNK,
- \_SB.PDSR,
- \_SB.TFTP
+ \_SB.GLNK
})
Method (_STA, 0, NotSerialized) // _STA: Status
{
@@ -11413,7 +11547,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
Device (NSP0)
{
- Name (_DEP, Package (0x07) // _DEP: Dependencies
+ Name (_DEP, Package (0x08) // _DEP: Dependencies
{
\_SB.PEP0,
\_SB.PILC,
@@ -11421,7 +11555,8 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
\_SB.IPC0,
\_SB.RPEN,
\_SB.SSDD,
- \_SB.ARPC
+ \_SB.ARPC,
+ \_SB.PDSR
})
Name (_HID, "QCOM1AB0") // _HID: Hardware ID
Alias (\_SB.PSUB, _SUB)
@@ -11563,6 +11698,19 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
Name (_CID, "QCOMFFE7") // _CID: Compatible ID
}
+ Scope (\_SB.AMSS)
+ {
+ Method (_STA, 0, NotSerialized) // _STA: Status
+ {
+ Return (0x0F)
+ }
+
+ Method (_SUB, 0, NotSerialized) // _SUB: Subsystem ID
+ {
+ Return (\_SB.PSUB)
+ }
+ }
+
Device (LLC)
{
Name (_DEP, Package (One) // _DEP: Dependencies
@@ -12100,7 +12248,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
)
Memory32Fixed (ReadWrite,
0x0AA00000, // Address Base
- 0x00200000, // Address Length
+ 0x00100000, // Address Length
)
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
{
@@ -14696,43 +14844,145 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
}
- Method (_PSC, 0, NotSerialized) // _PSC: Power State Current
+ Name (PGID, Buffer (0x0A)
{
- Return (Zero)
- }
-
- Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
+ "\\_SB.PCI0"
+ })
+ Name (DBUF, Buffer (DBFL){})
+ CreateByteField (DBUF, Zero, STAT)
+ CreateByteField (DBUF, 0x02, DVAL)
+ CreateField (DBUF, 0x18, 0xA0, DEID)
+ Method (OPRG, 1, Serialized)
{
- Name (RBUF, ResourceTemplate ()
+ DEID = Buffer (ESNL){}
+ Debug = Arg0
+ DVAL = Arg0
+ DEID = PGID /* \_SB_.PCI0.PGID */
+ If (\_SB.ABD.AVBL)
{
- Memory32Fixed (ReadWrite,
- 0x60300000, // Address Base
- 0x01D00000, // Address Length
- )
- WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
- 0x0000, // Granularity
- 0x0000, // Range Minimum
- 0x0001, // Range Maximum
- 0x0000, // Translation Offset
- 0x0002, // Length
- ,, )
- })
- Return (RBUF) /* \_SB_.PCI0._CRS.RBUF */
+ \_SB.PEP0.FLD0 = DBUF /* \_SB_.PCI0.DBUF */
+ }
}
- Name (SUPP, Zero)
- Name (CTRL, Zero)
- Method (_DSW, 3, NotSerialized) // _DSW: Device Sleep Wake
+ Method (_RMV, 0, Serialized) // _RMV: Removal Status
{
+ Return (One)
}
- Method (_OSC, 4, NotSerialized) // _OSC: Operating System Capabilities
+ Method (_OST, 3, Serialized) // _OST: OSPM Status Indication
{
- If ((Arg0 == ToUUID ("33db4d5b-1ff7-401c-9657-7441c03dd766") /* PCI Host Bridge Device */))
+ Debug = "In _OST of PCI0"
+ While (One)
{
- CreateDWordField (Arg3, Zero, CDW1)
- CreateDWordField (Arg3, 0x04, CDW2)
- CreateDWordField (Arg3, 0x08, CDW3)
+ Name (_T_0, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_0 = ToInteger (Arg0)
+ If ((_T_0 == 0x0103))
+ {
+ Debug = "In _OST, Ejection Processing"
+ While (One)
+ {
+ Name (_T_1, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_1 = ToInteger (Arg1)
+ If ((_T_1 == Zero))
+ {
+ Debug = "In PCI0 _OST, Ejection Success"
+ Notify (\_SB.PCI0, 0x03) // Eject Request
+ }
+ ElseIf ((Match (Package (0x04)
+ {
+ 0x80,
+ 0x81,
+ 0x82,
+ 0x83
+ }, MEQ, _T_1, MTR, 0x00, 0x00) != Ones))
+ {
+ Debug = "In PCI0 _OST, Ejection Failure"
+ }
+ ElseIf ((_T_1 == 0x84))
+ {
+ Debug = "In PCI0 _OST, Ejection Pending"
+ }
+
+ Break
+ }
+ }
+ ElseIf ((_T_0 == 0x0200))
+ {
+ Debug = "In PCI0 _OST, Insertion Processing"
+ While (One)
+ {
+ Name (_T_2, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_2 = ToInteger (Arg1)
+ If ((_T_2 == Zero))
+ {
+ Debug = "In PCI0 _OST, Insertion Success"
+ Notify (\_SB.PCI0, Zero) // Bus Check
+ }
+
+ Break
+ }
+ }
+
+ Break
+ }
+ }
+
+ Method (_CBA, 0, NotSerialized) // _CBA: Configuration Base Address
+ {
+ Return (0x0000000700000000)
+ }
+
+ Method (_PSC, 0, NotSerialized) // _PSC: Power State Current
+ {
+ Return (Zero)
+ }
+
+ Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
+ {
+ Name (RBUF, ResourceTemplate ()
+ {
+ Memory32Fixed (ReadWrite,
+ 0x60000000, // Address Base
+ 0x02000000, // Address Length
+ )
+ QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
+ 0x0000000000000000, // Granularity
+ 0x0000000710000000, // Range Minimum
+ 0x000000071FFFFFFF, // Range Maximum
+ 0x0000000000000000, // Translation Offset
+ 0x0000000010000000, // Length
+ ,, , AddressRangeMemory, TypeStatic)
+ QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Prefetchable, ReadWrite,
+ 0x0000000000000000, // Granularity
+ 0x0000000720000000, // Range Minimum
+ 0x000000073FFFFFFF, // Range Maximum
+ 0x0000000000000000, // Translation Offset
+ 0x0000000020000000, // Length
+ ,, , AddressRangeMemory, TypeStatic)
+ WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
+ 0x0000, // Granularity
+ 0x0000, // Range Minimum
+ 0x00FF, // Range Maximum
+ 0x0000, // Translation Offset
+ 0x0002, // Length
+ ,, )
+ })
+ Return (RBUF) /* \_SB_.PCI0._CRS.RBUF */
+ }
+
+ Name (SUPP, Zero)
+ Name (CTRL, Zero)
+ Method (_DSW, 3, NotSerialized) // _DSW: Device Sleep Wake
+ {
+ }
+
+ Method (_OSC, 4, NotSerialized) // _OSC: Operating System Capabilities
+ {
+ If ((Arg0 == ToUUID ("33db4d5b-1ff7-401c-9657-7441c03dd766") /* PCI Host Bridge Device */))
+ {
+ CreateDWordField (Arg3, Zero, CDW1)
+ CreateDWordField (Arg3, 0x04, CDW2)
+ CreateDWordField (Arg3, 0x08, CDW3)
SUPP = CDW2 /* \_SB_.PCI0._OSC.CDW2 */
CTRL = CDW3 /* \_SB_.PCI0._OSC.CDW3 */
If (((SUPP & 0x16) != 0x16))
@@ -14926,7 +15176,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
\_SB.R0RR
})
Name (_S0W, 0x04) // _S0W: S0 Device Wake State
- Name (_DSD, Package (0x02) // _DSD: Device-Specific Data
+ Name (_DSD, Package (0x06) // _DSD: Device-Specific Data
{
ToUUID ("6211e2c0-58a3-4af3-90e1-927a4e0c55a4") /* Unknown UUID */,
Package (0x01)
@@ -14936,8 +15186,44 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
"HotPlugSupportInD3",
One
}
+ },
+
+ ToUUID ("efcc06cc-73ac-4bc3-bff0-76143807c389") /* Unknown UUID */,
+ Package (0x02)
+ {
+ Package (0x02)
+ {
+ "ExternalFacingPort",
+ One
+ },
+
+ Package (0x02)
+ {
+ "UID",
+ Zero
+ }
+ },
+
+ ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301") /* Device Properties for _DSD */,
+ Package (0x02)
+ {
+ Package (0x02)
+ {
+ "usb4-host-interface",
+ \_SB.UBF0.PRT0
+ },
+
+ Package (0x02)
+ {
+ "usb4-port-number",
+ Zero
+ }
}
})
+ Method (_DSW, 3, NotSerialized) // _DSW: Device Sleep Wake
+ {
+ }
+
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Name (RBF0, ResourceTemplate ()
@@ -15035,7 +15321,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
Device (QPPX)
{
Name (_HID, "QCOM1A96") // _HID: Hardware ID
- Name (_CID, "QCOMFFE2") // _CID: Compatible ID
+ Name (_CID, "QCOMFFE4") // _CID: Compatible ID
Name (_UID, Zero) // _UID: Unique ID
Name (_CCA, Zero) // _CCA: Cache Coherency Attribute
Alias (\_SB.PSUB, _SUB)
@@ -15129,6 +15415,62 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
})
}
+ Method (_HPX, 2, Serialized) // _HPX: Hot Plug Parameter Extensions
+ {
+ While (One)
+ {
+ Name (_T_0, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_0 = ToInteger (Arg0)
+ If ((_T_0 == Zero))
+ {
+ \_SB.PCI0.OPRG (Arg1)
+ }
+ ElseIf ((_T_0 == One))
+ {
+ \_SB.PCI1.OPRG (Arg1)
+ }
+
+ Break
+ }
+ }
+
+ Method (_HPE, 2, Serialized)
+ {
+ While (One)
+ {
+ Name (_T_0, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_0 = ToInteger (Arg0)
+ If ((_T_0 == Zero))
+ {
+ If ((Arg1 == Zero))
+ {
+ PRP0 = One
+ Notify (\_SB.PCI0, Zero) // Bus Check
+ }
+ Else
+ {
+ PRP0 = 0xFFFFFFFF
+ Notify (\_SB.PCI0, One) // Device Check
+ }
+ }
+ ElseIf ((_T_0 == One))
+ {
+ If ((Arg1 == Zero))
+ {
+ PRP1 = One
+ Notify (\_SB.PCI1, Zero) // Bus Check
+ }
+ Else
+ {
+ PRP1 = 0xFFFFFFFF
+ Notify (\_SB.PCI1, One) // Device Check
+ }
+ }
+
+ Break
+ }
+ }
+
Name (GWLE, ResourceTemplate ()
{
GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionNone,
@@ -15238,6 +15580,94 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
}
+ Name (PGID, Buffer (0x0A)
+ {
+ "\\_SB.PCI1"
+ })
+ Name (DBUF, Buffer (DBFL){})
+ CreateByteField (DBUF, Zero, STAT)
+ CreateByteField (DBUF, 0x02, DVAL)
+ CreateField (DBUF, 0x18, 0xA0, DEID)
+ Method (OPRG, 1, Serialized)
+ {
+ DEID = Buffer (ESNL){}
+ Debug = Arg0
+ DVAL = Arg0
+ DEID = PGID /* \_SB_.PCI1.PGID */
+ If (\_SB.ABD.AVBL)
+ {
+ \_SB.PEP0.FLD0 = DBUF /* \_SB_.PCI1.DBUF */
+ }
+ }
+
+ Method (_RMV, 0, Serialized) // _RMV: Removal Status
+ {
+ Return (One)
+ }
+
+ Method (_OST, 3, Serialized) // _OST: OSPM Status Indication
+ {
+ Debug = "In _OST of PCI1"
+ While (One)
+ {
+ Name (_T_0, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_0 = ToInteger (Arg0)
+ If ((_T_0 == 0x0103))
+ {
+ Debug = "In _OST, Ejection Processing"
+ While (One)
+ {
+ Name (_T_1, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_1 = ToInteger (Arg1)
+ If ((_T_1 == Zero))
+ {
+ Debug = "In PCI1 _OST, Ejection Success"
+ Notify (\_SB.PCI1, 0x03) // Eject Request
+ }
+ ElseIf ((Match (Package (0x04)
+ {
+ 0x80,
+ 0x81,
+ 0x82,
+ 0x83
+ }, MEQ, _T_1, MTR, 0x00, 0x00) != Ones))
+ {
+ Debug = "In PCI1 _OST, Ejection Failure"
+ }
+ ElseIf ((_T_1 == 0x84))
+ {
+ Debug = "In PCI1 _OST, Ejection Pending"
+ }
+
+ Break
+ }
+ }
+ ElseIf ((_T_0 == 0x0200))
+ {
+ Debug = "In PCI1 _OST, Insertion Processing"
+ While (One)
+ {
+ Name (_T_2, 0x00) // _T_x: Emitted by ASL Compiler, x=0-9, A-Z
+ _T_2 = ToInteger (Arg1)
+ If ((_T_2 == Zero))
+ {
+ Debug = "In PCI1 _OST, Insertion Success"
+ Notify (\_SB.PCI1, Zero) // Bus Check
+ }
+
+ Break
+ }
+ }
+
+ Break
+ }
+ }
+
+ Method (_CBA, 0, NotSerialized) // _CBA: Configuration Base Address
+ {
+ Return (0x0000000600000000)
+ }
+
Method (_PSC, 0, NotSerialized) // _PSC: Power State Current
{
Return (Zero)
@@ -15248,13 +15678,27 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
Name (RBUF, ResourceTemplate ()
{
Memory32Fixed (ReadWrite,
- 0x40300000, // Address Base
- 0x01D00000, // Address Length
+ 0x40000000, // Address Base
+ 0x02000000, // Address Length
)
+ QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite,
+ 0x0000000000000000, // Granularity
+ 0x0000000610000000, // Range Minimum
+ 0x000000061FFFFFFF, // Range Maximum
+ 0x0000000000000000, // Translation Offset
+ 0x0000000010000000, // Length
+ ,, , AddressRangeMemory, TypeStatic)
+ QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Prefetchable, ReadWrite,
+ 0x0000000000000000, // Granularity
+ 0x0000000620000000, // Range Minimum
+ 0x000000063FFFFFFF, // Range Maximum
+ 0x0000000000000000, // Translation Offset
+ 0x0000000020000000, // Length
+ ,, , AddressRangeMemory, TypeStatic)
WordBusNumber (ResourceProducer, MinFixed, MaxFixed, PosDecode,
0x0000, // Granularity
0x0000, // Range Minimum
- 0x0001, // Range Maximum
+ 0x00FF, // Range Maximum
0x0000, // Translation Offset
0x0002, // Length
,, )
@@ -15468,7 +15912,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
\_SB.R1RR
})
Name (_S0W, 0x04) // _S0W: S0 Device Wake State
- Name (_DSD, Package (0x02) // _DSD: Device-Specific Data
+ Name (_DSD, Package (0x06) // _DSD: Device-Specific Data
{
ToUUID ("6211e2c0-58a3-4af3-90e1-927a4e0c55a4") /* Unknown UUID */,
Package (0x01)
@@ -15478,8 +15922,44 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
"HotPlugSupportInD3",
One
}
+ },
+
+ ToUUID ("efcc06cc-73ac-4bc3-bff0-76143807c389") /* Unknown UUID */,
+ Package (0x02)
+ {
+ Package (0x02)
+ {
+ "ExternalFacingPort",
+ One
+ },
+
+ Package (0x02)
+ {
+ "UID",
+ One
+ }
+ },
+
+ ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301") /* Device Properties for _DSD */,
+ Package (0x02)
+ {
+ Package (0x02)
+ {
+ "usb4-host-interface",
+ \_SB.UBF0.PRT1
+ },
+
+ Package (0x02)
+ {
+ "usb4-port-number",
+ One
+ }
}
})
+ Method (_DSW, 3, NotSerialized) // _DSW: Device Sleep Wake
+ {
+ }
+
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Name (RBUF, ResourceTemplate ()
@@ -19683,8 +20163,8 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
OperationRegion (XPCA, SystemMemory, 0xE3401000, 0x90)
Field (XPCA, AnyAcc, NoLock, Preserve)
{
- CBTC, 32,
- BTC0, 32,
+ CBOC, 32,
+ BOC0, 32,
S3R0, 8,
F1R0, 8,
RTR0, 16,
@@ -19693,7 +20173,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
VBT0, 32,
TBT0, 32,
OCV0, 32,
- BTC1, 32,
+ BOC1, 32,
S3R1, 8,
F1R1, 8,
RTR1, 16,
@@ -19702,7 +20182,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
VBT1, 32,
TBT1, 32,
OCV1, 32,
- BTC2, 32,
+ BOC2, 32,
S3R2, 8,
F1R2, 8,
RTR2, 16,
@@ -19711,7 +20191,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
VBT2, 32,
TBT2, 32,
OCV2, 32,
- BTC3, 32,
+ BOC3, 32,
S3R3, 8,
F1R3, 8,
RTR3, 16,
@@ -19720,7 +20200,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
VBT3, 32,
TBT3, 32,
OCV3, 32,
- BTC4, 32,
+ BOC4, 32,
S3R4, 8,
F1R4, 8,
RTR4, 16,
@@ -19784,24 +20264,173 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
}
- Name (_PLD, Package (0x0C) // _PLD: Physical Location of Device
+ Device (TPXY)
{
- Package (One)
+ Name (_HID, "MSFTTPXY") // _HID: Hardware ID
+ Alias (\_SB.PSUB, _SUB)
+ Name (_UID, Zero) // _UID: Unique ID
+ Name (_DEP, Package (0x03) // _DEP: Dependencies
{
- Buffer (0x14)
- {
- /* 0000 */ 0x02, 0x00, 0x00, 0x00, 0x84, 0x03, 0xF0, 0x05, // ........
- /* 0008 */ 0x21, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, // !.......
- /* 0010 */ 0x00, 0x00, 0x00, 0x00 // ....
- }
- },
+ \_SB.SEN2,
+ \_SB.SEN3,
+ \_SB.PMBM
+ })
+ Device (\_SB.TPXY.ANG0)
+ {
+ Name (_ADR, Zero) // _ADR: Address
+ }
- Package (One)
+ Device (\_SB.TPXY.RSC0)
{
- Buffer (0x14)
- {
- /* 0000 */ 0x02, 0x00, 0x00, 0x00, 0x84, 0x03, 0xF0, 0x05, // ........
- /* 0008 */ 0x29, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, // ).......
+ Name (_ADR, One) // _ADR: Address
+ }
+
+ Device (\_SB.TPXY.VTS0)
+ {
+ Name (_ADR, 0x02) // _ADR: Address
+ }
+
+ Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
+ {
+ GpioInt (Edge, ActiveBoth, Shared, PullNone, 0x01F4,
+ "\\_SB.GIO0", 0x00, ResourceConsumer, ,
+ )
+ { // Pin list
+ 0x0026
+ }
+ GpioIo (Shared, PullNone, 0x01F4, 0x0000, IoRestrictionInputOnly,
+ "\\_SB.GIO0", 0x00, ResourceConsumer, ,
+ )
+ { // Pin list
+ 0x0026
+ }
+ GpioIo (Shared, PullNone, 0x01F4, 0x0000, IoRestrictionInputOnly,
+ "\\_SB.GIO0", 0x00, ResourceConsumer, ,
+ )
+ { // Pin list
+ 0x0050
+ }
+ })
+ Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
+ {
+ If ((Arg0 == ToUUID ("60e802c9-29f4-479a-bd42-fa5cacc0a385") /* Unknown UUID */))
+ {
+ If ((Arg2 == Zero))
+ {
+ If ((Arg1 == Zero))
+ {
+ Return (Buffer (One)
+ {
+ 0x1F // .
+ })
+ }
+ }
+
+ If ((Arg2 == One))
+ {
+ If ((Arg1 == Zero))
+ {
+ Name (PBUF, Package (0x2D)
+ {
+ "TXY0",
+ Zero,
+ Zero,
+ "BAT0",
+ One,
+ One,
+ "VTS0",
+ 0x02,
+ 0x02
+ })
+ Return (PBUF) /* \_SB_.TPXY._DSM.PBUF */
+ }
+ }
+
+ If ((Arg2 == 0x02))
+ {
+ If ((Arg1 == Zero))
+ {
+ Name (CBUF, Package (One)
+ {
+ 0x03
+ })
+ Return (CBUF) /* \_SB_.TPXY._DSM.CBUF */
+ }
+ }
+
+ If ((Arg2 == 0x03))
+ {
+ If ((Arg1 == Zero))
+ {
+ Name (VBUF, Package (0x0E)
+ {
+ 0x0BF7,
+ 0x1F,
+ 0x1E,
+ 0x2A,
+ Zero,
+ Zero,
+ Zero,
+ Zero,
+ Zero,
+ Zero,
+ Zero,
+ 0x03,
+ 0x03,
+ 0x03
+ })
+ Return (VBUF) /* \_SB_.TPXY._DSM.VBUF */
+ }
+ }
+
+ If ((Arg2 == 0x04))
+ {
+ If ((Arg1 == Zero))
+ {
+ Name (RBUF, Package (0x04)
+ {
+ 0x32,
+ One,
+ 0x19,
+ 0x0A
+ })
+ Return (RBUF) /* \_SB_.TPXY._DSM.RBUF */
+ }
+ }
+
+ Return (Buffer (One)
+ {
+ 0x00 // .
+ })
+ }
+ Else
+ {
+ Return (Buffer (One)
+ {
+ 0x00 // .
+ })
+ }
+ }
+ }
+
+ Name (_PLD, Package (0x0C) // _PLD: Physical Location of Device
+ {
+ Package (One)
+ {
+ Buffer (0x14)
+ {
+ /* 0000 */ 0x02, 0x00, 0x00, 0x00, 0x84, 0x03, 0xF0, 0x05, // ........
+ /* 0008 */ 0x21, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, // !.......
+ /* 0010 */ 0x00, 0x00, 0x00, 0x00 // ....
+ }
+ },
+
+ Package (One)
+ {
+ Buffer (0x14)
+ {
+ /* 0000 */ 0x02, 0x00, 0x00, 0x00, 0x84, 0x03, 0xF0, 0x05, // ........
+ /* 0008 */ 0x29, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, // ).......
/* 0010 */ 0x00, 0x00, 0x00, 0x00 // ....
}
},
@@ -20299,6 +20928,54 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
}
+ Device (EVA0)
+ {
+ Name (_DEP, Package (0x06) // _DEP: Dependencies
+ {
+ \_SB.IMM0,
+ \_SB.MMU0,
+ \_SB.PEP0,
+ \_SB.PILC,
+ \_SB.TREE,
+ \_SB.PMIC
+ })
+ Name (_HID, "QCOM0CF1") // _HID: Hardware ID
+ Name (_UID, 0x1E) // _UID: Unique ID
+ Alias (\_SB.PSUB, _SUB)
+ Method (_STA, 0, NotSerialized) // _STA: Status
+ {
+ Return (0x0F)
+ }
+
+ Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
+ {
+ Name (RBUF, ResourceTemplate ()
+ {
+ Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
+ {
+ 0x0000010A,
+ }
+ Memory32Fixed (ReadWrite,
+ 0x0AB00000, // Address Base
+ 0x00100000, // Address Length
+ )
+ Memory32Fixed (ReadWrite,
+ 0x000B0088, // Address Base
+ 0x00000000, // Address Length
+ )
+ Memory32Fixed (ReadWrite,
+ 0x00400000, // Address Base
+ 0x00100000, // Address Length
+ )
+ Memory32Fixed (ReadWrite,
+ 0x00110000, // Address Base
+ 0x00040000, // Address Length
+ )
+ })
+ Return (RBUF) /* \_SB_.EVA0._CRS.RBUF */
+ }
+ }
+
Device (SEN2)
{
Name (_DEP, Package (0x03) // _DEP: Dependencies
@@ -20402,6 +21079,380 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
})
}
+ Scope (\_SB)
+ {
+ ThermalZone (ATP0)
+ {
+ Name (_TSN, "\\_SB.TPXY.ANG0") // _TSN: Thermal Sensor Device
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.ANG0
+ })
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.PBM2
+ })
+ Name (_TC1, 0x0A) // _TC1: Thermal Constant 1
+ Name (_TC2, Zero) // _TC2: Thermal Constant 2
+ Name (_TSP, 0x0258) // _TSP: Thermal Sampling Period
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0BD6)
+ }
+ }
+ }
+
+ ThermalZone (BTP0)
+ {
+ Name (_TSN, "\\_SB.TPXY.RSC0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x64) // _UID: Unique ID
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.RSC0
+ })
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.PEP0
+ })
+ Name (_TC1, 0x0A) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x02) // _TC2: Thermal Constant 2
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_TSP, 0x32) // _TSP: Thermal Sampling Period
+ Name (_MTL, 0x19) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0DCB)
+ }
+ }
+
+ ThermalZone (BTG0)
+ {
+ Name (_TSN, "\\_SB.TPXY.RSC0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x65) // _UID: Unique ID
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.RSC0
+ })
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.GPU0
+ })
+ Name (_TC1, 0x0A) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x02) // _TC2: Thermal Constant 2
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_TSP, 0x32) // _TSP: Thermal Sampling Period
+ Name (_MTL, 0x1E) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0DFD)
+ }
+ }
+
+ ThermalZone (BTU0)
+ {
+ Name (_TSN, "\\_SB.TPXY.RSC0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x66) // _UID: Unique ID
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.RSC0
+ })
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.UCS0
+ })
+ Name (_TC1, 0x0A) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x02) // _TC2: Thermal Constant 2
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_TSP, 0x32) // _TSP: Thermal Sampling Period
+ Name (_MTL, 0x0F) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0DCB)
+ }
+ }
+
+ ThermalZone (BTU1)
+ {
+ Name (_TSN, "\\_SB.TPXY.RSC0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x67) // _UID: Unique ID
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.RSC0
+ })
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.UCS0
+ })
+ Name (_TC1, 0x0A) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x02) // _TC2: Thermal Constant 2
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_TSP, 0x32) // _TSP: Thermal Sampling Period
+ Name (_MTL, 0x05) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0E2F)
+ }
+ }
+
+ ThermalZone (BTC0)
+ {
+ Name (_TSN, "\\_SB.TPXY.RSC0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x68) // _UID: Unique ID
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.RSC0
+ })
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.GPU0.AVS0
+ })
+ Name (_TC1, 0x0A) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x02) // _TC2: Thermal Constant 2
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_TSP, 0x32) // _TSP: Thermal Sampling Period
+ Name (_MTL, 0x0F) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0DCB)
+ }
+ }
+
+ ThermalZone (BTC1)
+ {
+ Name (_TSN, "\\_SB.TPXY.RSC0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x69) // _UID: Unique ID
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.RSC0
+ })
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.GPU0.AVS0
+ })
+ Name (_TC1, 0x0A) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x02) // _TC2: Thermal Constant 2
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_TSP, 0x32) // _TSP: Thermal Sampling Period
+ Name (_MTL, 0x05) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0E2F)
+ }
+ }
+
+ ThermalZone (BTD0)
+ {
+ Name (_TSN, "\\_SB.TPXY.RSC0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x6A) // _UID: Unique ID
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.RSC0
+ })
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.DISP
+ })
+ Name (_TC1, 0x0A) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x02) // _TC2: Thermal Constant 2
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_TSP, 0x32) // _TSP: Thermal Sampling Period
+ Name (_MTL, 0x0F) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0D67)
+ }
+ }
+
+ ThermalZone (BTD1)
+ {
+ Name (_TSN, "\\_SB.TPXY.RSC0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x6B) // _UID: Unique ID
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.RSC0
+ })
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.DISP
+ })
+ Name (_TC1, 0x0A) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x02) // _TC2: Thermal Constant 2
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_TSP, 0x32) // _TSP: Thermal Sampling Period
+ Name (_MTL, 0x05) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0E2F)
+ }
+ }
+
+ ThermalZone (VMX5)
+ {
+ Name (_TSN, "\\_SB.TPXY.VTS0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x4A) // _UID: Unique ID
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.PEP0
+ })
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.VTS0
+ })
+ Name (_TC1, 0x0A) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x02) // _TC2: Thermal Constant 2
+ Name (_TSP, 0x32) // _TSP: Thermal Sampling Period
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_MTL, 0x19) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0C8B)
+ }
+ }
+
+ ThermalZone (VMX6)
+ {
+ Name (_TSN, "\\_SB.TPXY.VTS0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x4B) // _UID: Unique ID
+ Name (_TZD, Package (0x04) // _TZD: Thermal Zone Devices
+ {
+ \_SB.SYSM.CLUS.CPU4,
+ \_SB.SYSM.CLUS.CPU5,
+ \_SB.SYSM.CLUS.CPU6,
+ \_SB.SYSM.CLUS.CPU7
+ })
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.VTS0
+ })
+ Name (_TC1, 0x05) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x03) // _TC2: Thermal Constant 2
+ Name (_TSP, 0x1E) // _TSP: Thermal Sampling Period
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_MTL, One) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0C6D)
+ }
+ }
+
+ ThermalZone (VMX7)
+ {
+ Name (_TSN, "\\_SB.TPXY.VTS0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x4C) // _UID: Unique ID
+ Name (_TZD, Package (0x04) // _TZD: Thermal Zone Devices
+ {
+ \_SB.SYSM.CLUS.CPU0,
+ \_SB.SYSM.CLUS.CPU1,
+ \_SB.SYSM.CLUS.CPU2,
+ \_SB.SYSM.CLUS.CPU3
+ })
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.VTS0
+ })
+ Name (_TC1, 0x05) // _TC1: Thermal Constant 1
+ Name (_TC2, One) // _TC2: Thermal Constant 2
+ Name (_TSP, 0x1E) // _TSP: Thermal Sampling Period
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_MTL, 0x1E) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0C81)
+ }
+ }
+
+ ThermalZone (VMX8)
+ {
+ Name (_TSN, "\\_SB.TPXY.VTS0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x4D) // _UID: Unique ID
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.GPU0
+ })
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.VTS0
+ })
+ Name (_TC1, 0x05) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x02) // _TC2: Thermal Constant 2
+ Name (_TSP, 0x1E) // _TSP: Thermal Sampling Period
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_MTL, 0x1E) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0C77)
+ }
+ }
+
+ ThermalZone (VMX9)
+ {
+ Name (_TSN, "\\_SB.TPXY.VTS0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x4E) // _UID: Unique ID
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.PMBM
+ })
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.VTS0
+ })
+ Name (_TC1, 0x14) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x05) // _TC2: Thermal Constant 2
+ Name (_TSP, 0x012C) // _TSP: Thermal Sampling Period
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_MTL, 0x05) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0C63)
+ }
+ }
+
+ ThermalZone (WTU1)
+ {
+ Name (_TSN, "\\_SB.TPXY.RSC0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x6E) // _UID: Unique ID
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.RSC0
+ })
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.WLCN
+ })
+ Name (_TC1, 0x0A) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x02) // _TC2: Thermal Constant 2
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_TSP, 0x32) // _TSP: Thermal Sampling Period
+ Name (_MTL, 0x19) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0D67)
+ }
+ }
+
+ ThermalZone (WTU0)
+ {
+ Name (_TSN, "\\_SB.TPXY.RSC0") // _TSN: Thermal Sensor Device
+ Name (_UID, 0x6F) // _UID: Unique ID
+ Name (_DEP, Package (One) // _DEP: Dependencies
+ {
+ \_SB.TPXY.RSC0
+ })
+ Name (_TZD, Package (0x01) // _TZD: Thermal Zone Devices
+ {
+ \_SB.WLCN
+ })
+ Name (_TC1, 0x0A) // _TC1: Thermal Constant 1
+ Name (_TC2, 0x02) // _TC2: Thermal Constant 2
+ Name (_TZP, Zero) // _TZP: Thermal Zone Polling
+ Name (_TSP, 0x32) // _TSP: Thermal Sampling Period
+ Name (_MTL, 0x05) // _MTL: Minimum Throttle Limit
+ Method (_PSV, 0, NotSerialized) // _PSV: Passive Temperature
+ {
+ Return (0x0E2F)
+ }
+ }
+
Device (PA00)
{
Name (_HID, "MAX34417") // _HID: Hardware ID
@@ -21232,9 +22283,20 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
})
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
- Name (RBF1, Buffer (0x02)
+ Name (RBF1, ResourceTemplate ()
{
- 0x79, 0x00 // y.
+ GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionNone,
+ "\\_SB.GIO0", 0x00, ResourceConsumer, ,
+ )
+ { // Pin list
+ 0x0032
+ }
+ GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionNone,
+ "\\_SB.GIO0", 0x00, ResourceConsumer, ,
+ )
+ { // Pin list
+ 0x0033
+ }
})
Return (RBF1) /* \_SB_.DISP._CRS.RBF1 */
}
@@ -21287,6 +22349,70 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
}
}
+ Device (WLCN)
+ {
+ Name (_UID, Zero) // _UID: Unique ID
+ Name (_HID, "MSHW0163") // _HID: Hardware ID
+ Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
+ {
+ Name (RBUF, ResourceTemplate ()
+ {
+ GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionOutputOnly,
+ "\\_SB.GIO0", 0x00, ResourceConsumer, ,
+ )
+ { // Pin list
+ 0x0027
+ }
+ })
+ Return (RBUF) /* \_SB_.WLCN._CRS.RBUF */
+ }
+
+ Name (PGID, Buffer (0x0A)
+ {
+ "\\_SB.WLCN"
+ })
+ Name (DBUF, Buffer (DBFL){})
+ CreateByteField (DBUF, Zero, STAT)
+ CreateByteField (DBUF, 0x02, DVAL)
+ CreateField (DBUF, 0x18, 0xA0, DEID)
+ Method (_S1D, 0, NotSerialized) // _S1D: S1 Device State
+ {
+ Return (0x03)
+ }
+
+ Method (_S2D, 0, NotSerialized) // _S2D: S2 Device State
+ {
+ Return (0x03)
+ }
+
+ Method (_S3D, 0, NotSerialized) // _S3D: S3 Device State
+ {
+ Return (0x03)
+ }
+
+ Method (_PS0, 0, NotSerialized) // _PS0: Power State 0
+ {
+ DEID = Buffer (ESNL){}
+ DVAL = Zero
+ DEID = PGID /* \_SB_.WLCN.PGID */
+ If (\_SB.ABD.AVBL)
+ {
+ \_SB.PEP0.FLD0 = DBUF /* \_SB_.WLCN.DBUF */
+ }
+ }
+
+ Method (_PS3, 0, NotSerialized) // _PS3: Power State 3
+ {
+ DEID = Buffer (ESNL){}
+ DVAL = 0x03
+ DEID = PGID /* \_SB_.WLCN.PGID */
+ If (\_SB.ABD.AVBL)
+ {
+ \_SB.PEP0.FLD0 = DBUF /* \_SB_.WLCN.DBUF */
+ }
+ }
+ }
+
Name (HPDB, Zero)
Name (HPDS, Buffer (One)
{
@@ -25262,7 +26388,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
ThermalZone (TZ6)
{
- Name (_HID, "QCOM1AB7") // _HID: Hardware ID
+ Name (_HID, "QCOM1A47") // _HID: Hardware ID
Name (_UID, Zero) // _UID: Unique ID
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies
{
@@ -25338,7 +26464,7 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8350 ", 0x00000003)
ThermalZone (TZ10)
{
- Name (_HID, "QCOM1AB6") // _HID: Hardware ID
+ Name (_HID, "QCOM1A46") // _HID: Hardware ID
Name (_UID, Zero) // _UID: Unique ID
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies
{