aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/platform_data/mtd-nand-s3c2410.h
diff options
context:
space:
mode:
authorSergio Prado <sergio.prado@e-labworks.com>2016-10-20 19:42:44 -0200
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-11-07 14:48:35 +0100
commite9f66ae23c209eec617130126a23bf547bf7a6d8 (patch)
treef4b3c02aa55dff086525a48682c0e7460ff44d38 /include/linux/platform_data/mtd-nand-s3c2410.h
parentmtd: nand: Add OX820 NAND Support (diff)
downloadwireguard-linux-e9f66ae23c209eec617130126a23bf547bf7a6d8.tar.xz
wireguard-linux-e9f66ae23c209eec617130126a23bf547bf7a6d8.zip
mtd: s3c2410: make ecc mode configurable via platform data
Removing CONFIG_MTD_NAND_S3C2410_HWECC option and adding a ecc_mode field in the drivers's platform data structure so it can be selectable via platform data. Also setting this field to NAND_ECC_SOFT in all boards using this driver since none of them had CONFIG_MTD_NAND_S3C2410_HWECC enabled. Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com> Acked-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'include/linux/platform_data/mtd-nand-s3c2410.h')
-rw-r--r--include/linux/platform_data/mtd-nand-s3c2410.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/platform_data/mtd-nand-s3c2410.h b/include/linux/platform_data/mtd-nand-s3c2410.h
index c55e42ee57fa..729af13d1773 100644
--- a/include/linux/platform_data/mtd-nand-s3c2410.h
+++ b/include/linux/platform_data/mtd-nand-s3c2410.h
@@ -12,9 +12,10 @@
#ifndef __MTD_NAND_S3C2410_H
#define __MTD_NAND_S3C2410_H
+#include <linux/mtd/nand.h>
+
/**
* struct s3c2410_nand_set - define a set of one or more nand chips
- * @disable_ecc: Entirely disable ECC - Dangerous
* @flash_bbt: Openmoko u-boot can create a Bad Block Table
* Setting this flag will allow the kernel to
* look for it at boot time and also skip the NAND
@@ -31,7 +32,6 @@
* a warning at boot time.
*/
struct s3c2410_nand_set {
- unsigned int disable_ecc:1;
unsigned int flash_bbt:1;
unsigned int options;
@@ -51,6 +51,8 @@ struct s3c2410_platform_nand {
unsigned int ignore_unset_ecc:1;
+ nand_ecc_modes_t ecc_mode;
+
int nr_sets;
struct s3c2410_nand_set *sets;