Commit [0ea174]  Maximize  Restore  History

[PATCH] i2c-gpio: add sda_enforce_dir option

From: Albert Herranz <albert_herranz@yahoo.es>
Date: Sun, 1 Mar 2009 19:17:00 +0100
Subject: [PATCH] i2c-gpio: add sda_enforce_dir option

Currently, i2c-gpio assumes that it can read the SDA gpio even when
configured as an output pin, which is not true for all GPIO controllers.

This patch adds an option to i2c-gpio to enable the use of the driver
with GPIO controllers that require pins to be configured as outputs
before writing to them and as inputs before reading from them.
Such controllers need to set the sda_enforce_dir option.

Signed-off-by: Albert Herranz <albert_herranz@yahoo.es>

Albert Herranz Albert Herranz 2009-03-02

changed Documentation
changed Documentation/powerpc
changed Documentation/powerpc/dts-bindings
changed Documentation/powerpc/dts-bindings/gpio
changed Documentation/powerpc/dts-bindings/gpio/i2c.txt
changed drivers
changed drivers/i2c
changed drivers/i2c/busses
changed drivers/i2c/busses/i2c-gpio-common.c
changed drivers/i2c/busses/i2c-gpio-of.c
changed include
changed include/linux
changed include/linux/i2c-gpio.h
Documentation
Directory.
Documentation/powerpc/dts-bindings/gpio/i2c.txt Diff Switch to side-by-side view
Loading...
drivers
Directory.
drivers/i2c
Directory.
drivers/i2c/busses
Directory.
drivers/i2c/busses/i2c-gpio-common.c Diff Switch to side-by-side view
Loading...
drivers/i2c/busses/i2c-gpio-of.c Diff Switch to side-by-side view
Loading...
include
Directory.
include/linux
Directory.
include/linux/i2c-gpio.h Diff Switch to side-by-side view
Loading...