]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
[new uImage] Pull in libfdt if CONFIG_FIT is enabled
authorMarian Balakowicz <m8@semihalf.com>
Thu, 21 Feb 2008 16:20:18 +0000 (17:20 +0100)
committerMarian Balakowicz <m8@semihalf.com>
Thu, 21 Feb 2008 16:20:18 +0000 (17:20 +0100)
New uImage format (Flattened Image Tree) requires libfdt
functionality, print out error message if CONFIG_OF_LIBFDT
is not defined.

New uImage support is enabled by defining CONFIG_FIT (and CONFIG_OF_LIBFDT).
This commit turns it on by default.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
cpu/mpc5xxx/cpu.c
cpu/mpc8260/cpu.c
cpu/mpc8xx/cpu.c
include/image.h

index e4d6168224825ae9ba9c09d864e1348ad05397bc..7522afe4774eecdde9895815e396115f3265f08b 100644 (file)
@@ -114,7 +114,7 @@ unsigned long get_tbclk (void)
 
 /* ------------------------------------------------------------------------- */
 
-#ifdef CONFIG_OF_LIBFDT
+#if defined(CONFIG_OF_LIBFDT) && defined (CONFIG_OF_BOARD_SETUP)
 void ft_cpu_setup(void *blob, bd_t *bd)
 {
        int div = in_8((void*)CFG_MBAR + 0x204) & 0x0020 ? 8 : 4;
index 55e61a1887586ab0e76048e3d749d32a5078c85d..414759e74c6749a1432a430fdb151bd5fbd3e333 100644 (file)
@@ -300,7 +300,7 @@ void watchdog_reset (void)
 #endif /* CONFIG_WATCHDOG */
 
 /* ------------------------------------------------------------------------- */
-#if defined(CONFIG_OF_LIBFDT)
+#if defined(CONFIG_OF_LIBFDT) && defined (CONFIG_OF_BOARD_SETUP)
 void ft_cpu_setup (void *blob, bd_t *bd)
 {
        char * cpu_path = "/cpus/" OF_CPU;
index c8783525129be2f4d87346a5c373083da9dd5258..5d4ab8203445f690d45f20e70585ae593deb7e3b 100644 (file)
@@ -638,7 +638,7 @@ void reset_8xx_watchdog (volatile immap_t * immr)
 #endif /* CONFIG_WATCHDOG */
 
 /* ------------------------------------------------------------------------- */
-#if defined(CONFIG_OF_LIBFDT)
+#if defined(CONFIG_OF_LIBFDT) && defined (CONFIG_OF_BOARD_SETUP)
 void ft_cpu_setup (void *blob, bd_t *bd)
 {
        char * cpu_path = "/cpus/" OF_CPU;
index dbbbee9071fcca7ad7d93364d1fd314fdd341b70..ecfce7215d21f9d6c39305ef33acff58a2683650 100644 (file)
 
 #include <asm/byteorder.h>
 #include <command.h>
+
 #ifndef USE_HOSTCC
 #include <linux/string.h>
 #include <asm/u-boot.h>
+
+/* new uImage format support enabled by default */
+#define CONFIG_FIT             1
+#define CONFIG_OF_LIBFDT       1
+
+#if defined(CONFIG_FIT) && !defined(CONFIG_OF_LIBFDT)
+#error "CONFIG_OF_LIBFDT not enabled, required by CONFIG_FIT!"
 #endif
+#endif /* USE_HOSTCC */
 
 /*
  * Operating System Codes