2009-01-15 10:33:20     how writing new twi driver for BF537-stamp

2009-01-15 10:33:20     how writing new twi driver for BF537-stamp

yu hang (CHINA)

Message: 67989   

Hi

i need access i2c device use bf537-stamp twi port, but my appliation want access the i2c device from a interrupt, so, that was a problem for uClinux of blackfin i2c driver, the i2c-bfin-twi.c and i2c-core driver was a no-atomic interrupt.

so, my idea is using a new twi driver for that operations, i saw the u-boot's twi driver, do you think can we using the u-boot twi driver in uClinux kernel?

regards

QuoteReplyEditDelete

2009-01-15 10:40:44     Re: how writing new twi driver for BF537-stamp

yu hang (CHINA)

Message: 67990   

ok, i have just take a try, please checking the attached files for that driver (more close hardware driver :-) )

when i running the ti2c.ko, always get a " probe failed ", does i missed something in i2c.c special for bf537-stamp in uClinux mode for that codes?

regards

i2c.c

twi.h

ti2c.c

QuoteReplyEditDelete

2009-01-15 10:46:09     Re: how writing new twi driver for BF537-stamp

Mike Frysinger (UNITED STATES)

Message: 67993   

the only driver supported is the one already in the kernel

attaching files will not show up immediately ... there's a small delay to sync them to the public mirror

QuoteReplyEditDelete

2009-01-15 10:50:27     Re: how writing new twi driver for BF537-stamp

yu hang (CHINA)

Message: 67994   

i am not very understand what you mean? does you mean the kernel already have a such colose hardwre driver? not same the i2c-bfin-twi.c and i2c-core.c ?

thanks

QuoteReplyEditDelete

2009-01-15 11:09:54     Re: how writing new twi driver for BF537-stamp

Mike Frysinger (UNITED STATES)

Message: 67995   

the u-boot i2c driver is for u-boot.  the linux i2c driver is for linux.  while it is all open source and you can do whatever you want, attempting to use the i2c hardware under linux using any driver other than the one we wrote and is in there now is not supported.  so you're on your own.

  • Created
Was this helpful?

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.