aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-04-24 23:31:21 -0600
committerTom Rini <trini@konsulko.com>2022-04-25 10:00:04 -0400
commit7d0478d241703b50e88736f3774deb5472418b58 (patch)
treef068eb27d2e817d15f611255e6ba8362899ce1d4 /arch/sandbox
parent126947b77321418127274f3102e7988225a780b7 (diff)
downloadu-boot-7d0478d241703b50e88736f3774deb5472418b58.zip
u-boot-7d0478d241703b50e88736f3774deb5472418b58.tar.gz
u-boot-7d0478d241703b50e88736f3774deb5472418b58.tar.bz2
bootstd: sandbox: Add a hostfs bootdev
It is helpful to be able to try out bootstd on sandbox, using host files. This is easier than using a block device, which must have a filesystem, partition table, etc. Add a new driver which provides this feature. For now it is not used in tests, but it is likely to be useful. Add notes in the devicetree also, but don't disturb the tests. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/dts/sandbox.dts4
-rw-r--r--arch/sandbox/dts/sandbox.dtsi5
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts
index 127f168..18fde1c 100644
--- a/arch/sandbox/dts/sandbox.dts
+++ b/arch/sandbox/dts/sandbox.dts
@@ -66,6 +66,10 @@
fake-host-hwaddr = [00 00 66 44 22 00];
};
+ host-fs {
+ compatible = "sandbox,bootdev-host";
+ };
+
i2c_0: i2c@0 {
#address-cells = <1>;
#size-cells = <0>;
diff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/sandbox.dtsi
index 826db26..29306ac 100644
--- a/arch/sandbox/dts/sandbox.dtsi
+++ b/arch/sandbox/dts/sandbox.dtsi
@@ -19,6 +19,11 @@
#sound-dai-cells = <1>;
};
+ bootstd {
+ compatible = "u-boot,boot-std";
+ filename-prefixes = "./";
+ };
+
buttons {
compatible = "gpio-keys";