Skip to content
Snippets Groups Projects
  1. May 26, 2015
  2. May 25, 2015
  3. May 24, 2015
    • Stefan Agner's avatar
      mtd: vf610_nfc: enable ONFI detection · 8fca2d8c
      Stefan Agner authored
      
      This changes enable ONFI detection. The Read ID command now allows
      one address byte which is needed for ONFI detection. To read the
      ONFI parameter page, the NAND_CMD_PARAM need to be supported. The
      CMD code enables one command and one address byte along with reading
      data from flash using R/B#, as specified by ONFI.
      
      Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
      8fca2d8c
    • Stefan Agner's avatar
      mtd: vf610_nfc: add 32-error correction option for HW ECC · 080a71e8
      Stefan Agner authored
      
      Add option to choose between current 24-error correction and 32-error
      correction through Kconfig. 32-error correction allow to use NAND
      chips which require up to 8-bit error correction per 512 byte (when
      using 2K pages).
      
      Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
      080a71e8
    • Stefan Agner's avatar
      mtd: vf610_nfc: add Freescale NFC controller configs to Kconfig · 5519194d
      Stefan Agner authored
      
      This commit allows users to enable/disable the Freescale NFC
      controller found in systems like Vybrid (VF610), MPC5125, MCF54418
      or Kinetis K70 via Kconfig with more detailed help docs.
      
      Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
      Acked-by: default avatarStefano Babic <sbabic@denx.de>
      [scottwood: updated vf610twr_nand_defconfig]
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      5519194d
    • Stefan Agner's avatar
      mtd: vf610_nfc: use in-band bad block table · 84d656a2
      Stefan Agner authored
      
      Use in-band bad block table (NAND_BBT_NO_OOB) which allows to
      use the full OOB for hardare ECC purposes. Since there is no
      ECC correction on the OOB it is also safer to use in-band area
      to store the bad block table marker.
      
      Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
      84d656a2
    • Stefan Agner's avatar
      mtd: vf610_nfc: implement OOB only read · 5dec286b
      Stefan Agner authored
      
      Implement read of OOB area only. When using column and sector size
      properties, only parts of the page can be read. However, this works
      only when hardware ECC is disabled, otherwise the ECC engine would
      ruin the data in the buffer. To allow OOB only reads, three points
      had to be addressed:
      - Set ECC mode per command.
      - Handle NAND_CMD_READOOB seperate. Make sure column and sector
        size is correctly set up, while disabling ECC.
      - Now, the OOB data end up at the beginning of the buffer. Remove
        the special handling of OOB (spareonly).
      
      Especially bad block scans benefit from this change. On a 512MiB
      SLC NAND device, the bad block scan took 1.5s less than before.
      
      Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
      5dec286b
Loading