fix(xilinx): dcc to support runtime console scope

DCC driver to support boot and runtime console scope
switch for dedicated boot and runtime consoles.

Change-Id: I7769dc44860a5fda99ca42ce17a3a6009288d7e7
Signed-off-by: Maheedhar Bollapalli <MaheedharSai.Bollapalli@amd.com>
diff --git a/plat/amd/versal2/bl31_setup.c b/plat/amd/versal2/bl31_setup.c
index e878863..42cd5c0 100644
--- a/plat/amd/versal2/bl31_setup.c
+++ b/plat/amd/versal2/bl31_setup.c
@@ -76,6 +76,7 @@
 {
 	uint32_t uart_clock;
 	int32_t rc;
+	static console_t _runtime_console;
 
 	board_detection();
 
@@ -122,7 +123,6 @@
 	uart_clock = get_uart_clk();
 
 	if (CONSOLE_IS(pl011_0) || CONSOLE_IS(pl011_1)) {
-		static console_t _runtime_console;
 
 		/* Initialize the console to provide early debug support */
 		rc = console_pl011_register(UART_BASE, uart_clock,
@@ -138,7 +138,7 @@
 		/* Initialize the dcc console for debug.
 		 * dcc is over jtag and does not configures uart0 or uart1.
 		 */
-		rc = console_dcc_register();
+		rc = console_dcc_register(&_runtime_console);
 		if (rc == 0) {
 			panic();
 		}