blob: 9aa1aba4f50ac50639d47cd74df639b4eda9d29d (
plain)
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
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
#define PCR_BIOS_BUFFEN 0x8080
Scope (\_SB)
{
/* MTL IOE CLK */
Device (ECLK) {
Name (_HID, EISAID ("PNP0C02"))
Name (_UID, "IOECLK")
Method (_STA)
{
/*
* Device is present, enabled and decoding its resources
* and should not be shown in UI
*/
Return (0x3)
}
/*
* PCIe(100MHz) clock disable
* Arg0 - clock index
*/
Method (CLKD, 1) {
\_SB.PCI0.ICRA (PID_ISCLK, PCR_BIOS_BUFFEN, Not (ShiftLeft (1, Arg0)))
}
/*
* PCIe(100MHz) clock enable
* Arg0 - clock index
*/
Method (CLKE, 1) {
\_SB.PCI0.ICRO (PID_ISCLK, PCR_BIOS_BUFFEN, (ShiftLeft (1, Arg0)))
}
}
}
|