8xx : Add OF support to Adder875 board port - resubmit
authorBryan O'Donoghue <bodonoghue@codehermit.ie>
Fri, 15 Feb 2008 01:05:58 +0000 (01:05 +0000)
committerWolfgang Denk <wd@denx.de>
Tue, 25 Mar 2008 21:20:36 +0000 (22:20 +0100)
Signed-off-by: Bryan O'Donoghue <bodonoghue@codehermit.ie>
board/adder/adder.c
include/configs/Adder.h

index aa7815848c8e8085b4fe589bee31e1036d75fb9f..817c8649aa630cdc5e9ca1d985a93415682c1334 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)
@@ -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
index 4304ecca7dee043915af476dfa5a59286a7ba041..79199912df983ac3408d0cb56592477f47f0c58a 100644 (file)
@@ -37,6 +37,8 @@
 
 #define CONFIG_ETHER_ON_FEC1
 #define CONFIG_ETHER_ON_FEC2
+#define CONFIG_HAS_ETH0
+#define CONFIG_HAS_ETH1
 
 #if defined(CONFIG_ETHER_ON_FEC1) || defined(CONFIG_ETHER_ON_FEC2)
 #define CFG_DISCOVER_PHY
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from flash     */
 #define BOOTFLAG_WARM          0x02    /* Software reboot                      */
 
+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT       1
+#define CONFIG_OF_BOARD_SETUP  1
+
 #endif /* __CONFIG_H */