diff options
Diffstat (limited to 'drivers/mtd/nand/bcm_umi_bch.c')
-rw-r--r-- | drivers/mtd/nand/bcm_umi_bch.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/mtd/nand/bcm_umi_bch.c b/drivers/mtd/nand/bcm_umi_bch.c index f8472b49567a..5914bb32e001 100644 --- a/drivers/mtd/nand/bcm_umi_bch.c +++ b/drivers/mtd/nand/bcm_umi_bch.c | |||
@@ -22,9 +22,9 @@ | |||
22 | 22 | ||
23 | /* ---- Private Function Prototypes -------------------------------------- */ | 23 | /* ---- Private Function Prototypes -------------------------------------- */ |
24 | static int bcm_umi_bch_read_page_hwecc(struct mtd_info *mtd, | 24 | static int bcm_umi_bch_read_page_hwecc(struct mtd_info *mtd, |
25 | struct nand_chip *chip, uint8_t *buf, int page); | 25 | struct nand_chip *chip, uint8_t *buf, int oob_required, int page); |
26 | static void bcm_umi_bch_write_page_hwecc(struct mtd_info *mtd, | 26 | static void bcm_umi_bch_write_page_hwecc(struct mtd_info *mtd, |
27 | struct nand_chip *chip, const uint8_t *buf); | 27 | struct nand_chip *chip, const uint8_t *buf, int oob_required); |
28 | 28 | ||
29 | /* ---- Private Variables ------------------------------------------------ */ | 29 | /* ---- Private Variables ------------------------------------------------ */ |
30 | 30 | ||
@@ -103,11 +103,12 @@ static struct nand_ecclayout nand_hw_eccoob_4096 = { | |||
103 | * @mtd: mtd info structure | 103 | * @mtd: mtd info structure |
104 | * @chip: nand chip info structure | 104 | * @chip: nand chip info structure |
105 | * @buf: buffer to store read data | 105 | * @buf: buffer to store read data |
106 | * @oob_required: caller expects OOB data read to chip->oob_poi | ||
106 | * | 107 | * |
107 | ***************************************************************************/ | 108 | ***************************************************************************/ |
108 | static int bcm_umi_bch_read_page_hwecc(struct mtd_info *mtd, | 109 | static int bcm_umi_bch_read_page_hwecc(struct mtd_info *mtd, |
109 | struct nand_chip *chip, uint8_t * buf, | 110 | struct nand_chip *chip, uint8_t * buf, |
110 | int page) | 111 | int oob_required, int page) |
111 | { | 112 | { |
112 | int sectorIdx = 0; | 113 | int sectorIdx = 0; |
113 | int eccsize = chip->ecc.size; | 114 | int eccsize = chip->ecc.size; |
@@ -190,10 +191,11 @@ static int bcm_umi_bch_read_page_hwecc(struct mtd_info *mtd, | |||
190 | * @mtd: mtd info structure | 191 | * @mtd: mtd info structure |
191 | * @chip: nand chip info structure | 192 | * @chip: nand chip info structure |
192 | * @buf: data buffer | 193 | * @buf: data buffer |
194 | * @oob_required: must write chip->oob_poi to OOB | ||
193 | * | 195 | * |
194 | ***************************************************************************/ | 196 | ***************************************************************************/ |
195 | static void bcm_umi_bch_write_page_hwecc(struct mtd_info *mtd, | 197 | static void bcm_umi_bch_write_page_hwecc(struct mtd_info *mtd, |
196 | struct nand_chip *chip, const uint8_t *buf) | 198 | struct nand_chip *chip, const uint8_t *buf, int oob_required) |
197 | { | 199 | { |
198 | int sectorIdx = 0; | 200 | int sectorIdx = 0; |
199 | int eccsize = chip->ecc.size; | 201 | int eccsize = chip->ecc.size; |