diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2017-02-03 20:51:56 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-02-07 14:15:54 +1100 |
commit | 5bd0f9c20481a886a5367cf0ccd9b92b7e0feb87 (patch) | |
tree | 8c88bf39b48415df4e1aaea8533ab7103d20971e /include | |
parent | 0500d504b13eb95046bcea9b17ad6787ff18e843 (diff) | |
download | skiboot-5bd0f9c20481a886a5367cf0ccd9b92b7e0feb87.zip skiboot-5bd0f9c20481a886a5367cf0ccd9b92b7e0feb87.tar.gz skiboot-5bd0f9c20481a886a5367cf0ccd9b92b7e0feb87.tar.bz2 |
uart: Fix Linux pass-through policy
This was broken on Rhesus. Also add an nvram way of
overriding the policy
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/skiboot.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/skiboot.h b/include/skiboot.h index 2ea64de..33447a4 100644 --- a/include/skiboot.h +++ b/include/skiboot.h @@ -242,8 +242,11 @@ extern void nvram_init(void); extern void nvram_read_complete(bool success); /* UART stuff */ -extern void uart_setup_linux_passthrough(void); -extern void uart_setup_opal_console(void); +enum { + UART_CONSOLE_OPAL, + UART_CONSOLE_OS +}; +extern void uart_set_console_policy(int policy); extern bool uart_enabled(void); /* OCC interrupt */ |