mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-24 05:54:08 +00:00
Merge changes from topic "xlnx_dcc_console" into integration
* changes: chore(dcc): remove unnecessary code in dcc fix(dcc): add dcc console unregister function
This commit is contained in:
commit
7ed514e611
2 changed files with 7 additions and 6 deletions
|
@ -114,12 +114,6 @@ static int32_t dcc_console_getc(struct console *console)
|
|||
return __dcc_getchar();
|
||||
}
|
||||
|
||||
int32_t dcc_console_init(unsigned long base_addr, uint32_t uart_clk,
|
||||
uint32_t baud_rate)
|
||||
{
|
||||
return 0; /* No init needed */
|
||||
}
|
||||
|
||||
/**
|
||||
* dcc_console_flush() - Function to force a write of all buffered data
|
||||
* that hasn't been output.
|
||||
|
@ -150,3 +144,9 @@ int console_dcc_register(void)
|
|||
{
|
||||
return console_register(&dcc_console.console);
|
||||
}
|
||||
|
||||
void console_dcc_unregister(void)
|
||||
{
|
||||
dcc_console_flush(&dcc_console.console);
|
||||
(void)console_unregister(&dcc_console.console);
|
||||
}
|
||||
|
|
|
@ -15,5 +15,6 @@
|
|||
* framework.
|
||||
*/
|
||||
int console_dcc_register(void);
|
||||
void console_dcc_unregister(void);
|
||||
|
||||
#endif /* DCC */
|
||||
|
|
Loading…
Add table
Reference in a new issue