[LEDE-DEV] [PATCH] ramips: fix GPIOs for Ubiquiti EdgeRouter X-SFP
Sven Roederer
devel-sven at geroedel.de
Thu Jun 8 11:11:58 PDT 2017
This adds the i2c-gpio and i2c-pca95xx module to the default kernel.
Even they are listed in the dependencies of the board, they are not
built and for this missing in the imagefile. This causes that the
accessed hardware is not avail.
Signed-off-by: Sven Roederer <devel-sven at geroedel.de>
---
target/linux/ramips/mt7621/config-4.4 | 3 +++
target/linux/ramips/mt7621/config-4.9 | 3 +++
2 files changed, 6 insertions(+)
diff --git a/target/linux/ramips/mt7621/config-4.4 b/target/linux/ramips/mt7621/config-4.4
index 383370b..b7f7a3d 100644
--- a/target/linux/ramips/mt7621/config-4.4
+++ b/target/linux/ramips/mt7621/config-4.4
@@ -70,6 +70,8 @@ CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GPIOLIB=y
CONFIG_GPIO_DEVRES=y
CONFIG_GPIO_MT7621=y
+CONFIG_GPIO_PCA953X=y
+CONFIG_GPIO_PCA953X_IRQ=n
# CONFIG_GPIO_RALINK is not set
CONFIG_GPIO_SYSFS=y
CONFIG_HARDWARE_WATCHPOINTS=y
@@ -116,6 +118,7 @@ CONFIG_HIGHMEM=y
CONFIG_HW_HAS_PCI=y
CONFIG_HZ_PERIODIC=y
CONFIG_I2C=y
+CONFIG_I2C_GPIO=y
CONFIG_I2C_MT7621=y
# CONFIG_IMG_MDC_DMA is not set
CONFIG_INITRAMFS_SOURCE=""
diff --git a/target/linux/ramips/mt7621/config-4.9 b/target/linux/ramips/mt7621/config-4.9
index 6e95468..ca64117 100644
--- a/target/linux/ramips/mt7621/config-4.9
+++ b/target/linux/ramips/mt7621/config-4.9
@@ -75,6 +75,8 @@ CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GPIOLIB=y
CONFIG_GPIO_MT7621=y
+CONFIG_GPIO_PCA953X=y
+CONFIG_GPIO_PCA953X_IRQ=n
# CONFIG_GPIO_RALINK is not set
CONFIG_GPIO_SYSFS=y
CONFIG_HANDLE_DOMAIN_IRQ=y
@@ -123,6 +125,7 @@ CONFIG_HW_HAS_PCI=y
CONFIG_HZ_PERIODIC=y
CONFIG_I2C=y
CONFIG_I2C_BOARDINFO=y
+CONFIG_I2C_GPIO=y
CONFIG_I2C_MT7621=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_IRQCHIP=y
--
2.1.4
More information about the Lede-dev
mailing list