1. 05 11月, 2019 2 次提交
  2. 29 10月, 2019 3 次提交
  3. 12 9月, 2019 1 次提交
  4. 23 6月, 2019 1 次提交
  5. 19 6月, 2019 1 次提交
  6. 23 5月, 2019 2 次提交
  7. 20 5月, 2019 1 次提交
    • L
      Revert "mmc: fsl_esdhc: fix sd/mmc ddr mode clock setting issue" · b6a04275
      Lukasz Majewski 提交于
      This reverts commit 72a89e0d, which
      causes the imx53 HSC to hang as the eMMC is not working properly anymore.
      
      The exact error message:
      MMC write: dev # 0, block # 2, count 927 ... mmc write failed
      0 blocks written: ERROR
      
      imx53 is not using the DDR mode.
      
      Debugging of pre_div and div generation showed that those values are
      generated in a way, which is not matching the ones from working setup.
      
      As the original patch was performing code refactoring, let's revert this
      change, so all imx53 boards would work again.
      Signed-off-by: NLukasz Majewski <lukma@denx.de>
      b6a04275
  8. 03 5月, 2019 2 次提交
    • Y
      mmc: fsl_esdhc: Fix wp_enable issue · da8e1f3c
      Ye Li 提交于
      The wp-gpios property is used for gpio, if this is set, the WP pin is muxed
      to gpio function, can't be used as internal WP checking. However the codes
      remain to use internal WP checking.
      
      This patch changes to examine the "fsl,wp-controller" for enabling internal WP
      checking, and "wp-gpios" for muxing to gpio.
      Signed-off-by: NYe Li <ye.li@nxp.com>
      da8e1f3c
    • Y
      mmc: fsl_esdhc: fix sd/mmc ddr mode clock setting issue · 72a89e0d
      Ye Li 提交于
      When sd/mmc work at DDR mode, like HS400/HS400ES/DDR52/DDR50 mode,
      the output clock rate is half of the internal clock rate.
      
      This patch set the DDR_EN bit first for DDR mode, hardware divide
      the usdhc clock automatically, then follow the original sdr clock
      setting method.
      Signed-off-by: NHaibo Chen <haibo.chen@nxp.com>
      Signed-off-by: NYe Li <ye.li@nxp.com>
      72a89e0d
  9. 16 2月, 2019 1 次提交
  10. 29 1月, 2019 1 次提交
  11. 26 1月, 2019 1 次提交
  12. 18 1月, 2019 1 次提交
  13. 15 1月, 2019 1 次提交
    • F
      mmc: fsl_esdhc: Avoid infinite loop in esdhc_send_cmd_common() · 29c2edb4
      Fabio Estevam 提交于
      The following hang is observed on a Hummingboard 2 MicroSOM
      i2eX iMX6D - rev 1.3 with no eMMC populated on board:
      
      U-Boot SPL 2018.11+gf6206f85 (Nov 16 2018 - 00:56:34 +0000)
      Trying to boot from MMC1
      
      U-Boot 2018.11+gf6206f85 (Nov 16 2018 - 00:56:34 +0000)
      
      CPU:   Freescale i.MX6D rev1.5 996 MHz (running at 792 MHz)
      CPU:   Extended Commercial temperature grade (-20C to 105C) at 33C
      Reset cause: POR
      Board: MX6 HummingBoard2
      DRAM:  1 GiB
      MMC:   FSL_SDHC: 0, FSL_SDHC: 1
      Loading Environment from MMC... *** Warning - bad CRC, using default environment
      
      No panel detected: default to HDMI
      Display: HDMI (1024x768)
      In:    serial
      Out:   serial
      Err:   serial
      ---> hangs
      
      which is caused by the following infinite loop inside esdhc_send_cmd_common()
      
      	while (!(esdhc_read32(&regs->irqstat) & flags))
      		;
      
      Instead of looping forever, provide an exit path so that a timeout
      error can be propagated in the case irqstat does not report
      any interrupts, which may happen when no eMMC is populated on
      board.
      Reported-by: NRicardo Salveti <rsalveti@rsalveti.net>
      Signed-off-by: NFabio Estevam <festevam@gmail.com>
      Tested-by: NPeter Robinson <pbrobinson@gmail.com>
      Tested-by: NRicardo Salveti <rsalveti@rsalveti.net>
      29c2edb4
  14. 01 1月, 2019 1 次提交
  15. 22 10月, 2018 2 次提交
  16. 11 9月, 2018 1 次提交
    • P
      mmc: fsl_esdhc: enable HS400 feature · c76382ff
      Peng Fan 提交于
      The strobe dll code is ported from Linux Kernel:
      drivers/mmc/host/sdhci-esdhc-imx.c
      The comments are from the above file,
      "For HS400 eMMC, there is a data_strobe line. This signal is generated
      by the device and used for data output and CRC status response output
      in HS400 mode. The frequency of this signal follows the frequency of
      CLK generated by host. The host receives the data which is aligned to the
      edge of data_strobe line. Due to the time delay between CLK line and
      data_strobe line, if the delay time is larger than one clock cycle,
      then CLK and data_strobe line will be misaligned, read error shows up.
      So when the CLK is higher than 100MHz, each clock cycle is short enough,
      host should configure the delay target. "
      Signed-off-by: NPeng Fan <peng.fan@nxp.com>
      Cc: Jaehoon Chung <jh80.chung@samsung.com>
      Cc: Stefano Babic <sbabic@denx.de>
      c76382ff
  17. 08 5月, 2018 1 次提交
  18. 07 5月, 2018 1 次提交
    • T
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini 提交于
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      83d290c5
  19. 04 2月, 2018 3 次提交
  20. 22 1月, 2018 1 次提交
    • B
      mmc: fsl_esdhc: Fix i.MX53 eSDHCv3 clock · b9b4f146
      Benoît Thébaudeau 提交于
      Commit 4f425280 ("mmc: fsl_esdhc: Allow all supported prescaler
      values") made it possible to set SYSCTL.SDCLKFS to 0 in SDR mode on
      i.MX, thus bypassing the SD clock frequency prescaler, in order to be
      able to get higher SD clock frequencies in some contexts. However, that
      commit missed the fact that this value is illegal on the eSDHCv3
      instance of the i.MX53. This seems to be the only exception on i.MX,
      this value being legal even for the eSDHCv2 instances of the i.MX53.
      
      Fix this issue by changing the minimum prescaler value for the single
      instance of the i.MX53 eSDHCv3 controller.
      Signed-off-by: NBenoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
      Reviewed-by: NFabio Estevam <fabio.estevam@nxp.com>
      b9b4f146
  21. 12 1月, 2018 2 次提交
  22. 07 11月, 2017 1 次提交
    • B
      mmc: fsl_esdhc: Fix PIO timeout · bcfb3653
      Benoît Thébaudeau 提交于
      The following error has been observed on i.MX25 with a high-speed SDSC
      card:
          Data Write Failed in PIO Mode.
      
      It was caused by the timeout set on PRSSTAT.BWEN, which was triggered
      because this bit takes 15 ms to be set after writing the first block to
      DATPORT with this card. Without this timeout, all the blocks are
      properly written.
      
      This timeout was implemented by decrementing a variable, so it was
      depending on the CPU frequency. Fix this issue by setting this timeout
      to a long enough absolute duration (500 ms).
      Signed-off-by: NBenoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Fabio Estevam <fabio.estevam@nxp.com>
      Cc: Jaehoon Chung <jh80.chung@samsung.com>
      Reviewed-by: NFabio Estevam <fabio.estevam@nxp.com>
      Reviewed-by: NJagan Teki <jagan@openedev.com>
      bcfb3653
  23. 17 8月, 2017 9 次提交