8xx, kup4k/kup4x: add FDT support
authorHeiko Schocher <hs@denx.de>
Mon, 19 Jul 2010 21:47:08 +0000 (23:47 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 8 Aug 2010 22:12:00 +0000 (00:12 +0200)
Signed-off-by: Heiko Schocher <hs@denx.de>
board/kup/kup4k/kup4k.c
include/configs/KUP4K.h

index 7eb36abc29caee56d0ec77e5a625a5ff6ba42c32..267821c48f5c9fe393f1d4c6fbd8cfc15b6e885f 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <libfdt.h>
 #include <mpc8xx.h>
 #include <hwconfig.h>
 #include <i2c.h>
@@ -291,3 +292,13 @@ static unsigned char swapbyte(unsigned char c)
        }
        return result;
 }
+
+/*
+ * Device Tree Support
+ */
+#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
+void ft_board_setup(void *blob, bd_t *bd)
+{
+       ft_cpu_setup(blob, bd);
+}
+#endif /* defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) */
index ab708ae32c0ba5253b226e7534e2516d8eba43d1..14d412d1832b6d1873ec074ee35d550ba0a15f7f 100644 (file)
 #define CONFIG_SYS_DEVICE_NULLDEV      1       /* enble null device            */
 #define CONFIG_VERSION_VARIABLE                1
 
+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT       1
+#define CONFIG_OF_BOARD_SETUP  1
+
 #endif /* __CONFIG_H */