1. 04 1月, 2014 3 次提交
  2. 02 1月, 2014 1 次提交
  3. 19 11月, 2013 1 次提交
  4. 16 11月, 2013 2 次提交
  5. 15 11月, 2013 1 次提交
  6. 01 11月, 2013 1 次提交
  7. 23 10月, 2013 2 次提交
    • J
      tpm: Add support for Atmel I2C TPMs · a2871c62
      Jason Gunthorpe 提交于
      This is based on the work of Teddy Reed <teddy@prosauce.org> published
      on GitHub:
       https://github.com/theopolis/tpm-i2c-atmel.git
       34894b988b67e0ae55088d6388e77b0dbf10c07d
      
      That driver was never merged, I have taken it as a starting port,
      forward ported, tested and revised the driver:
       - Make it broadly textually similar to the Infineon and Nuvoton I2C
         driver
       - Place everything in a format suitable for mainline inclusion
       - Use high level I2C functions i2c_master_send and
         i2c_master_recv for data xfer
       - Use the timeout system from the core code, by faking out a status
         register
       - Only I2C transfer the number of bytes in the reply, not a fixed
         message size.
       - checkpatch cleanups
       - Testing on ARM Kirkwood, with this device tree, using a
         AT97SC3204T-X1A180
              tpm@29 {
                      compatible = "atmel,at97sc3204t";
                      reg = <0x29>;
              };
      Signed-off-by: NTeddy Reed <teddy@prosauce.org>
      [jgg: revised and tested]
      Signed-off-by: NJason Gunthorpe <jgunthorpe@obsidianresearch.com>
      [phuewe: minor whitespace changes]
      Signed-off-by: NPeter Huewe <peterhuewe@gmx.de>
      a2871c62
    • J
      tpm: Add support for the Nuvoton NPCT501 I2C TPM · 4c336e4b
      Jason Gunthorpe 提交于
      This chip is/was also branded as a Winbond WPCT301.
      
      Originally written by Dan Morav <dmorav@nuvoton.com> and posted to LKML:
      https://lkml.org/lkml/2011/9/7/206
      
      The original posting was not merged, I have taken it as a
      starting point, forward ported, tested and revised the driver:
       - Rework interrupt handling to work properly with level triggered
         interrupts. The old version just locked up.
       - Synchronize various items with Peter Huewe's Infineon driver:
          * Add durations/timeouts sysfs calls
          * Remove I2C device auto-detection
          * Don't fiddle with chip->release
          * Call tpm_dev_vendor_release in the probe error path
          * Use MODULE_DEVICE_TABLE for the I2C ids
          * Provide OF compatible strings for DT support
          * Use SIMPLE_DEV_PM_OPS
          * Use module_i2c_driver
       - checkpatch cleanups
       - Testing on ARM Kirkwood with GPIO interrupts, with this device tree:
      	tpm@57 {
                      compatible = "nuvoton,npct501";
                      reg = <0x57>;
                      interrupt-parent = <&gpio1>;
                      interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
              };
      Signed-off-by: NDan Morav <dmorav@nuvoton.com>
      [jgg: revised and tested]
      Signed-off-by: NJason Gunthorpe <jgunthorpe@obsidianresearch.com>
      [phuewe: minor whitespace changes, fixed module name in kconfig]
      Signed-off-by: NPeter Huewe <peterhuewe@gmx.de>
      4c336e4b
  8. 30 9月, 2013 1 次提交
  9. 24 8月, 2013 1 次提交
  10. 23 8月, 2013 2 次提交
  11. 07 8月, 2013 1 次提交
  12. 28 6月, 2013 1 次提交
  13. 26 6月, 2013 2 次提交
  14. 15 6月, 2013 1 次提交
  15. 31 5月, 2013 1 次提交
  16. 24 4月, 2013 1 次提交
  17. 17 4月, 2013 1 次提交
  18. 13 4月, 2013 1 次提交
    • P
      tpm: Add support for new Infineon I2C TPM (SLB 9645 TT 1.2 I2C) · c61c86dd
      Peter Huewe 提交于
      This driver adds support for Infineon's new SLB 9645 TT 1.2 I2C TPMs,
      which supports clockstretching, combined reads and a bus speed of
      up to 400khz. The device also has a new device id.
      
      The driver works now also fine with device trees, so you can
      instantiate your device by adding:
       +       tpm {
       +               compatible = "infineon,slb9645tt";
       +               reg = <0x20>;
       +       };
       for SLB 9645 devices or
      
       +       tpm {
       +               compatible = "infineon,slb9635tt";
       +               reg = <0x20>;
       +       };
       for SLB 9635 devices
      
      to your device tree.
      tpm_i2c_infineon is also retained as a compatible id as a fallback to
      slb9635 protocol.
      
      The driver was tested on Beaglebone.
      Signed-off-by: NPeter Huewe <peter.huewe@infineon.com>
      Signed-off-by: NKent Yoder <key@linux.vnet.ibm.com>
      c61c86dd
  19. 05 4月, 2013 1 次提交
  20. 04 4月, 2013 1 次提交
  21. 12 2月, 2013 1 次提交
  22. 07 2月, 2013 2 次提交
  23. 28 1月, 2013 1 次提交
  24. 19 11月, 2012 1 次提交
  25. 17 11月, 2012 1 次提交
    • A
      i2c: ocores: Add support for the GRLIB port of the controller and use function... · a000b8c1
      Andreas Larsson 提交于
      i2c: ocores: Add support for the GRLIB port of the controller and use function pointers for getreg and setreg functions
      
      The registers in the GRLIB port of the controller are 32-bit and in big endian
      byte order. The PRELOW and PREHIGH registers are merged into one register. The
      subsequent registers have their offset decreased accordingly. Hence the register
      access needs to be handled in a non-standard manner using custom getreg and
      setreg functions.
      
      Add setreg and getreg functions for different register widths and let oc_setreg
      and oc_getreg use function pointers to call the appropriate functions.
      
      A type is added as the data of the of match table entries. A new entry with a
      different compatible string is added to the table. The type of that entry
      triggers usage of the custom grlib functions by setting the setreg and getreg
      function pointers.
      Signed-off-by: NAndreas Larsson <andreas@gaisler.com>
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      a000b8c1
  26. 16 11月, 2012 2 次提交
  27. 15 11月, 2012 1 次提交
  28. 29 10月, 2012 1 次提交
  29. 15 10月, 2012 1 次提交
    • S
      i2c: imx: remove cpu_is_xxx by using platform_device_id · 5bdfba29
      Shawn Guo 提交于
      This is some amount of work left/forgot from device tree conversion.
      Instead of checking cpu_is_xxx to determine the controller type, the
      driver should use platform_device_id, which should match the device
      tree compatible string.
      
      The patch changes the driver to use platform_device_id rather than
      cpu_is_xxx to determine the controller type/version.  It also updates
      the platform code and device tree source accordingly.
      
      As the result, mach/hardware.h inclusion gets removed from the driver.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Acked-by: NSascha Hauer <s.hauer@pengutronix.de>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Wolfram Sang <w.sang@pengutronix.de>
      Cc: linux-i2c@vger.kernel.org
      5bdfba29
  30. 08 10月, 2012 1 次提交
  31. 06 10月, 2012 1 次提交
  32. 12 9月, 2012 1 次提交