[source] ramips: introduce CONFIG_PCI and CONFIG_OF_*PCI for rt288x
LEDE Commits
lede-commits at lists.infradead.org
Sat Dec 3 23:26:14 PST 2016
mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/13c0d208b23ef82f870b55d965326f313bdbc27b
commit 13c0d208b23ef82f870b55d965326f313bdbc27b
Author: Tobias Wolf <github-NTEO at vplace.de>
AuthorDate: Tue Nov 15 22:31:16 2016 +0100
ramips: introduce CONFIG_PCI and CONFIG_OF_*PCI for rt288x
This is a prerequisite for F5D8235 V1 to use PCI based OHCI/EHCI.
Signed-off-by: Tobias Wolf <github-NTEO at vplace.de>
---
target/linux/ramips/dts/F5D8235_V1.dts | 4 ++++
target/linux/ramips/dts/WZR-AGL300NH.dts | 4 ----
target/linux/ramips/dts/rt2880.dtsi | 8 ++++++++
target/linux/ramips/rt288x/config-4.4 | 6 +++++-
4 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/target/linux/ramips/dts/F5D8235_V1.dts b/target/linux/ramips/dts/F5D8235_V1.dts
index 4d95860..8fcf1f0 100644
--- a/target/linux/ramips/dts/F5D8235_V1.dts
+++ b/target/linux/ramips/dts/F5D8235_V1.dts
@@ -11,6 +11,10 @@
compatible = "F5D8235_V1", "ralink,rt2880-soc";
model = "Belkin F5D8235 v1";
+ pci at 440000 {
+ status = "ok";
+ };
+
cfi at 1f000000 {
compatible = "cfi-flash";
reg = <0xbc400000 0x800000>;
diff --git a/target/linux/ramips/dts/WZR-AGL300NH.dts b/target/linux/ramips/dts/WZR-AGL300NH.dts
index 0f2a73a..c644df4 100644
--- a/target/linux/ramips/dts/WZR-AGL300NH.dts
+++ b/target/linux/ramips/dts/WZR-AGL300NH.dts
@@ -11,10 +11,6 @@
model = "Buffalo WZR-AGL300NH";
pci at 440000 {
- compatible = "ralink,rt288x-pci";
- reg = <0x00440000 0x20000>;
- #address-cells = <1>;
- #size-cells = <1>;
status = "ok";
};
diff --git a/target/linux/ramips/dts/rt2880.dtsi b/target/linux/ramips/dts/rt2880.dtsi
index c2ead2c..2d6230c 100644
--- a/target/linux/ramips/dts/rt2880.dtsi
+++ b/target/linux/ramips/dts/rt2880.dtsi
@@ -186,6 +186,14 @@
#clock-cells = <1>;
};
+ pci: pci at 440000 {
+ compatible = "ralink,rt288x-pci";
+ reg = <0x00440000 0x20000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ status = "disabled";
+ };
+
ethernet: ethernet at 400000 {
compatible = "ralink,rt2880-eth";
reg = <0x00400000 0x10000>;
diff --git a/target/linux/ramips/rt288x/config-4.4 b/target/linux/ramips/rt288x/config-4.4
index 94e4cdd..c6ecf0b 100644
--- a/target/linux/ramips/rt288x/config-4.4
+++ b/target/linux/ramips/rt288x/config-4.4
@@ -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
More information about the lede-commits
mailing list