aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorSungbo Eo <mans0n@gorani.run>2020-01-12 21:33:53 +0900
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-08-02 16:35:54 +0200
commitf3c0eab9c78bc65c5b286cdcd11ddaaa12a49d82 (patch)
tree752f641ebe07f0bf444501a51a95cd42bb2d8e84 /target/linux/ar71xx
parent2f756b39ed6c220ba5e47f24eaa79521bcc92b85 (diff)
downloadupstream-f3c0eab9c78bc65c5b286cdcd11ddaaa12a49d82.tar.gz
upstream-f3c0eab9c78bc65c5b286cdcd11ddaaa12a49d82.tar.bz2
upstream-f3c0eab9c78bc65c5b286cdcd11ddaaa12a49d82.zip
Revert "ar71xx: fix Arduino Yun enabling of level shifters outputs"
This reverts commit 077253dd666a30ae5231c3748222d4b5b138593d. The output enable pins should be disabled by default, and only enabled when used. Otherwise unwanted conflicts might occur between MCU and SoC pins. Signed-off-by: Sungbo Eo <mans0n@gorani.run> (cherry picked from commit 43896dc0b005adfb512c027a27781c971440d415)
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c
index e92f68f490..5873248edf 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-arduino-yun.c
@@ -141,7 +141,7 @@ static void __init ds_setup(void)
// enable OE of level shifter
if (gpio_request_one(DS_GPIO_OE,
- GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, "OE-1") != 0)
+ GPIOF_OUT_INIT_LOW | GPIOF_EXPORT_DIR_FIXED, "OE-1") != 0)
printk("Error setting GPIO OE\n");
if (gpio_request_one(DS_GPIO_UART_ENA,
@@ -150,7 +150,7 @@ static void __init ds_setup(void)
// enable OE of level shifter
if (gpio_request_one(DS_GPIO_OE2,
- GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, "OE-2") != 0)
+ GPIOF_OUT_INIT_LOW | GPIOF_EXPORT_DIR_FIXED, "OE-2") != 0)
printk("Error setting GPIO OE2\n");
}