[U-Boot] [PATCH v2 13/14] arm: zynq: serial: Drop non-device-tree serial driver portions
Simon Glass
sjg at chromium.org
Sun Oct 18 03:41:26 CEST 2015
Since we use device tree in SPL also, we can drop this code.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2: None
drivers/serial/serial_zynq.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c
index c4304dd..c39c1a9 100644
--- a/drivers/serial/serial_zynq.c
+++ b/drivers/serial/serial_zynq.c
@@ -195,7 +195,6 @@ DECLARE_PSSERIAL_FUNCTIONS(1);
static struct serial_device uart_zynq_serial1_device =
INIT_PSSERIAL_STRUCTURE(1, "ttyPS1");
-#if CONFIG_IS_ENABLED(OF_CONTROL)
__weak struct serial_device *default_serial_console(void)
{
const void *blob = gd->fdt_blob;
@@ -218,20 +217,6 @@ __weak struct serial_device *default_serial_console(void)
return NULL;
}
-#else
-__weak struct serial_device *default_serial_console(void)
-{
-#if defined(CONFIG_ZYNQ_SERIAL_UART0)
- if (uart_zynq_ports[0])
- return &uart_zynq_serial0_device;
-#endif
-#if defined(CONFIG_ZYNQ_SERIAL_UART1)
- if (uart_zynq_ports[1])
- return &uart_zynq_serial1_device;
-#endif
- return NULL;
-}
-#endif
void zynq_serial_initialize(void)
{
--
2.6.0.rc2.230.g3dd15c0
More information about the U-Boot
mailing list