Support multiple ways of driving hftests, add UART
Move logic that gets the boot arguments of hftest to a separate build
target and implement the same interface for communicating over UART.
Add SerialDriver to hftest.py that drives the communication with a
device over serial port.
The UART backend for hftest depends on an implementation of
'hftest_device' interface to reboot the board when the test has
finished.
Change-Id: Idfcb2c6e9af9cd283e360993fa2580d4fea49594
diff --git a/inc/hf/plat/console.h b/inc/hf/plat/console.h
index 8fb4969..0584fbd 100644
--- a/inc/hf/plat/console.h
+++ b/inc/hf/plat/console.h
@@ -26,5 +26,8 @@
void plat_console_mm_init(struct mm_stage1_locked stage1_locked,
struct mpool *ppool);
-/** Puts a single character on the console. */
+/** Puts a single character on the console. This is a blocking call. */
void plat_console_putchar(char c);
+
+/** Gets a single character from the console. This is a blocking call. */
+char plat_console_getchar(void);