From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 16 Jul 2012 16:54:37 -0700 Subject: [U-Boot] [PATCH u-boot-arm/next 1/2] OMAP3: igep00x0: Add config option to choose flash storage memory In-Reply-To: References: <1342208490-24761-1-git-send-email-javier@dowhile0.org> <50045636.8090802@ti.com> Message-ID: <5004A9BD.1010006@ti.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 07/16/2012 04:41 PM, Javier Martinez Canillas wrote: [snip] > Runtime detection is possible reading the sysboot as you said (in fact > this is how we do it in the kernel) but as Tom said I didn't find a > common way to do this. I guess you can manually detect the NAND type > and configure the GPMC registers on the board code but I didn't see > other OMAP boards doing this. Instead I found other examples of boards > using compile options to choose between memory types. > > Of course I will be more than glad if you have a better approach to > solve this :-) The biggest problem is that today we don't have a way to read/write environment to a dynamically detected backing store. I had an idea on how to do this, but given the device model will also allow for this, easier, that's the way to go. -- Tom