|
@@ -235,6 +235,9 @@ extern struct device_node *of_find_node_with_property(
|
|
|
extern struct property *of_find_property(const struct device_node *np,
|
|
extern struct property *of_find_property(const struct device_node *np,
|
|
|
const char *name,
|
|
const char *name,
|
|
|
int *lenp);
|
|
int *lenp);
|
|
|
|
|
+extern int of_property_read_u32_index(const struct device_node *np,
|
|
|
|
|
+ const char *propname,
|
|
|
|
|
+ u32 index, u32 *out_value);
|
|
|
extern int of_property_read_u8_array(const struct device_node *np,
|
|
extern int of_property_read_u8_array(const struct device_node *np,
|
|
|
const char *propname, u8 *out_values, size_t sz);
|
|
const char *propname, u8 *out_values, size_t sz);
|
|
|
extern int of_property_read_u16_array(const struct device_node *np,
|
|
extern int of_property_read_u16_array(const struct device_node *np,
|
|
@@ -394,6 +397,12 @@ static inline struct device_node *of_find_compatible_node(
|
|
|
return NULL;
|
|
return NULL;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+static inline int of_property_read_u32_index(const struct device_node *np,
|
|
|
|
|
+ const char *propname, u32 index, u32 *out_value)
|
|
|
|
|
+{
|
|
|
|
|
+ return -ENOSYS;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
static inline int of_property_read_u8_array(const struct device_node *np,
|
|
static inline int of_property_read_u8_array(const struct device_node *np,
|
|
|
const char *propname, u8 *out_values, size_t sz)
|
|
const char *propname, u8 *out_values, size_t sz)
|
|
|
{
|
|
{
|