summaryrefslogtreecommitdiff
path: root/src/drivers/uart
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/uart')
-rw-r--r--src/drivers/uart/pl011.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/drivers/uart/pl011.c b/src/drivers/uart/pl011.c
index 376e95c0c8..2202de755d 100644
--- a/src/drivers/uart/pl011.c
+++ b/src/drivers/uart/pl011.c
@@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
-#include <console/console.h>
#include <console/uart.h>
static void pl011_uart_tx_byte(unsigned char data)
@@ -25,16 +24,12 @@ static void pl011_uart_tx_byte(unsigned char data)
}
#if !defined(__PRE_RAM__)
-
-static const struct console_driver pl011_uart_console __console = {
- .tx_byte = pl011_uart_tx_byte,
-};
-
uint32_t uartmem_getbaseaddr(void)
{
return CONFIG_CONSOLE_SERIAL_UART_ADDRESS;
}
-#else
+#endif
+
void uart_init(void)
{
}
@@ -47,4 +42,8 @@ void uart_tx_byte(unsigned char data)
void uart_tx_flush(void)
{
}
-#endif
+
+unsigned char uart_rx_byte(void)
+{
+ return 0;
+}