diff options
| author | Simon Glass <[email protected]> | 2024-10-21 10:19:29 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-10-25 14:22:24 -0600 |
| commit | 8306c3b035bebce2d4060620d85192a401128bd7 (patch) | |
| tree | d2e391af658ce33202d0c9539ebc86c73f8b865a /cmd/mem.c | |
| parent | 48008ec71148c0749ff34f7036a0278d4d92ae7b (diff) | |
cmd: Move meminfo command into its own file
In preparation for expanding this command, move it into a separate file.
Rename the function to remove the extra underscore. Update the number of
arguments to 1, since 3 is incorrect.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'cmd/mem.c')
| -rw-r--r-- | cmd/mem.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/cmd/mem.c b/cmd/mem.c index 4d6fde28531..9e716776393 100644 --- a/cmd/mem.c +++ b/cmd/mem.c @@ -1379,17 +1379,6 @@ U_BOOT_CMD( #endif -#ifdef CONFIG_CMD_MEMINFO -static int do_mem_info(struct cmd_tbl *cmdtp, int flag, int argc, - char *const argv[]) -{ - puts("DRAM: "); - print_size(gd->ram_size, "\n"); - - return 0; -} -#endif - U_BOOT_CMD( base, 2, 1, do_mem_base, "print or set address offset", @@ -1433,14 +1422,6 @@ U_BOOT_CMD( ); #endif /* CONFIG_CMD_MX_CYCLIC */ -#ifdef CONFIG_CMD_MEMINFO -U_BOOT_CMD( - meminfo, 3, 1, do_mem_info, - "display memory information", - "" -); -#endif - #ifdef CONFIG_CMD_RANDOM U_BOOT_CMD( random, 4, 0, do_random, |
