test: rockchip: improve help guide
Change-Id: I321f9b5357a1ef0ad0617124a84bb4890b45be7e Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
44e080753f
commit
336e1992eb
|
|
@ -31,6 +31,13 @@ static board_module_t g_board_modules[] = {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void help(void)
|
||||||
|
{
|
||||||
|
printf("Command: rktest [module] [args...]\n\n"
|
||||||
|
" - module: timer|key|emmc|rknand|regulator|eth|ir|brom_dnl|vendor\n"
|
||||||
|
" - args: depends on module\n");
|
||||||
|
}
|
||||||
|
|
||||||
static int do_rockchip_test(cmd_tbl_t *cmdtp, int flag,
|
static int do_rockchip_test(cmd_tbl_t *cmdtp, int flag,
|
||||||
int argc, char * const argv[])
|
int argc, char * const argv[])
|
||||||
{
|
{
|
||||||
|
|
@ -43,7 +50,7 @@ static int do_rockchip_test(cmd_tbl_t *cmdtp, int flag,
|
||||||
if (argc >= 2) {
|
if (argc >= 2) {
|
||||||
module_name = argv[1];
|
module_name = argv[1];
|
||||||
} else {
|
} else {
|
||||||
printf("cmd format: test_rockchip [module_name] [args...]\n");
|
help();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue