From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Wed, 10 Aug 2011 12:47:30 +0200 Subject: [U-Boot] [PATCH 12/12] da850: print DDR frequency from u-boot In-Reply-To: (Nagabhushana Netagunte's message of "Tue, 9 Aug 2011 19:10:57 +0530") References: <1312299792-16415-1-git-send-email-nagabhushana.netagunte@ti.com> <1312299792-16415-13-git-send-email-nagabhushana.netagunte@ti.com> <20110802163326.D86901208DCE@gemini.denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Nag, > Thanks for the comments. It's a very good suggestion to add it as part of > Command. Unfortunately, I am unable to locate the 'Clock' command source. > I would greatly appreciate if you can point it for me. "git grep -A 2 U_BOOT_CMD' is your friend. Actually as far as I can see, there is no single generic command but "clockinfo" (e.g. arch/arm/cpu/arm1136/mx35/generic.c) and "clocks" (e.g. arch/powerpc/cpu/mpc83xx/speed.c). Maybe we should use this opportunity to align them? So what example should we follow? Hm, oldest code wins, so here we go: [dzu at pollux u-boot-testing (master)]$ for f in arch/arm/cpu/arm1136/mx35/generic.c arch/arm/cpu/armv7/mx5/clock.c arch/powerpc/cpu/mpc512x/speed.c arch/powerpc/cpu/mpc83xx/speed.c ; do git describe --contains `git log --follow --pretty=format:%H $f | tail -1` ; done v2011.03-rc1~2^2~36 v2010.03-rc1~35 v1.3.0-rc4~69^2~1 U-Boot-1_1_3~20^2~7 So PowerPC wins ;) I.e. please use "clocks" as the command name, and I'd appreciate it if you send a patch changing the mx35 and mx5 code. Cheers Detlev -- Be careful in casting out your devil 'lest you cast out the best thing about you. -- Friedrich Nietzsche -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de