aboutsummaryrefslogtreecommitdiff
path: root/board/armltd
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 /board/armltd
parente97650437403c04da274200337de53968da20ab0 (diff)
downloadu-boot-d7b904092d8066476975521dbf6f4ab05cd8d766.zip
u-boot-d7b904092d8066476975521dbf6f4ab05cd8d766.tar.gz
u-boot-d7b904092d8066476975521dbf6f4ab05cd8d766.tar.bz2
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 'board/armltd')
-rw-r--r--board/armltd/vexpress64/pcie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/armltd/vexpress64/pcie.c b/board/armltd/vexpress64/pcie.c
index 1e74158..e553da8 100644
--- a/board/armltd/vexpress64/pcie.c
+++ b/board/armltd/vexpress64/pcie.c
@@ -150,7 +150,7 @@ static void xr3pci_init(void)
/* allow ECRC */
writel(0x6006, XR3_CONFIG_BASE + XR3PCI_PEX_SPC2);
/* setup the correct class code for the host bridge */
- writel(PCI_CLASS_BRIDGE_PCI << 16, XR3_CONFIG_BASE + XR3PCI_BRIDGE_PCI_IDS);
+ writel(PCI_CLASS_BRIDGE_PCI_NORMAL << 8, XR3_CONFIG_BASE + XR3PCI_BRIDGE_PCI_IDS);
/* reset phy and root complex */
writel(JUNO_RESET_CTRL_PHY | JUNO_RESET_CTRL_RC,