]> git.sur5r.net Git - u-boot/blobdiff - board/eXalion/eXalion.c
powerpc: ppc4xx: remove board support for KAREF and METROBOX
[u-boot] / board / eXalion / eXalion.c
index 2e3f51998ee5b178b4edc53915452ea823fd90cc..304ff2195cf38c51d5eeafa8afa4e2a6f55bafa9 100644 (file)
@@ -5,23 +5,7 @@
  * (C) Copyright 2002
  * Torsten Demke, FORCE Computers GmbH. torsten.demke@fci.com
  *
- * 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>
@@ -30,6 +14,8 @@
 #include <asm/io.h>
 #include <pci.h>
 #include <ide.h>
+#include <netdev.h>
+#include <timestamp.h>
 #include "piix_pci.h"
 #include "eXalion.h"
 
@@ -39,7 +25,7 @@ int checkboard (void)
        char buf[32];
 
        printf ("Board: eXalion MPC824x - CHRP (MAP B)\n");
-       printf ("Built: %s at %s\n", __DATE__, __TIME__);
+       printf ("Built: %s at %s\n", U_BOOT_DATE, U_BOOT_TIME);
        printf ("Local Bus:  %s MHz\n", strmhz (buf, busfreq));
 
        return 0;
@@ -52,15 +38,15 @@ int checkflash (void)
        return (0);
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        int i, cnt;
-       volatile uchar *base = CFG_SDRAM_BASE;
+       volatile uchar *base = CONFIG_SYS_SDRAM_BASE;
        volatile ulong *addr;
        ulong save[32];
        ulong val, ret = 0;
 
-       for (i = 0, cnt = (CFG_MAX_RAM_SIZE / sizeof (long)) >> 1; cnt > 0;
+       for (i = 0, cnt = (CONFIG_SYS_MAX_RAM_SIZE / sizeof (long)) >> 1; cnt > 0;
             cnt >>= 1) {
                addr = (volatile ulong *) base + cnt;
                save[i++] = *addr;
@@ -76,7 +62,7 @@ long int initdram (int board_type)
                goto Done;
        }
 
-       for (cnt = 1; cnt <= CFG_MAX_RAM_SIZE / sizeof (long); cnt <<= 1) {
+       for (cnt = 1; cnt <= CONFIG_SYS_MAX_RAM_SIZE / sizeof (long); cnt <<= 1) {
                addr = (volatile ulong *) base + cnt;
                val = *addr;
                *addr = save[--i];
@@ -99,7 +85,7 @@ long int initdram (int board_type)
                }
        }
 
-       ret = CFG_MAX_RAM_SIZE;
+       ret = CONFIG_SYS_MAX_RAM_SIZE;
       Done:
        return ret;
 }
@@ -290,3 +276,8 @@ void pci_init_board (void)
 {
        pci_mpc824x_init (&hose);
 }
+
+int board_eth_init(bd_t *bis)
+{
+       return pci_eth_init(bis);
+}