Abstract UART.

Let different toolchains use different implementations of console driver.

Bug: 115484857
Change-Id: I230c2c2dc2570c55eead4eed597663e52160f064
diff --git a/src/main.c b/src/main.c
index e5dc7b7..79cadc9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -28,6 +28,7 @@
 #include "hf/mm.h"
 #include "hf/mpool.h"
 #include "hf/panic.h"
+#include "hf/plat/console.h"
 #include "hf/std.h"
 #include "hf/vm.h"
 
@@ -50,6 +51,9 @@
 	size_t i;
 	struct mpool ppool;
 
+	/* Make sure the console is initialised before calling dlog. */
+	plat_console_init();
+
 	dlog("Initialising hafnium\n");
 
 	arch_one_time_init();