1. 15 7月, 2008 1 次提交
    • J
      i2c: Let bus drivers add SPD to their class · 3401b2ff
      Jean Delvare 提交于
      Let general purpose I2C/SMBus bus drivers add SPD to their class. Once
      this is done, we will be able to tell the eeprom driver to only probe
      for SPD EEPROMs and similar on these buses.
      
      Note that I took a conservative approach here, adding I2C_CLASS_SPD to
      many drivers that have no idea whether they can host SPD EEPROMs or not.
      This is to make sure that the eeprom driver doesn't stop probing buses
      where SPD EEPROMs or equivalent live.
      
      So, bus driver maintainers and users should feel free to remove the SPD
      class from drivers those buses never have SPD EEPROMs or they don't
      want the eeprom driver to bind to them. Likewise, feel free to add the
      SPD class to any bus driver I might have missed.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      3401b2ff
  2. 23 4月, 2008 1 次提交
  3. 12 12月, 2007 1 次提交
  4. 10 9月, 2007 1 次提交
  5. 12 7月, 2007 2 次提交
  6. 02 5月, 2007 1 次提交
    • H
      i2c: Bitbanging I2C bus driver using the GPIO API · 1c23af90
      Haavard Skinnemoen 提交于
      This is a very simple bitbanging I2C bus driver utilizing the new
      arch-neutral GPIO API. Useful for chips that don't have a built-in
      I2C controller, additional I2C busses, or testing purposes.
      
      To use, include something similar to the following in the
      board-specific setup code:
      
        #include <linux/i2c-gpio.h>
      
        static struct i2c_gpio_platform_data i2c_gpio_data = {
      	.sda_pin	= GPIO_PIN_FOO,
      	.scl_pin	= GPIO_PIN_BAR,
        };
        static struct platform_device i2c_gpio_device = {
      	.name		= "i2c-gpio",
      	.id		= 0,
      	.dev		= {
      		.platform_data	= &i2c_gpio_data,
      	},
        };
      
      Register this platform_device, set up the I2C pins as GPIO if
      required and you're ready to go. This will use default values for
      udelay and timeout, and will work with GPIO hardware that does not
      support open drain mode, but allows sensing of the SDA and SCL lines
      even when they are being driven.
      Signed-off-by: NHaavard Skinnemoen <hskinnemoen@atmel.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      1c23af90