diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2016-12-21 15:52:25 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-01-04 17:15:34 +1100 |
commit | 7edaf63587aace2729f70144d6ff5e9c3a3766c4 (patch) | |
tree | f153c4afb01a5743051653978ecc0d33cfb8ce0f /include | |
parent | 8c0ec758fdec8cd5aa60f1f9cf4ca653717991f9 (diff) | |
download | blackbird-skiboot-7edaf63587aace2729f70144d6ff5e9c3a3766c4.tar.gz blackbird-skiboot-7edaf63587aace2729f70144d6ff5e9c3a3766c4.zip |
console: add helper to create serial console nodes
The creation of /ibm,skiboot/console/serial@<xyz> nodes is pretty much
identical across the various OPAL console drivers. This patch moves it
into a helper function as a cleanup.
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/console.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index 4c774334..6a80bef9 100644 --- a/include/console.h +++ b/include/console.h @@ -71,4 +71,7 @@ extern void clear_console(void); extern void memcons_add_properties(void); extern void dummy_console_add_nodes(void); +struct dt_node *add_opal_console_node(int index, const char *type, + uint32_t write_buffer_size); + #endif /* __CONSOLE_H */ |