mips: generic: add fdt fixup for Realtek reference board
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Wed, 10 Jul 2024 04:35:23 +0000 (16:35 +1200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 12 Jul 2024 11:12:13 +0000 (13:12 +0200)
commit662c0002ca2e1379d0e80be1a4e07ab47c9eee48
tree425e2816e512d6a2ea4d530c0fa54480cb372c92
parent62b8db3afe3e93dd14baeddf081fe1200d5610e3
mips: generic: add fdt fixup for Realtek reference board

The bootloader used on the Realtek RTL9302C boards is an ancient vendor
fork of U-Boot that doesn't understand device trees. So to run a modern
kernel it is necessary use one of the APPENDED_DTB options.

When appending the DTB the inintrd information, if present, needs to be
inserted into the /chosen device tree node. The bootloader provides the
initrd start/size via the firmware environment. Add a fdt fixup that
will update the device tree with the initrd information.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/generic/Makefile
arch/mips/generic/board-realtek.c [new file with mode: 0644]