]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/cpu/mpc8260/serial_scc.c
powerpc, 8xx: remove support for 8xx
[u-boot] / arch / powerpc / cpu / mpc8260 / serial_scc.c
index 7bfd42065cfabfe57a2de91390f5f79f02097012..8bfb3dedcbb590e3748d7d21401ebbb2f5e4b168 100644 (file)
@@ -2,23 +2,7 @@
  * (C) Copyright 2000
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
- * 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+
  *
  * Hacked for MPC8260 by Murray.Jensen@cmst.csiro.au, 19-Oct-00.
  */
@@ -217,13 +201,6 @@ static void mpc8260_scc_serial_putc(const char c)
        tbdf->cbd_sc |= BD_SC_READY;
 }
 
-static void mpc8260_scc_serial_puts(const char *s)
-{
-       while (*s) {
-               serial_putc (*s++);
-       }
-}
-
 static int mpc8260_scc_serial_getc(void)
 {
        volatile cbd_t          *rbdf;
@@ -261,14 +238,13 @@ static int mpc8260_scc_serial_tstc(void)
        return ((rbdf->cbd_sc & BD_SC_EMPTY) == 0);
 }
 
-#ifdef CONFIG_SERIAL_MULTI
 static struct serial_device mpc8260_scc_serial_drv = {
        .name   = "mpc8260_scc_uart",
        .start  = mpc8260_scc_serial_init,
        .stop   = NULL,
        .setbrg = mpc8260_scc_serial_setbrg,
        .putc   = mpc8260_scc_serial_putc,
-       .puts   = mpc8260_scc_serial_puts,
+       .puts   = default_serial_puts,
        .getc   = mpc8260_scc_serial_getc,
        .tstc   = mpc8260_scc_serial_tstc,
 };
@@ -282,37 +258,6 @@ __weak struct serial_device *default_serial_console(void)
 {
        return &mpc8260_scc_serial_drv;
 }
-#else
-int serial_init(void)
-{
-       return mpc8260_scc_serial_init();
-}
-
-void serial_setbrg(void)
-{
-       mpc8260_scc_serial_setbrg();
-}
-
-void serial_putc(const char c)
-{
-       mpc8260_scc_serial_putc(c);
-}
-
-void serial_puts(const char *s)
-{
-       mpc8260_scc_serial_puts(s);
-}
-
-int serial_getc(void)
-{
-       return mpc8260_scc_serial_getc();
-}
-
-int serial_tstc(void)
-{
-       return mpc8260_scc_serial_tstc();
-}
-#endif
 #endif /* CONFIG_CONS_ON_SCC */
 
 #if defined(CONFIG_KGDB_ON_SCC)