summaryrefslogtreecommitdiff
path: root/drivers/pci/pcie_iproc.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-02-18 13:18:40 +0100
committerTom Rini <trini@konsulko.com>2022-03-25 13:35:50 -0400
commitd7b904092d8066476975521dbf6f4ab05cd8d766 (patch)
tree8940eb8b96a461e1c42c4ceee13569a3a7f0333f /drivers/pci/pcie_iproc.c
parente97650437403c04da274200337de53968da20ab0 (diff)
pci: Add defines for normal and subtractive PCI bridges
Add following two new PCI class codes defines into pci_ids.h include file: PCI_CLASS_BRIDGE_PCI_NORMAL PCI_CLASS_BRIDGE_PCI_SUBTRACTIVE And use these defines in all U-Boot code for describing PCI class codes for normal and subtractive PCI bridges. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/pci/pcie_iproc.c')
-rw-r--r--drivers/pci/pcie_iproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie_iproc.c b/drivers/pci/pcie_iproc.c
index 85dfab5c720..d6d3a9e2025 100644
--- a/drivers/pci/pcie_iproc.c
+++ b/drivers/pci/pcie_iproc.c
@@ -1123,7 +1123,7 @@ static int iproc_pcie_check_link(struct iproc_pcie *pcie)
PCI_BRIDGE_CTRL_REG_OFFSET,
4, &class);
class &= ~PCI_BRIDGE_CTRL_REG_CLASS_MASK;
- class |= (PCI_CLASS_BRIDGE_PCI << 8);
+ class |= PCI_CLASS_BRIDGE_PCI_NORMAL;
iproc_pci_raw_config_write32(pcie, 0,
PCI_BRIDGE_CTRL_REG_OFFSET,
4, class);