aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/DocBook/mtdnand.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/DocBook/mtdnand.tmpl')
-rw-r--r--Documentation/DocBook/mtdnand.tmpl17
1 files changed, 8 insertions, 9 deletions
diff --git a/Documentation/DocBook/mtdnand.tmpl b/Documentation/DocBook/mtdnand.tmpl
index 020ac80d4682..17910e2052ad 100644
--- a/Documentation/DocBook/mtdnand.tmpl
+++ b/Documentation/DocBook/mtdnand.tmpl
@@ -189,8 +189,7 @@ static void __iomem *baseaddr;
189 <title>Partition defines</title> 189 <title>Partition defines</title>
190 <para> 190 <para>
191 If you want to divide your device into partitions, then 191 If you want to divide your device into partitions, then
192 enable the configuration switch CONFIG_MTD_PARTITIONS and define 192 define a partitioning scheme suitable to your board.
193 a partitioning scheme suitable to your board.
194 </para> 193 </para>
195 <programlisting> 194 <programlisting>
196#define NUM_PARTITIONS 2 195#define NUM_PARTITIONS 2
@@ -250,7 +249,7 @@ static void board_hwcontrol(struct mtd_info *mtd, int cmd)
250 <title>Device ready function</title> 249 <title>Device ready function</title>
251 <para> 250 <para>
252 If the hardware interface has the ready busy pin of the NAND chip connected to a 251 If the hardware interface has the ready busy pin of the NAND chip connected to a
253 GPIO or other accesible I/O pin, this function is used to read back the state of the 252 GPIO or other accessible I/O pin, this function is used to read back the state of the
254 pin. The function has no arguments and should return 0, if the device is busy (R/B pin 253 pin. The function has no arguments and should return 0, if the device is busy (R/B pin
255 is low) and 1, if the device is ready (R/B pin is high). 254 is low) and 1, if the device is ready (R/B pin is high).
256 If the hardware interface does not give access to the ready busy pin, then 255 If the hardware interface does not give access to the ready busy pin, then
@@ -485,7 +484,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip)
485 Reed-Solomon library. 484 Reed-Solomon library.
486 </para> 485 </para>
487 <para> 486 <para>
488 The ECC bytes must be placed immidiately after the data 487 The ECC bytes must be placed immediately after the data
489 bytes in order to make the syndrome generator work. This 488 bytes in order to make the syndrome generator work. This
490 is contrary to the usual layout used by software ECC. The 489 is contrary to the usual layout used by software ECC. The
491 separation of data and out of band area is not longer 490 separation of data and out of band area is not longer
@@ -629,7 +628,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip)
629 holds the bad block table. Store a pointer to the pattern 628 holds the bad block table. Store a pointer to the pattern
630 in the pattern field. Further the length of the pattern has to be 629 in the pattern field. Further the length of the pattern has to be
631 stored in len and the offset in the spare area must be given 630 stored in len and the offset in the spare area must be given
632 in the offs member of the nand_bbt_descr stucture. For mirrored 631 in the offs member of the nand_bbt_descr structure. For mirrored
633 bad block tables different patterns are mandatory.</para></listitem> 632 bad block tables different patterns are mandatory.</para></listitem>
634 <listitem><para>Table creation</para> 633 <listitem><para>Table creation</para>
635 <para>Set the option NAND_BBT_CREATE to enable the table creation 634 <para>Set the option NAND_BBT_CREATE to enable the table creation
@@ -648,7 +647,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip)
648 <listitem><para>Table version control</para> 647 <listitem><para>Table version control</para>
649 <para>Set the option NAND_BBT_VERSION to enable the table version control. 648 <para>Set the option NAND_BBT_VERSION to enable the table version control.
650 It's highly recommended to enable this for mirrored tables with write 649 It's highly recommended to enable this for mirrored tables with write
651 support. It makes sure that the risk of loosing the bad block 650 support. It makes sure that the risk of losing the bad block
652 table information is reduced to the loss of the information about the 651 table information is reduced to the loss of the information about the
653 one worn out block which should be marked bad. The version is stored in 652 one worn out block which should be marked bad. The version is stored in
654 4 consecutive bytes in the spare area of the device. The position of 653 4 consecutive bytes in the spare area of the device. The position of
@@ -1060,19 +1059,19 @@ data in this page</entry>
1060<row> 1059<row>
1061<entry>0x3D</entry> 1060<entry>0x3D</entry>
1062<entry>ECC byte 21</entry> 1061<entry>ECC byte 21</entry>
1063<entry>Error correction code byte 0 of the eigth 256 Bytes of data 1062<entry>Error correction code byte 0 of the eighth 256 Bytes of data
1064in this page</entry> 1063in this page</entry>
1065</row> 1064</row>
1066<row> 1065<row>
1067<entry>0x3E</entry> 1066<entry>0x3E</entry>
1068<entry>ECC byte 22</entry> 1067<entry>ECC byte 22</entry>
1069<entry>Error correction code byte 1 of the eigth 256 Bytes of data 1068<entry>Error correction code byte 1 of the eighth 256 Bytes of data
1070in this page</entry> 1069in this page</entry>
1071</row> 1070</row>
1072<row> 1071<row>
1073<entry>0x3F</entry> 1072<entry>0x3F</entry>
1074<entry>ECC byte 23</entry> 1073<entry>ECC byte 23</entry>
1075<entry>Error correction code byte 2 of the eigth 256 Bytes of data 1074<entry>Error correction code byte 2 of the eighth 256 Bytes of data
1076in this page</entry> 1075in this page</entry>
1077</row> 1076</row>
1078</tbody></tgroup></informaltable> 1077</tbody></tgroup></informaltable>