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 |
||
---|---|---|
.. | ||
MAINTAINERS | ||
Makefile | ||
lowlevel_init.S | ||
rpi.c |