[U-Boot] [PATCH v4 24/27] arm/km: fix testpin detection for kmcoge5un
Valentin Longchamp
valentin.longchamp at keymile.com
Tue May 15 16:11:01 CEST 2012
From: Thomas Herzmann <thomas.herzmann at keymile.com>
On kmcoge5un unfortunately the HW wiring is differently to
other km arm boards.
Signed-off-by: Thomas Herzmann <thomas.herzmann at keymile.com>
Signed-off-by: Holger Brunck <holger.brunck at keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp at keymile.com>
---
board/keymile/km_arm/km_arm.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c
index a515437..c87e645 100644
--- a/board/keymile/km_arm/km_arm.c
+++ b/board/keymile/km_arm/km_arm.c
@@ -531,7 +531,11 @@ int get_scl(void)
int post_hotkeys_pressed(void)
{
+#if defined(CONFIG_KMCOGE5UN)
+ return kw_gpio_get_value(KM_POST_EN_L);
+#else
return !kw_gpio_get_value(KM_POST_EN_L);
+#endif
}
ulong post_word_load(void)
--
1.7.1
More information about the U-Boot
mailing list