diff options
author | Simon Glass <sjg@chromium.org> | 2022-10-20 18:23:14 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-10-31 11:04:00 -0400 |
commit | a56f663f07073713042bb0fd08053aeb667e717b (patch) | |
tree | e2b9b511a30a5d09fb2b56bb29217fb505088ce6 /arch/sandbox | |
parent | 4218456b3fac98966a320c3f2db36d543a32ec17 (diff) | |
download | u-boot-a56f663f07073713042bb0fd08053aeb667e717b.zip u-boot-a56f663f07073713042bb0fd08053aeb667e717b.tar.gz u-boot-a56f663f07073713042bb0fd08053aeb667e717b.tar.bz2 |
vbe: Add info about the VBE device to the fwupd node
At present we put the driver in the /chosen node in U-Boot. This is a bit
strange, since U-Boot doesn't normally use that node itself. It is better
to put it under the bootstd node.
To make this work we need to copy create the node under /chosen when
fixing up the device tree. Copy over all the properties so that fwupd
knows what to do.
Update the sandbox device tree accordingly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/dts/test.dts | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index db72c64..2bcc2e8 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -78,6 +78,7 @@ }; bootstd { + u-boot,dm-vpl; compatible = "u-boot,boot-std"; filename-prefixes = "/", "/boot/"; @@ -90,6 +91,19 @@ efi { compatible = "u-boot,distro-efi"; }; + + firmware0 { + u-boot,dm-vpl; + compatible = "fwupd,vbe-simple"; + storage = "mmc1"; + skip-offset = <0x200>; + area-start = <0x400>; + area-size = <0x1000>; + state-offset = <0x400>; + state-size = <0x40>; + version-offset = <0x800>; + version-size = <0x100>; + }; }; fuzzing-engine { @@ -1404,21 +1418,6 @@ compatible = "denx,u-boot-fdt-test"; reg = <9 1>; }; - - fwupd { - compatible = "simple-bus"; - firmware0 { - compatible = "fwupd,vbe-simple"; - storage = "mmc1"; - area-start = <0x400>; - area-size = <0x1000>; - skip-offset = <0x200>; - state-offset = <0x400>; - state-size = <0x40>; - version-offset = <0x800>; - version-size = <0x100>; - }; - }; }; translation-test@8000 { |