From: Vitaly Bordug <vitb@kernel.crashing.org>
To: linuxppc-dev@ozlabs.org
Subject: Re: MPC8560 CPM2 SCC(UART) Driver CPM_UART_CONSOLE
Date: Tue, 25 Sep 2007 19:59:59 +0400 [thread overview]
Message-ID: <20070925195959.531b2fe5@kernel.crashing.org> (raw)
In-Reply-To: <20070925104704.M46195@cdotd.ernet.in>
Hello Deepak,
On Tue, 25 Sep 2007 17:33:59 +0630
Deepak Gaur wrote:
> Hi all,
>
> I am writing a kernel module which is required to parse the characters received from a
> device attached to MPC8560 SCC2 (UART slave mode) on serial interface. This SCC is
> required to be configured for single-buffer, character based operation. Moreover on
> another SCC (SCC1 UART master mode) the board debug interface(console) is connected.
>
> While trying to figure out CPM UART device driver interface available in file
> drivers/serial/cpm_uart/cpm_uart_core.c for my kernel module I found that some of the
> functions are available when CPM_UART_CONSOLE is enabled.
>
> My doubt is regarding status of this flag for my hardware setup. Should this flag be
> enabled or not. If it is required to be enabled for supporting SCC1 then how SCC2 will
> be handled?
>
well, console is normally initialized early, before actual uart driver, that's why those bits are hidden
behind CPM_UART_CONSOLE.
I suppose you'll just have to get SCC2 uart to work and use ttyCPM1... or if you application is more specific, write another driver
using cpm_uart_core.c as a reference. But I would not recommend using CPM_UART_CONSOLE stuff - it's pretty restricted and assumes very early triggering, with plenty of stuff not initialized.
> As I am a novice in this area , I shall be grateful if you please guide me in
> understanding this driver code.
>
> with regards,
>
> Deepak Gaur
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
--
Sincerely, Vitaly
prev parent reply other threads:[~2007-09-25 16:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-25 11:03 MPC8560 CPM2 SCC(UART) Driver CPM_UART_CONSOLE Deepak Gaur
2007-09-25 11:14 ` CPM_UART_CONSOLE Deepak Gaur
2007-09-25 15:43 ` MPC8560 CPM2 SCC(UART) Driver CPM_UART_CONSOLE Scott Wood
2007-09-25 15:59 ` Vitaly Bordug [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070925195959.531b2fe5@kernel.crashing.org \
--to=vitb@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).