1. 10 8月, 2017 1 次提交
  2. 01 6月, 2017 1 次提交
    • S
      dm: Rename dev_addr..() functions · a821c4af
      Simon Glass 提交于
      These support the flat device tree. We want to use the dev_read_..()
      prefix for functions that support both flat tree and live tree. So rename
      the existing functions to avoid confusion.
      
      In the end we will have:
      
         1. dev_read_addr...()    - works on devices, supports flat/live tree
         2. devfdt_get_addr...()  - current functions, flat tree only
         3. of_get_address() etc. - new functions, live tree only
      
      All drivers will be written to use 1. That function will in turn call
      either 2 or 3 depending on whether the flat or live tree is in use.
      
      Note this involves changing some dead code - the imx_lpi2c.c file.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      a821c4af
  3. 25 10月, 2016 1 次提交
    • M
      i2c: designware: Avoid overwriting the cmd_data register · b0338080
      Marek Vasut 提交于
      Make sure the driver writes the cmd_data register only once per
      read transfer instead of doing so potentially repeatedly.
      
      In case the read transfer didn't finish quickly enough, the loop
      in the driver code would spin fast enough to write the same value
      into the cmd_data register again before re-checking whether the
      transfer completed, which would cause another spurious read transfer
      on the bus.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Alexey Brodkin <abrodkin@synopsys.com>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Chin Liang See <clsee@altera.com>
      b0338080
  4. 17 5月, 2016 1 次提交
  5. 25 4月, 2016 5 次提交
  6. 29 10月, 2014 1 次提交
  7. 26 10月, 2014 1 次提交
  8. 20 2月, 2014 2 次提交
  9. 13 1月, 2014 1 次提交
  10. 13 11月, 2013 2 次提交
    • A
      designware_i2c: remove 10msec delay in i2c_xfer_finish · f9de54e9
      Alexey Brodkin 提交于
      This delay applies to any data transfer on I2C bus.
      
      For example 1kB data read with per-byte access (which happens if
      environment is stored in I2C EEPROM) takes more than 10 seconds.
      
      Moreover data bus driver has to care about bus state and data transfer,
      but not about internal states of attached devices.
      Signed-off-by: NAlexey Brodkin <abrodkin@synopsys.com>
      
      Cc: Tom Rini <trini@ti.com>
      cc: Armando Visconti <armando.visconti@st.com>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Vipin KUMAR <vipin.kumar@st.com>
      Cc: Tom Rix <Tom.Rix@windriver.com>
      Cc: Mischa Jonker <mjonker@synopsys.com>
      f9de54e9
    • A
      designware_i2c: disable i2c controller during target address setup · 8b7c8725
      Alexey Brodkin 提交于
      As it is stated in DesignWare I2C databook: writes to IC_TAR (0x4)
      register succeed only when IC_ENABLE[0] is set to 0.
      Signed-off-by: NAlexey Brodkin <abrodkin@synopsys.com>
      
      Cc: Tom Rini <trini@ti.com>
      cc: Armando Visconti <armando.visconti@st.com>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Vipin KUMAR <vipin.kumar@st.com>
      Cc: Tom Rix <Tom.Rix@windriver.com>
      Cc: Mischa Jonker <mjonker@synopsys.com>
      8b7c8725
  11. 24 7月, 2013 1 次提交
  12. 12 12月, 2012 3 次提交
  13. 07 7月, 2012 1 次提交
    • S
      i2c: designware_i2c.c: Add support for the "i2c probe" command · 496ba48f
      Stefan Roese 提交于
      i2c_probe() is changed to reinit the i2c bus upon read failure.
      This is naturally the case upon i2c bus probing.
      
      Also, some printf messages upon read failure are removed. As they
      would interfere with the "i2c probe" command.
      
      Additionally, i2c_set_bus_speed() now returns 0, so that the
      "i2c speed" command can be used.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Amit Virdi <amit.virdi@st.com>
      Cc: Vipin Kumar <vipin.kumar@st.com>
      496ba48f
  14. 24 4月, 2012 2 次提交
  15. 22 3月, 2010 1 次提交
  16. 23 1月, 2010 1 次提交
  17. 22 1月, 2010 1 次提交