i2c-gpio

12 views
Skip to first unread message

yuanwei2088

unread,
Mar 31, 2012, 5:51:51 AM3/31/12
to linuxdriver
hi,all
I am porting a new ril device for a new phone,which is using  i2-gpio module .
now ,i create platform device i2c-gpio as follow:
 
and  in  sys/bus/i2c/   there is not the new bus for me,
 
in board.c
static struct i2c_gpio_platform_data i2c3_data = { 
        .sda_pin = 37, //col5 sda 37
        .scl_pin = 38, //kcol4 scl 38
        .udelay = 5,         
        .sda_is_open_drain = 1, //1
        .scl_is_open_drain = 1, //1
       
 
}; 
 
static struct platform_device i2c3_device = { 
        .name           = "i2c-gpio", 
        .id             = 2, 
        .dev = { 
                .platform_data=&i2c3_data, 
        }, 
 
};
but when booting kernel, a error happens , below is it!
 
any helps will be gratefull。。。。。。。。。。。

yuanwei2088
Catch.jpg
CatchBF08.jpg

冯建波

unread,
Apr 5, 2012, 2:40:50 AM4/5/12
to linux...@googlegroups.com
check i2c-gpio 's probe function for more information.

Barry Song

unread,
Jun 13, 2012, 11:54:49 AM6/13/12
to linux...@googlegroups.com
是的 查下probe函数,看看那步失败了。

~ 新浪weibo @宋宝华Barry

Reply all
Reply to author
Forward
0 new messages