diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-11 18:55:30 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-16 08:46:30 +0200 |
commit | aa9e85c555924f9dc806a6f59034cb9c0b662c2a (patch) | |
tree | 5701ec3e46c7a797886621381a9032d2b4f9f9dd /include/of_mtd.h | |
parent | 3f0642d383451b71798a3aedb78ef5493b5f9629 (diff) | |
download | barebox-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.h | 18 |
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 */ |