mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <sha@pengutronix.de>
To: "Barbier, Renaud" <renaud.barbier@abaco.com>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: Uart set up in PBL
Date: Thu, 4 Mar 2021 14:07:25 +0100	[thread overview]
Message-ID: <20210304130725.GA15495@pengutronix.de> (raw)
In-Reply-To: <MN2PR16MB3135C4186907BA49E69CD38B91979@MN2PR16MB3135.namprd16.prod.outlook.com>

Hi Renaud,

On Thu, Mar 04, 2021 at 12:28:03PM +0000, Barbier, Renaud wrote:
> Looking at many ARM platforms I see the UART is set in the PBL.
> 
> I guess the baud rate is fixed.
> 
> I am looking into a way to make the baud rate configurable. 
> Would it possible from the PBL to read the "baudrate" variable from the environment?

There is CONFIG_BAUDRATE which could be configured in Kconfig you could
evaluate in the uart setup.
Reading the environment from PBL is something you don't want to do as
you would need drivers for all possible environment locations in PBL.
PBL console and configurable baudrate don't go together well, better
don't do it.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
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:[~2021-03-04 13:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-04 12:28 Barbier, Renaud
2021-03-04 12:59 ` Ahmad Fatoum
2021-03-04 16:41   ` Barbier, Renaud
2021-03-05 10:48     ` Ahmad Fatoum
2021-03-05 13:08       ` Barbier, Renaud
2021-03-08 20:22         ` Ahmad Fatoum
2021-03-04 13:07 ` 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=20210304130725.GA15495@pengutronix.de \
    --to=sha@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=renaud.barbier@abaco.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