]> git.sur5r.net Git - u-boot/blobdiff - drivers/serial/serial_ixp.c
am33xx: Make SoC bootcount driver have its own symbol
[u-boot] / drivers / serial / serial_ixp.c
index 6e3f7f074c98ae0a0a8a0945c1068a10012d593b..b9d0f5bfa5208e3382f3cf6dc2abbd4102caf008 100644 (file)
  *
  * Copyright (C) 1999 2000 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl)
  *
- * 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>
@@ -121,21 +108,13 @@ static int ixp_serial_getc(void)
        return (char) RBR(CONFIG_SYS_IXP425_CONSOLE) & 0xff;
 }
 
-static void ixp_serial_puts(const char *s)
-{
-       while (*s) {
-               serial_putc (*s++);
-       }
-}
-
-#ifdef CONFIG_SERIAL_MULTI
 static struct serial_device ixp_serial_drv = {
        .name   = "ixp_serial",
        .start  = ixp_serial_init,
        .stop   = NULL,
        .setbrg = ixp_serial_setbrg,
        .putc   = ixp_serial_putc,
-       .puts   = ixp_serial_puts,
+       .puts   = default_serial_puts,
        .getc   = ixp_serial_getc,
        .tstc   = ixp_serial_tstc,
 };
@@ -149,34 +128,3 @@ __weak struct serial_device *default_serial_console(void)
 {
        return &ixp_serial_drv;
 }
-#else
-int serial_init(void)
-{
-       return ixp_serial_init();
-}
-
-void serial_setbrg(void)
-{
-       ixp_serial_setbrg();
-}
-
-void serial_putc(const char c)
-{
-       ixp_serial_putc(c);
-}
-
-void serial_puts(const char *s)
-{
-       ixp_serial_puts(s);
-}
-
-int serial_getc(void)
-{
-       return ixp_serial_getc();
-}
-
-int serial_tstc(void)
-{
-       return ixp_serial_tstc();
-}
-#endif