1. 14 5月, 2012 4 次提交
  2. 27 3月, 2012 2 次提交
  3. 10 1月, 2012 1 次提交
  4. 11 9月, 2011 12 次提交
  5. 25 5月, 2011 1 次提交
  6. 31 3月, 2011 1 次提交
  7. 12 3月, 2011 1 次提交
    • I
      mtd: nand: add software BCH ECC support · 193bd400
      Ivan Djelic 提交于
      This patch adds software BCH ECC support to mtd, in order to handle recent
      NAND device ecc requirements (4 bits or more).
      
      It does so by adding a new ecc mode (NAND_ECC_SOFT_BCH) for use by board
      drivers, and a new Kconfig option to enable BCH support. It relies on the
      generic BCH library introduced in a previous patch.
      
      When a board driver uses mode NAND_ECC_SOFT_BCH, it should also set fields
      chip->ecc.size and chip->ecc.bytes to select BCH ecc data size and required
      error correction capability. See nand_bch_init() documentation for details.
      
      It has been tested on the following platforms using mtd-utils, UBI and
      UBIFS: x86 (with nandsim), arm926ejs.
      Signed-off-by: NIvan Djelic <ivan.djelic@parrot.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      193bd400
  8. 04 12月, 2010 1 次提交
  9. 25 10月, 2010 8 次提交
  10. 09 8月, 2010 1 次提交
  11. 02 8月, 2010 1 次提交
  12. 14 5月, 2010 2 次提交
    • K
      mtd: nand: support alternate BB marker locations on MLC · b60b08b0
      Kevin Cernekee 提交于
      This is a slightly modified version of a patch submitted last year by
      Reuben Dowle <reuben.dowle@navico.com>.  His original comments follow:
      
      This patch adds support for some MLC NAND flashes that place the BB
      marker in the LAST page of the bad block rather than the FIRST page used
      for SLC NAND and other types of MLC nand.
      
      Lifted from Samsung datasheet for K9LG8G08U0A (1Gbyte MLC NAND):
      "
      Identifying Initial Invalid Block(s)
      All device locations are erased(FFh) except locations where the initial
      invalid block(s) information is written prior to shipping. The initial
      invalid block(s) status is defined by the 1st byte in the spare area.
      Samsung makes sure that the last page of every initial invalid block has
      non-FFh data at the column address of 2,048.
      ...
      "
      
      As far as I can tell, this is the same for all Samsung MLC nand, and in
      fact the samsung bsp for the processor used in our project (s3c6410)
      actually contained a hack similar to this patch but less portable to
      enable use of their NAND parts. I discovered this problem when trying to
      use a Micron NAND which does not used this layout - I wish samsung would
      put their stuff in main-line to avoid this type of problem.
      
      Currently this patch causes all MLC nand with manufacturer codes from
      Samsung and ST(Numonyx) to use this alternative location, since these
      are the manufactures that I know of that use this layout.
      Signed-off-by: NKevin Cernekee <cernekee@gmail.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      b60b08b0
    • K
      mtd: nand: extend NAND flash detection to new MLC chips · 426c457a
      Kevin Cernekee 提交于
      Some of the newer MLC devices have a 6-byte ID sequence in which
      several field definitions differ from older chips in a manner that is
      not backward compatible.  For instance:
      
      Samsung K9GAG08U0M (5-byte sequence): ec d5 14 b6 74
      4th byte, bits 1:0 encode the page size: 0=1KiB, 1=2KiB, 2=4KiB, 3=8KiB
      4th byte, bits 5:4 encode the block size: 0=64KiB, 1=128KiB, ...
      4th byte, bit 6 encodes the OOB size: 0=8B/512B, 1=16B/512B
      
      Samsung K9GAG08U0D (6-byte sequence): ec d5 94 29 34 41
      4th byte, bits 1:0 encode the page size: 0=2KiB, 1=4KiB, 3=8KiB, 4=rsvd
      4th byte, bits 7;5:4 encode the block size: 0=128KiB, 1=256KiB, ...
      4th byte, bits 6;3:2 encode the OOB size: 1=128B/page, 2=218B/page
      
      This patch uses the new 6-byte scheme if the following conditions are
      all true:
      
      1) The ID code wraps around after exactly 6 bytes
      
      2) Manufacturer is Samsung
      
      3) 6th byte is zero
      
      The patch also extends the maximum OOB size from 128B to 256B.
      Signed-off-by: NKevin Cernekee <cernekee@gmail.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      426c457a
  13. 27 2月, 2010 3 次提交
  14. 26 2月, 2010 1 次提交
  15. 30 11月, 2009 1 次提交