summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-02-17 14:47:01 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-06 11:41:28 +0100
commit004cce1347e876b008c494ce440d5115d47e6cbe (patch)
treef912cffccd8ccf2311c28a3467fbb89e6bf5c4ab /include
parent1d9859d5e70fe5c5269ecf0d22ede270da57ac4f (diff)
downloadbarebox-004cce1347e876b008c494ce440d5115d47e6cbe.tar.gz
barebox-004cce1347e876b008c494ce440d5115d47e6cbe.tar.xz
of: make flatten independent of libfdt
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/of.h b/include/of.h
index 4622b80280..2cd55c00fc 100644
--- a/include/of.h
+++ b/include/of.h
@@ -64,6 +64,8 @@ struct of_device_id {
unsigned long data;
};
+#define OF_MAX_RESERVE_MAP 16
+
struct driver_d;
int of_match(struct device_d *dev, struct driver_d *drv);
@@ -168,7 +170,7 @@ int of_set_root_node(struct device_node *);
int of_alias_get_id(struct device_node *np, const char *stem);
int of_device_is_stdout_path(struct device_d *dev);
const char *of_get_model(void);
-void *of_flatten_dtb(void);
+void *of_flatten_dtb(struct device_node *node);
int of_add_memory(struct device_node *node, bool dump);
#else
static inline int of_parse_partitions(const char *cdevname,
@@ -197,7 +199,7 @@ static inline const char *of_get_model(void)
return NULL;
}
-static inline void *of_flatten_dtb(void)
+static inline void *of_flatten_dtb(struct device_node *node)
{
return NULL;
}