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>
This commit is contained in:
Simon Glass
2022-10-20 18:23:14 -06:00
committed by Tom Rini
parent 4218456b3f
commit a56f663f07
3 changed files with 38 additions and 24 deletions

View File

@@ -16,7 +16,12 @@
#include <test/ut.h>
#include "bootstd_common.h"
/* Basic test of reading nvdata and updating a fwupd node in the device tree */
/*
* Basic test of reading nvdata and updating a fwupd node in the device tree
*
* This sets up its own VBE info in the device, using bootstd_setup_for_tests()
* then does a VBE fixup and checks that everything is present.
*/
static int vbe_simple_test_base(struct unit_test_state *uts)
{
const char *version, *bl_version;