lkml.org 
[lkml]   [2020]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/6] ARM: dts: bcm2711: Expose boot-loader configuration
Date
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@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
\
 
 \ /
  Last update: 2020-12-15 17:04    [W:0.088 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site