1. 23 May, 2014 5 commits
  2. 22 May, 2014 1 commit
    • Ye.Li's avatar
      esdhc/usdhc: Fix PIO mode bug in fsl_esdhc driver · 71689776
      Ye.Li authored
      When configure the fsl_esdhc driver to PIO mode by defining
      "CONFIG_SYS_FSL_ESDHC_USE_PIO", the SD/MMC read and write will fail.
      Two bugs in the driver to cause the issue:
      1. The read buffer was invalidated after reading from DATAPORT register,
      which should be only applied to DMA mode. The valid data in cache was
      overwritten by physical memory.
      2. The watermarks are not set in PIO mode, will cause according state not
      be set.
      Acked-by: default avatarPantelis Antoniou <panto@antoniou-consulting.com>
      Signed-off-by: default avatarYe.Li <B37916@freescale.com>
  3. 16 May, 2014 16 commits
  4. 14 May, 2014 2 commits
    • Hans de Goede's avatar
      mvtwsi: Remove unnecessary twsi_baud_rate and twsi_slave_address globals · 2072e726
      Hans de Goede authored
      These are used only once, so their is no need to have them global.
      This also stops mvtwsi from using any bss vars making it easier to use
      before dram init (to talk to the pmic to set the dram voltage).
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
    • Hans de Goede's avatar
      mvtwsi: Fix clock programming · fab356a0
      Hans de Goede authored
      The TWSI_FREQUENCY macro was wrong in 2 ways:
      1) It was casting the result of the calculations to an u8, while i2c clk
      rates are often >= 100Khz which won't fit in a u8, drop the cast.
      2) It had an extra factor of 2 in the divider which neither the datasheet nor
      the Linux driver have.
      The comment for the default value was wrongly saying that m lives in
      bits 4-7, while in reality it is in bits 3-6, as can be seen from the correct
      shift by 3 used in i2c_init().
      While at it remove the unused twsi_actual_speed variable.
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
  5. 13 May, 2014 16 commits