From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] tegra: Specify debugging serial port at boot.
Date: Wed, 21 Mar 2012 11:38:11 -0600 [thread overview]
Message-ID: <4F6A1203.5050004@wwwdotorg.org> (raw)
In-Reply-To: <CAPnjgZ0fWn0BRK3A_WAjMtKcgB_4xLH15zoK+djguV+9WAaGxg@mail.gmail.com>
On 03/21/2012 11:13 AM, Simon Glass wrote:
> Hi Stephen,
>
> On Wed, Mar 21, 2012 at 10:09 AM, Stephen Warren <swarren@wwwdotorg.org> wrote:
>> On 03/21/2012 10:59 AM, Simon Glass wrote:
>>> 3. What you propose is actually very easy to implement - it just
>>> requires a new config like CONFIG_DEFAULT_UART or
>>> CONFIG_PRE_CONSOLE_UART to be defined, and used in the
>>> board_pre_console_putc() code.
>>
>> One question here: We already have CONFIG_TEGRA2_ENABLE_UART* and
>> CONFIG_SYS_NS16550_COM* to select which UART to use. Surely one of those
>> is appropriate for this, rather than inventing yet another config option?
>
> These will only exist when CONFIG_OF_CONTROL is not defined. It might
> confusing to use the same CONFIGs for the pre-console panic() case,
> knowing that they will in fact be ignored in a normal boot. I would
> suggest a new option, at least in the CONFIG_OF_CONTROL case where the
> two options you mention will not be used.
Oh.
But in u-boot-tegra/master, both Seaboard and Ventana still set those
options even though they have CONFIG_OF_CONTROL turned on. And it looks
like board_init_uart_f() both uses those defines irrespective of
CONFIG_OF_CONTROL /and/ is called solely based on
CONFIG_BOARD_EARLY_INIT_F (not CONFIG_OF_CONTROL), which is also defined
for Seaboard and Ventana.
I thought the upshot of this discussion was that there wasn't any need
for any kind of pre-console stuff, either putc, puts/printf or whatever;
instead, the console should simply be registered as early as possible
based on the board/config's UART selection?
(and of course the DT parsed after that console was registered; no need
for it before)
next prev parent reply other threads:[~2012-03-21 17:38 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-20 19:57 [U-Boot] [PATCH] tegra: Specify debugging serial port at boot Stephen Warren
2012-03-20 20:13 ` Simon Glass
2012-03-20 21:17 ` Stephen Warren
2012-03-20 23:28 ` Graeme Russ
2012-03-20 23:33 ` Simon Glass
2012-03-20 23:52 ` Graeme Russ
2012-03-21 0:02 ` Simon Glass
2012-03-21 0:17 ` Graeme Russ
2012-03-21 0:19 ` Simon Glass
2012-03-21 0:39 ` Graeme Russ
2012-03-21 1:18 ` Simon Glass
2012-03-21 1:46 ` Graeme Russ
2012-03-21 0:42 ` Stephen Warren
2012-03-21 1:54 ` Simon Glass
2012-03-21 9:38 ` Wolfgang Denk
2012-03-21 10:35 ` Graeme Russ
2012-03-21 16:49 ` Stephen Warren
2012-03-21 16:59 ` Simon Glass
2012-03-21 17:09 ` Stephen Warren
2012-03-21 17:13 ` Simon Glass
2012-03-21 17:38 ` Stephen Warren [this message]
2012-03-21 17:50 ` Simon Glass
2012-03-21 18:25 ` Stephen Warren
2012-03-21 23:00 ` Wolfgang Denk
2012-03-21 22:56 ` Wolfgang Denk
2012-03-21 23:01 ` Simon Glass
2012-03-21 23:07 ` Wolfgang Denk
2012-03-21 23:16 ` Simon Glass
2012-03-22 13:25 ` Wolfgang Denk
2012-03-22 15:17 ` Simon Glass
2012-03-22 23:00 ` Wolfgang Denk
2012-03-22 23:03 ` Simon Glass
2012-03-22 23:07 ` Wolfgang Denk
2012-03-22 23:41 ` Graeme Russ
2012-03-23 15:08 ` Simon Glass
2012-03-22 15:40 ` Doug Anderson
2012-03-21 16:29 ` Stephen Warren
2012-03-21 22:52 ` Wolfgang Denk
2012-03-20 23:29 ` Simon Glass
2012-03-21 9:19 ` Wolfgang Denk
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=4F6A1203.5050004@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.