]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
db410c: automatically launch fastboot
authorRamon Fried <ramon.fried@gmail.com>
Fri, 21 Sep 2018 10:35:55 +0000 (13:35 +0300)
committerTom Rini <trini@konsulko.com>
Sun, 30 Sep 2018 17:00:37 +0000 (13:00 -0400)
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>
board/qualcomm/dragonboard410c/dragonboard410c.c

index b2a72bce38eb5355846352bb5d4e41a9668ffd70..9ceed3ad9b05f27620ca168172e61e459e056a90 100644 (file)
@@ -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;