diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-07-25 01:46:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-25 10:53:30 -0700 |
commit | 42cd2366fb9b58cdfc1855be32b31a78e40b2079 (patch) | |
tree | 58f335a86f7c2f127509642499d1fd2a27d21ff9 /include/linux/sm501.h | |
parent | 60e540d617b40eb3d37f1dd99c97af588ff9b70b (diff) | |
download | linux-3.10-42cd2366fb9b58cdfc1855be32b31a78e40b2079.tar.gz linux-3.10-42cd2366fb9b58cdfc1855be32b31a78e40b2079.tar.bz2 linux-3.10-42cd2366fb9b58cdfc1855be32b31a78e40b2079.zip |
sm501: gpio I2C support
Add support for adding the GPIO based I2C resources.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Cc: Arnaud Patard <apatard@mandriva.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/sm501.h')
-rw-r--r-- | include/linux/sm501.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/sm501.h b/include/linux/sm501.h index a8d02f36ad3..214f93209b8 100644 --- a/include/linux/sm501.h +++ b/include/linux/sm501.h @@ -86,11 +86,19 @@ struct sm501_platdata_fb { struct sm501_platdata_fbsub *fb_pnl; }; -/* gpio i2c */ +/* gpio i2c + * + * Note, we have to pass in the bus number, as the number used will be + * passed to the i2c-gpio driver's platform_device.id, subsequently used + * to register the i2c bus. +*/ struct sm501_platdata_gpio_i2c { + unsigned int bus_num; unsigned int pin_sda; unsigned int pin_scl; + int udelay; + int timeout; }; /* sm501_initdata |