* MPC8560 CPM2 SCC(UART) Driver CPM_UART_CONSOLE
@ 2007-09-25 11:03 Deepak Gaur
2007-09-25 11:14 ` CPM_UART_CONSOLE Deepak Gaur
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Deepak Gaur @ 2007-09-25 11:03 UTC (permalink / raw)
To: linuxppc-dev
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?
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* CPM_UART_CONSOLE
2007-09-25 11:03 MPC8560 CPM2 SCC(UART) Driver CPM_UART_CONSOLE Deepak Gaur
@ 2007-09-25 11:14 ` Deepak Gaur
2007-09-25 15:43 ` MPC8560 CPM2 SCC(UART) Driver CPM_UART_CONSOLE Scott Wood
2007-09-25 15:59 ` Vitaly Bordug
2 siblings, 0 replies; 4+ messages in thread
From: Deepak Gaur @ 2007-09-25 11:14 UTC (permalink / raw)
To: linuxppc-embedded
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 (Linux ppc)
./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?
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: MPC8560 CPM2 SCC(UART) Driver CPM_UART_CONSOLE
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 ` Scott Wood
2007-09-25 15:59 ` Vitaly Bordug
2 siblings, 0 replies; 4+ messages in thread
From: Scott Wood @ 2007-09-25 15:43 UTC (permalink / raw)
To: Deepak Gaur; +Cc: linuxppc-dev
On Tue, Sep 25, 2007 at 05:33:59PM +0630, Deepak Gaur wrote:
> 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?
That flag should only be set on the actual console. What is it that you
need to do with the other port that the driver won't currently do?
-Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: MPC8560 CPM2 SCC(UART) Driver CPM_UART_CONSOLE
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
2 siblings, 0 replies; 4+ messages in thread
From: Vitaly Bordug @ 2007-09-25 15:59 UTC (permalink / raw)
To: linuxppc-dev
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-09-26 3:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).