[U-Boot] [U-Boot,U-Boot] ARM: rpi_b: detect board revision
Tom Rini
trini at ti.com
Mon Dec 8 22:41:51 CET 2014
On Tue, Nov 18, 2014 at 09:40:21PM -0700, 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.
>
> Signed-off-by: Stephen Warren <swarren at wwwdotorg.org>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Tested-by: Simon Glass <sjg at chromium.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141208/5a618b91/attachment.pgp>
More information about the U-Boot
mailing list