[U-Boot] [PATCH 1/2] IOMUX: Add console multiplexing support.
Gary Jennejohn
garyj at denx.de
Mon Sep 15 11:01:01 CEST 2008
On Sun, 14 Sep 2008 23:59:39 +0200
Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com> 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
*********************************************************************
More information about the U-Boot
mailing list