mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/2] console_simple: set baudrate at register
Date: Sun, 22 Sep 2013 20:29:05 +0200	[thread overview]
Message-ID: <20130922182905.GP30088@pengutronix.de> (raw)
In-Reply-To: <1379831996-11714-1-git-send-email-plagnioj@jcrosoft.com>

On Sun, Sep 22, 2013 at 08:39:55AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> as the console is always enable
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Applied, thanks

Sascha

> ---
>  common/console_simple.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/common/console_simple.c b/common/console_simple.c
> index 5c80dcd..e1d4c85 100644
> --- a/common/console_simple.c
> +++ b/common/console_simple.c
> @@ -89,6 +89,11 @@ int console_register(struct console_device *newcdev)
>  	console_list.prev = console_list.next = &newcdev->list;
>  	newcdev->list.prev = newcdev->list.next = &console_list;
>  
> +	if (newcdev->setbrg) {
> +		newcdev->baudrate = CONFIG_BAUDRATE;
> +		newcdev->setbrg(newcdev, newcdev->baudrate);
> +	}
> +
>  	barebox_banner();
>  
>  	return 0;
> -- 
> 1.8.4.rc3
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2013-09-22 18:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-22  6:39 Jean-Christophe PLAGNIOL-VILLARD
2013-09-22  6:39 ` [PATCH 2/2] serial: do not set default baudrate at init Jean-Christophe PLAGNIOL-VILLARD
2013-09-22 18:29 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130922182905.GP30088@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=plagnioj@jcrosoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox