diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/boot.c | 3 | ||||
-rw-r--r-- | cmd/date.c | 9 | ||||
-rw-r--r-- | cmd/pwm.c | 7 |
3 files changed, 12 insertions, 7 deletions
diff --git a/cmd/boot.c b/cmd/boot.c index fab294e622b..be67a5980de 100644 --- a/cmd/boot.c +++ b/cmd/boot.c @@ -58,7 +58,8 @@ U_BOOT_CMD( U_BOOT_CMD( reset, 2, 0, do_reset, "Perform RESET of the CPU", - "" + "- cold boot without level specifier\n" + "reset -w - warm reset if implemented" ); #ifdef CONFIG_CMD_POWEROFF diff --git a/cmd/date.c b/cmd/date.c index e377cfe165e..149ca426e8c 100644 --- a/cmd/date.c +++ b/cmd/date.c @@ -41,10 +41,13 @@ static int do_date(struct cmd_tbl *cmdtp, int flag, int argc, #ifdef CONFIG_DM_RTC struct udevice *dev; - rcode = uclass_get_device(UCLASS_RTC, 0, &dev); + rcode = uclass_get_device_by_seq(UCLASS_RTC, 0, &dev); if (rcode) { - printf("Cannot find RTC: err=%d\n", rcode); - return CMD_RET_FAILURE; + rcode = uclass_get_device(UCLASS_RTC, 0, &dev); + if (rcode) { + printf("Cannot find RTC: err=%d\n", rcode); + return CMD_RET_FAILURE; + } } #elif defined(CONFIG_SYS_I2C_LEGACY) old_bus = i2c_get_bus_num(); diff --git a/cmd/pwm.c b/cmd/pwm.c index 87d840a2b9b..7947e61aeed 100644 --- a/cmd/pwm.c +++ b/cmd/pwm.c @@ -108,7 +108,8 @@ static int do_pwm(struct cmd_tbl *cmdtp, int flag, int argc, U_BOOT_CMD(pwm, 6, 0, do_pwm, "control pwm channels", - "pwm <invert> <pwm_dev_num> <channel> <polarity>\n" - "pwm <config> <pwm_dev_num> <channel> <period_ns> <duty_ns>\n" - "pwm <enable/disable> <pwm_dev_num> <channel>\n" + "invert <pwm_dev_num> <channel> <polarity> - invert polarity\n" + "pwm config <pwm_dev_num> <channel> <period_ns> <duty_ns> - config PWM\n" + "pwm enable <pwm_dev_num> <channel> - enable PWM output\n" + "pwm disable <pwm_dev_num> <channel> - eisable PWM output\n" "Note: All input values are in decimal"); |