diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-10-12 08:26:13 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-13 08:45:15 +0200 |
commit | f2b9f45263f839f5e42a9f83ed69af6f39e8b2ae (patch) | |
tree | b31b9fcbe4d6f0a187a6a8601f283c00033dbb22 /arch/sandbox | |
parent | 62013777e6041b7437c233686a60d1454e9ff06d (diff) | |
download | barebox-f2b9f45263f839f5e42a9f83ed69af6f39e8b2ae.tar.gz barebox-f2b9f45263f839f5e42a9f83ed69af6f39e8b2ae.tar.xz |
sandbox: dts: define default environment node
Now that we can define a hostfile that's persistent over barebox resets,
but does not rely on a hard coded filename, we can have an always-on
environment node.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/dts/sandbox.dts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts index b3327837a3..afca02d410 100644 --- a/arch/sandbox/dts/sandbox.dts +++ b/arch/sandbox/dts/sandbox.dts @@ -11,10 +11,30 @@ }; chosen { + environment { + compatible = "barebox,environment"; + device-path = &part_env; + }; }; memory { device_type = "memory"; reg = <0 0 0 0>; }; + + stickypage: stickypage { + compatible = "barebox,hostfile"; + reg = <0 0 0 4096>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + part_env: env@400 { + reg = <0x400 0x800>; + label = "env"; + }; + }; + }; }; |