GFLT400: Configure gpio0 as GHN RESET
- Configure as output, with default value of 1 (reset line off)
- Export to sysfs (/sys/class/gpio/gpio0)
Change-Id: I54a3701e5dbe458de7ef4596f9799b525411c43a
diff --git a/arch/arm/mach-feroceon-kw2/board-gflt110.c b/arch/arm/mach-feroceon-kw2/board-gflt110.c
index 3e16484..c398b11 100644
--- a/arch/arm/mach-feroceon-kw2/board-gflt110.c
+++ b/arch/arm/mach-feroceon-kw2/board-gflt110.c
@@ -13,6 +13,7 @@
#include "gflt.h"
+#define GHN_RESET_N_L 0
#define GPIO_PON_PWR_EN 37
struct gflt_led_data {
@@ -39,6 +40,10 @@
},
};
static struct board_gpio gflt400_board_gpios[] = {
+ {
+ .gpio = GHN_RESET_N_L,
+ .label = "g.hn-reset",
+ },
// GFLT400 doesn't use Pin 37 (NC)
};
diff --git a/arch/arm/mach-feroceon-kw2/kw2_family/boardEnv/mvBoardEnvSpec.h b/arch/arm/mach-feroceon-kw2/kw2_family/boardEnv/mvBoardEnvSpec.h
index 2cdda78..a8e82d1 100755
--- a/arch/arm/mach-feroceon-kw2/kw2_family/boardEnv/mvBoardEnvSpec.h
+++ b/arch/arm/mach-feroceon-kw2/kw2_family/boardEnv/mvBoardEnvSpec.h
@@ -684,12 +684,12 @@
#define GFLT400_MPP32_37 0x00000000
/* Default all ones-inputs, invert for outputs */
-#define GFLT400_GPP_OUT_ENA_LOW (~(BIT9 | BIT10))
+#define GFLT400_GPP_OUT_ENA_LOW (~(BIT0 | BIT9 | BIT10))
#define GFLT400_GPP_OUT_ENA_MID 0x0
/* BIT09 turns the LED blue.
* BIT10 turns the LED red. */
-#define GFLT400_GPP_OUT_VAL_LOW (BIT9)
+#define GFLT400_GPP_OUT_VAL_LOW (BIT0 | BIT9)
#define GFLT400_GPP_OUT_VAL_MID (0)
/* GFLT400 has the reset button signal inverted */