2 * Copyright (C) 2013 Xilinx, Inc.
4 * SPDX-License-Identifier: GPL-2.0+
10 int __weak soc_clk_dump(void)
12 puts("Not implemented\n");
16 static int do_clk_dump(cmd_tbl_t *cmdtp, int flag, int argc,
23 printf("Clock dump error %d\n", ret);
24 ret = CMD_RET_FAILURE;
30 static cmd_tbl_t cmd_clk_sub[] = {
31 U_BOOT_CMD_MKENT(dump, 1, 1, do_clk_dump, "", ""),
34 static int do_clk(cmd_tbl_t *cmdtp, int flag, int argc,
42 /* Strip off leading 'clk' command argument */
46 c = find_cmd_tbl(argv[0], &cmd_clk_sub[0], ARRAY_SIZE(cmd_clk_sub));
49 return c->cmd(cmdtp, flag, argc, argv);
54 #ifdef CONFIG_SYS_LONGHELP
55 static char clk_help_text[] =
56 "dump - Print clock frequencies";
59 U_BOOT_CMD(clk, 2, 1, do_clk, "CLK sub-system", clk_help_text);