coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chip.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __SOC_INTEL_COMMON_BLOCK_PCIE_RTD3_CHIP_H__
4 #define __SOC_INTEL_COMMON_BLOCK_PCIE_RTD3_CHIP_H__
5 
6 #include <acpi/acpi_device.h>
7 
9  ACPI_PCIE_RP_EMIT_NONE = 0x00, /* None */
10  ACPI_PCIE_RP_EMIT_L23 = 0x01, /* L23 */
11  ACPI_PCIE_RP_EMIT_PSD0 = 0x02, /* PSD0 */
12  ACPI_PCIE_RP_EMIT_SRCK = 0x04, /* SRCK */
13  ACPI_PCIE_RP_EMIT_L23_PSD0 = 0x03, /* L23, PSD0 */
14  ACPI_PCIE_RP_EMIT_L23_SRCK = 0x05, /* L23, SRCK */
15  ACPI_PCIE_RP_EMIT_PSD0_SRCK = 0x06, /* PSD0, SRCK */
16  ACPI_PCIE_RP_EMIT_ALL = 0x07 /* L23, PSD0, SRCK */
17 };
18 
19 /* Device support at least one of enable/reset GPIO. */
21  const char *desc;
22 
23  /* GPIO used to enable device. */
24  struct acpi_gpio enable_gpio;
25  /* Delay to be inserted after device is enabled. */
26  unsigned int enable_delay_ms;
27  /* Delay to be inserted after device is disabled. */
28  unsigned int enable_off_delay_ms;
29 
30  /* GPIO used to take device out of reset or to put it into reset. */
31  struct acpi_gpio reset_gpio;
32  /* Delay to be inserted after device is taken out of reset. */
33  unsigned int reset_delay_ms;
34  /* Delay to be inserted after device is put into reset. */
35  unsigned int reset_off_delay_ms;
36 
37  /*
38  * SRCCLK assigned to this root port which will be turned off via PMC IPC.
39  * If set to -1 then the clock will not be disabled in D3.
40  */
42 
43  /*
44  * Add device property indicating the device provides an external PCI port
45  * for the OS to apply security restrictions.
46  */
48 
49  /*
50  * Allow a device to add the RuntimeD3Storage property even if the detected
51  * PCI device does not identify as storage class.
52  */
53  bool is_storage;
54 
55  /*
56  * Disable the ACPI-driven L23 Ready-to-Detect transition for the root port.
57  */
59 
60  /*
61  * Provides L23, modPHY gating, source clock enabling methods to the device
62  * connected root port, mainly used in the device ACPI methods such as reset.
63  * The methods to export are following this table:
64  *-----------------------------------------------------------------------------------*
65  | ext_pm_support | disable_l123 | srcclk_pin | rp_type | exported methods |
66  *----------------+--------------+------------+-------------+------------------------*
67  | false | - | - | - | None |
68  | true | true | =0 | PCIE_RP_CPU | None |
69  | true | true | =0 | PCIE_RP_PCH | SRCK |
70  | true | true | >0 | PCIE_RP_CPU | PSD0 |
71  | true | true | >0 | PCIE_RP_PCH | PSD0, SRCK |
72  | true | false | =0 | PCIE_RP_CPU | L23D, LD23 |
73  | true | false | =0 | PCIE_RP_PCH | L23D, LD23, SRCK |
74  | true | false | >0 | PCIE_RP_CPU | L23D, LD23, PSD0 |
75  | true | false | >0 | PCIE_RP_PCH | L23D, LD23, PSD0, SRCK |
76  *-----------------------------------------------------------------------------------*
77  */
79 
80  /*
81  * Add support to skip _OFF and _ON execution when needed, such as reloading
82  * the device driver.
83  */
85 };
86 
87 #endif /* __SOC_INTEL_COMMON_BLOCK_PCIE_RTD3_CHIP_H__ */
acpi_pcie_rp_pm_emit
Definition: chip.h:8
@ ACPI_PCIE_RP_EMIT_L23_PSD0
Definition: chip.h:13
@ ACPI_PCIE_RP_EMIT_PSD0
Definition: chip.h:11
@ ACPI_PCIE_RP_EMIT_NONE
Definition: chip.h:9
@ ACPI_PCIE_RP_EMIT_ALL
Definition: chip.h:16
@ ACPI_PCIE_RP_EMIT_L23
Definition: chip.h:10
@ ACPI_PCIE_RP_EMIT_L23_SRCK
Definition: chip.h:14
@ ACPI_PCIE_RP_EMIT_SRCK
Definition: chip.h:12
@ ACPI_PCIE_RP_EMIT_PSD0_SRCK
Definition: chip.h:15
enum acpi_pcie_rp_pm_emit ext_pm_support
Definition: chip.h:78