From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Klein Date: Wed, 19 Nov 2014 19:22:05 +0100 Subject: [U-Boot] [PATCH U-Boot] ARM: rpi_b: detect board revision In-Reply-To: <546CD6DC.1020404@wwwdotorg.org> References: <1416372021-17997-1-git-send-email-swarren@wwwdotorg.org> <546CD6DC.1020404@wwwdotorg.org> Message-ID: <546CDFCD.5020903@linux.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 19.11.2014 um 18:43 schrieb Stephen Warren: > On 11/18/2014 09:40 PM, Stephen Warren wrote: >> Detect the board revision early during boot, and print the decoded >> model name. >> >> Eventually, this information can be used for tasks such as: >> - Allowing/preventing USB device mode; some models have a USB device on- >> board so only host mode makes sense. Others connect the SoC directly >> to the USB connector, so device-mode might make sense. >> - The on-board USB hub/Ethernet requires different GPIOs to enable it, >> although luckily the default appears to be fine so far. >> - The compute module contains an on-board eMMC device, so we could store >> the environment there. Other models use an SD card and so don't >> support >> saving the environment (unless we store it in a file on the FAT boot >> partition...) >> >> Set $fdtfile based on this information. At present, the mainline Linux >> kernel doesn't contain a separate DTB for most models, but I hope that >> will change soon. > > BTW, I should have mentioned that I'm hoping the kernel people CC'd > here will take a look at the DTB filenames this patch assumes, and > comment on whether they seem reasonable. If so, we can formulate a > patch for the kernel to actually create all those DTs in the nearish > future. The DTB filenames look good for me.