Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347224
b: refs/heads/master
c: 440b1d7
h: refs/heads/master
v: v3
  • Loading branch information
Mike Dunn authored and Artem Bityutskiy committed Dec 12, 2012
1 parent 39025b2 commit 600e44e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a90d41b693bda1318807a49d38ef1444f61dfdd
refs/heads/master: 440b1d73b1b49bc08e1709ee6f6ef7ba2fc1f8ba
10 changes: 6 additions & 4 deletions trunk/drivers/mtd/nand/docg4.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,17 @@ struct docg4_priv {
#define DOCG4_FACTORY_BBT_PAGE 16 /* page where read-only factory bbt lives */

/*
* Oob bytes 0 - 6 are available to the user.
* Byte 7 is hamming ecc for first 7 bytes. Bytes 8 - 14 are hw-generated ecc.
* Bytes 0, 1 are used as badblock marker.
* Bytes 2 - 6 are available to the user.
* Byte 7 is hamming ecc for first 7 oob bytes only.
* Bytes 8 - 14 are hw-generated ecc covering entire page + oob bytes 0 - 14.
* Byte 15 (the last) is used by the driver as a "page written" flag.
*/
static struct nand_ecclayout docg4_oobinfo = {
.eccbytes = 9,
.eccpos = {7, 8, 9, 10, 11, 12, 13, 14, 15},
.oobavail = 7,
.oobfree = { {0, 7} }
.oobavail = 5,
.oobfree = { {.offset = 2, .length = 5} }
};

/*
Expand Down

0 comments on commit 600e44e

Please sign in to comment.