1
0
Fork 0

serial-download-trap: add 10ms delay before jumping to ROM loader

zero-sugar
Steinar Bakkemo 2019-12-10 16:04:53 +01:00 committed by Lars Ivar Miljeteig
parent f0ac274dca
commit 4c2d02d2f3
1 changed files with 4 additions and 3 deletions

View File

@ -36,9 +36,10 @@ int probe_serial_download_trap(void)
/* ... if GPIO6_17 follows to be 0, we get it! */
usbInput = gpio_get_value(IMX_GPIO_NR(6, 17));
if (usbInput == 0) {
printf("Going to serial download mode ...\n");
jump_rom_usb_download();
while (1);
printf("Going to serial download mode ...\n");
mdelay(10);
jump_rom_usb_download();
while (1);
}
return 0;