summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorRoy Zang <tie-fei.zang@freescale.com>2012-12-10 19:02:59 +0800
committerYork Sun <yorksun@freescale.com>2013-08-09 12:50:56 -0700
commitce24f87b7be49f3a63f95cf2fb9b329c3351cff6 (patch)
treed294b63dac98adb276409da17f7ccb384847eed3 /arch/powerpc
parentc45f5c08b7130b76c3f33fab41f92ebdd4a54108 (diff)
downloadu-boot-imx-ce24f87b7be49f3a63f95cf2fb9b329c3351cff6.zip
u-boot-imx-ce24f87b7be49f3a63f95cf2fb9b329c3351cff6.tar.gz
u-boot-imx-ce24f87b7be49f3a63f95cf2fb9b329c3351cff6.tar.bz2
83xx/pcie: fix build error for 83xx pcie
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) Signed-off-by: Roy Zang <tie-fei.zang@freescale.com> Signed-off-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/cpu/mpc83xx/pcie.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc83xx/pcie.c b/arch/powerpc/cpu/mpc83xx/pcie.c
index 09970b0..28c25e5 100644
--- a/arch/powerpc/cpu/mpc83xx/pcie.c
+++ b/arch/powerpc/cpu/mpc83xx/pcie.c
@@ -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");