From: Michal Simek Date: Thu, 23 Jan 2014 08:53:05 +0100 Subject: [U-Boot] [RFC PATCH 1/2] common: Add new clk command In-Reply-To: <20140122194434.GR20094@book.gsilab.sittig.org> References: <20140122194434.GR20094@book.gsilab.sittig.org> Message-ID: <52E0CA61.5040304@monstr.eu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 01/22/2014 08:44 PM, Gerhard Sittig wrote: > On Wed, Jan 22, 2014 at 12:02 +0100, Michal Simek wrote: >> >> --- /dev/null >> +++ b/common/cmd_clk.c >> @@ -0,0 +1,51 @@ >> +/* >> + * Copyright (C) 2013 Xilinx, Inc. >> + * >> + * SPDX-License-Identifier: GPL-2.0+ >> + */ >> +#include >> +#include >> +#include >> + >> +int __weak soc_clk_dump(void) >> +{ >> + puts("Not implemented\n"); >> + return 1; >> +} >> + >> +static int do_clk_dump(cmd_tbl_t *cmdtp, int flag, int argc, >> + char *const argv[]) >> +{ >> + return soc_clk_dump(); >> +} > > Is there a specific reason to not pass on the remaining (not yet > consumed) command line arguments? Future implementations may > want to take a clock item's name, or a clock group's name, or > options related to the format or verbosity of the dump, et al. Only one reason is that I don't need it for my zynq implementation. If this is necessary there is no problem to pass them because it is internal API. Also I prefer to pass just arguments which I need. I have looked at i.MXes cases and they do in general what my zynq implementation. They can just include clk.h and change do_mx6_showclocks to soc_clk_dump. Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/ Maintainer of Linux kernel - Xilinx Zynq ARM architecture Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: