aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt7621
diff options
context:
space:
mode:
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2018-06-07 16:33:57 +0000
committerJohn Crispin <john@phrozen.org>2018-06-08 09:31:36 +0200
commit8110bf18f4c1d04e8dfe94438caeadf78ceac892 (patch)
tree33a068d618a341fb8ee013b732de18f7f38191cc /target/linux/ramips/mt7621
parent4363b5362fc48cf3d3ae9d7f5363d4efeba8bf7c (diff)
downloadupstream-8110bf18f4c1d04e8dfe94438caeadf78ceac892.tar.gz
upstream-8110bf18f4c1d04e8dfe94438caeadf78ceac892.tar.bz2
upstream-8110bf18f4c1d04e8dfe94438caeadf78ceac892.zip
ramips: mir3g dts define usb port Vcc volt regulator GPIO
Define USB port power on/off GPO as voltage regulator type instead of exposing as a normal GPIO. The GPO is now controlled by the USB driver via the voltage regulator definition. The regulator is of fixed output type (5V for USB) hence the GPO switches power on/off to USB pin 1 (Vcc) USB port power is enabled on driver load and disabled on driver unload. Enable kernel support for fixed voltage regulator types on mt7621. Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Diffstat (limited to 'target/linux/ramips/mt7621')
-rw-r--r--target/linux/ramips/mt7621/config-4.142
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ramips/mt7621/config-4.14 b/target/linux/ramips/mt7621/config-4.14
index 3a5cd4296a..c19d735e5c 100644
--- a/target/linux/ramips/mt7621/config-4.14
+++ b/target/linux/ramips/mt7621/config-4.14
@@ -227,6 +227,8 @@ CONFIG_RCU_STALL_COMMON=y
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=y
CONFIG_REGMAP_SPI=y
+CONFIG_REGULATOR=y
+CONFIG_REGULATOR_FIXED_VOLTAGE=y
CONFIG_RESET_CONTROLLER=y
CONFIG_RFS_ACCEL=y
CONFIG_RPS=y