diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-07-18 12:56:33 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-08-06 13:55:03 +0200 |
commit | 2f1cfea510284f1ab6aa9b7268a4dba28748ee0e (patch) | |
tree | a1020484cf71c58e154d1839a2f3662fbf7dec71 /include | |
parent | faf766e2b21661ad8e247d1d83f571bfa9d55d8f (diff) | |
download | barebox-2f1cfea510284f1ab6aa9b7268a4dba28748ee0e.tar.gz barebox-2f1cfea510284f1ab6aa9b7268a4dba28748ee0e.tar.xz |
mtd: nand: Add function to parse device tree properties
This adds nand_of_parse_node() which can be used to parse generic
NAND device properties. Not very complete yet, but it's a start.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/nand.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 785cb06030..7f17767c69 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -52,6 +52,8 @@ extern int nand_check_erased_ecc_chunk(void *data, int datalen, int bitflips_threshold); int nand_check_erased_buf(void *buf, int len, int bitflips_threshold); +void nand_of_parse_node(struct mtd_info *mtd, struct device_node *np); + /* The maximum number of NAND chips in an array */ #define NAND_MAX_CHIPS 8 |