]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/eltec/elppc/elppc.c
mpc8xx: remove unused linker script
[karo-tx-uboot.git] / board / eltec / elppc / elppc.c
index 108adb13d5fb70c4d9ab79973756e562ba43c6ee..ac814b89ab09255c32d6900b5dc467e1f681cd66 100644 (file)
@@ -2,29 +2,14 @@
  * (C) Copyright 2002 ELTEC Elektronik AG
  * Frank Gottschling <fgottschling@eltec.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+
  */
 
 #include <common.h>
 #include <command.h>
 #include <mpc106.h>
 #include <video_fb.h>
+#include <netdev.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -67,16 +52,16 @@ long int dram_size (int board_type)
 
        register unsigned long i, msar1, mear1, memSize;
 
-#if defined(CFG_MEMTEST)
+#if defined(CONFIG_SYS_MEMTEST)
        register unsigned long reg;
 
        printf ("Testing DRAM\n");
 
        /* write each mem addr with it's address */
-       for (reg = CFG_MEMTEST_START; reg < CFG_MEMTEST_END; reg += 4)
+       for (reg = CONFIG_SYS_MEMTEST_START; reg < CONFIG_SYS_MEMTEST_END; reg += 4)
                *reg = reg;
 
-       for (reg = CFG_MEMTEST_START; reg < CFG_MEMTEST_END; reg += 4) {
+       for (reg = CONFIG_SYS_MEMTEST_START; reg < CONFIG_SYS_MEMTEST_END; reg += 4) {
                if (*reg != reg)
                        return -1;
        }
@@ -104,7 +89,7 @@ long int dram_size (int board_type)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return dram_size (board_type);
 }
@@ -116,7 +101,7 @@ long int initdram (int board_type)
  * Register PI in the MPC 107 (at offset 0x41090 of the Embedded Utilities
  * Memory Block).
  */
-int do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
+int do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
 {
        out8 (MPC107_EUMB_PI, 1);
        return (0);
@@ -172,3 +157,8 @@ void video_get_info_str (int line_number, char *info)
        return;
 }
 #endif
+
+int board_eth_init(bd_t *bis)
+{
+       return pci_eth_init(bis);
+}