All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] serial: add skipping init option
Date: Sat, 23 Mar 2019 08:52:38 +0800	[thread overview]
Message-ID: <CAPnjgZ3WRDDVGMYqqWqf8Teyn_Y6nGqNkQp23Y=O-k7B==hX1A@mail.gmail.com> (raw)
In-Reply-To: <CABymUCMtv0TWw20AKzbrxReNXnLu1_f9D0iY4PzEfuAEqKB_=A@mail.gmail.com>

Hi Jun,

On Fri, 22 Mar 2019 at 16:02, Jun Nie <jun.nie@linaro.org> wrote:
>
> Simon Glass <sjg@chromium.org> 于2019年3月22日周五 下午3:56写道:
> >
> > Hi Jun,
> >
> > On Fri, 22 Mar 2019 at 15:20, Jun Nie <jun.nie@linaro.org> wrote:
> > >
> > > add skipping init option to avoid corrupt data in console
> > > if serial is already initilized when u-boot start its excution.
> > >
> > > Signed-off-by: Jun Nie <jun.nie@linaro.org>
> > > ---
> > >  drivers/serial/Kconfig | 6 ++++++
> > >  1 file changed, 6 insertions(+)
> >
> > Could we use a device-tree property for this? Some UARTs have a
> > 'skip-init' property.
> >
> > Regards,
> > Simon
>
> Hi Simon,
>
> It is a good suggestion. But device tree is board specific, while the
> config is boot flow specific. For ATF -> OPTEE -> U-BOOT case,
> initialization should be skipped. Without earlier initialization from
> firmware, U-boot should do it by itself. So I need find a solution
> that is defconfig specific, instead of device tree specific.

So you want something that is flow-specific, I think. Your thinking is
that the defconfig specifies this. Is that because certain boards
require ATF/Optee?

Should we consider having a way to tell U-Boot that it is running from Optee?

Could the UART driver detect that the UART is already inited?

Regards,
Simon

  reply	other threads:[~2019-03-23  0:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-22  7:20 [U-Boot] [PATCH 1/2] serial: add skipping init option Jun Nie
2019-03-22  7:20 ` [U-Boot] [PATCH 2/2] imx: serial_mxc: skip uart initilization Jun Nie
2019-03-22  7:55 ` [U-Boot] [PATCH 1/2] serial: add skipping init option Simon Glass
2019-03-22  8:02   ` Jun Nie
2019-03-23  0:52     ` Simon Glass [this message]
2019-03-27  9:33       ` Lukasz Majewski
2019-03-27  9:55         ` Jun Nie
2019-03-30 21:18           ` Simon Glass
2019-03-30 21:19         ` Simon Glass
2019-04-02  7:17           ` Jun Nie

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='CAPnjgZ3WRDDVGMYqqWqf8Teyn_Y6nGqNkQp23Y=O-k7B==hX1A@mail.gmail.com' \
    --to=sjg@chromium.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.