]> git.sur5r.net Git - u-boot/blobdiff - include/fdtdec.h
sun7i: add USB EHCI settings
[u-boot] / include / fdtdec.h
index f454f7e21781079e555bdfe1f4be0b504aac89d8..856e6cf766dea73ac3de4e009391052a891fd9e8 100644 (file)
@@ -363,6 +363,17 @@ int fdtdec_add_aliases_for_id(const void *blob, const char *name,
 int fdtdec_get_alias_seq(const void *blob, const char *base, int node,
                         int *seqp);
 
+/**
+ * Get the offset of the given alias node
+ *
+ * This looks up an alias in /aliases then finds the offset of that node.
+ *
+ * @param blob         Device tree blob (if NULL, then error is returned)
+ * @param name         Alias name, e.g. "console"
+ * @return Node offset referred to by that alias, or -ve FDT_ERR_...
+ */
+int fdtdec_get_alias_node(const void *blob, const char *name);
+
 /*
  * Get the name for a compatible ID
  *