Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gus33000 committed Jul 29, 2024
1 parent 90e7a89 commit e6b8798
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
Binary file modified 8150/builtin/DSDT.aml
Binary file not shown.
5 changes: 3 additions & 2 deletions 8150/shared-src/8150_AND/surface_lid.asl
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
// SPDX-License-Identifier: MIT
//

// Device declaration for Hall Effect Sensor
//
// LID Hall Effect Sensor
//
Device (LID0)
{
Name (_HID, EisaId ("PNP0C0D"))
Name (_UID, 0)
Name (_STA, 0)

Method (_DEP, 0, NotSerialized)
{
Expand Down
1 change: 1 addition & 0 deletions 8150/shared-src/8150_AND/surface_thermal_proxy.asl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions 8150/src/DSDT.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -70683,9 +70683,15 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
0x0079
}
})
Name (FLAG, Zero)
Method (_E79, 0, Serialized) // _Exx: Edge-Triggered GPE, xx=0x00-0xFF
{
Notify (\_SB.LID0, 0x80) // Status Change
If ((FLAG == One))
{
Notify (\_SB.LID0, 0x80) // Status Change
}

FLAG = One
}
}

Expand Down Expand Up @@ -73747,7 +73753,6 @@ DefinitionBlock ("", "DSDT", 2, "QCOMM ", "SDM8150 ", 0x00000003)
{
Name (_HID, EisaId ("PNP0C0D") /* Lid Device */) // _HID: Hardware ID
Name (_UID, Zero) // _UID: Unique ID
Name (_STA, Zero) // _STA: Status
Method (_DEP, 0, NotSerialized) // _DEP: Dependencies
{
Return (Package (0x01)
Expand Down

0 comments on commit e6b8798

Please sign in to comment.