From 5f535fe170e2cd90ee65922cbad1a5428d85a9e6 Mon Sep 17 00:00:00 2001 From: wdenk Date: Thu, 18 Sep 2003 09:21:33 +0000 Subject: * Patches by Anders Larsen, 17 Sep 2003: - fix spelling errors - set GD_FLG_DEVINIT flag only after device function pointers are valid - Allow CFG_ALT_MEMTEST on systems where address zero isn't writeable - enable 3.rd UART (ST-UART) on PXA(XScale) CPUs - trigger watchdog while waiting in serial driver --- common/console.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/console.c') diff --git a/common/console.c b/common/console.c index 148c59981d3..d933c33519c 100644 --- a/common/console.c +++ b/common/console.c @@ -436,6 +436,8 @@ int console_init_r (void) console_setfile (stdin, inputdev); } + gd->flags |= GD_FLG_DEVINIT; /* device initialization completed */ + #ifndef CFG_CONSOLE_INFO_QUIET /* Print information */ printf ("In: "); @@ -480,6 +482,8 @@ int console_init_r (void) /* Called after the relocation - use desired console functions */ int console_init_r (void) { + DECLARE_GLOBAL_DATA_PTR; + device_t *inputdev = NULL, *outputdev = NULL; int i, items = ListNumItems (devlist); @@ -514,6 +518,8 @@ int console_init_r (void) console_setfile (stdin, inputdev); } + gd->flags |= GD_FLG_DEVINIT; /* device initialization completed */ + #ifndef CFG_CONSOLE_INFO_QUIET /* Print information */ printf ("In: "); -- cgit v1.2.3