]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/davinci/ea20/ea20.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / board / davinci / ea20 / ea20.c
index 69307e459d4d10a2ebfbae8e3e82ea4569ab0668..c786997799004deeb82517aa318e5650fd082d67 100644 (file)
  * Copyright (C) 2009 Nick Thompson, GE Fanuc, Ltd. <nick.thompson@gefanuc.com>
  * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
  *
- * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -254,6 +242,15 @@ int board_early_init_f(void)
        return 0;
 }
 
+/*
+ * Do not overwrite the console
+ * Use always serial for U-Boot console
+ */
+int overwrite_console(void)
+{
+       return 1;
+}
+
 int board_init(void)
 {
        /* arch number of the board */
@@ -281,8 +278,6 @@ int board_late_init(void)
        /* Set HALTEN to high */
        gpio_direction_output(134, 1);
 
-       setenv("stdout", "serial");
-
        /* Set fixed contrast settings for LCD via I2C potentiometer */
        buf[0] = 0x00;
        buf[1] = 0xd7;