summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2015-11-20 20:35:54 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-11-23 08:00:09 +0100
commit7cde58cc9d435d4a3eac844c7a2662bd5a725c92 (patch)
tree81d51e16503d5246a427dbebbe7f30b2478c1263 /include
parentb9170a1bde192c691f15c4474ed2f1e7bfebbb41 (diff)
downloadbarebox-7cde58cc9d435d4a3eac844c7a2662bd5a725c92.tar.gz
barebox-7cde58cc9d435d4a3eac844c7a2662bd5a725c92.tar.xz
of: mtd: Import of_get_nand_ecc_{step_size, strength} from Linux
This imports DT helpers for MTD ECC step size and strength from Linux kernel. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of_mtd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/of_mtd.h b/include/of_mtd.h
index a5a8f20daf..9f5b8a2796 100644
--- a/include/of_mtd.h
+++ b/include/of_mtd.h
@@ -12,6 +12,8 @@
#include <of.h>
int of_get_nand_ecc_mode(struct device_node *np);
+int of_get_nand_ecc_step_size(struct device_node *np);
+int of_get_nand_ecc_strength(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);