1 /**************************************************************************;
4 ;* Intel Corporation - ACPI Reference Code for the Baytrail *;
5 ;* Family of Customer Reference Boards. *;
8 ;* Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved *;
10 ; SPDX-License-Identifier: BSD-2-Clause-Patent
14 ;**************************************************************************/
24 External(RTD3) //flag if RTD3 is enabled
30 Name(OSCI, 0) // \_SB._OSC DWORD2 input
31 Name(OSCO, 0) // \_SB._OSC DWORD2 output
33 //Arg0 -- A buffer containing UUID
34 //Arg1 -- An Interger containing a Revision ID of the buffer format
35 //Arg2 -- An interger containing a count of entries in Arg3
36 //Arg3 -- A buffer containing a list of DWORD capacities
37 Method(_OSC, 4, NotSerialized)
39 // Check for proper UUID
40 If(LEqual(Arg0, ToUUID("0811B06E-4A27-44F9-8D60-3CBBC22E7B48")))
42 CreateDWordField(Arg3,0,CDW1) //bit1,2 is always clear
43 CreateDWordField(Arg3,4,CDW2) //Table 6-147 from ACPI spec
45 Store(CDW2, OSCI) // Save DWord2
46 Or(OSCI, 0x4, OSCO) // Only allow _PR3 support
48 If(LNotEqual(Arg1,One))
50 Or(CDW1,0x08,CDW1) // Unknown revision
53 If(LNotEqual(OSCI, OSCO))
55 Or(CDW1,0x10,CDW1) // Capabilities bits were masked
58 Store(OSCO, CDW2) // Replace DWord2
62 Or(CDW1,4,CDW1) // Unrecognized UUID
67 }//end of RTD3 condition
73 Scope(\_SB.PCI0.EHC1.HUBN.PR01.PR13)
75 Name(_PR0, Package() {\PR34})
76 Name(_PR3, Package() {\PR34})
80 If(And(\_SB.OSCO, 0x04)) // PMEs can be genrated from D3cold
82 Return(4) // OS comprehends D3cold, as described via \_SB._OSC
90 Scope(\_SB.PCI0.EHC1.HUBN.PR01.PR14)
92 Name(_PR0, Package() {\PR34})
93 Name(_PR3, Package() {\PR34})
97 If(And(\_SB.OSCO, 0x04))
108 Scope(\_SB.PCI0.EHC1.HUBN.PR01.PR15)
110 Name(_PR0, Package() {\PR56})
111 Name(_PR3, Package() {\PR56})
115 If(And(\_SB.OSCO, 0x04))
125 Scope(\_SB.PCI0.EHC1.HUBN.PR01.PR16)
127 Name(_PR0, Package() {\PR56})
128 Name(_PR3, Package() {\PR56})
132 If(And(\_SB.OSCO, 0x04))
142 Scope(\_SB.PCI0.XHC1) // XHCI host only controller
145 Method(_PS0,0,Serialized) // set device into D0 state
149 Method(_PS3,0,Serialized) // place device into D3H state
154 Method(_DSW, 3,Serialized) // enable or disable the device’s ability to wake a sleeping system.
159 Scope(\_SB.PCI0.XHC1.RHUB.HS01)
164 Scope(\_SB.PCI0.XHC1.RHUB.SSP1)
169 Scope(\_SB.PCI0.XHC2) // OTG
172 Method(_PS0,0,Serialized) // set device into D0 state
176 Method(_PS3,0,Serialized) // place device into D3H state
181 Method(_DSW, 3,Serialized) // enable or disable the device’s ability to wake a sleeping system.
186 Scope(\_SB.PCI0.XHC2.RHUB.HS01)
191 Scope(\_SB.PCI0.XHC2.RHUB.SSP1)
195 } //If(LEqual(RTD3,1)) USB