summaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/mikrotik/config-default
diff options
context:
space:
mode:
authorDenis Kalashnikov <denis281089@gmail.com>2022-01-19 13:25:05 +0300
committerKoen Vandeputte <koen.vandeputte@ncentric.com>2022-01-19 16:40:12 +0100
commitec85e48a113514502563a06c5d0278a57a8b6b86 (patch)
treec25f6fa403e8fa36adb342fa74aca77fe09e7ab7 /target/linux/ath79/mikrotik/config-default
parent522e414dcbe478fa150a49b743e15999026bf774 (diff)
downloadopenwrt-ec85e48a113514502563a06c5d0278a57a8b6b86.tar.gz
openwrt-ec85e48a113514502563a06c5d0278a57a8b6b86.tar.bz2
openwrt-ec85e48a113514502563a06c5d0278a57a8b6b86.zip
ath79: add support for reset key on MikroTik RB912UAG-2HPnD
On MikroTik RB91x board series a reset key shares SoC gpio line #15 with NAND ALE and NAND IO7. So we need a custom gpio driver to manage this non-trivial connection schema. Also rb91x-nand needs to have an ability to disable a polling of the key while it works with NAND. While we've been integrating rb91x-key into a firmware, we've figured out that: * In the gpio-latch driver we need to add a "cansleep" suffix to several gpiolib calls, * When gpio-latch and rb91x-nand fail to get a gpio and an error is -EPROBE_DEFER, they shouldn't report about this, since this actually is not an error and occurs when the gpio-latch probe function is called before the rb91x-key probe. We fix these related things here too. Signed-off-by: Denis Kalashnikov <denis281089@gmail.com> Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target/linux/ath79/mikrotik/config-default')
-rw-r--r--target/linux/ath79/mikrotik/config-default1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ath79/mikrotik/config-default b/target/linux/ath79/mikrotik/config-default
index ee2e4ebe9a..2ff8a14f1d 100644
--- a/target/linux/ath79/mikrotik/config-default
+++ b/target/linux/ath79/mikrotik/config-default
@@ -1,6 +1,7 @@
CONFIG_CRC16=y
CONFIG_CRYPTO_DEFLATE=y
CONFIG_GPIO_LATCH=y
+CONFIG_GPIO_RB91X_KEY=y
CONFIG_GPIO_RB4XX=y
CONFIG_GPIO_WATCHDOG=y
CONFIG_GPIO_WATCHDOG_ARCH_INITCALL=y