[U-Boot] [PATCH v4 00/10] mmc: fixes for HS200/UHS core support

Jean-Jacques Hiblot jjhiblot at ti.com
Wed Nov 29 14:29:45 UTC 2017


This series applies on top of "[PATCH v2 00/26] mmc: Add support for HS200
and UHS modes"

It fixes a bug with old SD and MMC cards that support only the legacy mode.
This series also adresses the problem of increased code size that broke some
platform (openrd and omapl138_lcdk) by making more things optional.

It also addresses other comments made on the mailing list:
* dump card and host capabilities in debug mode
* use 1-bit if the DTS property 'bus-width' is not present.
* recognize the "mmc-ddr-1_2v" and "mmc-hs200-1_2v" DTS properties
* convert mmc_of_parse to livetree

  
Tested on DRA72

changes since v3:
* Make UHS support optional. Disabled by default
* Make HS200 support optional. Disabled by default
* Make eMMC Hardware Partitioning optional. Enabled by default
* Display most of the error messages only if MMC_VERBOSE is set (it's set by default)

changes since v2:
* use the device-oriented helpers like dev_read_u32_default() instead of using
  the livetree API
* Dump the host and card capabilities only in when debug is enabled. Also dump
  the capabilities when 'mmc info' is executed if the verbose option is enabled

changes since v1:
* convert mmc_of_parse to livetree
* squashed all changes to mmc_of_parse in a single patch


Jean-Jacques Hiblot (10):
  mmc: dump card and host capabilities if debug is enabled
  dm: mmc: update mmc_of_parse()
  mmc: Fixed a problem with old sd or mmc that do not support High speed
  mmc: all hosts support 1-bit bus width and legacy timings
  mmc: fix for old MMCs (below version 4)
  mmc: don't use malloc_cache_aligned()
  mmc: allow to compile out the error messages
  mmc: make UHS and HS200 optional
  mmc: make optional the support for eMMMC hardware partitioning
  configs: openrd: removed support for eMMC hardware partitioning

 cmd/mmc.c                         |   8 ++
 configs/openrd_base_defconfig     |   1 +
 configs/openrd_client_defconfig   |   1 +
 configs/openrd_ultimate_defconfig |   1 +
 drivers/mmc/Kconfig               |  54 +++++++++++++
 drivers/mmc/mmc-uclass.c          |  40 ++++++----
 drivers/mmc/mmc.c                 | 162 +++++++++++++++++++++++++++++---------
 include/mmc.h                     |  38 +++++++--
 8 files changed, 245 insertions(+), 60 deletions(-)

-- 
1.9.1



More information about the U-Boot mailing list