aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/mtd-nand-s3c2410.h7
1 files changed, 5 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..f01659026b26 100644
--- a/include/linux/platform_data/mtd-nand-s3c2410.h
+++ b/include/linux/platform_data/mtd-nand-s3c2410.h
@@ -12,9 +12,10 @@
12#ifndef __MTD_NAND_S3C2410_H 12#ifndef __MTD_NAND_S3C2410_H
13#define __MTD_NAND_S3C2410_H 13#define __MTD_NAND_S3C2410_H
14 14
15#include <linux/mtd/nand.h>
16
15/** 17/**
16 * struct s3c2410_nand_set - define a set of one or more nand chips 18 * struct s3c2410_nand_set - define a set of one or more nand chips
17 * @disable_ecc: Entirely disable ECC - Dangerous
18 * @flash_bbt: Openmoko u-boot can create a Bad Block Table 19 * @flash_bbt: Openmoko u-boot can create a Bad Block Table
19 * Setting this flag will allow the kernel to 20 * Setting this flag will allow the kernel to
20 * look for it at boot time and also skip the NAND 21 * look for it at boot time and also skip the NAND
@@ -31,7 +32,6 @@
31 * a warning at boot time. 32 * a warning at boot time.
32 */ 33 */
33struct s3c2410_nand_set { 34struct s3c2410_nand_set {
34 unsigned int disable_ecc:1;
35 unsigned int flash_bbt:1; 35 unsigned int flash_bbt:1;
36 36
37 unsigned int options; 37 unsigned int options;
@@ -40,6 +40,7 @@ struct s3c2410_nand_set {
40 char *name; 40 char *name;
41 int *nr_map; 41 int *nr_map;
42 struct mtd_partition *partitions; 42 struct mtd_partition *partitions;
43 struct device_node *of_node;
43}; 44};
44 45
45struct s3c2410_platform_nand { 46struct s3c2410_platform_nand {
@@ -51,6 +52,8 @@ struct s3c2410_platform_nand {
51 52
52 unsigned int ignore_unset_ecc:1; 53 unsigned int ignore_unset_ecc:1;
53 54
55 nand_ecc_modes_t ecc_mode;
56
54 int nr_sets; 57 int nr_sets;
55 struct s3c2410_nand_set *sets; 58 struct s3c2410_nand_set *sets;
56 59