summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-11-13 08:21:07 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-11-13 08:21:07 +0100
commit9d842e3bb0751a394e08f07495d9e918cb37f857 (patch)
treec7aa61049e874002cfbe52761db49dc06f2d3e8b /include
parente65434fca43a20a2f6dc207a02e7b03b749ba1b4 (diff)
parent2877e08f9e1afc0124c034c8466acedcc9696bac (diff)
downloadbarebox-9d842e3bb0751a394e08f07495d9e918cb37f857.tar.gz
barebox-9d842e3bb0751a394e08f07495d9e918cb37f857.tar.xz
Merge branch 'for-next/omap'
Diffstat (limited to 'include')
-rw-r--r--include/of.h14
-rw-r--r--include/state.h2
2 files changed, 16 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index 18a423241b..9bdbbb5ed2 100644
--- a/include/of.h
+++ b/include/of.h
@@ -262,6 +262,8 @@ struct device_node *of_find_node_by_alias(struct device_node *root,
const char *alias);
struct device_node *of_find_node_by_path_or_alias(struct device_node *root,
const char *str);
+int of_autoenable_device_by_path(char *path);
+int of_autoenable_i2c_by_component(char *path);
#else
static inline int of_parse_partitions(struct cdev *cdev,
struct device_node *node)
@@ -664,6 +666,18 @@ static inline struct device_node *of_find_node_by_path_or_alias(
{
return NULL;
}
+
+static inline int of_autoenable_i2c_by_path(char *path)
+{
+ return -ENODEV;
+}
+
+static inline int of_autoenable_i2c_by_component(char *path)
+{
+ return -ENODEV;
+}
+
+
#endif
#define for_each_node_by_name(dn, name) \
diff --git a/include/state.h b/include/state.h
index 63164f92e5..f1882ae026 100644
--- a/include/state.h
+++ b/include/state.h
@@ -23,4 +23,6 @@ int state_load(struct state *state);
int state_save(struct state *state);
void state_info(void);
+int state_read_mac(struct state *state, const char *name, u8 *buf);
+
#endif /* __STATE_H */