diff options
author | Holger Brunck <holger.brunck@keymile.com> | 2015-11-17 10:53:26 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-11-18 15:28:53 -0500 |
commit | d3f1d6f43472f74abf34cadf0bf6236dd70177bc (patch) | |
tree | 8c189ec43243be4a6e36627e6d7ac5394e836547 /board/keymile/common/common.c | |
parent | 74edc607d6cd6102ac181232c5bb6562a733ea7b (diff) |
powerpc/82xx/km: add testpin detection for mgcoge3ne
On mgcoge3ne we also want to start the test application if the testpin
is asserted. But we don't have a full POST test support yet. So simply
add a function to read the testpin value.
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Diffstat (limited to 'board/keymile/common/common.c')
-rw-r--r-- | board/keymile/common/common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c index b9aff1a84d..8de129dc83 100644 --- a/board/keymile/common/common.c +++ b/board/keymile/common/common.c @@ -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) { |