From be57d39f8b806db7509923e5fc9c83120799656d Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 18 Feb 2015 11:20:09 +0100 Subject: [PATCH] Remove extra sensor definitions Teclast X98 Air 3G does not have ambient light sensors, magnetometers or gyroscopes. --- dsdt.dsl | 302 --------------------------------------------------------------- 1 file changed, 302 deletions(-) diff --git a/dsdt.dsl b/dsdt.dsl index dd45412..e9c8f8b 100644 --- a/dsdt.dsl +++ b/dsdt.dsl @@ -11391,199 +11391,6 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) PSAT, 32 } - Device (STAC) - { - Name (_ADR, Zero) // _ADR: Address - Name (_HID, "STAC0303") // _HID: Hardware ID - Name (_CID, "INTACCL") // _CID: Compatible ID - Name (_UID, One) // _UID: Unique ID - Method (_STA, 0, NotSerialized) // _STA: Status - { - If ((OSSL & 0x80)) - { - If ((ACCS == 0x02)) - { - Return (0x0F) - } - - Return (Zero) - } - Else - { - Return (Zero) - } - } - - Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings - { - Name (RBUF, ResourceTemplate () - { - I2cSerialBus (0x0019, ControllerInitiated, 0x00061A80, - AddressingMode7Bit, "\\_SB.I2C3", - 0x00, ResourceConsumer, , - ) - }) - Return (RBUF) /* \_SB_.I2C3.STAC._CRS.RBUF */ - } - } - - Device (STMA) - { - Name (_ADR, Zero) // _ADR: Address - Name (_HID, "STMA0303") // _HID: Hardware ID - Name (_CID, "INTMAGN") // _CID: Compatible ID - Name (_UID, One) // _UID: Unique ID - Method (_STA, 0, NotSerialized) // _STA: Status - { - If ((OSSL & 0x80)) - { - If ((ACCS == 0x02)) - { - Return (0x0F) - } - - Return (Zero) - } - Else - { - Return (Zero) - } - } - - Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings - { - Name (RBUF, ResourceTemplate () - { - I2cSerialBus (0x001E, ControllerInitiated, 0x00061A80, - AddressingMode7Bit, "\\_SB.I2C3", - 0x00, ResourceConsumer, , - ) - GpioInt (Level, ActiveHigh, Exclusive, PullDown, 0x0000, - "\\_SB.GPO0", 0x00, ResourceConsumer, , - ) - { // Pin list - 0x005F - } - GpioInt (Level, ActiveHigh, Exclusive, PullDown, 0x0000, - "\\_SB.GPO0", 0x00, ResourceConsumer, , - ) - { // Pin list - 0x003A - } - }) - Return (RBUF) /* \_SB_.I2C3.STMA._CRS.RBUF */ - } - } - - Device (STGY) - { - Name (_ADR, Zero) // _ADR: Address - Name (_HID, "STGY0320") // _HID: Hardware ID - Name (_CID, "INTGYRO") // _CID: Compatible ID - Name (_UID, One) // _UID: Unique ID - Method (_STA, 0, NotSerialized) // _STA: Status - { - If ((OSSL & 0x80)) - { - If ((GYRS == 0x02)) - { - Return (0x0F) - } - - Return (Zero) - } - Else - { - Return (Zero) - } - } - - Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings - { - Name (RBUF, ResourceTemplate () - { - I2cSerialBus (0x006B, ControllerInitiated, 0x00061A80, - AddressingMode7Bit, "\\_SB.I2C3", - 0x00, ResourceConsumer, , - ) - GpioInt (Level, ActiveHigh, Exclusive, PullDown, 0x0000, - "\\_SB.GPO0", 0x00, ResourceConsumer, , - ) - { // Pin list - 0x005E - } - }) - Return (RBUF) /* \_SB_.I2C3.STGY._CRS.RBUF */ - } - } - - Device (FUSI) - { - Name (_ADR, Zero) // _ADR: Address - Name (_HID, "FUSI0001") // _HID: Hardware ID - Name (_CID, "INTFUSI") // _CID: Compatible ID - Name (_UID, One) // _UID: Unique ID - Method (_STA, 0, NotSerialized) // _STA: Status - { - Return (Zero) - } - - Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings - { - Name (RBUF, ResourceTemplate () - { - GpioInt (Edge, ActiveHigh, Exclusive, PullDown, 0x0000, - "\\_SB.GPO2", 0x00, ResourceConsumer, , - ) - { // Pin list - 0x0017 - } - GpioInt (Edge, ActiveLow, Exclusive, PullDown, 0x0000, - "\\_SB.GPO2", 0x00, ResourceConsumer, , - ) - { // Pin list - 0x0006 - } - }) - Return (RBUF) /* \_SB_.I2C3.FUSI._CRS.RBUF */ - } - } - - Device (ALSW) - { - Name (_ADR, Zero) // _ADR: Address - Name (_HID, "JSA01212") // _HID: Hardware ID - Name (_CID, "INTLALS") // _CID: Compatible ID - Name (_UID, One) // _UID: Unique ID - Method (_STA, 0, NotSerialized) // _STA: Status - { - If ((OSSL & 0x80)) - { - Return (0x0F) - } - - Return (Zero) - } - - Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings - { - Name (RBUF, ResourceTemplate () - { - I2cSerialBus (0x0044, ControllerInitiated, 0x00061A80, - AddressingMode7Bit, "\\_SB.I2C3", - 0x00, ResourceConsumer, , - ) - GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionInputOnly, - "\\_SB.GPO2", 0x00, ResourceConsumer, , - ) - { // Pin list - 0x0006 - } - }) - Return (RBUF) /* \_SB_.I2C3.ALSW._CRS.RBUF */ - } - } - Device (SPBA) { Name (_ADR, Zero) // _ADR: Address @@ -11625,115 +11432,6 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003) Return (RBUF) /* \_SB_.I2C3.SPBA._CRS.RBUF */ } } - - Device (SPBM) - { - Name (_ADR, Zero) // _ADR: Address - Name (_HID, "CPAK8963") // _HID: Hardware ID - Name (_CID, "INTMAGN") // _CID: Compatible ID - Name (_UID, One) // _UID: Unique ID - Method (_STA, 0, NotSerialized) // _STA: Status - { - If ((OSSL & 0x80)) - { - If ((ACCS == One)) - { - Return (0x0F) - } - - Return (Zero) - } - Else - { - Return (Zero) - } - } - - Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings - { - Name (RBUF, ResourceTemplate () - { - I2cSerialBus (0x0013, ControllerInitiated, 0x00061A80, - AddressingMode7Bit, "\\_SB.I2C3", - 0x00, ResourceConsumer, , - ) - }) - Return (RBUF) /* \_SB_.I2C3.SPBM._CRS.RBUF */ - } - } - - Device (SPBG) - { - Name (_ADR, Zero) // _ADR: Address - Name (_HID, "BSBG0160") // _HID: Hardware ID - Name (_CID, "INTGYRO") // _CID: Compatible ID - Name (_UID, One) // _UID: Unique ID - Method (_STA, 0, NotSerialized) // _STA: Status - { - If ((OSSL & 0x80)) - { - If ((GYRS == One)) - { - Return (0x0F) - } - - Return (Zero) - } - Else - { - Return (Zero) - } - } - - Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings - { - Name (RBUF, ResourceTemplate () - { - I2cSerialBus (0x0068, ControllerInitiated, 0x00061A80, - AddressingMode7Bit, "\\_SB.I2C3", - 0x00, ResourceConsumer, , - ) - }) - Return (RBUF) /* \_SB_.I2C3.SPBG._CRS.RBUF */ - } - } - - Device (SAR1) - { - Name (_ADR, Zero) // _ADR: Address - Name (_HID, "SASX9500") // _HID: Hardware ID - Name (_CID, "INTSRCL") // _CID: Compatible ID - Name (_UID, One) // _UID: Unique ID - Method (_STA, 0, NotSerialized) // _STA: Status - { - If ((OSSL & 0x80)) - { - Return (0x0F) - } - - Return (Zero) - } - - Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings - { - Name (RBUF, ResourceTemplate () - { - GpioInt (Edge, ActiveBoth, Exclusive, PullDown, 0x0000, - "\\_SB.GPO2", 0x00, ResourceConsumer, , - ) - { // Pin list - 0x0013 - } - GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly, - "\\_SB.GPO1", 0x00, ResourceConsumer, , - ) - { // Pin list - 0x0014 - } - }) - Return (RBUF) /* \_SB_.I2C3.SAR1._CRS.RBUF */ - } - } } Device (MDM) -- 2.1.4