1. 17 1月, 2010 5 次提交
  2. 24 12月, 2009 3 次提交
    • M
      i2c-omap: OMAP3: Fix I2C lockup during timeout/error cases · 57eb81b1
      Manjunatha GK 提交于
      Current OMAP3 I2C driver code does not follow the correct sequence for soft
      reset. Due to this, lock up issues are reported during timeout/error cases.
      
      This patch fixes above issue by disabling I2C controller as per OMAP3430 TRM
      for soft reset. As per TRM, I2C controller needs to be disabled as a first
      step during soft reset.
      
      Here is correct soft reset sequence:
      a. Ensure that the module is disabled
      (clear the I2Ci.I2C_CON[15] I2C_EN bit to 0).
      b. Set the I2Ci.I2C_SYSC[1] SRST bit to 1.
      c. Enable the module by setting I2Ci.I2C_CON[15] I2C_EN bit to 1.
      d. Check the I2Ci.I2C_SYSS[0] RDONE bit until it is set to 1 to
      indicate the software reset is complete.
      
      Tested on Zoom2, Zoom3, 3430SDP and 3630SDP
      Signed-off-by: NManjunatha GK <manjugk@ti.com>
      Signed-off-by: George, Harith<harith@ti.com>
      Acked-by: Varadarajan, Charu Latha<charu@ti.com>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      57eb81b1
    • C
      i2c-omap: Don't write IE state in unidle if 0 · 07ac31f6
      Cory Maccarrone 提交于
      Commit ef871432... (i2c-omap: OMAP3: PM: (re)init for every transfer
      to support off-mode) introduced a change which make the dev->iestate
      contents be written to the OMAP_I2C_IE_REG every time omap_i2c_unidle
      is called.  Previously, the state was only written if it wasn't equal
      to zero.
      
      In omap_i2c_probe, omap_i2c_unidle() is called prior to omap_i2c_init(),
      in which case dev->iestate has not yet been initialized and will be set
      to zero.  Having this value written to the registers causes deadlock
      while booting.
      
      As such, this change restores the original functionality.
      Signed-off-by: NCory Maccarrone <darkstar6262@gmail.com>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      07ac31f6
    • S
      i2c-bfin-twi: fix CLKDIV calculation · ac07fb4d
      Sonic Zhang 提交于
      Calculation of the CLKDIV speed setting should be done using base 10 math
      rather than base 2.  We also avoid exceeding the spec due to integer
      truncation and a 50% duty cycle.
      Signed-off-by: NSonic Zhang <sonic.zhang@analog.com>
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      ac07fb4d
  3. 16 12月, 2009 1 次提交
  4. 15 12月, 2009 3 次提交
  5. 09 12月, 2009 25 次提交
  6. 07 12月, 2009 3 次提交