From: Wolfgang Denk Date: Fri, 09 Sep 2011 00:34:34 +0200 Subject: [U-Boot] [PATCH] arm: RFC: add clock speed constants In-Reply-To: <1315520711-9667-1-git-send-email-sjg@chromium.org> References: <1315520711-9667-1-git-send-email-sjg@chromium.org> Message-ID: <20110908223434.77EB2140875B@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Glass, In message <1315520711-9667-1-git-send-email-sjg@chromium.org> you wrote: > Large-value clock speeds are error-prone, so we add a new file which defines > these in a standard manner across ARM U-Boot code. > > Any interest in having something like this in include/clocks.h? Sorry, but I dislike defines like thess because they actually obfuscate the code. > + * Please order the items by increasing Hz > + */ > +enum { > + CLK_32768 = 32768, > + CLK_20M = 20000000, > + CLK_24M = 24000000, > + CLK_144M = 144000000, > + CLK_216M = 216000000, > + CLK_300M = 300000000, > +}; NAK. I don't want to see anything like that. [And I would welcome patches to get rid of this SZ_* mess.] Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Backed up the system lately?