Debian Codegraph @

src/soc/intel/common/acpi/ioe_clk.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 #define PCR_BIOS_BUFFEN 0x8080
4
5 /* IOE PCR access */
6 #include <soc/intel/common/acpi/ioe_pcr.asl>
7
8 Scope (\_SB)
9 {
10 /* MTL IOE CLK */
11 Device (ECLK) {
12 Name (_HID, EISAID ("PNP0C02"))
13 Name (_UID, "IOECLK")
14
15 Method (_STA)
16 {
17 /*
18 * Device is present, enabled and decoding its resources
19 * and should not be shown in UI
20 */
21 Return (0x3)
22 }
23
24 /*
25 * PCIe(100MHz) clock disable
26 * Arg0 - clock index
27 */
28 Method (CLKD, 1) {
29 \_SB.PCI0.ICRA (PID_ISCLK, PCR_BIOS_BUFFEN, Not (ShiftLeft (1, Arg0)))
30 }
31
32 /*
33 * PCIe(100MHz) clock enable
34 * Arg0 - clock index
35 */
36 Method (CLKE, 1) {
37 \_SB.PCI0.ICRO (PID_ISCLK, PCR_BIOS_BUFFEN, (ShiftLeft (1, Arg0)))
38 }
39 }
40 }