1. 09 1月, 2012 5 次提交
    • T
      mmc: Change board_mmc_getcd() function prototype. · 314284b1
      Thierry Reding 提交于
      The new API no longer uses the extra cd parameter that was used to store
      the card presence state. Instead, this information is returned via the
      function's return value. board_mmc_getcd() returns -1 to indicate that
      no card-detection mechanism is implemented; 0 indicates that no card is
      present and 1 is returned if it was detected that a card is present.
      
      The rationale for this change can be found in the following email
      thread:
      
      	http://lists.denx.de/pipermail/u-boot/2011-November/110180.html
      
      In summary, the old API was not consistent with the rest of the MMC API
      which always passes a struct mmc as the first parameter. Furthermore the
      cd parameter was used to mean "card absence" in some implementations and
      "card presence" in others.
      Signed-off-by: NThierry Reding <thierry.reding@avionic-design.de>
      Tested-by: NJason Liu <jason.hui@linaro.org>
      314284b1
    • A
      drivers/mmc/mv_sdhci.c: Fix build warning · bfe6f623
      Anatolij Gustschin 提交于
      Fix:
      mv_sdhci.c: In function 'mv_sdh_init':
      mv_sdhci.c:47:22: warning: the comparison will always
      evaluate as 'true' for the address of 'mv_sdhci_writeb'
      will never be NULL [-Waddress]
      Signed-off-by: NAnatolij Gustschin <agust@denx.de>
      Cc: Lei Wen <leiwen@marvell.com>
      Cc: Andy Fleming <afleming@freescale.com>
      Acked-by: NLei Wen <leiwen@marvell.com>
      bfe6f623
    • M
      ftsdc010: improve performance and capability · 31cb6db5
      Macpaul Lin 提交于
      This patch improve the performance by spliting flag examination code
      in ftsdc010_send_cmd() into 3 functions.
      This patch also reordered the function which made better capability to
      some high performance cards against to the next version of ftsdc010
      hardware.
      Signed-off-by: NMacpaul Lin <macpaul@andestech.com>
      31cb6db5
    • M
      mmc: add host_caps checking avoid switch card improperly · 2c3fbf4c
      Macpaul Lin 提交于
      Add a host capability checking to avoid the mmc stack
      switch the card to HIGHSPEED mode when the card supports
      HIGHSPEED while the host doesn't.
      
      This patch avoid furthur transaction problem when the
      mmc/sd card runs different mode to the host.
      Signed-off-by: NMacpaul Lin <macpaul@andestech.com>
      2c3fbf4c
    • J
      i.mx: fsl_esdhc: add the i.mx6q support · 4692708d
      Jason Liu 提交于
      The mmc host controller on the i.mx6q is called usdhc which
      is redesigned based on the freescale esdhc controller.
      
      The usdhc controller is almost compatible with esdhc except
      it adds one mix register to support debug/SD3.0 and move
      the low bit 0-6 of XFERTYP register to the mix control reg
      low bit 0-6. Thus on i.mx6q, we have the following compared
      with the previous soc: (can refer to RM of chapter 56.3.3)
      
      i.mx6q:
      mix control:
      bit 31 - bit 7: Added for debug/SD3.0 support
      bit 6  - bit 0: move in the XFERTYP register bit 6-0 on previous soc
      XFERTYP register:
      bit 31 - bit 7: the same as before,
      bit 6  - bit 0: no-use
      
      previous soc
      mix control: no
      XFERTYP register:
      bit 31 - bit 0: xfertype information
      Signed-off-by: NJason Liu <jason.hui@linaro.org>
      Cc: Andy Fleming <afleming@gmail.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Acked-by: NStefano Babic <sbabic@denx.de>
      4692708d
  2. 06 1月, 2012 9 次提交
  3. 05 1月, 2012 12 次提交
  4. 24 12月, 2011 14 次提交