On Tue, 2021-01-12 at 15:23 +0100, Nicolas Saenz Julienne wrote:
Soon to be released versions of RPi4's firmware will take of care
passing their bootloader's configuration[1] to the OS by copying it into
memory and creating a reserved memory node in the board's DT. By
modeling this reserved memory node as an nvmem device using
'nvmem-rmem', which this series introduces, user-space applications will
be able to query this information through nvmem's sysfs interface.
An alternative approach, less nice IMO, would be to create a
platform-specific 'soc' driver.
Regards,
Nicolas
[1] https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md
Applied patches #3 to #5 for next.
Regards,
Nicolas