rv1126-uboot/board/raspberrypi/rpi
Alex Deymo dd3908179b rpi: Capture the device tree passed from the bootloader.
The Raspberry Pi bootloader (bootcode.bin and start.elf) will load
the device tree from the same FAT partition and combine it with
device tree overlays specified in config.txt. This device tree is then
passed to the kernel (in this case U-Boot) in the r2 register.

This patch retrieves the machine id (r1 register) and the device tree
(r2 register) passed to U-Boot and store those in environment variables
on boot so boot scripts can refer to those and pass them to the kernel.

When CONFIG_OF_BOARD is defined, the same device tree passed to U-Boot
will be used in lieu of bundling one with the U-Boot image at build
time.

Bug: 31636643
Test: Booted a Raspberry Pi3 passing the DT from the bootloader.
Change-Id: Ibf9c754719b3e0f41d20382833abf853ba7613e2
2017-11-14 10:55:44 +08:00
..
MAINTAINERS MAINTAINERS: drop bcm283x/rpi maintainership 2017-07-08 20:43:05 -04:00
Makefile rpi: passthrough of the firmware provided FDT blob 2016-11-21 14:07:32 -05:00
lowlevel_init.S rpi: passthrough of the firmware provided FDT blob 2016-11-21 14:07:32 -05:00
rpi.c rpi: Capture the device tree passed from the bootloader. 2017-11-14 10:55:44 +08:00