apm821xx: detect sd-card media changes for the WNDR4700
authorChristian Lamparter <chunkeey@googlemail.com>
Tue, 30 Aug 2016 17:42:38 +0000 (19:42 +0200)
committerJohn Crispin <john@phrozen.org>
Thu, 8 Sep 2016 11:40:02 +0000 (13:40 +0200)
commitf7c1d9c8a551dea1dfe50cbac4d84f949191887d
tree4c1cbe7e0660090e60a06c8264fb7b9c2dc28e64
parent1974ad5a96c191a4697ce07d2a46b770462ff65e
apm821xx: detect sd-card media changes for the WNDR4700

The insertion or removal of the sd-card cannot be detected
by the hardware itself. This is by design. To workaround this,
for the WNDR4700 unload/load the dwc2 module in case the
the special SD CARD GPIO line is low/high.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/apm821xx/base-files/etc/rc.button/BTN_1 [new file with mode: 0755]
target/linux/apm821xx/dts/wndr4700.dts