01 Jun, 2017

1 commit


28 Jul, 2016

1 commit


15 May, 2015

1 commit

  • The function get_emul() in sandbox i2c bus driver, always returns
    first child as i2c emul device. This may only work for i2c devices
    with a single child, which is an only i2c emul device.

    In case when i2c device has more than one child (e.g. PMIC), and
    one is i2c emul, then the function should search it by check uclass
    id for each child. This patch add this change to the get_emul().

    Signed-off-by: Przemyslaw Marczak
    Cc: Simon Glass
    Acked-by: Simon Glass
    Tested on sandbox:
    Tested-by: Simon Glass

    Przemyslaw Marczak
     

06 May, 2015

2 commits


17 Apr, 2015

1 commit


30 Jan, 2015

2 commits

  • At present we go through various contortions to store the I2C's chip
    address in its private data. This only exists when the chip is active so
    must be set up when it is probed. Until the device is probed we don't
    actually record what address it will appear on.

    However, now that we can support per-child platform data, we can use that
    instead. This allows us to set up the address when the child is bound,
    and avoid the messy contortions.

    Unfortunately this is a fairly large change and it seems to be difficult to
    break it down further.

    Signed-off-by: Simon Glass
    Reviewed-by: Masahiro Yamada

    Simon Glass
     
  • Rather than assuming that the chip offset length is 1, allow it to be
    provided. This allows chips that don't use the default offset length to
    be used (at present they are only supported by the command line 'i2c'
    command which sets the offset length explicitly).

    Signed-off-by: Simon Glass
    Acked-by: Heiko Schocher

    Simon Glass
     

12 Dec, 2014

1 commit

  • This driver includes some test features such as only supporting certain
    bus speeds. It passes its I2C traffic through to an emulator.

    Acked-by: Heiko Schocher
    Signed-off-by: Simon Glass
    Reviewed-by: Masahiro Yamada

    Simon Glass