diff options
author | Soby Mathew <soby.mathew@arm.com> | 2015-10-28 10:29:42 +0000 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2015-12-09 16:38:29 +0000 |
commit | 487461cb6e367a5db397c34ed75fbcfdd6bda1c9 (patch) | |
tree | e0d1d2ded2e4e4c57191458504593f2616bcce54 /include/drivers | |
parent | 05a91fb008c31f939a9590318e2914b44cdad165 (diff) |
Introduce console_uninit() API in ARM Trusted Firmware
Allowing console base address to be set to NULL conveniently
allows console driver to ignore further invocations to console_putc()
and console_getc(). This patch adds `console_uninit()` API to the
console driver which sets console base address as NULL. The BL images can
invoke this API to finish the use of console and ignore any further
invocations to print to the console.
Change-Id: I00a1762b3e0b7c55f2be2f9c4c9bee3967189dde
Diffstat (limited to 'include/drivers')
-rw-r--r-- | include/drivers/console.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drivers/console.h b/include/drivers/console.h index d374157b..69ad0bd7 100644 --- a/include/drivers/console.h +++ b/include/drivers/console.h @@ -35,6 +35,7 @@ int console_init(uintptr_t base_addr, unsigned int uart_clk, unsigned int baud_rate); +void console_uninit(void); int console_putc(int c); int console_getc(void); |