summaryrefslogtreecommitdiff
path: root/drivers/core/read.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-09-25 17:28:16 -0400
committerTom Rini <trini@konsulko.com>2017-09-25 17:28:16 -0400
commit78cb000b84d478c51326cc816280c25dafe447e6 (patch)
tree595d96503de8f2f72c1088153361abfee7410260 /drivers/core/read.c
parent1f6049e2501b5c35c61435dbc05ba96743202674 (diff)
parent8ff7763d62d09c541e398239b7e4e3a5e732d273 (diff)
Merge git://git.denx.de/u-boot-mmc
Diffstat (limited to 'drivers/core/read.c')
-rw-r--r--drivers/core/read.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/core/read.c b/drivers/core/read.c
index 065589a6abc..eacf1716fd7 100644
--- a/drivers/core/read.c
+++ b/drivers/core/read.c
@@ -81,6 +81,17 @@ int dev_read_stringlist_search(struct udevice *dev, const char *property,
return ofnode_stringlist_search(dev_ofnode(dev), property, string);
}
+int dev_read_string_index(struct udevice *dev, const char *propname, int index,
+ const char **outp)
+{
+ return ofnode_read_string_index(dev_ofnode(dev), propname, index, outp);
+}
+
+int dev_read_string_count(struct udevice *dev, const char *propname)
+{
+ return ofnode_read_string_count(dev_ofnode(dev), propname);
+}
+
int dev_read_phandle_with_args(struct udevice *dev, const char *list_name,
const char *cells_name, int cell_count,
int index,