diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-07-25 04:46:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-25 13:53:30 -0400 |
commit | 42cd2366fb9b58cdfc1855be32b31a78e40b2079 (patch) | |
tree | 58f335a86f7c2f127509642499d1fd2a27d21ff9 /include/linux/sm501.h | |
parent | 60e540d617b40eb3d37f1dd99c97af588ff9b70b (diff) |
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 a8d02f36ad32..214f93209b8c 100644 --- a/include/linux/sm501.h +++ b/include/linux/sm501.h | |||
@@ -86,11 +86,19 @@ struct sm501_platdata_fb { | |||
86 | struct sm501_platdata_fbsub *fb_pnl; | 86 | struct sm501_platdata_fbsub *fb_pnl; |
87 | }; | 87 | }; |
88 | 88 | ||
89 | /* gpio i2c */ | 89 | /* gpio i2c |
90 | * | ||
91 | * Note, we have to pass in the bus number, as the number used will be | ||
92 | * passed to the i2c-gpio driver's platform_device.id, subsequently used | ||
93 | * to register the i2c bus. | ||
94 | */ | ||
90 | 95 | ||
91 | struct sm501_platdata_gpio_i2c { | 96 | struct sm501_platdata_gpio_i2c { |
97 | unsigned int bus_num; | ||
92 | unsigned int pin_sda; | 98 | unsigned int pin_sda; |
93 | unsigned int pin_scl; | 99 | unsigned int pin_scl; |
100 | int udelay; | ||
101 | int timeout; | ||
94 | }; | 102 | }; |
95 | 103 | ||
96 | /* sm501_initdata | 104 | /* sm501_initdata |