diff options
author | Ramon Fried <ramon.fried@gmail.com> | 2018-09-21 13:35:55 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-09-30 13:00:37 -0400 |
commit | aa043ee91a4781f8c7e08d8380a9c41dc22fd32a (patch) | |
tree | 9c07d477eee1360aeae17cf43cd1ce0e0e16e186 /board/qualcomm/dragonboard410c | |
parent | 0a195b0135e0439fee5b356c1c2d2b97660deb71 (diff) |
db410c: automatically launch fastboot
If during boot the key-vol-down press is detected
we'll fall back to fastboot.
Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
Diffstat (limited to 'board/qualcomm/dragonboard410c')
-rw-r--r-- | board/qualcomm/dragonboard410c/dragonboard410c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/qualcomm/dragonboard410c/dragonboard410c.c b/board/qualcomm/dragonboard410c/dragonboard410c.c index b2a72bce38..9ceed3ad9b 100644 --- a/board/qualcomm/dragonboard410c/dragonboard410c.c +++ b/board/qualcomm/dragonboard410c/dragonboard410c.c @@ -140,7 +140,8 @@ int misc_init_r(void) if (dm_gpio_get_value(&resin)) { env_set("bootdelay", "-1"); - printf("Power button pressed - dropping to console.\n"); + env_set("bootcmd", "fastboot 0"); + printf("key_vol_down pressed - Starting fastboot.\n"); } return 0; |