summaryrefslogtreecommitdiff
path: root/include/asm-arm/plat-orion
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2008-06-22 20:45:09 (GMT)
committerLennert Buytenhek <buytenh@marvell.com>2008-06-22 20:45:09 (GMT)
commita9311cfed241ebcd6b5f9be5c8c6d519bf22f9e7 (patch)
treee8d8fdf57be1e05dfb78005e71e4f62a109633c5 /include/asm-arm/plat-orion
parent0a17c7bc0b81e4556eea08c7e27923e5534d3c25 (diff)
downloadlinux-fsl-qoriq-a9311cfed241ebcd6b5f9be5c8c6d519bf22f9e7.tar.xz
[ARM] Orion: PCIe x4/x1 detection support
The Discovery Duo (MV78xx0) has two x4 PCIe ports which can either be used in x4 mode or in quad x1 mode. This patch adds an accessor function to the generic plat-orion PCIe handling code to detect in which of the two modes we're running (which is determined by strap pins and/or configured by the bootloader). Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Diffstat (limited to 'include/asm-arm/plat-orion')
-rw-r--r--include/asm-arm/plat-orion/pcie.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-arm/plat-orion/pcie.h b/include/asm-arm/plat-orion/pcie.h
index 6434ac6..e61b7bd 100644
--- a/include/asm-arm/plat-orion/pcie.h
+++ b/include/asm-arm/plat-orion/pcie.h
@@ -14,6 +14,7 @@
u32 orion_pcie_dev_id(void __iomem *base);
u32 orion_pcie_rev(void __iomem *base);
int orion_pcie_link_up(void __iomem *base);
+int orion_pcie_x4_mode(void __iomem *base);
int orion_pcie_get_local_bus_nr(void __iomem *base);
void orion_pcie_set_local_bus_nr(void __iomem *base, int nr);
void orion_pcie_setup(void __iomem *base,