u-boot-brain/arch
Stephen Warren 6fe7845a98 ARM: rpi_b: detect board revision
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@wwwdotorg.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
2014-12-08 09:35:42 -05:00
..
arc kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
arm ARM: rpi_b: detect board revision 2014-12-08 09:35:42 -05:00
avr32 kbuild: use SoC-specific CONFIG to descend into SoC directory 2014-11-23 06:49:02 -05:00
blackfin linux/kernel.h: sync min, max, min3, max3 macros with Linux 2014-11-23 06:48:30 -05:00
m68k kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
microblaze kconfig: add CONFIG_SUPPORT_SPL 2014-10-27 17:54:10 -04:00
mips MIPS: bootm: remove unused or redundant header files 2014-11-27 16:20:37 +01:00
nds32 kbuild: use SoC-specific CONFIG to descend into SoC directory 2014-11-23 06:49:02 -05:00
nios2 fdt: Allow ft_board_setup() to report failure 2014-11-21 04:43:15 +01:00
openrisc kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
powerpc Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq 2014-11-26 11:23:26 -05:00
sandbox sandbox: Fix warnings in cpu.c and os.c 2014-11-26 20:25:39 -07:00
sh Merge branch 'master' of git://git.denx.de/u-boot-sh 2014-11-17 08:43:40 -05:00
sparc sparc: merge CONFIG_SYS_CPU and CONFIG_SYS_VENDOR defines 2014-11-04 15:01:38 -05:00
x86 x86: dts: Add video information to the device tree 2014-11-25 07:11:16 -07:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig kconfig: move CONFIG_USE_PRIVATE_LIBGCC to Kconfig 2014-10-23 13:19:09 -04:00