UART SIR mode register

58 views
Skip to first unread message

stu...@gmail.com

unread,
May 8, 2015, 5:31:52 AM5/8/15
to linux...@googlegroups.com
Dear All;

I would like to enable SIR mode in UART modem control register for only one of my UART ports. I am planning to transceive IrDa by using that port.

In A20 User manual, page 655, it states that 6th bit of UART_MCR register controls this mode.

In Android SDK for A20, when I search for UART_MCR_SIRE, it finds only at sw_uart.h, but it seems this is not implemented in sw_uart.c

In sunxi-kernel, there is no such define at all.

Can you please guide me, how can I enable SIR mode for only one of my UARTs ?

stu...@gmail.com

unread,
May 9, 2015, 8:52:54 AM5/9/15
to linux...@googlegroups.com, stu...@gmail.com
Seems "community" is silent these days...

Priit Laes

unread,
May 10, 2015, 4:30:58 AM5/10/15
to linux...@googlegroups.com
Excellent case on how to ask help!

When nobody responds to a question that's asked on Friday afternoon
(depends on the timezone though) and no response has been received
within 28 hours, follow up with an insult.

Here's a hint: the silence could be because we don't know an answer
and/or your question was incomplete (ie. what kernel, what device).

Päikest,
Priit :)

Sertac Tüllük

unread,
May 10, 2015, 12:01:55 PM5/10/15
to pl...@plaes.org, linux...@googlegroups.com
Thank you so much for your answer. You are also right about the question might be incomplete ( If so, pls let me know after re-reading my e-mail, and checking 8250-sunxi.c file in current kernel, and explaining by what is the relation between SIR mode of AXX UART and whichever AXX based DEVICE / KERNEL it is? )

However, I was expecting that at least someone who wrote / debug / test this driver :

1) Comment on the driver that nobody have defined UART_MCR register flags since the beginning.
2) Give an idea of how to implement this functionality in sunxi-kernel , just a comment.

I love this community and I am very very thankful for this great work. I am trying to provide help as much as I can,

- By asking some newbie questions since mid-2013
- By providing some documentation : (See: http://dl.linux-sunxi.org/users/stulluk/ )
- By writing some pages to sunxi-wiki ( as an unexperienced newbie, see: http://linux-sunxi.org/Camera or http://linux-sunxi.org/FFmpeg )
- By communicating with other experienced contributors and sharing this information to help other people ( See: https://github.com/stulluk/FFmpeg-Cedrus )

Now, could you please tell me, what is the rude thing about saying "community is silent these days ?"

I am not blaming anybody, and not saying "Hey, why don't you answer my question in 28 hours????"

Still, I am soo thankful to everyone who contributed to this community, and if I can do to provide this functionality ( SIR mode in UART), I will try my best to write a patch file and a tutorial of controlling your IR devices by using your AXX hardware / sunxi-kernel.

Regards.






--
You received this message because you are subscribed to a topic in the Google Groups "linux-sunxi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/linux-sunxi/304ZGF85iUM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to linux-sunxi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Priit Laes

unread,
May 10, 2015, 1:02:37 PM5/10/15
to linux...@googlegroups.com
On Sun, 2015-05-10 at 19:01 +0300, Sertac Tüllük wrote:
> Thank you so much for your answer. You are also right about the
> question might be incomplete ( If so, pls let me know after re
> -reading my e-mail, and checking 8250-sunxi.c file in current
> kernel, and explaining by what is the relation between SIR mode of
> AXX UART and whichever AXX based DEVICE / KERNEL it is? )
>


[...]


> Now, could you please tell me, what is the rude thing about saying
> "community is silent these days ?"

In your follow-up email, the word 'community' was quoted:
http://en.wikipedia.org/wiki/Scare_quotes

It might have been unintentional, but the quotes, also lack of detail
in your request and the way those messages were timed is the reason I
interpreted your follow-up as an insult.

>
> I am not blaming anybody, and not saying "Hey, why don't you answer
> my question in 28 hours????"
>
> Still, I am soo thankful to everyone who contributed to this
> community, and if I can do to provide this functionality ( SIR mode
> in UART), I will try my best to write a patch file and a tutorial of
> controlling your IR devices by using your AXX hardware / sunxi
> -kernel.
>
> Regards.
>
>
Päikest,
Priit :)

Sertac Tüllük

unread,
May 10, 2015, 3:38:16 PM5/10/15
to pl...@plaes.org, linux...@googlegroups.com
Thank you. I hope I could get some technical reply from the author of the driver some day. 

Päikest,
Priit :)

Michal Suchanek

unread,
May 11, 2015, 4:46:58 AM5/11/15
to stu...@gmail.com, pl...@plaes.org, linux-sunxi
Hello,

On 10 May 2015 at 21:38, Sertac Tüllük <stu...@gmail.com> wrote:
> Thank you. I hope I could get some technical reply from the author of the
> driver some day.
>

I can't speak for the driver author.

However, I can see a possibility that the flag you are asking about is
not used on any of the devices the author of the driver had at hand so
it could not be tested and hence was not included.

So you can try setting the flag yourself since you have meticulously
looked it up already, test it with your hardware, and report the
results.

Thanks

Michal
Reply all
Reply to author
Forward
0 new messages