2009-06-01 07:23:09     Modifying bfin_sport.c to support different transmi/receive clocks

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

2009-06-01 07:23:09     Modifying bfin_sport.c to support different transmi/receive clocks

Gavin Teague (SOUTH AFRICA)

Message: 74915   

 

I have examined the general purpose device driver for the SPORT ("bfin_sport.h/.c") and noticed that the SPORT transmit and receive clocks are set to the same setting (either both internal or both external) via config->int_clk. In our application it makes sense to have the SPORT transmit clock generated by the Blackfin (ADSP-BF537) and the receive clock generated by the FPGA interfacing to the Blackfin (i.e. external clock).

 

1) Is it OK to modify "sport_configure" in "bfin_sport.c" so that the transmit and receive clocks come from different sources?

 

2) Has anyone else tried this?

 

Thank you.

QuoteReplyEditDelete

 

 

2009-06-01 21:06:29     Re: Modifying bfin_sport.c to support different transmi/receive clocks

Mike Frysinger (UNITED STATES)

Message: 74937   

 

a person or two has asked, but no one has done work on it.  sport_configure() would be the place to do it, but the userspace API would have to be extended first (the sport_config structure in bfin_sport.h).  extend int_clk to two bits and have the first bit be for rx and the second bit be for tx.  and extend serial_clk/fsync_clk to be an array of two.

QuoteReplyEditDelete

 

 

2009-06-01 23:31:15     Re: Modifying bfin_sport.c to support different transmi/receive clocks

Sonic Zhang (CHINA)

Message: 74940   

 

You are welcome to submit a patch.

Attachments

    Outcomes