summaryrefslogtreecommitdiff
path: root/include/fdtdec.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-02-11 19:15:34 +0300
committerTom Rini <trini@konsulko.com>2019-02-11 19:15:34 +0300
commitf94fa0e94f36c740d3c7aa314c89a750c742185b (patch)
tree42077386d60386628bed02011566ddf990913eb8 /include/fdtdec.h
parentf49929772c5ea22e4af987bfb1e5ae13e9895093 (diff)
parentc4bd12a7dad43ed9de3070c7c5e8b690d8c03a79 (diff)
downloadu-boot-f94fa0e94f36c740d3c7aa314c89a750c742185b.tar.xz
Merge branch 'master' of git://git.denx.de/u-boot-i2c
- DM I2C improvements
Diffstat (limited to 'include/fdtdec.h')
-rw-r--r--include/fdtdec.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/fdtdec.h b/include/fdtdec.h
index 2a8ad96026..b7e35cd87c 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -619,6 +619,19 @@ int fdtdec_get_alias_seq(const void *blob, const char *base, int node,
int *seqp);
/**
+ * Get the highest alias number for susbystem.
+ *
+ * It parses all aliases and find out highest recorded alias for subsystem.
+ * Aliases are of the form <base><num> where <num> is the sequence number.
+ *
+ * @param blob Device tree blob (if NULL, then error is returned)
+ * @param base Base name for alias susbystem (before the number)
+ *
+ * @return 0 highest alias ID, -1 if not found
+ */
+int fdtdec_get_alias_highest_id(const void *blob, const char *base);
+
+/**
* Get a property from the /chosen node
*
* @param blob Device tree blob (if NULL, then NULL is returned)