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>
This commit is contained in:
Ben Dooks 2008-07-25 01:46:01 -07:00 committed by Linus Torvalds
parent 60e540d617
commit 42cd2366fb
2 changed files with 84 additions and 2 deletions

View file

@ -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