summaryrefslogtreecommitdiffstats
path: root/include/of_mtd.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-07-11 18:55:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-16 08:46:30 +0200
commitaa9e85c555924f9dc806a6f59034cb9c0b662c2a (patch)
tree5701ec3e46c7a797886621381a9032d2b4f9f9dd /include/of_mtd.h
parent3f0642d383451b71798a3aedb78ef5493b5f9629 (diff)
downloadbarebox-aa9e85c555924f9dc806a6f59034cb9c0b662c2a.tar.gz
barebox-aa9e85c555924f9dc806a6f59034cb9c0b662c2a.tar.xz
of: add mtd of helpers
Directly taken from the kernel Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/of_mtd.h')
-rw-r--r--include/of_mtd.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/of_mtd.h b/include/of_mtd.h
new file mode 100644
index 0000000000..a5a8f20daf
--- /dev/null
+++ b/include/of_mtd.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+ *
+ * OF helpers for mtd.
+ *
+ * This file is released under the GPLv2
+ */
+
+#ifndef __LINUX_OF_MTD_H
+#define __LINUX_OF_MTD_H
+
+#include <of.h>
+
+int of_get_nand_ecc_mode(struct device_node *np);
+int of_get_nand_bus_width(struct device_node *np);
+bool of_get_nand_on_flash_bbt(struct device_node *np);
+
+#endif /* __LINUX_OF_MTD_H */