soc/mediatek/mt8196: Initialize SSPM
[coreboot.git] / src / soc / intel / common / acpi / pcie_clk.asl
blobe7e311fe9c14ea139331af528ad3f2c18e71a08c
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /* PCH clock by P2SB */
4 #include <soc/intel/common/acpi/pch_clk.asl>
6 /* IOE clock by P2SB */
7 #if CONFIG(SOC_INTEL_COMMON_BLOCK_IOE_P2SB)
8         #include <soc/intel/common/acpi/ioe_clk.asl>
9 #endif
12  * Configure PCIe ClkReq Override
13  * Arg0: Clock number
14  * Arg1: Enable(1)/Disable(0) Clock
15  */
16 Method (SPCO, 2, Serialized) {
17         If (LEqual (Arg1,1)) {
18                 If (LGreaterEqual (Arg0, CONFIG_IOE_DIE_CLOCK_START)) {
19                         \_SB.ECLK.CLKE (Subtract (Arg0, CONFIG_IOE_DIE_CLOCK_START))
20                 } Else {
21                         \_SB.ICLK.CLKE (Arg0)
22                 }
23         } Else {
24                 If (LGreaterEqual (Arg0, CONFIG_IOE_DIE_CLOCK_START)) {
25                         \_SB.ECLK.CLKD (Subtract (Arg0, CONFIG_IOE_DIE_CLOCK_START))
26                 } Else {
27                         \_SB.ICLK.CLKD (Arg0)
28                 }
29         }