ramips: introduce CONFIG_PCI and CONFIG_OF_*PCI for rt288x
authorTobias Wolf <github-NTEO@vplace.de>
Tue, 15 Nov 2016 21:31:16 +0000 (22:31 +0100)
committerMathias Kresin <dev@kresin.me>
Sun, 4 Dec 2016 06:03:17 +0000 (07:03 +0100)
This is a prerequisite for F5D8235 V1 to use PCI based OHCI/EHCI.

Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
target/linux/ramips/dts/F5D8235_V1.dts
target/linux/ramips/dts/WZR-AGL300NH.dts
target/linux/ramips/dts/rt2880.dtsi
target/linux/ramips/rt288x/config-4.4

index 4d95860aa2c23aeeaedf11b1b6b38aa254f1ccbf..8fcf1f0a62a7cafcdc27610f0b17472fd049848e 100644 (file)
        compatible = "F5D8235_V1", "ralink,rt2880-soc";
        model = "Belkin F5D8235 v1";
 
+       pci@440000 {
+               status = "ok";
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0xbc400000 0x800000>;
index 0f2a73a48ac90e11f79e90142369ff9b4e4cf103..c644df47949ed855329e47576f602346bbbe98ad 100644 (file)
        model = "Buffalo WZR-AGL300NH";
 
        pci@440000 {
-               compatible = "ralink,rt288x-pci";
-               reg = <0x00440000 0x20000>;
-               #address-cells = <1>;
-               #size-cells = <1>;
                status = "ok";
        };
 
index c2ead2c9755502504fd1ebcb48dff514ae88c2e8..2d6230c7ad2081b788c47c5a7259a5503ce402db 100644 (file)
                #clock-cells = <1>;
        };
 
+       pci: pci@440000 {
+               compatible = "ralink,rt288x-pci";
+               reg = <0x00440000 0x20000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               status = "disabled";
+       };
+
        ethernet: ethernet@400000 {
                compatible = "ralink,rt2880-eth";
                reg = <0x00400000 0x10000>;
index 94e4cdde5376ac4fe503687ee91b26402d5f5fe6..c6ecf0b96fa24d3741acbbc7c59663525b43c6fa 100644 (file)
@@ -141,6 +141,7 @@ CONFIG_NET_VENDOR_MEDIATEK=y
 # CONFIG_NO_IOPORT_MAP is not set
 CONFIG_OF=y
 CONFIG_OF_ADDRESS=y
+CONFIG_OF_ADDRESS_PCI=y
 CONFIG_OF_EARLY_FLATTREE=y
 CONFIG_OF_FLATTREE=y
 CONFIG_OF_GPIO=y
@@ -148,7 +149,10 @@ CONFIG_OF_IRQ=y
 CONFIG_OF_MDIO=y
 CONFIG_OF_MTD=y
 CONFIG_OF_NET=y
-# CONFIG_PCI is not set
+CONFIG_OF_PCI=y
+CONFIG_OF_PCI_IRQ=y
+CONFIG_PCI=y
+CONFIG_PCI_DOMAINS=y
 CONFIG_PERF_USE_VMALLOC=y
 CONFIG_PGTABLE_LEVELS=2
 CONFIG_PHYLIB=y