-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathssdt-csc3551.dsl
187 lines (175 loc) · 6.15 KB
/
ssdt-csc3551.dsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
DefinitionBlock ("", "SSDT", 1, "CUSTOM", "SPKRAMPS", 0x00000002)
{
External (_SB_.GPI0, DeviceObj)
External (_SB_.PC00.SPI1, DeviceObj)
Scope (\_SB.PC00.SPI1)
{
Device (SPK1)
{
Name (_HID, "CSC3551") // _HID: Hardware ID
Name (_SUB, "10431A63") // _SUB: Subsystem ID
Name (_UID, One) // _UID: Unique ID
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
{
Local0 = ResourceTemplate ()
{
SpiSerialBusV2 (0x0000, PolarityLow, FourWireMode, 0x08,
ControllerInitiated, 0x003D0900, ClockPolarityLow,
ClockPhaseFirst, "\\_SB.PC00.SPI1",
0x00, ResourceConsumer, , Exclusive,
)
SpiSerialBusV2 (0x0001, PolarityLow, FourWireMode, 0x08,
ControllerInitiated, 0x003D0900, ClockPolarityLow,
ClockPhaseFirst, "\\_SB.PC00.SPI1",
0x00, ResourceConsumer, , Exclusive,
)
GpioIo (Exclusive, PullUp, 0x0000, 0x0000, IoRestrictionOutputOnly,
"\\_SB.GPI0", 0x00, ResourceConsumer, ,
)
{ // Pin list
0x0048
}
GpioIo (Exclusive, PullDown, 0x0000, 0x0000, IoRestrictionOutputOnly,
"\\_SB.GPI0", 0x00, ResourceConsumer, ,
)
{ // Pin list
0x00D0
}
GpioIo (Exclusive, PullUp, 0x0000, 0x0000, IoRestrictionInputOnly,
"\\_SB.GPI0", 0x00, ResourceConsumer, ,
)
{ // Pin list
0x00CE
}
GpioIo (Shared, PullUp, 0x0064, 0x0000, IoRestrictionInputOnly,
"\\_SB.GPI0", 0x00, ResourceConsumer, ,
)
{ // Pin list
0x00CF
}
GpioInt (Edge, ActiveBoth, Shared, PullUp, 0x0064,
"\\_SB.GPI0", 0x00, ResourceConsumer, ,
)
{ // Pin list
0x00CF
}
}
Return (Local0) /* \_SB_.PC00.SPI1.SPK1._CRS.Local0 */
}
Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (0x0F)
}
Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
{
// Disable logic should go here, currently not implemented
Return (Zero)
}
Name (_DSD, Package (0x02) // _DSD: Device-Specific Data
{
ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301") /* Device Properties for _DSD */,
Package (0x07)
{
Package (0x02)
{
"cirrus,dev-index",
Package (0x02)
{
Zero,
One
}
},
Package (0x02)
{
"reset-gpios",
Package (0x08)
{
^SPK1,
One,
Zero,
Zero,
^SPK1,
One,
Zero,
Zero
}
},
Package (0x02)
{
"spk-id-gpios",
Package (0x08)
{
SPK1,
0x02,
Zero,
Zero,
SPK1,
0x02,
Zero,
Zero
}
},
Package (0x02)
{
"cirrus,speaker-position",
Package (0x02)
{
Zero,
One
}
},
Package (0x02)
{
"cirrus,boost-type",
Package (0x02)
{
One,
One
}
},
Package (0x02)
{
"cirrus,gpio1-func",
Package (0x02)
{
One,
One
}
},
Package (0x02)
{
"cirrus,gpio2-func",
Package (0x02)
{
0x02,
0x02
}
}
}
})
}
Name (_DSD, Package (0x02) // _DSD: Device-Specific Data
{
ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301") /* Device Properties for _DSD */,
Package (0x01)
{
Package (0x02)
{
"cs-gpios",
Package (0x05)
{
Zero,
SPK1,
Zero,
Zero,
Zero
}
}
}
})
Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (0x0F)
}
}
}