Skip to content
Snippets Groups Projects
  1. Oct 12, 2011
    • Xiangfu Liu's avatar
      MIPS: Jz4740: Add NAND driver · 3a6591a8
      Xiangfu Liu authored
      
      Jz4740 NAND flash controller can support:
      * MLC NAND as well as SLC NAND
      * all 8-bit/16-bit NAND flash devices
      * HAMMING and RS hardware ECC
      * automatic boot up from NAND flash devices
      
      nand_ecclayout is set up for 2GiB NAND chip mounted in Qi LB60.
      We'll bring up boot-from-NAND support in nand_spl/ in the future.
      
      Signed-off-by: default avatarXiangfu Liu <xiangfu@openmobilefree.net>
      Acked-by: default avatarDaniel <zpxu@ingenic.cn>
      Signed-off-by: default avatarShinya Kuribayashi <skuribay@pobox.com>
      3a6591a8
    • Holger Brunck's avatar
      UBI: init eba tables before wl when attaching a device · d6389465
      Holger Brunck authored
      
      This fixes that u-boot gets stuck when a bitflip was detected
      during "ubi part <ubi_device>". If a bitflip was detected UBI tries
      to copy the PEB to a different place. This needs that the eba table
      are initialized, but this was done after the wear levelling worker
      detects the bitflip. So changes the initialisation of these two
      tasks in u-boot.
      
      This is a u-boot specific patch and not needed in the linux layer,
      because due to commit 1b1f9a9d
      UBI: Ensure that "background thread" operations are really executed
      we schedule these tasks in place and not as in linux after the inital
      task which schedule this new task is finished.
      
      Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
      cc: Stefan Roese <sr@denx.de>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      d6389465
  2. Oct 10, 2011
    • Laurence Withers's avatar
      NAND: davinci: choose correct 1-bit h/w ECC reg · 60161943
      Laurence Withers authored
      
      In nand_davinci_readecc(), select the correct NANDF<n>ECC register based
      on CONFIG_SYS_NAND_CS rather than hardcoding the choice of NANDF1ECC.
      This allows 1-bit hardware ECC to work with chip select other than CS2.
      
      Note this now matches the usage in nand_davinci_enable_hwecc(), which
      already had the correct handling, and allows refactoring to a single
      function encapsulating the register read.
      
      Without this fix, writing NAND pages to a chip not wired to CS2 would
      result in in the ECC calculation always returning FFFFFF for each
      512-byte segment, and reading back a correctly written page (one with
      ECC intact) would always fail. With this fix, the ECC is written and
      verified correctly.
      
      Signed-off-by: default avatarLaurence Withers <lwithers@guralp.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      60161943
  3. Oct 09, 2011
    • Wolfgang Denk's avatar
      CFI: fix warning: variable ... set but not used · 419a1fe9
      Wolfgang Denk authored
      
      Fix:
      cfi_mtd.c: In function 'cfi_mtd_init':
      cfi_mtd.c:226:19: warning: variable 'mtd_list' set but not used [-Wunused-but-set-variable]
      cfi_mtd.c: In function 'cfi_mtd_init':
      cfi_mtd.c:225:6: warning: unused variable 'devices_found'
      cfi_mtd.c: In function 'cfi_mtd_init':
      cfi_mtd.c:226:19: warning: variable 'mtd_list' set but not used [-Wunused-but-set-variable]
      [-Wunused-variable]
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      419a1fe9
  4. Oct 03, 2011
  5. Oct 01, 2011
  6. Sep 30, 2011
  7. Sep 29, 2011
  8. Sep 21, 2011
  9. Sep 05, 2011
  10. Aug 02, 2011
  11. Jul 26, 2011
  12. Jul 16, 2011
  13. Jul 01, 2011
  14. Jun 29, 2011
    • Mike Frysinger's avatar
      cfi_flash: reverse geometry for newer STM parts · 4c2105cb
      Mike Frysinger authored
      
      For newer STM parts where CFI >= 1.1, there is a byte in the extended
      structure that declares the flash layout type (just like the AMD parts),
      so key off of that to find out when we need to reverse the geometry.
      
      This can be seen with M29W640 parts where U-Boot does:
      Bank # 1: CFI conformant FLASH (16 x 16)  Size: 8 MB in 135 Sectors
        AMD Standard command set, Manufacturer ID: 0x20, Device ID: 0x22ED
        Erase timeout: 8192 ms, write timeout: 1 ms
        Buffer write timeout: 1 ms, buffer size: 16 bytes
      
        Sector Start Addresses:
        20000000   RO   20002000   RO   20004000   RO   20006000   RO   20008000   RO
        2000A000   RO   2000C000   RO   2000E000   RO   20010000   RO   20020000   RO
        ...
      
      But Linux does:
      physmap platform flash device: 00800000 at 20000000
      physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank.
                       Manufacturer ID 0x000020 Chip ID 0x0022ed
      physmap-flash.0: Swapping erase regions for top-boot CFI table.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      4c2105cb
  15. Jun 01, 2011
  16. May 12, 2011
  17. Apr 27, 2011
  18. Apr 21, 2011
    • Aaron Williams's avatar
      cfi_flash driver - Add delay after reset command · a90b9575
      Aaron Williams authored
      
      I ran into a problem where the reset was failing except when I enabled
      debugging support.  After talking with Garret Swalling at Spansion I
      was told that the GL-N series of devices require a 500ns wait for the
      reset to complete.  The below patch adds a 1us delay after all reset
      commands.
      
      -Aaron Williams
      
      Signed-off-by: default avatarAaron Williams <aaron.williams@caviumnetworks.com>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      a90b9575
    • Heiko Schocher's avatar
      mtd, cfi: read AMD 3-byte (expanded) device ids on 16bit devices · 5b448adb
      Heiko Schocher authored
      
      tested on the a4m072 board with a S29GL512P flash.
      
      flinfo without this patch
      Bank # 1: CFI conformant flash (16 x 16)  Size: 32 MB in 256 Sectors
        AMD Standard command set, Manufacturer ID: 0x01, Device ID: 0x227E
        Erase timeout: 16384 ms, write timeout: 2 ms
        Buffer write timeout: 5 ms, buffer size: 32 bytes
      [...]
      
      flinfo with this patch
      Bank # 1: CFI conformant flash (16 x 16)  Size: 32 MB in 256 Sectors
        AMD Standard command set, Manufacturer ID: 0x01, Device ID: 0x227E2301
        Erase timeout: 16384 ms, write timeout: 2 ms
        Buffer write timeout: 5 ms, buffer size: 32 bytes
      [...]
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      5b448adb
    • Mike Frysinger's avatar
      cfi_flash: reverse geometry for M29W800DT parts · 6a011ce8
      Mike Frysinger authored
      
      The M29W800DT parts also report their geometry with the sector layout
      reversed.  So add that ID to the flash_fixup_stm function.
      
      Otherwise, we get:
      bfin> flinfo
      
      Bank # 1: CFI conformant FLASH (16 x 16)  Size: 1 MB in 19 Sectors
        AMD Standard command set, Manufacturer ID: 0x20, Device ID: 0x22D7
        Erase timeout: 8192 ms, write timeout: 1 ms
      
        Sector Start Addresses:
        20000000        20004000        20006000        20008000        20010000
        20020000        20030000        20040000        20050000        20060000
        20070000        20080000        20090000        200A0000        200B0000
        200C0000        200D0000        200E0000        200F0000
      
      Reported-by: default avatarJianxi Fu <fujianxi@gmail.com>
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      6a011ce8
Loading