diff options
author | Simon Glass | 2023-09-26 08:14:45 -0600 |
---|---|---|
committer | Tom Rini | 2023-10-06 14:38:13 -0400 |
commit | 7071c82bdc55ed5d7955d8e1682b7c80af5659b5 (patch) | |
tree | 24e8c3bd7ca4fe80759f30dd3ea37b8af512bee4 /include/dm | |
parent | d9216c8683fced4cbf6d437b4357c9368bf1bf86 (diff) |
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>
Diffstat (limited to 'include/dm')
-rw-r--r-- | include/dm/ofnode.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index ebea29d32af..ef1437cc556 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -1462,6 +1462,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 * * This either adds or deleted a property with a zero-length value |