mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-25 14:56:03 +00:00
cmd: remove deprecated LCD support
No board uses lcd_clear() anymore. So we can remove support for it. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
81df9ed45e
commit
63de2161e4
1 changed files with 6 additions and 14 deletions
20
cmd/cls.c
20
cmd/cls.c
|
@ -8,7 +8,6 @@
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <lcd.h>
|
|
||||||
#include <video.h>
|
#include <video.h>
|
||||||
|
|
||||||
#define CSI "\x1b["
|
#define CSI "\x1b["
|
||||||
|
@ -20,19 +19,12 @@ static int do_video_clear(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
|
|
||||||
/* Send clear screen and home */
|
/* Send clear screen and home */
|
||||||
printf(CSI "2J" CSI "1;1H");
|
printf(CSI "2J" CSI "1;1H");
|
||||||
#if defined(CONFIG_DM_VIDEO)
|
if (CONFIG_IS_ENABLED(DM_VIDEO) && !CONFIG_IS_ENABLED(VIDEO_ANSI)) {
|
||||||
#if !defined(CONFIG_VIDEO_ANSI)
|
if (uclass_first_device_err(UCLASS_VIDEO, &dev))
|
||||||
if (uclass_first_device_err(UCLASS_VIDEO, &dev))
|
return CMD_RET_FAILURE;
|
||||||
return CMD_RET_FAILURE;
|
if (video_clear(dev))
|
||||||
|
return CMD_RET_FAILURE;
|
||||||
if (video_clear(dev))
|
}
|
||||||
return CMD_RET_FAILURE;
|
|
||||||
#endif
|
|
||||||
#elif defined(CONFIG_LCD)
|
|
||||||
lcd_clear();
|
|
||||||
#else
|
|
||||||
return CMD_RET_FAILURE;
|
|
||||||
#endif
|
|
||||||
return CMD_RET_SUCCESS;
|
return CMD_RET_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue