1. 12 1月, 2018 5 次提交
  2. 15 9月, 2017 1 次提交
  3. 17 8月, 2017 1 次提交
  4. 19 7月, 2017 1 次提交
  5. 13 4月, 2017 1 次提交
  6. 01 12月, 2016 1 次提交
    • T
      mmc: add bkops-enable command · cd3d4880
      Tomas Melin 提交于
      Add new command that provides possibility to enable the
      background operations handshake functionality
      (BKOPS_EN, EXT_CSD byte [163]) on eMMC devices.
      
      This is an optional feature of eMMCs, the setting is write-once.
      The command must be explicitly taken into use with
      CONFIG_CMD_BKOPS_ENABLE.
      Signed-off-by: NTomas Melin <tomas.melin@vaisala.com>
      cd3d4880
  7. 27 5月, 2016 1 次提交
  8. 17 5月, 2016 3 次提交
  9. 06 5月, 2016 1 次提交
    • M
      mmc: Fix error in RPMB code · b955e42b
      Marek Vasut 提交于
      Since we do not build any board with CONFIG_SUPPORT_EMMC_RPMB , this
      piece of code evaded conversion. Fix the following compiler error:
      
      cmd/mmc.c: In function 'do_mmcrpmb':
      cmd/mmc.c:316:32: error: 'struct blk_desc' has no member named 'part_num'
        original_part = mmc->block_dev.part_num;
                                      ^
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
      Cc: Tom Rini <trini@konsulko.com>
      b955e42b
  10. 02 4月, 2016 1 次提交
  11. 15 3月, 2016 2 次提交
  12. 25 1月, 2016 2 次提交
  13. 14 1月, 2016 2 次提交
    • S
      mmc: store hwpart in the block device · 873cc1d7
      Stephen Warren 提交于
      This will allow us to have multiple block device structs each referring
      to the same eMMC device, yet different HW partitions.
      
      For now, there is still a single block device per eMMC device. As before,
      this block device always accesses whichever HW partition was most recently
      selected. Clients wishing to make use of multiple block devices referring
      to different HW partitions can simply take a copy of this block device
      once it points at the correct HW partition, and use each one as they wish.
      This feature will be used by the next patch.
      
      In the future, perhaps get_device() could be enhanced to return a
      dynamically allocated block device struct, to avoid the client needing to
      copy it in order to maintain multiple block devices. However, this would
      require all users to be updated to free those block device structs at some
      point, which is rather a large change.
      
      Most callers of mmc_switch_part() wish to permanently switch the default
      MMC block device's HW partition. Enhance mmc_switch_part() so that it does
      this. This removes the need for callers to do this. However,
      common/env_mmc.c needs to save and restore the current HW partition. Make
      it do this more explicitly.
      
      Replace use of mmc_switch_part() with mmc_select_hwpart() in order to
      remove duplicate code that skips the call if that HW partition is already
      selected.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      873cc1d7
    • S
      block: pass block dev not num to read/write/erase() · 7c4213f6
      Stephen Warren 提交于
      This will allow the implementation to make use of data in the block_dev
      structure beyond the base device number. This will be useful so that eMMC
      block devices can encompass the HW partition ID rather than treating this
      out-of-band. Equally, the existence of the priv field is crying out for
      this patch to exist.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      7c4213f6
  14. 06 12月, 2015 1 次提交
  15. 20 11月, 2015 1 次提交
  16. 24 2月, 2015 1 次提交
  17. 19 1月, 2015 9 次提交
  18. 13 12月, 2014 1 次提交
    • A
      mmc: Fix handling of bus widths and DDR card capabilities · 786e8f81
      Andrew Gabbasov 提交于
      If the MMC_MODE_DDR_52MHz flag is set in card capabilities bitmask,
      it is never cleared, even if switching to DDR mode fails, and if
      the controller driver uses this flag to check the DDR mode, it can
      take incorrect actions.
      
      Also, DDR related checks in mmc_startup() incorrectly handle the case
      when the host controller does not support some bus widths (e.g. can't
      support 8 bits), since the host_caps is checked for DDR bit, but not
      bus width bits.
      
      This fix clearly separates using of card_caps bitmask, having there
      the flags for the capabilities, that the card can support, and actual
      operation mode, described outside of card_caps (i.e. bus_width and
      ddr_mode fields in mmc structure). Separate host controller drivers
      may need to be updated to use the actual flags. Respectively,
      the capabilities checks in mmc_startup are made more correct and clear.
      
      Also, some clean up is made with errors handling and code syntax layout.
      Signed-off-by: NAndrew Gabbasov <andrew_gabbasov@mentor.com>
      786e8f81
  19. 03 10月, 2014 1 次提交
  20. 12 6月, 2014 4 次提交