Simon Glass e4d6ab0c2c x86: Allow use of serial soon after relocation
At present on x86 machines with use cache-as-RAM, the memory goes away just
before board_init_r() is called. This means that serial drivers are
no-longer unavailable, until initr_dm() it called, etc.

Any attempt to use printf() within this period will cause a hang.

To fix this, mark the serial devices as 'unavailable' when it is no-longer
available. Bring it back when serial_initialize() is called. This means that
the debug UART will be used instead for this period.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2016-03-17 10:27:24 +08:00
..
2016-01-15 08:09:46 -05:00
2016-03-14 19:18:26 -04:00
2016-01-04 12:25:35 -05:00
2016-03-08 15:01:47 -05:00
2015-05-21 09:13:19 -04:00
2014-03-21 16:43:59 -04:00
2016-02-15 20:58:25 +00:00
2014-04-17 17:44:36 -04:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2015-11-12 13:18:59 -05:00
2015-01-05 12:08:51 -05:00
2016-02-06 12:00:59 +01:00
2014-09-16 12:23:56 -04:00
2016-03-14 19:18:26 -04:00
2016-01-16 07:06:55 +01:00