Skip to contentSkip to conversation

83xx/pcie: fix build error for 83xx pcie

PATCH New York Sun 1 participant 1 message Aug 9, 2013 PowerPC

lore
Share & tools
lore

York Sun

author
#0 lore raw

PATCH 1/1 83xx/pcie: fix build error for 83xx pcie

From: Roy Zang <[email protected]>

Fix the following build error caused by patch "powerpc/pcie: add PCIe version 3.x support":

pcie.c:302:34: error: 'PCI_LTSSM' undeclared (first use in this function) pcie.c:303:15: error: 'PCI_LTSSM_L0' undeclared (first use in this function)

---
This patch will be needed if this one is applied http://patchwork.ozlabs.org/patch/256684/

 arch/powerpc/cpu/mpc83xx/pcie.c |    2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/cpu/mpc83xx/pcie.c +2 -0
index 09970b0..28c25e5 100644
@@ -299,6 +299,8 @@ static void mpc83xx_pcie_init_bus(int bus, struct pci_region *reg)
 
 	printf("PCIE%d: ", bus);
 
+#define PCI_LTSSM	0x404 /* PCIe Link Training, Status State Machine */
+#define PCI_LTSSM_L0	0x16 /* L0 state */
 	reg16 = in_le16(hose_cfg_base + PCI_LTSSM);
 	if (reg16 >= PCI_LTSSM_L0)
 		printf("link\n");
Signature · 1 line
1.7.9.5