dm: core: Support writing a 64-bit value

Add support for writing a single 64-bit value into a property.

Repurpose the existing tests to handle this case too.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2023-10-06 14:38:13 -04:00
committed by Tom Rini
parent d9216c8683
commit 7071c82bdc
3 changed files with 39 additions and 3 deletions
+10
View File
@@ -1461,6 +1461,16 @@ int ofnode_write_string(ofnode node, const char *propname, const char *value);
*/
int ofnode_write_u32(ofnode node, const char *propname, u32 value);
/**
* ofnode_write_u64() - Set an integer property of an ofnode
*
* @node: The node for whose string property should be set
* @propname: The name of the string property to set
* @value: The new value of the 64-bit integer property
* Return: 0 if successful, -ve on error
*/
int ofnode_write_u64(ofnode node, const char *propname, u64 value);
/**
* ofnode_write_bool() - Set a boolean property of an ofnode
*