diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2022-05-12 07:55:38 +0200 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2022-05-12 22:03:05 +0100 |
commit | a1f67bc131c3935f325513cd153249fdbc22ac5b (patch) | |
tree | 655d619f4c081bdff83052fe4a8e7c01a007070f /drivers/pci/controller/cadence/pcie-cadence.h | |
parent | 0aa3a0937feeb91a0e4e438c3c063b749b194192 (diff) | |
download | linux-stable-a1f67bc131c3935f325513cd153249fdbc22ac5b.tar.gz linux-stable-a1f67bc131c3935f325513cd153249fdbc22ac5b.tar.bz2 linux-stable-a1f67bc131c3935f325513cd153249fdbc22ac5b.zip |
PCI: cadence: Allow PTM Responder to be enabled
This enables the Controller [RP] to automatically respond with
Response/ResponseD messages if CDNS_PCIE_LM_TPM_CTRL_PTMRSEN
and PCI_PTM_CTRL_ENABLE bits are both set.
Link: https://lore.kernel.org/r/20220512055539.1782437-1-christian.gmeiner@gmail.com
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers/pci/controller/cadence/pcie-cadence.h')
-rw-r--r-- | drivers/pci/controller/cadence/pcie-cadence.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/controller/cadence/pcie-cadence.h b/drivers/pci/controller/cadence/pcie-cadence.h index c8a27b6290ce..1ffa8fa77a8a 100644 --- a/drivers/pci/controller/cadence/pcie-cadence.h +++ b/drivers/pci/controller/cadence/pcie-cadence.h @@ -116,6 +116,10 @@ #define LM_RC_BAR_CFG_APERTURE(bar, aperture) \ (((aperture) - 2) << ((bar) * 8)) +/* PTM Control Register */ +#define CDNS_PCIE_LM_PTM_CTRL (CDNS_PCIE_LM_BASE + 0x0da8) +#define CDNS_PCIE_LM_TPM_CTRL_PTMRSEN BIT(17) + /* * Endpoint Function Registers (PCI configuration space for endpoint functions) */ |