]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - cmd/clk.c
1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2013 Xilinx, Inc.
9 int __weak
soc_clk_dump(void)
11 puts("Not implemented\n");
15 static int do_clk_dump(cmd_tbl_t
*cmdtp
, int flag
, int argc
,
22 printf("Clock dump error %d\n", ret
);
23 ret
= CMD_RET_FAILURE
;
29 static cmd_tbl_t cmd_clk_sub
[] = {
30 U_BOOT_CMD_MKENT(dump
, 1, 1, do_clk_dump
, "", ""),
33 static int do_clk(cmd_tbl_t
*cmdtp
, int flag
, int argc
,
41 /* Strip off leading 'clk' command argument */
45 c
= find_cmd_tbl(argv
[0], &cmd_clk_sub
[0], ARRAY_SIZE(cmd_clk_sub
));
48 return c
->cmd(cmdtp
, flag
, argc
, argv
);
53 #ifdef CONFIG_SYS_LONGHELP
54 static char clk_help_text
[] =
55 "dump - Print clock frequencies";
58 U_BOOT_CMD(clk
, 2, 1, do_clk
, "CLK sub-system", clk_help_text
);