]>
git.ipfire.org Git - people/ms/u-boot.git/blob - cmd/clk.c
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
,
19 return soc_clk_dump();
22 static cmd_tbl_t cmd_clk_sub
[] = {
23 U_BOOT_CMD_MKENT(dump
, 1, 1, do_clk_dump
, "", ""),
26 static int do_clk(cmd_tbl_t
*cmdtp
, int flag
, int argc
,
34 /* Strip off leading 'clk' command argument */
38 c
= find_cmd_tbl(argv
[0], &cmd_clk_sub
[0], ARRAY_SIZE(cmd_clk_sub
));
41 return c
->cmd(cmdtp
, flag
, argc
, argv
);
46 #ifdef CONFIG_SYS_LONGHELP
47 static char clk_help_text
[] =
48 "dump - Print clock frequencies";
51 U_BOOT_CMD(clk
, 2, 1, do_clk
, "CLK sub-system", clk_help_text
);