[U-Boot] [Patch v2, batch 4 01/29] 83xx/pcie: fix build error for 83xx pcie

York Sun yorksun at freescale.com
Mon Mar 25 18:39:57 CET 2013


From: Roy Zang <tie-fei.zang at 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 at 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");
-- 
1.7.9.5




More information about the U-Boot mailing list