2008-09-05 13:42:17     hciattach doing some funky i2c stuff

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-09-05 13:42:17     hciattach doing some funky i2c stuff

Kyle Schlansker (UNITED STATES)

Message: 61712   

 

I have an Infineon PBA31308 bluetooth chip that I'm trying to test over UART3 on the BF548 EZ-KIT.

 

Lines 1044 and 1045 of user/blkfin-apps/bluez-utils/tools/hciattach.c are:

 

    system("echo 0 > /sys/devices/platform/i2c-0/0-0021/set_bit");

    system("echo 0 > /sys/devices/platform/i2c-0/0-0021/clear_bit");

 

 

Anyone know why these are here?  They are trying to do something with the linux-2.6.x/drivers/i2c/chips/pcf8575.c driver, which to my knowledge, should not have anything with using bluetooth over a UART.  I could activate this driver so that the calls to system() in hciattch succeed, but I'd like to know what the intended effect is before I do that.

 

 

 

Any color on the issue would be appreciated.

QuoteReplyEditDelete

 

 

2008-09-08 16:59:13     Re: hciattach doing some funky i2c stuff

Mike Frysinger (UNITED STATES)

Message: 61798   

 

the guy who would know is currently on vacation, so when he gets back he should be able to comment

 

however, while i'm not familiar with bluetooth, that code really does not look right at all ...

QuoteReplyEditDelete

 

 

2008-09-15 07:06:27     Re: hciattach doing some funky i2c stuff

Michael Hennerich (GERMANY)

Message: 62166   

 

Well – my fault.

I added Infineon Unistone UART HCI support some time ago.

The funky i2c stuff is some PNAV board level HW setup and reset used together with NXP I2C gpio expanders.

 

I must have overseen this when I checked this into our repository.

The reset code is not really necessary – when I first added this the bfin serial driver sometimes had issues with EDR.

 

Removed.

 

-Michael

Attachments

    Outcomes