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:
Joanna Farley 2023-10-02 09:36:05 +02:00 committed by TrustedFirmware Code Review
commit 7ed514e611
2 changed files with 7 additions and 6 deletions

View file

@ -114,12 +114,6 @@ static int32_t dcc_console_getc(struct console *console)
return __dcc_getchar(); 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 * dcc_console_flush() - Function to force a write of all buffered data
* that hasn't been output. * that hasn't been output.
@ -150,3 +144,9 @@ int console_dcc_register(void)
{ {
return console_register(&dcc_console.console); return console_register(&dcc_console.console);
} }
void console_dcc_unregister(void)
{
dcc_console_flush(&dcc_console.console);
(void)console_unregister(&dcc_console.console);
}

View file

@ -15,5 +15,6 @@
* framework. * framework.
*/ */
int console_dcc_register(void); int console_dcc_register(void);
void console_dcc_unregister(void);
#endif /* DCC */ #endif /* DCC */