1. 11 6月, 2008 2 次提交
    • S
      248ae5cf
    • W
      NAND FSL UPM: driver re-write using the hwcontrol callback · a75a57ef
      Wolfgang Grandegger 提交于
      This is a re-write of the NAND FSL UPM driver using the more universal
      hwcontrol callback (instead of the cmdfunc callback). Here is a brief
      list of furher modifications:
      
      - For the time being, the UPM setup writing the UPM array has been
        removed from the driver and must now be done by the board specific
        code.
      
      - The bus width definition in "struct fsl_upm_nand" is now in bits to
        comply with the corresponding Linux driver and 8, 16 and 32 bit
        accesses are supported.
      
      - chip->dev_read is only set if fun->dev_ready != NULL, which is
        required for boards not connecting the R/B pin.
      
      - A few issue have been fixed with MxMR bit manipulation like in the
        corresponding Linux driver.
      
      Note: I think the "io_addr" field of "struct fsl_upm" could be removed
            as well, because the address is already determined by
            "nand->IO_ADDR_[RW]", but I'm not 100% sure.
      
      This patch has been tested on a TQM8548 modules with the NAND chip
      Micron MT29F8G08FABWP.
      
      This patch is based on the following patches posted to this list a few
      minutes ago:
      
        PPC: add accessor macros to clear and set bits in one shot
        83xx/85xx/86xx: add more MxMR local bus definitions
      Signed-off-by: NWolfgang Grandegger <wg@grandegger.com>
      Acked-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      a75a57ef
  2. 29 5月, 2008 1 次提交
    • D
      nand: Correct NAND erase percentage output · 9723bbb4
      Dirk Behme 提交于
      For NAND erase sizes smaller than one NAND erase block, erase
      percentage output becomes grater than 100% e.g.
      
      -- cut --
        > nand info
      Device 0: NAND 64MiB 1,8V 8-bit, sector size 16 KiB
        > nand erase 0x100000 0x2000
      NAND erase: device 0 offset 0x100000, size 0x2000
      Erasing at 0x100000 -- 200% complete.
      OK
        >
      -- cut --
      
      Correct this and give user a warning that more is erased than specified:
      
      -- cut --
        > nand erase 0x100000 0x2000
      NAND erase: device 0 offset 0x100000, size 0x2000
      Warning: Erase size 0x00002000 smaller than one erase block 0x00004000
                 Erasing 0x00004000 instead
      Erasing at 0x100000 -- 100% complete.
      OK
        >
      -- cut --
      Signed-off-by: NDirk Behme <dirk.behme@gmail.com>
      9723bbb4
  3. 21 5月, 2008 1 次提交
    • W
      Big white-space cleanup. · 53677ef1
      Wolfgang Denk 提交于
      This commit gets rid of a huge amount of silly white-space issues.
      Especially, all sequences of SPACEs followed by TAB characters get
      removed (unless they appear in print statements).
      
      Also remove all embedded "vim:" and "vi:" statements which hide
      indentation problems.
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      53677ef1
  4. 21 4月, 2008 1 次提交
    • T
      PATCH - Fix oob data copied into supplied buffer · 84c01d3a
      Troy Kisky 提交于
      This patch correctly sets the oobavail variable
      and fixes a bug where the oob data was not valid when
      there where multiple groups in oobfree.
      
      First segment fixes a typo
      Second segment fixes a bug where oob data may be copied incorrectly.
      Third segment adds an error message when exiting due to write protect.
      Forth segment fixes a bug where oobavail may be set incorrectly.
      Signed-off-by: NTroy Kisky <troy.kisky@boundarydevices.com>
      84c01d3a
  5. 18 4月, 2008 1 次提交
  6. 16 1月, 2008 1 次提交
  7. 10 1月, 2008 1 次提交
  8. 26 11月, 2007 1 次提交