]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
pci: mvebu: enable driver usage on Kirkwood
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 15 May 2013 13:36:54 +0000 (15:36 +0200)
committerJason Cooper <jason@lakedaemon.net>
Mon, 20 May 2013 19:30:58 +0000 (19:30 +0000)
We allow the pci-mvebu driver to be compiled on the Kirkwood platform,
and add the 'marvell,kirkwood-pcie' as a compatible string supported
by the driver.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Documentation/devicetree/bindings/pci/mvebu-pci.txt
drivers/pci/host/Kconfig
drivers/pci/host/pci-mvebu.c

index eb69d92c23e106fbb96209c9082e3598ad4ccf5f..f8d405897a9486c5c5efdd24a21756da02389988 100644 (file)
@@ -4,6 +4,7 @@ Mandatory properties:
 - compatible: one of the following values:
     marvell,armada-370-pcie
     marvell,armada-xp-pcie
+    marvell,kirkwood-pcie
 - #address-cells, set to <3>
 - #size-cells, set to <2>
 - #interrupt-cells, set to <1>
index 6918fbc92c023e30ee08aa0baa233a9f5eac39c7..1f1d67fec8b211b643949189e0d81aec81255889 100644 (file)
@@ -3,6 +3,6 @@ menu "PCI host controller drivers"
 
 config PCI_MVEBU
        bool "Marvell EBU PCIe controller"
-       depends on ARCH_MVEBU
+       depends on ARCH_MVEBU || ARCH_KIRKWOOD
 
 endmenu
index ad1c46bb8b1d50bbd5abcbacff92f0c0804e25fa..91106df1ff81af5dbb9ff5b9107003b1b94ce9f9 100644 (file)
@@ -854,6 +854,7 @@ static int __init mvebu_pcie_probe(struct platform_device *pdev)
 static const struct of_device_id mvebu_pcie_of_match_table[] = {
        { .compatible = "marvell,armada-xp-pcie", },
        { .compatible = "marvell,armada-370-pcie", },
+       { .compatible = "marvell,kirkwood-pcie", },
        {},
 };
 MODULE_DEVICE_TABLE(of, mvebu_pcie_of_match_table);