From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Thu, 20 Oct 2011 16:34:21 -0400 Subject: [U-Boot] [PATCH 8/8] tegra2: Create SPI/UART switch code In-Reply-To: References: <1319137409-4132-1-git-send-email-sjg@chromium.org> <201110201609.36367.vapier@gentoo.org> Message-ID: <201110201634.22054.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 20 October 2011 16:23:33 Simon Glass wrote: > On Thu, Oct 20, 2011 at 1:09 PM, Mike Frysinger wrote: > > On Thursday 20 October 2011 15:03:29 Simon Glass wrote: > >> --- a/board/nvidia/seaboard/seaboard.c > >> +++ b/board/nvidia/seaboard/seaboard.c > >> > >> +/* TODO: Remove this code when the SPI switch is working */ > >> +#ifndef CONFIG_SPI_UART_SWITCH > > > > eh ? isn't it working after these patches ? > > No, we need to resolve the NS16550 buffering issue, and also work out > how to get that driver to indicate when it needs to 'claim' the pins > from SPI. > > I have a working implementation, and patches for it. Basically I call > uart_enable() from the NS16550 driver before writing any serial data > out or when wanting to read serial data. But it is ugly and I am torn > between simple ugliness and complex pervasiveness. > > Advice welcome. hmmmmmmmmmm. this is probably crazy, but ... if you enable multi serial, enable the ns16550 driver, and then write another "serial" driver that merely makes the relevant pinmux calls before tailing into the ns16550, and then set your stdout/stdin/stderr to that glue driver ... -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20111020/b72fcb12/attachment.pgp