1. 27 May, 2021 1 commit
  2. 15 Apr, 2021 6 commits
  3. 13 Apr, 2021 2 commits
  4. 10 Apr, 2021 3 commits
  5. 15 Jan, 2018 4 commits
  6. 01 Nov, 2017 1 commit
  7. 27 Oct, 2017 1 commit
  8. 02 Mar, 2017 1 commit
  9. 22 Aug, 2016 1 commit
  10. 27 Mar, 2015 1 commit
  11. 15 Mar, 2015 1 commit
  12. 12 Nov, 2014 1 commit
  13. 20 Oct, 2014 1 commit
  14. 08 Aug, 2014 1 commit
  15. 03 Jun, 2014 1 commit
    • Valentin Longchamp's avatar
      i2c: mpc: insert DR read in i2c_fixup() · d49019a0
      Valentin Longchamp authored
      
      
      The mpc_i2c_fixup function is called when the bus is not released by a
      slave. The function generates 9 pulses that should lead the slave
      to release the bus.
      
      The sequence that generates the pulses disables/enables the I2C module
      that controls the blocked bus. We have found out on the P2041 SoC that
      this could cause the CPU to hang (for a short delay).
      
      To avoid this, this patch introduces a read to the I2CDR register
      between the re-enablement of the I2C module in master mode and its
      returning to the slave mode instead of the delay (the final delay,
      between the pulses is kept), as proposed in procedure from the P2041
      reference manual (16.6.2.3), and the other manuals from the mpc83xx and
      mpc85xx families.
      Signed-off-by: default avatarRainer Boschung <rainer.boschung@keymile.com>
      Signed-off-by: default avatarValentin Longchamp <valentin.longchamp@keymile.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      d49019a0
  16. 24 Jan, 2014 1 commit
  17. 10 Oct, 2013 1 commit
  18. 28 Aug, 2013 1 commit
    • Gerhard Sittig's avatar
      i2c: mpc: cleanup clock API use · b3bfce2b
      Gerhard Sittig authored
      
      
      make the MPC I2C driver get, prepare and enable the gated clock item for
      register access during probe; disable and unprepare the clock upon
      remove(), put is done by the devm approach; hold a reference to the
      clock over the period of use
      
      clock lookup is non-fatal in this implementation as not all platforms
      may provide clock specs in their device tree, but failure to enable a
      clock when specified is considered fatal
      Signed-off-by: default avatarGerhard Sittig <gsi@denx.de>
      Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      b3bfce2b
  19. 23 Aug, 2013 1 commit
    • Wolfram Sang's avatar
      i2c: move OF helpers into the core · 687b81d0
      Wolfram Sang authored
      
      
      I2C of helpers used to live in of_i2c.c but experience (from SPI) shows
      that it is much cleaner to have this in the core. This also removes a
      circular dependency between the helpers and the core, and so we can
      finally register child nodes in the core instead of doing this manually
      in each driver. So, fix the drivers and documentation, too.
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      687b81d0
  20. 15 Aug, 2013 1 commit
    • Jingoo Han's avatar
      i2c: i2c-mpc: add CONFIG_PM_SLEEP to suspend/resume functions · 0a488c49
      Jingoo Han authored
      
      
      Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following
      build warning when CONFIG_PM_SLEEP is not selected. This is because
      sleep PM callbacks defined by SIMPLE_DEV_PM_OPS are only used when
      the CONFIG_PM_SLEEP is enabled.
      
      drivers/i2c/busses/i2c-mpc.c:724:12: warning: 'mpc_i2c_suspend' defined but not used [-Wunused-function]
      drivers/i2c/busses/i2c-mpc.c:734:12: warning: 'mpc_i2c_resume' defined but not used [-Wunused-function]
      
      Also, this patch makes mpc_i2c_pm_ops static, because mpc_i2c_pm_ops
      is not exported.
      Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      0a488c49
  21. 07 Aug, 2013 1 commit
    • Guenter Roeck's avatar
      i2c: mpc: Define unique I2C adapter names · 421476ae
      Guenter Roeck authored
      
      
      The I2C adapters on Freescale MPC107/824x/85xx/512x/52xx/83xx/86xx all
      have the same name "MPC adapter". Since I2C adapter numbers can change
      across reboots and even after loading/unloading an I2C bus master driver,
      adapter names have to be used to identify adapters and thus should be
      unique and well defined. Since this is not the case with this driver,
      it is difficult if not impossible to identify a specific adapter from
      user space on affected platforms.
      
      To remedy the problem, use the adapter memory address as part of the
      adapter name.
      
      With this patch, adapter names are:
      On P2020:
      MPC adapter at 0xfff703000
      MPC adapter at 0xfff703100
      
      On P5040:
      MPC adapter at 0xffe118000
      MPC adapter at 0xffe118100
      MPC adapter at 0xffe119000
      MPC adapter at 0xffe119100
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Acked-by: default avatarJean Delvare <khali@linux-fr.org>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      421476ae
  22. 12 Jun, 2013 1 commit
  23. 21 Feb, 2013 1 commit
  24. 22 Dec, 2012 1 commit
  25. 14 Sep, 2012 1 commit
  26. 11 Sep, 2012 2 commits
  27. 12 May, 2012 1 commit
  28. 24 Feb, 2012 1 commit