From: Gary Jennejohn Date: Mon, 15 Sep 2008 11:01:01 +0200 Subject: [U-Boot] [PATCH 1/2] IOMUX: Add console multiplexing support. In-Reply-To: <20080914215939.GA9272@game.jcrosoft.org> References: <20080914164107.32a9fce1@peedub.jennejohn.org> <20080914215939.GA9272@game.jcrosoft.org> Message-ID: <20080915110101.6b5e0a5b@peedub.jennejohn.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 Sun, 14 Sep 2008 23:59:39 +0200 Jean-Christophe PLAGNIOL-VILLARD wrote: > > + return i; > > +#else > > /* Try assigning specified device */ > > if (console_assign (console, argv[2]) < 0) > > return 1; > > @@ -221,6 +226,7 @@ int _do_setenv (int flag, int argc, char *argv[]) > > if (serial_assign (argv[2]) < 0) > > return 1; > > #endif > > +#endif /* CONFIG_IO_MUX */ > > } > > > > /* > > diff --git a/common/console.c b/common/console.c > > index 56d9118..6158af9 100644 > > --- a/common/console.c > > +++ b/common/console.c > > @@ -93,6 +93,78 @@ static int console_setfile (int file, device_t * dev) > > return error; > > } > > > > +#if defined(CONFIG_IO_MUX) > > +/** Console I/O multiplexing *******************************************/ > > + > > +static device_t *tstcdev; > > +device_t *console_devices[MAX_FILES][MAX_CONSARGS]; > > please use a list_head instead > This is an excellent suggestion. Thanks! --- Gary Jennejohn ********************************************************************* DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de *********************************************************************