mdm9x15: Using gpio49 to read boot config5 as fastboot key
Boot config5 dip switch is used for a trigger to enter
fastboot for 9x15 MTP.
Change-Id: I031581c72feb3935e789750d7465b88d3bb350ab
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 2b7821f..fabccb1 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -107,7 +107,9 @@
extern int emmc_recovery_init(void);
-
+#if NO_KEYPAD_DRIVER
+extern int fastboot_trigger(void);
+#endif
static void ptentry_to_tag(unsigned **ptr, struct ptentry *ptn)
{
@@ -1204,11 +1206,7 @@
}
#if NO_KEYPAD_DRIVER
- /* With no keypad implementation, check the status of USB connection. */
- /* If USB is connected then go into fastboot mode. */
- usb_init = 1;
- udc_init(&surf_udc_device);
- if (usb_cable_status())
+ if (fastboot_trigger())
goto fastboot;
#endif