
From: Roy Zang tie-fei.zang@freescale.com
fix the following build error: pcie.c: In function 'mpc83xx_pcie_init_bus': pcie.c:315:34: error: 'PCI_LTSSM' undeclared (first use in this function) pcie.c:315:34: note: each undeclared identifier is reported only once for each function it appears in pcie.c:316:15: error: 'PCI_LTSSM_L0' undeclared (first use in this function) make[1]: *** [pcie.o] Error 1 make: *** [arch/powerpc/cpu/mpc83xx/libmpc83xx.o] Error 2
Signed-off-by: Roy Zang tie-fei.zang@freescale.com --- arch/powerpc/cpu/mpc83xx/pcie.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/powerpc/cpu/mpc83xx/pcie.c b/arch/powerpc/cpu/mpc83xx/pcie.c index 609b133..61d5fa5 100644 --- a/arch/powerpc/cpu/mpc83xx/pcie.c +++ b/arch/powerpc/cpu/mpc83xx/pcie.c @@ -312,6 +312,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");