[U-Boot] [PATCH 6/6] arm/km: fix testpin detection for kmcoge5un

Holger Brunck holger.brunck at keymile.com
Fri May 4 15:17:50 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>
---
 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 e4edbe4..1825945 100644
--- a/board/keymile/km_arm/km_arm.c
+++ b/board/keymile/km_arm/km_arm.c
@@ -518,7 +518,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