[PATCH 4/6] ARM: dts: bcm2711: Expose boot-loader configuration

Nicolas Saenz Julienne nsaenzjulienne at suse.de
Tue Dec 15 10:56:24 EST 2020


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 <nsaenzjulienne at suse.de>
---
 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




More information about the linux-arm-kernel mailing list