[U-Boot] [PATCH 1/2] serial: add skipping init option

Jun Nie jun.nie at linaro.org
Fri Mar 22 08:02:45 UTC 2019


Simon Glass <sjg at chromium.org> 于2019年3月22日周五 下午3:56写道:
>
> Hi Jun,
>
> On Fri, 22 Mar 2019 at 15:20, Jun Nie <jun.nie at 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 at 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.

Regards.
Jun


More information about the U-Boot mailing list