From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Giovagnini Date: Thu, 01 Apr 2010 10:16:13 +0000 Subject: Re: PFC of SCIF 1 Message-Id: <201004011216.13813.fabio.giovagnini@aurion-tech.com> List-Id: References: <201004011136.26340.fabio.giovagnini@aurion-tech.com> In-Reply-To: <201004011136.26340.fabio.giovagnini@aurion-tech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-sh@vger.kernel.org Ok, now I'll get a look. Thanks a lot In data gioved=EC 01 aprile 2010 12:11:51, Magnus Damm ha scritto: : > Hi Fabio, >=20 > On Thu, Apr 1, 2010 at 7:06 PM, Fabio Giovagnini >=20 > 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. >=20 > 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(). >=20 > > Where can I find the PFC initialization for ttySC0 Port into the kernel > > tree? >=20 > Have a look at this: >=20 > 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_SC= IF > 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 $ >=20 > Cheers, >=20 > / magnus >=20 --=20 Fabio Giovagnini Aurion s.r.l. P.I e C.F. 00885711200 Tel. +39.051.594.78.24 Cell. +39.335.83.50.919