From: Tom Rini Date: Wed, 22 Oct 2014 11:59:15 -0400 Subject: [U-Boot] [PATCH 06/14] dm: serial: Support CONFIG_CONS_INDEX if available In-Reply-To: <1411400934-7754-7-git-send-email-sjg@chromium.org> References: <1411400934-7754-1-git-send-email-sjg@chromium.org> <1411400934-7754-7-git-send-email-sjg@chromium.org> Message-ID: <20141022155915.GP25506@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Sep 22, 2014 at 09:48:46AM -0600, Simon Glass wrote: > Try to use this option to select the correct uart for the console. This > mimics the behaviour of drivers/serial.c. > > Signed-off-by: Simon Glass > --- > > drivers/serial/serial-uclass.c | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c > index aeaf2d2..522e551 100644 > --- a/drivers/serial/serial-uclass.c > +++ b/drivers/serial/serial-uclass.c > @@ -50,13 +50,22 @@ static void serial_find_console_or_panic(void) > } > #endif > /* > + * Try to use CONFIG_CONS_INDEX is available (it is numbered from 1!). "if it is available" or "if available". Otherwise: Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: