summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-05-19 13:55:43 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-05-19 13:55:43 +0200
commit1e284880fb5b339bc922faa6cdb7fa4274838578 (patch)
treea3d606e6aaa3626ddedaf3c19fea6cdbc3fb3235 /include
parent764fdbaba337e3b58f31ce7b177c4e7c0ba2088d (diff)
parent38f240bc08205857b3fc3d25cb9ba69931d9b50a (diff)
downloadbarebox-1e284880fb5b339bc922faa6cdb7fa4274838578.tar.gz
barebox-1e284880fb5b339bc922faa6cdb7fa4274838578.tar.xz
Merge branch 'for-next/of-board'
Diffstat (limited to 'include')
-rw-r--r--include/common.h6
-rw-r--r--include/of.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 4167d4676e..bd12035688 100644
--- a/include/common.h
+++ b/include/common.h
@@ -126,4 +126,10 @@ const char *barebox_get_hostname(void);
void barebox_set_hostname(const char *);
void barebox_set_hostname_no_overwrite(const char *);
+const char *barebox_get_serial_number(void);
+void barebox_set_serial_number(const char *);
+
+void barebox_set_of_machine_compatible(const char *);
+const char *barebox_get_of_machine_compatible(void);
+
#endif /* __COMMON_H_ */
diff --git a/include/of.h b/include/of.h
index cf9950e9b3..3a8e32f69c 100644
--- a/include/of.h
+++ b/include/of.h
@@ -316,6 +316,7 @@ 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);
+int of_prepend_machine_compatible(struct device_node *root, const char *compat);
#else
static inline bool of_node_name_eq(const struct device_node *np, const char *name)
{
@@ -834,6 +835,11 @@ static inline int of_autoenable_i2c_by_component(char *path)
return -ENODEV;
}
+static int of_prepend_machine_compatible(struct device_node *root,
+ const char *compat)
+{
+ return -ENODEV;
+}
#endif