]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/eXalion/eXalion.c
imported Freescale specific U-Boot additions for i.MX28,... release L2.6.31_10.08.01
[karo-tx-uboot.git] / board / eXalion / eXalion.c
index 2e3f51998ee5b178b4edc53915452ea823fd90cc..c17498f064994799831ac9519ff472c4583e754b 100755 (executable)
@@ -30,6 +30,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 +41,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 +54,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 +78,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 +101,7 @@ long int initdram (int board_type)
                }
        }
 
-       ret = CFG_MAX_RAM_SIZE;
+       ret = CONFIG_SYS_MAX_RAM_SIZE;
       Done:
        return ret;
 }
@@ -290,3 +292,8 @@ void pci_init_board (void)
 {
        pci_mpc824x_init (&hose);
 }
+
+int board_eth_init(bd_t *bis)
+{
+       return pci_eth_init(bis);
+}