From: Kim Phillips Date: Mon, 23 Feb 2009 15:50:29 -0600 Subject: [U-Boot] [PATCH 2/6] Add FSL "Can use" framework In-Reply-To: <20090219195650.A50BF832E43F@gemini.denx.de> References: <20090219154414.GA22391@oksana.dev.rtsoft.ru> <20090219154545.GB26618@oksana.dev.rtsoft.ru> <20090219195650.A50BF832E43F@gemini.denx.de> Message-ID: <20090223155029.70e0a46f.kim.phillips@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 19 Feb 2009 20:56:50 +0100 Wolfgang Denk wrote: > Dear Anton Vorontsov, > > In message <20090219154545.GB26618@oksana.dev.rtsoft.ru> you wrote: > > So far it's used for specifying whether we want to use FSL DR USB or > > FSL eSDHC devices on MPC837X processors. > > > > There are two more candidates for future use: > > 1. USB ULPI PHY vs. TSEC1 on MPC8315E-RDB boards; > > 2. Marvell vs. Vitesse PHYs on MPC8313E-RDB boards. Isn't the marvell PHY detectable by s/w? > > + const char *usb_or_esdhc = getenv("usb_or_esdhc"); > > Please make it extendable, use a more generic name for one (and only > one) environment variable. It makes littel sense to pollyte the > envrionment with N additional variables. For example, call it > "hwconfig". Allow that this variable holds a list of config settings, > separated for example by comma or colon or ... agreed - assuming this truly is indetectable by s/w. Does "setenv dip_sw_1_4 on" work more universally? Kim