#include <serial.h>
#include <xyzModem.h>
#include <asm/cache.h>
+#include <asm/global_data.h>
#include <linux/delay.h>
DECLARE_GLOBAL_DATA_PTR;
*p = c;
}
- /* Check for the console hangup (if any different from serial) */
- if (gd->jt->getc != getchar) {
- if (ctrlc()) {
- return (-1);
+ /* Check for the console hangup (if any different from serial) */
+ if (gd->jt->getc != getchar) {
+ if (ctrlc())
+ return (-1);
}
- }
}
/* line too long - truncate */
U_BOOT_CMD(
loadb, 3, 0, do_load_serial_bin,
"load binary file over serial line (kermit mode)",
- "[ off ] [ baud ]\n"
+ "[ addr [ baud ] ]\n"
" - load binary file over serial line"
- " with offset 'off' and baudrate 'baud'"
+ " at address 'addr' with baudrate 'baud'"
);
U_BOOT_CMD(
loadx, 3, 0, do_load_serial_bin,
"load binary file over serial line (xmodem mode)",
- "[ off ] [ baud ]\n"
+ "[ addr [ baud ] ]\n"
" - load binary file over serial line"
- " with offset 'off' and baudrate 'baud'"
+ " at address 'addr' with baudrate 'baud'"
);
U_BOOT_CMD(
loady, 3, 0, do_load_serial_bin,
"load binary file over serial line (ymodem mode)",
- "[ off ] [ baud ]\n"
+ "[ addr [ baud ] ]\n"
" - load binary file over serial line"
- " with offset 'off' and baudrate 'baud'"
+ " at address 'addr' with baudrate 'baud'"
);
#endif /* CONFIG_CMD_LOADB */