|
@@ -1181,6 +1181,22 @@ static inline int fdt_property_cell(void *fdt, const char *name, uint32_t val)
|
|
{
|
|
{
|
|
return fdt_property_u32(fdt, name, val);
|
|
return fdt_property_u32(fdt, name, val);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * fdt_property_placeholder - add a new property and return a ptr to its value
|
|
|
|
+ *
|
|
|
|
+ * @fdt: pointer to the device tree blob
|
|
|
|
+ * @name: name of property to add
|
|
|
|
+ * @len: length of property value in bytes
|
|
|
|
+ * @valp: returns a pointer to where where the value should be placed
|
|
|
|
+ *
|
|
|
|
+ * returns:
|
|
|
|
+ * 0, on success
|
|
|
|
+ * -FDT_ERR_BADMAGIC,
|
|
|
|
+ * -FDT_ERR_NOSPACE, standard meanings
|
|
|
|
+ */
|
|
|
|
+int fdt_property_placeholder(void *fdt, const char *name, int len, void **valp);
|
|
|
|
+
|
|
#define fdt_property_string(fdt, name, str) \
|
|
#define fdt_property_string(fdt, name, str) \
|
|
fdt_property(fdt, name, str, strlen(str)+1)
|
|
fdt_property(fdt, name, str, strlen(str)+1)
|
|
int fdt_end_node(void *fdt);
|
|
int fdt_end_node(void *fdt);
|