1. 14 1月, 2012 3 次提交
    • W
      Merge branch 'master' of /home/wd/git/u-boot/custodians · c0219cf0
      Wolfgang Denk 提交于
      * 'master' of /home/wd/git/u-boot/custodians:
        mpc8313erdb: fix mtdparts address
        powerpc/83xx/km: add support for 8321 based tuge1 board
        powerpc/83xx/km: merge tuxa and tuda1 boards to tuxx1
        powerpc/83xx/km: remove obsolete defines for tuda1
        powerpc/83xx/km: update SDRAM parameters for km8321 boards
        mpc8313erdb: Enable GPIO support on the MPC8313E RDB
        mpc83xx: Add a GPIO driver for the MPC83XX family
        gpio: Replace ARM gpio.h with the common API in include/asm-generic
        gpio: Modify common gpio.h to more closely match Linux
      c0219cf0
    • W
      Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx · 3dc5ea50
      Wolfgang Denk 提交于
      * 'master' of git://git.denx.de/u-boot-mpc83xx:
        mpc8313erdb: fix mtdparts address
        powerpc/83xx/km: add support for 8321 based tuge1 board
        powerpc/83xx/km: merge tuxa and tuda1 boards to tuxx1
        powerpc/83xx/km: remove obsolete defines for tuda1
        powerpc/83xx/km: update SDRAM parameters for km8321 boards
        mpc8313erdb: Enable GPIO support on the MPC8313E RDB
        mpc83xx: Add a GPIO driver for the MPC83XX family
        gpio: Replace ARM gpio.h with the common API in include/asm-generic
        gpio: Modify common gpio.h to more closely match Linux
      3dc5ea50
    • W
      Merge branch 'master' of /home/wd/git/u-boot/custodians · 6d7ba2ce
      Wolfgang Denk 提交于
      * 'master' of /home/wd/git/u-boot/custodians:
        fsl_esdhc: fix PIO mode transfers
        mmc: tegra2: Implement card-detect hook.
        mmc: fsl_esdhc: Implement card-detect hook.
        mmc: Implement card detection.
        mmc: Change board_mmc_getcd() function prototype.
        drivers/mmc/mv_sdhci.c: Fix build warning
        ftsdc010: improve performance and capability
        mmc: add host_caps checking avoid switch card improperly
        i.mx: fsl_esdhc: add the i.mx6q support
      6d7ba2ce
  2. 10 1月, 2012 9 次提交
  3. 09 1月, 2012 9 次提交
    • I
      fsl_esdhc: fix PIO mode transfers · 8eee2bd7
      Ira Snyder 提交于
      The pointer to the registers used to control the Freescale ESDHC MMC
      controller is not initialized correctly when using PIO mode. This is
      fixed by initializing the pointer in the same way as all other sites
      within the driver.
      
      Examining the commit history shows that this was broken at introduction
      due to a code change in upstream U-Boot to support the mx51 processor
      family.
      Reported-by: NJim Lentz <JLentz@zhone.com>
      Cc: Andy Fleming <afleming@freescale.com>
      Cc: Kumar Gala <galak@kernel.crashing.org>
      Signed-off-by: NIra W. Snyder <iws@ovro.caltech.edu>
      8eee2bd7
    • T
      mmc: tegra2: Implement card-detect hook. · bf83662b
      Thierry Reding 提交于
      On Tegra2, card-detection is implemented by passing the card-detection
      GPIOs to the MMC driver at initialization time. Instead of implementing
      the board_mmc_getcd() function, use the card-detect hook and allow
      boards to override it by providing their own board_mmc_getcd()
      implementation.
      Signed-off-by: NThierry Reding <thierry.reding@avionic-design.de>
      bf83662b
    • T
      mmc: fsl_esdhc: Implement card-detect hook. · d48d2e21
      Thierry Reding 提交于
      This card-detect hook probably doesn't work. Perhaps somebody with more
      knowledge about the hardware can comment on this. I think that perhaps
      even the complete code from esdhc_init() could go into the getcd()
      function instead or mmc_getcd() needs to be called at some later time
      after mmc_init(), which, however, would require many other drivers to
      change.
      
      In addition to implementing the hook, this patch also removes the call
      to the board_mmc_getcd() function which is now called from the MMC
      framework and is no longer required here.
      Signed-off-by: NThierry Reding <thierry.reding@avionic-design.de>
      Tested-by: NJason Liu <jason.hui@linaro.org>
      d48d2e21
    • T
      mmc: Implement card detection. · 48972d90
      Thierry Reding 提交于
      Check for card detect each time an MMC/SD device is initialized. If card
      detection is not implemented, this code behaves as before and continues
      assuming a card is present. If no card is detected, has_init is reset
      for the MMC/SD device (to force initialization next time) and an error
      is returned.
      Signed-off-by: NThierry Reding <thierry.reding@avionic-design.de>
      Tested-by: NJason Liu <jason.hui@linaro.org>
      48972d90
    • 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
  4. 06 1月, 2012 10 次提交
  5. 05 1月, 2012 9 次提交