diff options
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/elm.h | 16 | ||||
| -rw-r--r-- | include/linux/platform_data/mtd-nand-omap2.h | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/platform_data/elm.h b/include/linux/platform_data/elm.h index 780d1e97f620..b8686c00f15f 100644 --- a/include/linux/platform_data/elm.h +++ b/include/linux/platform_data/elm.h | |||
| @@ -42,8 +42,24 @@ struct elm_errorvec { | |||
| 42 | int error_loc[16]; | 42 | int error_loc[16]; |
| 43 | }; | 43 | }; |
| 44 | 44 | ||
| 45 | #if IS_ENABLED(CONFIG_MTD_NAND_OMAP_BCH) | ||
| 45 | void elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, | 46 | void elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, |
| 46 | struct elm_errorvec *err_vec); | 47 | struct elm_errorvec *err_vec); |
| 47 | int elm_config(struct device *dev, enum bch_ecc bch_type, | 48 | int elm_config(struct device *dev, enum bch_ecc bch_type, |
| 48 | int ecc_steps, int ecc_step_size, int ecc_syndrome_size); | 49 | int ecc_steps, int ecc_step_size, int ecc_syndrome_size); |
| 50 | #else | ||
| 51 | static inline void | ||
| 52 | elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, | ||
| 53 | struct elm_errorvec *err_vec) | ||
| 54 | { | ||
| 55 | } | ||
| 56 | |||
| 57 | static inline int elm_config(struct device *dev, enum bch_ecc bch_type, | ||
| 58 | int ecc_steps, int ecc_step_size, | ||
| 59 | int ecc_syndrome_size) | ||
| 60 | { | ||
| 61 | return -ENOSYS; | ||
| 62 | } | ||
| 63 | #endif /* CONFIG_MTD_NAND_ECC_BCH */ | ||
| 64 | |||
| 49 | #endif /* __ELM_H */ | 65 | #endif /* __ELM_H */ |
diff --git a/include/linux/platform_data/mtd-nand-omap2.h b/include/linux/platform_data/mtd-nand-omap2.h index 16ec262dfcc8..090bbab0130a 100644 --- a/include/linux/platform_data/mtd-nand-omap2.h +++ b/include/linux/platform_data/mtd-nand-omap2.h | |||
| @@ -71,6 +71,7 @@ struct omap_nand_platform_data { | |||
| 71 | struct mtd_partition *parts; | 71 | struct mtd_partition *parts; |
| 72 | int nr_parts; | 72 | int nr_parts; |
| 73 | bool dev_ready; | 73 | bool dev_ready; |
| 74 | bool flash_bbt; | ||
| 74 | enum nand_io xfer_type; | 75 | enum nand_io xfer_type; |
| 75 | int devsize; | 76 | int devsize; |
| 76 | enum omap_ecc ecc_opt; | 77 | enum omap_ecc ecc_opt; |
