mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 13:51:52 +00:00
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:
parent
60e540d617
commit
42cd2366fb
2 changed files with 84 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue