]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/adder/adder.c
Change initdram() return type to phys_size_t
[karo-tx-uboot.git] / board / adder / adder.c
index aa7815848c8e8085b4fe589bee31e1036d75fb9f..e8a5737f587ad827a3a96ff6c109e7c51e0db527 100644 (file)
@@ -26,6 +26,9 @@
 
 #include <common.h>
 #include <mpc8xx.h>
+#if defined(CONFIG_OF_LIBFDT)
+       #include <libfdt.h>
+#endif
 
 /*
  * SDRAM is single Samsung K4S643232F-T70   chip (8MB)
@@ -62,7 +65,7 @@ static uint sdram_table[] = {
        0xfffffc27, 0xfffffc04, 0xfffffc04, 0xfffffc04
 };
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long int msize;
        volatile immap_t     *immap  = (volatile immap_t *)CFG_IMMR;
@@ -111,3 +114,11 @@ int checkboard( void )
 
        return 0;
 }
+
+#if defined(CONFIG_OF_BOARD_SETUP)
+void ft_board_setup(void *blob, bd_t *bd)
+{
+       ft_cpu_setup(blob, bd);
+
+}
+#endif