diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2014-02-24 19:24:48 -0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-03-10 22:42:28 -0700 |
commit | 6d9434ebb76157071164b32ad03fbed165c74382 (patch) | |
tree | b457ad39dbac4a9b3a33ab0e1e48e461b4a57a9c /include/linux/of_mtd.h | |
parent | 4b78fc42f3e3f07687dc27efc1153d29e360afa1 (diff) | |
download | linux-stable-6d9434ebb76157071164b32ad03fbed165c74382.tar.gz linux-stable-6d9434ebb76157071164b32ad03fbed165c74382.tar.bz2 linux-stable-6d9434ebb76157071164b32ad03fbed165c74382.zip |
of_mtd: Add helpers to get ECC strength and ECC step size
This commit adds simple helpers to obtain the devicetree properties
that specify the ECC strength and ECC step size to use on a given
NAND controller.
Acked-by: Boris BREZILLON <b.brezillon.dev@gmail.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/linux/of_mtd.h')
-rw-r--r-- | include/linux/of_mtd.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/of_mtd.h b/include/linux/of_mtd.h index cb32d9c1e8dc..e266caa36402 100644 --- a/include/linux/of_mtd.h +++ b/include/linux/of_mtd.h @@ -13,6 +13,8 @@ #include <linux/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); @@ -23,6 +25,16 @@ static inline int of_get_nand_ecc_mode(struct device_node *np) return -ENOSYS; } +static inline int of_get_nand_ecc_step_size(struct device_node *np) +{ + return -ENOSYS; +} + +static inline int of_get_nand_ecc_strength(struct device_node *np) +{ + return -ENOSYS; +} + static inline int of_get_nand_bus_width(struct device_node *np) { return -ENOSYS; |