diff options
author | Thomas Richard <[email protected]> | 2024-06-19 12:15:13 +0200 |
---|---|---|
committer | Krzysztof Wilczyński <[email protected]> | 2024-09-04 14:09:29 +0000 |
commit | 6aa9c09f1bcd339749b249830c604871740df268 (patch) | |
tree | 8350df6599e52bb97bba4ba48014048e7d87121c | |
parent | b8600b8791cb2b7c8be894846b1ecddba7291680 (diff) |
PCI: Add T_PERST_CLK_US macro
The "Power Sequencing and Reset Signal Timings" table of the PCI
Express Card Electromechanical Specification, Revision 5.1, Section
2.9.2, indicates PERST# should be deasserted after minimum of 100us
once REFCLK is stable (symbol T_PERST-CLK).
Add a macro so that PCIe controller drivers can use it.
Link: https://lore.kernel.org/linux-pci/[email protected]
Signed-off-by: Thomas Richard <[email protected]>
[kwilczynski: commit log, update sleep interval macros code comments]
Signed-off-by: Krzysztof Wilczyński <[email protected]>
-rw-r--r-- | drivers/pci/pci.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 79c8398f3938..abfe0b3d5f1e 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -13,10 +13,25 @@ #define PCIE_LINK_RETRAIN_TIMEOUT_MS 1000 -/* Power stable to PERST# inactive from PCIe card Electromechanical Spec */ +/* + * Power stable to PERST# inactive. + * + * See the "Power Sequencing and Reset Signal Timings" table of the PCI Express + * Card Electromechanical Specification, Revision 5.1, Section 2.9.2, Symbol + * "T_PVPERL". + */ #define PCIE_T_PVPERL_MS 100 /* + * REFCLK stable before PERST# inactive. + * + * See the "Power Sequencing and Reset Signal Timings" table of the PCI Express + * Card Electromechanical Specification, Revision 5.1, Section 2.9.2, Symbol + * "T_PERST-CLK". + */ +#define PCIE_T_PERST_CLK_US 100 + +/* * End of conventional reset (PERST# de-asserted) to first configuration * request (device able to respond with a "Request Retry Status" completion), * from PCIe r6.0, sec 6.6.1. |