From: Detlev Zundel Date: Mon, 16 Jul 2012 18:55:56 +0200 Subject: [U-Boot] [PATCH 12/20] arm/km: add support for external switchconfiguration In-Reply-To: <20120709193225.5A43C200166@gemini.denx.de> (Wolfgang Denk's message of "Mon, 09 Jul 2012 21:32:25 +0200") References: <1339063620-8890-1-git-send-email-valentin.longchamp@keymile.com> <1339063620-8890-13-git-send-email-valentin.longchamp@keymile.com> <4FE31D14.6080005@keymile.com> <4FF2C089.4000302@keymile.com> <4FFAC8C9.1020603@keymile.com> <20120709123142.0D774200166@gemini.denx.de> <20120709193225.5A43C200166@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, >> How about amending the U-Boot design principles with > > Go for it - it's a wiki. Thinking about it, I turned it not into a rule, but into a Lemma from the 10 rules: Lemmas from the golden rules 1. Generic Code is Good Code New code shall be as generic as possible and added to the U-Boot abstraction hierarchy as high as possible. As few code as possible shall be added in board directories as people usually do not expect re-usable code there. Thus peripheral drivers should be put below "drivers" even if they start out supporting only one specific configuration. Note that it is not a requirement for such a first instance to be generic as genericity generally cannot be extrapolated from a single data point. Feel free to amend / modify that. Cheers Detlev [1] http://www.denx.de/wiki/rdiff/U-Boot/DesignPrinciples?rev1=1.14&rev2=1.13 PS: Ok, actually I didn't want to ruin the magic 10 ;) -- Question : If you were redesigning UNIX, what would you do differently? Ken Thompson: I'd spell creat with an e. -- 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