2010-02-21 00:20:25     BF525 (527): using UART0 and SPORT0 at the same time - is it possible?

2010-02-21 00:20:25     BF525 (527): using UART0 and SPORT0 at the same time - is it possible?

George Yohng (AUSTRIA)

Message: 86264   

Hello,

I'm trying to use UART0 as a debugging console, and also SPORT0/I2C to drive the audio codec.

Once the module snd-soc-bf5xx-i2s.ko is loaded, it immediately says that Periphal #24 is already used by bfin-uart. I guess, this relates to UART0 TX/RX GPIOs, which are PG7 and PG8, and are also used for SPORT0.

I wonder, if there is a workaround, so that UART0 still can be used, but SPORT0 also works? Is there any kernel configuration that can be changed?

Thanks,

George.

QuoteReplyEditDelete

2010-02-21 00:28:21     Re: BF525 (527): using UART0 and SPORT0 at the same time - is it possible?

Sonic Zhang (CHINA)

Message: 86265   

Use uart1 instead。

QuoteReplyEditDelete

2010-02-21 14:22:56     Re: BF525 (527): using UART0 and SPORT0 at the same time - is it possible?

George Yohng (AUSTRIA)

Message: 86282   

Thanks for the answer. I have found what the problem was.

QuoteReplyEditDelete

2010-02-21 21:09:32     Re: BF525 (527): using UART0 and SPORT0 at the same time - is it possible?

Sonic Zhang (CHINA)

Message: 86284   

Then, what's the problem on your board?

QuoteReplyEditDelete

2010-02-21 23:19:39     Re: BF525 (527): using UART0 and SPORT0 at the same time - is it possible?

Vinay Kumar (INDIA)

Message: 86286   

Hi All,

Even i have the same problem with the same board.

Please guide me solve the problem.

Thanks

QuoteReplyEditDelete

2010-02-22 13:30:02     Re: BF525 (527): using UART0 and SPORT0 at the same time - is it possible?

George Yohng (AUSTRIA)

Message: 86334   

It is a very specific thing. I don't know if it will apply to any other board.

SPORT0 can reside on GPIO PORTF and PORTG, and one can specify a different port for it inside kernel configuration.

According to the hardware manual of the board I'm using, SPORT0 is on PORTF and UART1 on PORTG.

I also had to check with USB VRSEL flag. By default, ezkit.c maps it to GPIO PG13, which prevented me from using it with UART1 configuration that I have. However it is PH15 on my board, thus changing ezkit.c and alterning kernel config with the above options, everything seemed to work properly.

Thanks,

George.

QuoteReplyEditDelete

2010-02-22 15:34:13     Re: BF525 (527): using UART0 and SPORT0 at the same time - is it possible?

Mike Frysinger (UNITED STATES)

Message: 86348   

if you arent using a bf527-ezkit, you should not be using ezkit.c.  create a proper board resources file -- copying from an existing file is OK, but you really need to trim out all the stuff you arent actually using.

QuoteReplyEditDelete

2010-02-23 16:25:18     Re: BF525 (527): using UART0 and SPORT0 at the same time - is it possible?

George Yohng (AUSTRIA)

Message: 86398   

I understand this, but some other people (as you see above) asked me to elaborate upon the fixes.

The configuration is close to ezkit, so most of the file works, and it was the fastest way to make it boot. Later I will properly create a new platform.

  • 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.