1. 13 1月, 2015 9 次提交
  2. 10 1月, 2015 3 次提交
    • M
      mtd: nand: do not scan BBT after scrub · ab37b76d
      Masahiro Yamada 提交于
      Currently, "nand scrub" runs chip->scan_bbt at the end of
      nand_erase_opts() even if NAND_SKIP_BBTSCAN flag is set.
      
      It violates the intention of NAND_SKIP_BBTSCAN.
      
      Move NAND_SKIP_BBTSCAN flag check to nand_block_checkbad() so that
      chip->scan_bbt() is never run if NAND_SKIP_BBTSCAN is set.
      
      Also, unset NAND_BBT_SCANNED flag instead of running chip->scan_bbt()
      right after scrub.  We can be lazier here because the BBT is scanned
      at the next call of nand_block_checkbad().
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Scott Wood <scottwood@freescale.com>
      ab37b76d
    • M
      mtd: nand: Mark the BBT as scanned prior to calling scan_bbt again · bf80ee6e
      Masahiro Yamada 提交于
      Commit 35c204d8 (nand: reinstate lazy bad block scanning)
      broke NAND_BBT_USE_FLASH feature.
      
      Its git-log claimed that it reinstated the change as by commit
      fb49454b ("nand: reinstate lazy bad block scanning"), but it moved
      "chip->options |= NAND_BBT_SCANNED" below "chip->scan_bbt(mtd);".
      
      It causes recursion if scan_bbt does not find a flash based BBT
      and tries to write one, and the attempt to erase the BBT area
      causes a bad block check.
      
      Reinstate commit ff49ea89 (NAND: Mark the BBT as scanned prior to
      calling scan_bbt.).
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Rostislav Lisovy <lisovy@merica.cz>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Scott Wood <scottwood@freescale.com>
      bf80ee6e
    • M
      mtd: nand: revive "nand scrub" command · 756963d7
      Masahiro Yamada 提交于
      Since commit ff94bc40 (mtd, ubi, ubifs: resync with Linux-3.14),
      the "nand scrub" command has not been working.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Heiko Schocher <hs@denx.de>
      756963d7
  3. 09 1月, 2015 2 次提交
    • P
      qspi:fsl implement AHB read · 5f7f70c1
      Peng Fan 提交于
      The QSPI controller in i.MX 6SoloX and Vybrid supports reading data using
      IP register and AHB bus.
      
      The original driver only supports reading data from IP interface. The IC
      team suggests to use AHB read which is faster then IP read. Using AHB read,
      we can directly memcpy, a "missed" access to the buffer will cause the
      controller to clear the buffer and use the SEQID stored in bfgencr register
      to initiate a read from flash device.
      
      Since AHB bus is 64 bit width, we can not set MCR register using 32bit. In
      order to minimize code change, redefine QSPI_MCR_END_CFD_LE to 64bit Little
      endian but not 32bit Little endia.
      
      Introduce a new configuration option CONFIG_SYS_FSL_QSPI_AHB. If want to
      use AHB read, just define CONFIG_SYS_FSL_QSPI_AHB. If not, just ignore it.
      Actually if Vybrid is migrated to use AHB read, this option can be removed and
      IP read function can be discared. The reason to introduce this option
      is that only i.MX SOC is tested in my side, no Vybrid platform for me.
      
      In spi_setup_slave, the original piece code to set AHB is deleted, since
      Vybrid platform does not use this to intiate AHB read. Instead, add
      qspi_init_ahb_read function if defined CONFIG_SYS_FSL_QSPI_AHB.
      Signed-off-by: NPeng Fan <Peng.Fan@freescale.com>
      Reviewed-by: NJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
      5f7f70c1
    • P
      i2c:mxc fix array size of i2c_data · c36ecf3a
      Peng Fan 提交于
      We should not hardcode array size of i2c_data to 3. To CONFIG_FSL_LSCH3,
      there are 4 i2c interface, but not 3. So the size of i2c_data array should
      be calculated using "ARRAY_SIZE(i2c_bases)".
      
      To avoid compile error, move i2c_bases before sram_data structure which
      contains i2c_data array.
      Signed-off-by: NPeng Fan <Peng.Fan@freescale.com>
      c36ecf3a
  4. 08 1月, 2015 1 次提交
  5. 07 1月, 2015 2 次提交
  6. 06 1月, 2015 20 次提交
  7. 01 1月, 2015 1 次提交
  8. 31 12月, 2014 2 次提交