From f7c1d9c8a551dea1dfe50cbac4d84f949191887d Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Tue, 30 Aug 2016 19:42:38 +0200 Subject: 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 --- target/linux/apm821xx/dts/wndr4700.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/apm821xx/dts') diff --git a/target/linux/apm821xx/dts/wndr4700.dts b/target/linux/apm821xx/dts/wndr4700.dts index 9a2ceb9d75..caaf05b3e8 100644 --- a/target/linux/apm821xx/dts/wndr4700.dts +++ b/target/linux/apm821xx/dts/wndr4700.dts @@ -432,7 +432,7 @@ sdcard { label = "SDCard inserted"; - gpios = <&GPIO0 7 0>; + gpios = <&GPIO0 7 1>; linux,code = <0x101>; /* BTN_1 */ }; }; -- cgit v1.2.3