Flattened Device Tree serial console.
Definition in file fdtcon.c.
| static struct uart* fdtcon_default |
( |
void |
| ) |
|
|
static |
Identify default serial console.
- Return values
-
| uart | Default serial console UART, or NULL |
Definition at line 58 of file fdtcon.c.
71 DBGC (
colour,
"FDTCON could not locate \"/chosen\": %s\n",
79 DBGC (
colour,
"FDTCON has no console device\n" );
82 DBGC (
colour,
"FDTCON console device is \"%s\"\n", path );
87 DBGC (
colour,
"FDTCON could not locate \"/%s\": %s\n",
94 DBGC (
colour,
"FDTCON could not probe \"%s\": %s\n",
struct arbelprm_rc_send_wqe rc
int fdt_alias(struct fdt *fdt, const char *name, unsigned int *offset)
Find node by alias.
int fdt_path(struct fdt *fdt, const char *path, unsigned int *offset)
Find node by path.
#define list_last_entry(list, type, member)
Get the container of the last entry in a list.
struct list_head list
List of registered UARTs.
static struct device fdtcon_parent
FDT console parent device.
const char * fdt_string(struct fdt *fdt, unsigned int offset, const char *name)
Find string property.
char * strerror(int errno)
Retrieve string representation of error number.
int dt_probe_node(struct device *parent, unsigned int offset)
Probe devicetree node.
#define colour
Colour for debug messages.
#define NULL
NULL pointer (VOID *)
struct fdt sysfdt
The system flattened device tree (if present)
References colour, DBGC, dt_probe_node(), fdt_alias(), fdt_path(), fdt_string(), fdtcon_parent, uart::list, list_last_entry, uart::name, NULL, rc, strerror(), sysfdt, and uarts.