summaryrefslogtreecommitdiff
path: root/arch/arm/dts/tegra20-medcom-wide.dts
diff options
context:
space:
mode:
authorCédric Schieli <cschieli@gmail.com>2016-11-11 11:59:07 +0100
committerTom Rini <trini@konsulko.com>2016-11-21 14:07:32 -0500
commitade243a211d62327e9ebadce27bbbff7981e37f0 (patch)
tree7508b807d0900140202ffaf563de10ec8729bc74 /arch/arm/dts/tegra20-medcom-wide.dts
parent3e10fcde3f3c24a488866dd33fa3f5d46ff3d7a3 (diff)
downloadu-boot-imx-ade243a211d62327e9ebadce27bbbff7981e37f0.zip
u-boot-imx-ade243a211d62327e9ebadce27bbbff7981e37f0.tar.gz
u-boot-imx-ade243a211d62327e9ebadce27bbbff7981e37f0.tar.bz2
rpi: passthrough of the firmware provided FDT blob
Raspberry firmware used to pass a FDT blob at a fixed address (0x100), but this is not true anymore. The address now depends on both the memory size and the blob size [1]. If one wants to passthrough this FDT blob to the kernel, the most reliable way is to save its address from the r2/x0 register in the U-Boot entry point and expose it in a environment variable for further processing. This patch just does this: - save the provided address in the global variable fw_dtb_pointer - expose it in ${fdt_addr} if it points to a a valid FDT blob There are many different ways to use it. One can, for example, use the following script which will extract from the tree the command line built by the firmware, then hand over the blob to a previously loaded kernel: fdt addr ${fdt_addr} fdt get value bootargs /chosen bootargs bootz ${kernel_addr_r} - ${fdt_addr} Alternatively, users relying on sysboot/pxe can simply omit any FDT statement in their extlinux.conf file, U-Boot will automagically pick ${fdt_addr} and pass it to the kernel. [1] https://www.raspberrypi.org/forums//viewtopic.php?f=107&t=134018 Signed-off-by: Cédric Schieli <cschieli@gmail.com> Acked-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/dts/tegra20-medcom-wide.dts')
0 files changed, 0 insertions, 0 deletions