mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 10:01:32 +00:00
dm: serial: Don't require device tree to configure a console
Allow serial_find_console_or_panic() to work without a device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
91cbd792c4
commit
59990bf0ea
1 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@ struct udevice *cur_dev __attribute__ ((section(".data")));
|
||||||
|
|
||||||
static void serial_find_console_or_panic(void)
|
static void serial_find_console_or_panic(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_OF_CONTROL
|
||||||
int node;
|
int node;
|
||||||
|
|
||||||
/* Check for a chosen console */
|
/* Check for a chosen console */
|
||||||
|
@ -44,7 +45,7 @@ static void serial_find_console_or_panic(void)
|
||||||
return;
|
return;
|
||||||
cur_dev = NULL;
|
cur_dev = NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
* Failing that, get the device with sequence number 0, or in extremis
|
* Failing that, get the device with sequence number 0, or in extremis
|
||||||
* just the first serial device we can find. But we insist on having
|
* just the first serial device we can find. But we insist on having
|
||||||
|
|
Loading…
Add table
Reference in a new issue