diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-15 08:50:18 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-16 08:40:37 +0200 |
commit | 775ba3c093be186d345ab7132116fd0ed3e53ba2 (patch) | |
tree | 2f24e9eab96d5846c6403fe9dc3547edb9ea91a3 /include/common.h | |
parent | b986f4f1ee4881c4c1d81738cf9f0366381f7066 (diff) | |
download | barebox-775ba3c093be186d345ab7132116fd0ed3e53ba2.tar.gz barebox-775ba3c093be186d345ab7132116fd0ed3e53ba2.tar.xz |
introduce barebox_set_model
Instead of calling of_get_model() in barebox_get_model() add a
barebox_set_model() and use it to set the boardinfo once it's
available from the devicetree.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 09b8c39a7f..7d05d8ba3b 100644 --- a/include/common.h +++ b/include/common.h @@ -235,6 +235,7 @@ static inline void barebox_banner(void) {} #endif const char *barebox_get_model(void); +void barebox_set_model(const char *); #define IOMEM(addr) ((void __force __iomem *)(addr)) |