1 // SPDX-License-Identifier: GPL-2.0+
4 * DENX Software Engineering, Anatolij Gustschin <agust@denx.de>
6 * cls - clear screen command
14 static int do_video_clear(cmd_tbl_t
*cmdtp
, int flag
, int argc
,
17 #if defined(CONFIG_DM_VIDEO)
20 if (uclass_first_device_err(UCLASS_VIDEO
, &dev
))
21 return CMD_RET_FAILURE
;
24 return CMD_RET_FAILURE
;
25 #elif defined(CONFIG_CFB_CONSOLE)
27 #elif defined(CONFIG_LCD)
30 return CMD_RET_FAILURE
;
32 return CMD_RET_SUCCESS
;
35 U_BOOT_CMD(cls
, 1, 1, do_video_clear
, "clear screen", "");