]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/keymile/common/common.c
powerpc/82xx/km: add testpin detection for mgcoge3ne
[people/ms/u-boot.git] / board / keymile / common / common.c
index b9aff1a84dcb4bf0c7f82184c7f948d5269af70e..8de129dc83f2a342f51abbbeec92c599c3f3c870 100644 (file)
@@ -354,8 +354,11 @@ static int do_checktestboot(cmd_tbl_t *cmdtp, int flag, int argc,
 
 #if defined(CONFIG_POST)
        testpin = post_hotkeys_pressed();
-       s = getenv("test_bank");
 #endif
+#if defined(CONFIG_MGCOGE3NE)
+       testpin = get_testpin();
+#endif
+       s = getenv("test_bank");
        /* when test_bank is not set, act as if testpin is not asserted */
        testboot = (testpin != 0) && (s);
        if (verbose) {