1. 10 11月, 2018 2 次提交
    • M
      mmc: dw_mmc: Add RCRC handling · 26cc40d8
      Marek Vasut 提交于
      This patch adds check for command response CRC failure. The driver
      is currently ignoring CRC check failure on command resposes which
      have CRC atteched to it, which can be potentially dangerous. Even
      more grueling problem happens when the command response is followed
      by data transfer though, as in that case, the dwmci_data_transfer()
      function will spin until it reaches the 240s timeout.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Heiko Stuebner <heiko@sntech.de>
      Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
      26cc40d8
    • J
      common: build ymodem only on need · fb3148a2
      Jun Nie 提交于
      Build ymodem only on need to shrink spl image size.
      Signed-off-by: NJun Nie <jun.nie@linaro.org>
      fb3148a2
  2. 09 11月, 2018 5 次提交
  3. 08 11月, 2018 3 次提交
  4. 07 11月, 2018 4 次提交
  5. 06 11月, 2018 13 次提交
  6. 04 11月, 2018 1 次提交
  7. 03 11月, 2018 2 次提交
  8. 02 11月, 2018 10 次提交
    • M
      mmc: tmio: sdhi: Merge DTCNTL access into single register write · a376dde1
      Marek Vasut 提交于
      It is perfectly fine to write th DTCNTL TAP count and enable the
      SCC sampling clock operation in the same write.
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      a376dde1
    • M
      mmc: tmio: sdhi: Implement waiting for DAT0 line state · 2fc10754
      Marek Vasut 提交于
      When the bus switches to 1.8V mode of operation, it is necessary to
      verify that the card correctly initiated and completed the voltage
      switch. This is done by reading out the state of DATA0 line.
      
      This patch implement support for reading out the state of the DATA0
      line, so the MMC core code can correctly switch to 1.8V mode.
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      2fc10754
    • M
      mmc: tmio: sdhi: Clear HS400 settings when resetting SCC · dc1488f1
      Marek Vasut 提交于
      Make sure to clear HS400 configuration when resetting the SCC block.
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      dc1488f1
    • M
      mmc: tmio: sdhi: Touch SCC only when UHS capable · 52e17968
      Marek Vasut 提交于
      Add check to avoid touching the SCC tuning registers in case the IP
      doesn't support them or if the support isn't in place yet.
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      52e17968
    • M
      mmc: tmio: Preinitialize regulator to 3.3V · c83da2eb
      Marek Vasut 提交于
      Preinitialize the SD card signals regulator to 3.3V, which is the
      default post-reset setting, to be sure the regulator is set to a
      valid value.
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      c83da2eb
    • M
      mmc: tmio: Configure clock before any other IOS · 8171f99e
      Marek Vasut 提交于
      Configure the clock settings before reconfiguring any other IO settings.
      This is required when the clock must be stopped before changing eg. the
      pin configuration or any of the other properties of the bus. Running the
      clock configuration first allows the MMC core to do just that.
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      8171f99e
    • M
      mmc: tmio: Silence transfer errors when tuning · 33633ebb
      Marek Vasut 提交于
      In case the controller performs card tuning, that is, sends MMC
      command 19 or 21, silence possible CRC error warning prints. The
      warnings are bound to happen, since the tuning will fail for some
      settings while searching for the optimal configuration of the bus
      and that is perfectly OK.
      
      This patch passes around the MMC command structure and adds check
      into tmio_sd_check_error() to avoid printing CRC error warning
      when the tuning happens.
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      33633ebb
    • M
      mmc: tmio: Improve error handling · b22c8d0d
      Marek Vasut 提交于
      Properly handle return values and abort operations when they are
      non-zero. This is a minor improvement, which fixes two remaining
      unchecked return values.
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      b22c8d0d
    • M
      mmc: tmio: Simplify pinmux handling · 645a575a
      Marek Vasut 提交于
      The SD UHS SDR12, SDR25, SDR50, SDR104, DDR50 and MMC HS200, HS400
      modes all use 1.8V signaling, while all the legacy modes use 3.3V
      signaling. While there are extra modes which use 1.2V signaling,
      the existing hardware does not support those.
      
      Simplify the pinmux such that 3.3V signaling implies legacy mode
      pinmux and the rest implies UHS mode pinmux. This prevents the
      massive case statement from growing further. Moreover, it fixes
      an edge case where during SD 1.8V switch, the bus mode is still
      set to default while the signaling is already set to 1.8V, which
      results in an attempt to communicate with a 1.8V card using pins
      in 3.3V mode and thus communication failure.
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      645a575a
    • M
      ARM: rmobile: Generate fitting mem_map on Gen3 · e5cb6bd9
      Marek Vasut 提交于
      Patch "ARM: rmobile: Mark 4-64GiB as DRAM on Gen3" marked the entire
      64bit DRAM space as cachable. On CortexA57, this might result in odd
      side effects, where the CPU tries to prefetch from those areas and if
      there is no DRAM backing them, CPU bus hang can happen.
      
      This patch fixes it by generating the mem_map structure based on the
      actual memory layout obtained from the DT, thus not marking areas
      without any DRAM behind them as cachable.
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Fixes: c1ec3476 ("ARM: rmobile: Mark 4-64GiB as DRAM on Gen3")
      Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      e5cb6bd9