1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 10:15:19 +02:00

add reset help

This commit is contained in:
Xiangfu Liu 2011-03-07 10:47:08 +08:00
parent 51b7b51a5b
commit 9b840cda9a
2 changed files with 6 additions and 0 deletions

View File

@ -964,6 +964,11 @@ out:
int device_reset(int ops) int device_reset(int ops)
{ {
if (usb_get_ingenic_cpu(&ingenic_dev) < 3) {
printf(" Device unboot! Boot it first!\n");
return -1;
}
if (usb_ingenic_reset(&ingenic_dev, ops) < 1) if (usb_ingenic_reset(&ingenic_dev, ops) < 1)
return -1; return -1;

View File

@ -37,6 +37,7 @@ static int handle_help(void)
{ {
printf( printf(
" boot boot device and make it in stage2\n" " boot boot device and make it in stage2\n"
" reset reset device\n"
" nprog program NAND flash\n" " nprog program NAND flash\n"
" nquery query NAND flash info\n" " nquery query NAND flash info\n"
" nerase erase NAND flash\n" " nerase erase NAND flash\n"