Remove the extra TCS0 device
authorAntonio Ospite <ao2@ao2.it>
Wed, 18 Feb 2015 09:58:32 +0000 (10:58 +0100)
committerAntonio Ospite <ao2@ao2.it>
Thu, 16 Apr 2015 12:56:24 +0000 (14:56 +0200)
There are two TCS0 devices, only leave the one with the correct I2C bus.

dsdt.dsl

index 6d7686c..7815736 100644 (file)
--- a/dsdt.dsl
+++ b/dsdt.dsl
@@ -11322,154 +11322,6 @@ DefinitionBlock ("dsdt.aml", "DSDT", 2, "ALASKA", "A M I ", 0x00000003)
                     Return (Zero)
                 }
             }
-
-            Device (TCS0)
-            {
-                Name (_ADR, Zero)  // _ADR: Address
-                Name (_HID, "GODX0911")  // _HID: Hardware ID
-                Name (_CID, "PNP0C50" /* HID Protocol Device (I2C bus) */)  // _CID: Compatible ID
-                Name (_S0W, Zero)  // _S0W: S0 Device Wake State
-                Name (_DEP, Package (0x02)  // _DEP: Dependencies
-                {
-                    GPO1, 
-                    I2C5
-                })
-                Method (_PS3, 0, Serialized)  // _PS3: Power State 3
-                {
-                    If ((^^^I2C5.PMIC.AVBG == One)) {}
-                }
-
-                Method (_PS0, 0, Serialized)  // _PS0: Power State 0
-                {
-                    If ((^^^GPO1.AVBL == One))
-                    {
-                        ^^^GPO1.TCD3 = Zero
-                    }
-
-                    Sleep (0x05)
-                    If ((^^^I2C5.PMIC.AVBG == One)) {}
-                    Sleep (0x1E)
-                    If ((^^^GPO1.AVBL == One))
-                    {
-                        ^^^GPO1.TCD3 = One
-                    }
-
-                    Sleep (0x78)
-                }
-
-                Method (_CRS, 0, Serialized)  // _CRS: Current Resource Settings
-                {
-                    Name (RBUF, ResourceTemplate ()
-                    {
-                        I2cSerialBus (0x0014, ControllerInitiated, 0x0019F0A0,
-                            AddressingMode7Bit, "\\_SB.I2C2",
-                            0x00, ResourceConsumer, ,
-                            )
-                        GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionInputOnly,
-                            "\\_SB.GPO2", 0x00, ResourceConsumer, ,
-                            )
-                            {   // Pin list
-                                0x0044
-                            }
-                    })
-                    Name (ABUF, ResourceTemplate ()
-                    {
-                        I2cSerialBus (0x0014, ControllerInitiated, 0x0019F0A0,
-                            AddressingMode7Bit, "\\_SB.I2C2",
-                            0x00, ResourceConsumer, ,
-                            )
-                        GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionInputOnly,
-                            "\\_SB.GPO2", 0x00, ResourceConsumer, ,
-                            )
-                            {   // Pin list
-                                0x0044
-                            }
-                        GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly,
-                            "\\_SB.GPO1", 0x00, ResourceConsumer, ,
-                            )
-                            {   // Pin list
-                                0x001A
-                            }
-                    })
-                    If ((OSSL && 0x80))
-                    {
-                        Return (ABUF) /* \_SB_.I2C2.TCS0._CRS.ABUF */
-                    }
-                    Else
-                    {
-                        Return (RBUF) /* \_SB_.I2C2.TCS0._CRS.RBUF */
-                    }
-                }
-
-                Method (_DSM, 4, Serialized)  // _DSM: Device-Specific Method
-                {
-                    Name (T_1, Zero)  // _T_x: Emitted by ASL Compiler
-                    Name (T_0, Zero)  // _T_x: Emitted by ASL Compiler
-                    Debug = "Method _DSM begin"
-                    If ((Arg0 == ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de") /* HID I2C Device */))
-                    {
-                        While (One)
-                        {
-                            T_0 = ToInteger (Arg2)
-                            If ((T_0 == Zero))
-                            {
-                                While (One)
-                                {
-                                    T_1 = ToInteger (Arg1)
-                                    If ((T_1 == One))
-                                    {
-                                        Debug = "Method _DSM Function Query"
-                                        Return (Buffer (One)
-                                        {
-                                             0x03                                             /* . */
-                                        })
-                                    }
-                                    Else
-                                    {
-                                        Return (Buffer (One)
-                                        {
-                                             0x00                                             /* . */
-                                        })
-                                    }
-
-                                    Break
-                                }
-                            }
-                            Else
-                            {
-                                If ((T_0 == One))
-                                {
-                                    Debug = "Method _DSM Function HID"
-                                    Return (Zero)
-                                }
-                                Else
-                                {
-                                    Return (Zero)
-                                }
-                            }
-
-                            Break
-                        }
-                    }
-                    Else
-                    {
-                        Return (Buffer (One)
-                        {
-                             0x00                                             /* . */
-                        })
-                    }
-                }
-
-                Method (_STA, 0, NotSerialized)  // _STA: Status
-                {
-                    If ((OSSL == 0x83))
-                    {
-                        Return (0x0F)
-                    }
-
-                    Return (Zero)
-                }
-            }
         }
 
         Device (I2C3)