]> git.sur5r.net Git - u-boot/blobdiff - drivers/serial/serial_zynq.c
am33xx: Make SoC bootcount driver have its own symbol
[u-boot] / drivers / serial / serial_zynq.c
index 5ac2561081f54de8a27537fd52477af4369dd69b..050b9c06259cdb499c2877d0ccb683b68333433a 100644 (file)
@@ -2,23 +2,7 @@
  * Copyright (C) 2012 Michal Simek <monstr@monstr.eu>
  * Copyright (C) 2011-2012 Xilinx, Inc. All rights reserved.
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -170,37 +154,6 @@ static int uart_zynq_serial_getc(const int port)
        return readl(&regs->tx_rx_fifo);
 }
 
-#if !defined(CONFIG_SERIAL_MULTI)
-int serial_init(void)
-{
-       return uart_zynq_serial_init(0);
-}
-
-void serial_setbrg(void)
-{
-       uart_zynq_serial_setbrg(0);
-}
-
-void serial_putc(const char c)
-{
-       uart_zynq_serial_putc(c, 0);
-}
-
-void serial_puts(const char *s)
-{
-       uart_zynq_serial_puts(s, 0);
-}
-
-int serial_getc(void)
-{
-       return uart_zynq_serial_getc(0);
-}
-
-int serial_tstc(void)
-{
-       return uart_zynq_serial_tstc(0);
-}
-#else
 /* Multi serial device functions */
 #define DECLARE_PSSERIAL_FUNCTIONS(port) \
        int uart_zynq##port##_init(void) \
@@ -244,7 +197,6 @@ __weak struct serial_device *default_serial_console(void)
 
        return NULL;
 }
-#endif
 
 void zynq_serial_initalize(void)
 {