Skip to content

Commit

Permalink
PCI: imx6: Add #define PCIE_RC_LCSR
Browse files Browse the repository at this point in the history
Define PCIE_RC_LCSR and use it instead of the bare offset "0x80."
No functional change.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Bjorn Helgaas committed Jun 16, 2015
1 parent 1c7fae1 commit 2393f79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/pci/host/pci-imx6.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ struct imx6_pcie {
#define PCIE_RC_LCR_MAX_LINK_SPEEDS_GEN2 0x2
#define PCIE_RC_LCR_MAX_LINK_SPEEDS_MASK 0xf

#define PCIE_RC_LCSR 0x80

/* PCIe Port Logic registers (memory-mapped) */
#define PL_OFFSET 0x700
#define PCIE_PL_PFLR (PL_OFFSET + 0x08)
Expand Down Expand Up @@ -427,7 +429,7 @@ static int imx6_pcie_start_link(struct pcie_port *pp)
return ret;
}

tmp = readl(pp->dbi_base + 0x80);
tmp = readl(pp->dbi_base + PCIE_RC_LCSR);
dev_dbg(pp->dev, "Link up, Gen=%i\n", (tmp >> 16) & 0xf);
return 0;
}
Expand Down

0 comments on commit 2393f79

Please sign in to comment.