RPi4's co-processor will copy the board's bootloader configuration in
memory. Expose it to user-space by using 'nvmem-rmem'.
Signed-off-by: Nicolas Saenz Julienne <[email protected]>
---
arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
index c58e58e8ce39..261169eb5e3b 100644
--- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
+++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
@@ -26,6 +26,17 @@ aliases {
ethernet0 = &genet;
pcie0 = &pcie0;
eeprom = &eeprom;
+ fw_config = &fw_config;
+ };
+
+ fw_config: fw-config {
+ compatible = "nvmem-rmem";
+ memory-region = <&eeprom>;
+ /*
+ * Will be enabled by the bootloader if the reserved memory
+ * region is valid.
+ */
+ status = "disabled";
};
leds {
--
2.29.2