1. 26 3月, 2014 2 次提交
  2. 05 4月, 2013 1 次提交
  3. 04 2月, 2013 2 次提交
    • P
      mtd: nand: omap2: Support for hardware BCH error correction. · 62116e51
      Philip Avinash 提交于
      ELM module can be used for hardware error correction of BCH 4 & 8 bit.
      ELM module functionality is verified by checking the availability of
      handle for ELM module in device tree. Hence supporting
      1. ELM module available, BCH error correction done by ELM module. Also
      support read & write page in one shot by adding custom read_page and
      write_page methods. This helps in optimizing code for NAND flashes with
      page size less than 4 KB.
      2. If ELM module not available fall back to software BCH error
      correction support.
      
      New structure member is added to omap_nand_info
      1. "is_elm_used" to know the status of whether the ELM module is used for
         error correction or not.
      2. "elm_dev" device pointer to elm device on detection of ELM module.
      
      Also being here update the device tree documentation of gpmc-nand for
      adding optional property elm_id.
      
      Note:
      ECC layout uses 1 extra bytes for 512 byte of data to handle erased
      pages. Extra byte programmed to zero for programmed pages. Also BCH8
      requires 14 byte ecc to maintain compatibility with RBL ECC layout.
      This results a common ecc layout across RBL, U-boot & Linux with BCH8.
      Signed-off-by: NPhilip Avinash <avinashphilip@ti.com>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      62116e51
    • P
      mtd: devices: elm: Add support for ELM error correction · bf224335
      Philip Avinash 提交于
      The ELM hardware module can be used to speedup BCH 4/8/16 ECC scheme
      error correction.
      For now only 4 & 8 bit support is added
      Signed-off-by: NPhilip Avinash <avinashphilip@ti.com>
      Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      bf224335