diff options
author | Simon Glass <sjg@chromium.org> | 2014-07-23 06:55:07 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-07-23 14:07:25 +0100 |
commit | 093f79ab88d57b800283b0a172c17167699f4243 (patch) | |
tree | 8169ae4fb289257468c015f1b72cb989d7b04390 /drivers/serial | |
parent | 7793ac96c6094e0a0291e19a5bcf3000c6388250 (diff) | |
download | u-boot-imx-093f79ab88d57b800283b0a172c17167699f4243.zip u-boot-imx-093f79ab88d57b800283b0a172c17167699f4243.tar.gz u-boot-imx-093f79ab88d57b800283b0a172c17167699f4243.tar.bz2 |
Add a flag indicating when the serial console is ready
For sandbox we have a fallback console which is used very early in
U-Boot, before serial drivers are available. Rather than try to guess
when to switch to the real console, add a flag so we can be sure. This
makes sure that sandbox can always output a panic() message, for example,
and avoids silent failure (which is very annoying in sandbox).
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/serial.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index 803d850..d2eb752 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -418,6 +418,7 @@ static struct serial_device *get_current(void) */ int serial_init(void) { + gd->flags |= GD_FLG_SERIAL_READY; return get_current()->start(); } |