* PFC of SCIF 1
@ 2010-04-01 9:36 Fabio Giovagnini
2010-04-01 10:03 ` Magnus Damm
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Fabio Giovagnini @ 2010-04-01 9:36 UTC (permalink / raw)
To: linux-sh
Hi All,
is the bootloader responsable of initizlization of PFC for Serial Ports pin,
or the sh-sci drivers?
Thanks a lot
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PFC of SCIF 1
2010-04-01 9:36 PFC of SCIF 1 Fabio Giovagnini
@ 2010-04-01 10:03 ` Magnus Damm
2010-04-01 10:06 ` Fabio Giovagnini
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Magnus Damm @ 2010-04-01 10:03 UTC (permalink / raw)
To: linux-sh
Hi Fabio,
On Thu, Apr 1, 2010 at 6:36 PM, Fabio Giovagnini
<fabio.giovagnini@aurion-tech.com> wrote:
> Hi All,
> is the bootloader responsable of initizlization of PFC for Serial Ports pin,
> or the sh-sci drivers?
Close. =) The board specific code.
Cheers,
/ magnus
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PFC of SCIF 1
2010-04-01 9:36 PFC of SCIF 1 Fabio Giovagnini
2010-04-01 10:03 ` Magnus Damm
@ 2010-04-01 10:06 ` Fabio Giovagnini
2010-04-01 10:11 ` Magnus Damm
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Fabio Giovagnini @ 2010-04-01 10:06 UTC (permalink / raw)
To: linux-sh
Sorry Magnus, I do not understand.
I have ttySC0 as default console and the system works; now I'm writing my
application for managing teh ttySC1 port for my specif problem.
Where can I find the PFC initialization for ttySC0 Port into the kernel tree?
Thanks a lot
In data giovedì 01 aprile 2010 12:03:01, Magnus Damm ha scritto:
: > Hi Fabio,
>
> On Thu, Apr 1, 2010 at 6:36 PM, Fabio Giovagnini
>
> <fabio.giovagnini@aurion-tech.com> wrote:
> > Hi All,
> > is the bootloader responsable of initizlization of PFC for Serial Ports
> > pin, or the sh-sci drivers?
>
> Close. =) The board specific code.
>
> Cheers,
>
> / magnus
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PFC of SCIF 1
2010-04-01 9:36 PFC of SCIF 1 Fabio Giovagnini
2010-04-01 10:03 ` Magnus Damm
2010-04-01 10:06 ` Fabio Giovagnini
@ 2010-04-01 10:11 ` Magnus Damm
2010-04-01 10:12 ` Magnus Damm
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Magnus Damm @ 2010-04-01 10:11 UTC (permalink / raw)
To: linux-sh
Hi Fabio,
On Thu, Apr 1, 2010 at 7:06 PM, Fabio Giovagnini
<fabio.giovagnini@aurion-tech.com> wrote:
> Sorry Magnus, I do not understand.
> I have ttySC0 as default console and the system works; now I'm writing my
> application for managing teh ttySC1 port for my specif problem.
If the boot loader usually sets up the pinmux and if the kernel does
not touch it then it will work. On SH the proper way to do this is to
let the kernel use the GPIO framework to configure the pinmux using
request_irq().
> Where can I find the PFC initialization for ttySC0 Port into the kernel tree?
Have a look at this:
damm@t400s ~/git/linux-2.6 $ find arch/sh | xargs grep gpio_request | grep SCIF
arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_SCK, NULL);
arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_RXD, NULL);
arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_TXD, NULL);
arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_CTS, NULL);
arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_RTS, NULL);
arch/sh/boards/mach-ecovec24/setup.c: gpio_request(GPIO_FN_SCIF0_TXD, NULL);
arch/sh/boards/mach-ecovec24/setup.c: gpio_request(GPIO_FN_SCIF0_RXD, NULL);
arch/sh/boards/mach-kfr2r09/setup.c: gpio_request(GPIO_FN_SCIF1_RXD, NULL);
arch/sh/boards/mach-kfr2r09/setup.c: gpio_request(GPIO_FN_SCIF1_TXD, NULL);
arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCIF0_CTS,
NULL);
arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCIF0_RTS,
NULL);
arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCIF0_SCK,
NULL);
arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCIF0_RXD,
NULL);
arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCIF0_TXD,
NULL);
damm@t400s ~/git/linux-2.6 $
Cheers,
/ magnus
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PFC of SCIF 1
2010-04-01 9:36 PFC of SCIF 1 Fabio Giovagnini
` (2 preceding siblings ...)
2010-04-01 10:11 ` Magnus Damm
@ 2010-04-01 10:12 ` Magnus Damm
2010-04-01 10:16 ` Fabio Giovagnini
2010-04-01 13:52 ` Fabio Giovagnini
5 siblings, 0 replies; 7+ messages in thread
From: Magnus Damm @ 2010-04-01 10:12 UTC (permalink / raw)
To: linux-sh
On Thu, Apr 1, 2010 at 7:11 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
> If the boot loader usually sets up the pinmux and if the kernel does
> not touch it then it will work. On SH the proper way to do this is to
> let the kernel use the GPIO framework to configure the pinmux using
> request_irq().
err, it's supposed to be request_gpio(). =)
/ magnus
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PFC of SCIF 1
2010-04-01 9:36 PFC of SCIF 1 Fabio Giovagnini
` (3 preceding siblings ...)
2010-04-01 10:12 ` Magnus Damm
@ 2010-04-01 10:16 ` Fabio Giovagnini
2010-04-01 13:52 ` Fabio Giovagnini
5 siblings, 0 replies; 7+ messages in thread
From: Fabio Giovagnini @ 2010-04-01 10:16 UTC (permalink / raw)
To: linux-sh
Ok, now I'll get a look.
Thanks a lot
In data giovedì 01 aprile 2010 12:11:51, Magnus Damm ha scritto:
: > Hi Fabio,
>
> On Thu, Apr 1, 2010 at 7:06 PM, Fabio Giovagnini
>
> <fabio.giovagnini@aurion-tech.com> wrote:
> > Sorry Magnus, I do not understand.
> > I have ttySC0 as default console and the system works; now I'm writing my
> > application for managing teh ttySC1 port for my specif problem.
>
> If the boot loader usually sets up the pinmux and if the kernel does
> not touch it then it will work. On SH the proper way to do this is to
> let the kernel use the GPIO framework to configure the pinmux using
> request_irq().
>
> > Where can I find the PFC initialization for ttySC0 Port into the kernel
> > tree?
>
> Have a look at this:
>
> damm@t400s ~/git/linux-2.6 $ find arch/sh | xargs grep gpio_request | grep
> SCIF
> arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_SCK,
> NULL);
> arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_RXD,
> NULL);
> arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_TXD,
> NULL);
> arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_CTS,
> NULL);
> arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_RTS,
> NULL);
> arch/sh/boards/mach-ecovec24/setup.c: gpio_request(GPIO_FN_SCIF0_TXD,
> NULL);
> arch/sh/boards/mach-ecovec24/setup.c: gpio_request(GPIO_FN_SCIF0_RXD,
> NULL);
> arch/sh/boards/mach-kfr2r09/setup.c: gpio_request(GPIO_FN_SCIF1_RXD,
> NULL);
> arch/sh/boards/mach-kfr2r09/setup.c: gpio_request(GPIO_FN_SCIF1_TXD,
> NULL);
> arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCIF
> 0_CTS, NULL);
> arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCIF0
> _RTS, NULL);
> arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCIF0
> _SCK, NULL);
> arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCIF0
> _RXD, NULL);
> arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCIF0
> _TXD, NULL);
> damm@t400s ~/git/linux-2.6 $
>
> Cheers,
>
> / magnus
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PFC of SCIF 1
2010-04-01 9:36 PFC of SCIF 1 Fabio Giovagnini
` (4 preceding siblings ...)
2010-04-01 10:16 ` Fabio Giovagnini
@ 2010-04-01 13:52 ` Fabio Giovagnini
5 siblings, 0 replies; 7+ messages in thread
From: Fabio Giovagnini @ 2010-04-01 13:52 UTC (permalink / raw)
To: linux-sh
My problem is in
tcsetattr(HPort, /*TCSAFLUSH*/TCSANOW, &term)
Where can I find a term setting working a a very basic raw mode (just like the
ttySC0 running the terminal console)
Thanks.
In data giovedì 01 aprile 2010 12:16:13, Fabio Giovagnini ha scritto:
: > Ok, now I'll get a look.
>
> Thanks a lot
>
> In data giovedì 01 aprile 2010 12:11:51, Magnus Damm ha scritto:
> : > Hi Fabio,
> >
> > On Thu, Apr 1, 2010 at 7:06 PM, Fabio Giovagnini
> >
> > <fabio.giovagnini@aurion-tech.com> wrote:
> > > Sorry Magnus, I do not understand.
> > > I have ttySC0 as default console and the system works; now I'm writing
> > > my application for managing teh ttySC1 port for my specif problem.
> >
> > If the boot loader usually sets up the pinmux and if the kernel does
> > not touch it then it will work. On SH the proper way to do this is to
> > let the kernel use the GPIO framework to configure the pinmux using
> > request_irq().
> >
> > > Where can I find the PFC initialization for ttySC0 Port into the kernel
> > > tree?
> >
> > Have a look at this:
> >
> > damm@t400s ~/git/linux-2.6 $ find arch/sh | xargs grep gpio_request |
> > grep SCIF
> > arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_SCK,
> > NULL);
> > arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_RXD,
> > NULL);
> > arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_TXD,
> > NULL);
> > arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_CTS,
> > NULL);
> > arch/sh/boards/mach-se/7724/setup.c: gpio_request(GPIO_FN_SCIF3_I_RTS,
> > NULL);
> > arch/sh/boards/mach-ecovec24/setup.c: gpio_request(GPIO_FN_SCIF0_TXD,
> > NULL);
> > arch/sh/boards/mach-ecovec24/setup.c: gpio_request(GPIO_FN_SCIF0_RXD,
> > NULL);
> > arch/sh/boards/mach-kfr2r09/setup.c: gpio_request(GPIO_FN_SCIF1_RXD,
> > NULL);
> > arch/sh/boards/mach-kfr2r09/setup.c: gpio_request(GPIO_FN_SCIF1_TXD,
> > NULL);
> >
> > arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCI
> >F 0_CTS, NULL);
> > arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCI
> >F0 _RTS, NULL);
> > arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCI
> >F0 _SCK, NULL);
> > arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCI
> >F0 _RXD, NULL);
> > arch/sh/boards/mach-highlander/pinmux-r7785rp.c: gpio_request(GPIO_FN_SCI
> >F0 _TXD, NULL);
> > damm@t400s ~/git/linux-2.6 $
> >
> > Cheers,
> >
> > / magnus
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-04-01 13:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-01 9:36 PFC of SCIF 1 Fabio Giovagnini
2010-04-01 10:03 ` Magnus Damm
2010-04-01 10:06 ` Fabio Giovagnini
2010-04-01 10:11 ` Magnus Damm
2010-04-01 10:12 ` Magnus Damm
2010-04-01 10:16 ` Fabio Giovagnini
2010-04-01 13:52 ` Fabio Giovagnini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox