Merge tag 'v2022.04-rc4' into next
Prepare v2022.04-rc4
This commit is contained in:
10
cmd/cls.c
10
cmd/cls.c
@@ -11,17 +11,23 @@
|
||||
#include <lcd.h>
|
||||
#include <video.h>
|
||||
|
||||
#define CSI "\x1b["
|
||||
|
||||
static int do_video_clear(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
char *const argv[])
|
||||
{
|
||||
#if defined(CONFIG_DM_VIDEO)
|
||||
struct udevice *dev;
|
||||
__maybe_unused struct udevice *dev;
|
||||
|
||||
/* Send clear screen and home */
|
||||
printf(CSI "2J" CSI "1;1H");
|
||||
#if defined(CONFIG_DM_VIDEO)
|
||||
#if !defined(CONFIG_VIDEO_ANSI)
|
||||
if (uclass_first_device_err(UCLASS_VIDEO, &dev))
|
||||
return CMD_RET_FAILURE;
|
||||
|
||||
if (video_clear(dev))
|
||||
return CMD_RET_FAILURE;
|
||||
#endif
|
||||
#elif defined(CONFIG_CFB_CONSOLE)
|
||||
video_clear();
|
||||
#elif defined(CONFIG_LCD)
|
||||
|
||||
@@ -111,5 +111,5 @@ U_BOOT_CMD(pwm, 6, 0, do_pwm,
|
||||
"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"
|
||||
"pwm disable <pwm_dev_num> <channel> - disable PWM output\n"
|
||||
"Note: All input values are in decimal");
|
||||
|
||||
Reference in New Issue
Block a user