20 Feb, 2014

2 commits


13 Jan, 2014

1 commit

  • Since we agreed on legacy implementation of "eeprom_{read|write}"
    (http://patchwork.ozlabs.org/patch/295825/) I had to fix/make it work
    again DesignWare I2C driver for cases when 1 EEPROM IC fake I2C with
    anumber of "built-in" ICs with different chip addresses.

    Signed-off-by: Alexey Brodkin

    Cc: Tom Rini
    cc: Armando Visconti
    Cc: Stefan Roese
    Cc: Albert ARIBAUD
    Cc: Heiko Schocher
    Cc: Vipin KUMAR
    Cc: Tom Rix
    Cc: Mischa Jonker
    Cc: Kuo-Jung Su

    Alexey Brodkin
     

13 Nov, 2013

2 commits

  • 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: Alexey Brodkin

    Cc: Tom Rini
    cc: Armando Visconti
    Cc: Stefan Roese
    Cc: Albert ARIBAUD
    Cc: Heiko Schocher
    Cc: Vipin KUMAR
    Cc: Tom Rix
    Cc: Mischa Jonker

    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: Alexey Brodkin

    Cc: Tom Rini
    cc: Armando Visconti
    Cc: Stefan Roese
    Cc: Albert ARIBAUD
    Cc: Heiko Schocher
    Cc: Vipin KUMAR
    Cc: Tom Rix
    Cc: Mischa Jonker

    Alexey Brodkin
     

24 Jul, 2013

1 commit


12 Dec, 2012

3 commits


07 Jul, 2012

1 commit

  • 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: Stefan Roese
    Cc: Amit Virdi
    Cc: Vipin Kumar

    Stefan Roese
     

24 Apr, 2012

2 commits

  • The designware i2c controller must be turned off before
    setting the speed in IC_CON register, as stated in the
    section 6.3.1 of the dw_apb_i2c_db.pdf.

    Signed-off-by: Michel Sanches
    Signed-off-by: Armando Visconti
    Signed-off-by: Amit Virdi

    Armando Visconti
     
  • Earlier, a driver exists in the u-boot source for designware i2c interface. That
    driver was specific to spear platforms. This patch implements the i2c controller
    as a generic driver which can be used by multiple platforms

    The driver files are now renamed to designware_i2c.c and designware_i2c.h and
    these are moved into drivers/i2c folder for reusability by other
    platforms

    Signed-off-by: Vipin Kumar
    Signed-off-by: Amit Virdi

    Vipin KUMAR