1. 21 Nov, 2013 3 commits
    • pekon gupta's avatar
      mtd: nand: omap: enable BCH ECC scheme using ELM for generic platform · d016dc42
      pekon gupta authored
      BCH8_ECC scheme implemented in omap_gpmc.c driver has following favours
      |ECC Scheme                         | ECC Calculation | Error Detection |
      |OMAP_ECC_BCH8_CODE_HW              |GPMC             |ELM H/W engine   |
      |OMAP_ECC_BCH8_CODE_HW_DETECTION_SW |GPMC             |S/W BCH library  |
      Current implementation limits the BCH8_CODE_HW only for AM33xx device family.
      (using CONFIG_AM33XX). However, other SoC families (like TI81xx) also have
      ELM hardware module, and can support ECC error detection using ELM.
      This patch
      - removes CONFIG_AM33xx
      	Thus this driver can be reused by all devices having ELM h/w engine.
      - adds omap_select_ecc_scheme()
      	A common function to handle ecc-scheme related configurations. This
      	can be used both during device-probe and via user-space u-boot commads
      	to change ecc-scheme. During device probe ecc-scheme is selected based
      - enables CONFIG_BCH
      	S/W library (lib/bch.c) required by OMAP_ECC_BCHx_CODE_HW_DETECTION_SW
        	is enabled by CONFIG_BCH.
      	for auto-detection of ONFI compliant NAND devices
      - updates following README doc
      Signed-off-by: default avatarPekon Gupta <pekon@ti.com>
      [scottwood@freescale.com: fixed unused variable warning]
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
    • pekon gupta's avatar
      mtd: nand: omap: make am33xx/elm.c as common driver for all OMAPx and AMxxxx platforms · beba5f04
      pekon gupta authored
      ELM hardware engine which is used for ECC error detection, is present on all
      latest OMAP SoC (like OMAP4xxx, OMAP5xxx, DRA7xxx, AM33xx, AM43xx). Thus ELM
      driver should be moved to common drivers/mtd/nand/ folder so that all SoC
      having on-chip ELM hardware engine can re-use it.
      This patch has following changes:
      - mv arch/arm/include/asm/arch-am33xx/elm.h arch/arm/include/asm/omap_elm.h
      - mv arch/arm/cpu/armv7/am33xx/elm.c drivers/mtd/nand/omap_elm.c
      - update Makefiles
      - update #include <asm/elm.h>
      - add CONFIG_NAND_OMAP_ELM to compile driver/mtd/nand/omap_elm.c
      	and include in all board configs using AM33xx SoC platform.
      Signed-off-by: default avatarPekon Gupta <pekon@ti.com>
    • Prabhakar Kushwaha's avatar
      mtd: move & update nand_ecclayout structure (plus board changes) · 68ec9c85
      Prabhakar Kushwaha authored
      nand_ecclayout is present in mtd.h at Linux.
      Move this structure to mtd.h to comply with Linux.
      Also, increase the ecc placement locations to 640 to suport device having
      writesize/oobsize of 8KB/640B. This means that the maximum oobsize has gone
      up to 640 bytes and consequently the maximum ecc placement locations have
      also gone up to 640.
      Changes from Prabhabkar's version (squashed into one patch to preserve
       - Added _LARGE to MTD_MAX_*_ENTRIES
         This makes the names match current Linux source, and resolves
         a conflict between
         The former was posted first and is closer to matching Linux, but
         unlike Linux it does not add _LARGE to the names.  The second adds
         _LARGE to one of the names, and depends on it in a subsequent patch
       - Made max oobfree/eccpos configurable, and used this on tricorder,
         alpr, ASH405, T4160QDS, and T4240QDS (these boards failed to build
         for me without doing so, due to a size increase).
         On tricorder SPL, this saves 2576 bytes (and makes the SPL build
         again) versus the new default of 640 eccpos and 32 oobfree, and
         saves 336 bytes versus the old default of 128 eccpos and 8 oobfree.
      Signed-off-by: default avatarPrabhakar Kushwaha <prabhakar@freescale.com>
      CC: Vipin Kumar <vipin.kumar@st.com>
      [scottwood@freescale.com: changes as described above]
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      Cc: Thomas Weber <weber@corscience.de>
      Cc: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
      Cc: Stefan Roese <sr@denx.de>
      Cc: York Sun <yorksun@freescale.com>
      Cc: Tom Rini <trini@ti.com>
      Reviewed-by: default avatarStefan Roese <sr@denx.de>
  2. 24 Jul, 2013 1 commit
  3. 26 Nov, 2012 1 commit
  4. 17 Sep, 2012 1 commit
  5. 18 May, 2012 1 commit
  6. 26 Jan, 2012 1 commit
    • Scott Wood's avatar
      nand: Introduce CONFIG_SYS_NAND_SELF_INIT · 578931b3
      Scott Wood authored
      This allows a driver to run code between nand_scan_ident() and
      nand_scan_tail(), among other things.  See the additions to
      doc/README.nand for details.
      To allow a gradual transition, Boards that don't set
      CONFIG_SYS_NAND_SELF_INIT will still be initialized the old way, but
      new drivers should not require this, and existing drivers should be
      converted when convenient.
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
  7. 03 Oct, 2011 1 commit
  8. 01 Jul, 2011 1 commit
  9. 17 Jul, 2009 1 commit
    • Scott Wood's avatar
      Remove legacy NAND and disk on chip code. · be33b046
      Scott Wood authored
      Legacy NAND had been scheduled for removal.  Any boards that use this
      were already not building in the previous release due to an #error.
      The disk on chip code in common/cmd_doc.c relies on legacy NAND,
      and it has also been removed.  There is newer disk on chip code
      in drivers/mtd/nand; someone with access to hardware and sufficient
      time and motivation can try to get that working, but for now disk
      on chip is not supported.
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
  10. 07 Jul, 2009 1 commit
    • David Brownell's avatar
      davinci_nand: cleanup II (CONFIG_SYS_DAVINCI_BROKEN_ECC) · 6e29ed8e
      David Brownell authored
      Remove CONFIG_SYS_DAVINCI_BROKEN_ECC option.  It's not just nasty;
      it's also unused by any current boards, and doesn't even match the
      main U-Boot distributions from TI (which use soft ECC, or 4-bit ECC
      on newer chips that support it).
      DaVinci GIT kernels since 2.6.24, and mainline Linux since 2.6.30,
      match non-BROKEN code paths for 1-bit HW ECC.  The BROKEN code paths
      do seem to partially match what MontaVista/TI kernels (4.0/2.6.10,
      and 5.0/2.6.18) do ... but only for small pages.  Large page support
      is really broken (and it's unclear just what software it was trying
      to match!), and the ECC layout was making three more bytes available
      for use by filesystem (or whatever) code.
      Since this option itself seems broken, remove it.  Add a comment
      about the MV/TI compat issue, and the most straightforward way to
      address it (should someone really need to solve it).
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
  11. 03 Apr, 2009 1 commit
    • Scott Wood's avatar
      Noisily disable the legacy NAND subsystem. · 99067b08
      Scott Wood authored
      Legacy NAND is marked for feature removal after April 2009 (i.e. this
      upcoming release).  There are still several boards that reference it
      (though many do so only for disk-on-chip support which has been silently
      disabled for a while now).  These boards will now fail to build
      with #error, though the code is still there if the user removes #error.
      The plan is to remove the code outright in the next release, along with
      any board code that refers to it (such as board/esd/common/auto_update.c).
      Also, remove the legacy NAND API description from README.nand.
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
  12. 23 Jan, 2009 1 commit
  13. 18 Oct, 2008 1 commit
  14. 10 Sep, 2008 1 commit
    • Hugo Villeneuve's avatar
      ARM DaVinci: Fix broken HW ECC for large page NAND. · 9b05aa78
      Hugo Villeneuve authored
      Based on original patch by Bernard Blackham <bernard@largestprime.net>
      U-boot's HW ECC support for large page NAND on Davinci is completely
      broken.  Some kernels, such as the 2.6.10 one supported by
      MontaVista for DaVinci, rely upon this broken behaviour as they
      share the same code for ECCs. In the existing scheme, error
      detection *might* work on large page, but error correction
      definitely does not.  Small page ECC correction works, but the
      format is not compatible with the mainline git kernel.
      This patch adds ECC code that matches what is currently in the
      Davinci git repository (since NAND support was added in 2.6.24).
      This makes the ECC and OOB layout written by u-boot compatible with
      Linux for both small page and large page devices and fixes ECC
      correction for large page devices.
      The old behaviour can be restored by defining the macro
      CFG_DAVINCI_BROKEN_ECC, which is undefined by default.
      Signed-off-by: default avatarHugo Villeneuve <hugo.villeneuve@lyrtech.com>
      Acked-by: default avatarSergey Kubushyn <ksi@koi8.net>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
  15. 12 Aug, 2008 2 commits
  16. 09 Jan, 2008 1 commit
  17. 10 Jul, 2007 1 commit
  18. 23 Apr, 2007 1 commit
  19. 28 Oct, 2006 1 commit
  20. 18 Oct, 2006 1 commit
  21. 10 Oct, 2006 1 commit
    • Stefan Roese's avatar
      * Several improvements to the new NAND subsystem: · 2255b2d2
      Stefan Roese authored
        - JFFS2 related commands implemented in mtd-utils style
        - Support for bad blocks
        - Bad block testing commands
        - NAND lock commands
        Please take a look at doc/README.nand for more details
        Patch by Guido Classen, 10 Oct 2006
  22. 06 Mar, 2006 1 commit
  23. 27 Jun, 2003 1 commit
    • wdenk's avatar
      * Code cleanup: · 8bde7f77
      wdenk authored
        - remove trailing white space, trailing empty lines, C++ comments, etc.
        - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)
      * Patches by Kenneth Johansson, 25 Jun 2003:
        - major rework of command structure
          (work done mostly by Michal Cendrowski and Joakim Kristiansen)
  24. 31 May, 2003 1 commit
    • wdenk's avatar
      * Patch by Marc Singer, 29 May 2003: · 7a8e9bed
      wdenk authored
        Fixed rarp boot method for IA32 and other little-endian CPUs.
      * Patch by Marc Singer, 28 May 2003:
        Added port I/O commands.
      * Patch by Matthew McClintock, 28 May 2003
        - cpu/mpc824x/start.S: fix relocation code when booting from RAM
        - minor patches for utx8245
      * Patch by Daniel Engström, 28 May 2003:
        x86 update
      * Patch by Dave Ellis, 9 May 2003 + 27 May 2003:
        add nand flash support to SXNI855T configuration
        fix/extend nand flash support:
        - fix 'nand erase' command so does not erase bad blocks
        - fix 'nand write' command so does not write to bad blocks
        - fix nand_probe() so handles no flash detected properly
        - add doc/README.nand
        - add .jffs2 and .oob options to nand read/write
        - add 'nand bad' command to list bad blocks
        - add 'clean' option to 'nand erase' to write JFFS2 clean markers
        - make NAND read/write faster
      * Patch by Rune Torgersen, 23 May 2003:
        Update for MPC8266ADS board