Merge branch '2020-05-18-reduce-size-of-common.h'
[oweals/u-boot.git] / arch / arm / cpu / armv8 / fsl-layerscape / spl.c
index ed3a6056637543c6d6ed5f122ed5d294078dae57..77724336d62c1c7dc5be5a39dfb3927a7606b9c0 100644 (file)
@@ -4,9 +4,14 @@
  */
 
 #include <common.h>
+#include <clock_legacy.h>
 #include <cpu_func.h>
 #include <env.h>
+#include <image.h>
+#include <init.h>
+#include <log.h>
 #include <spl.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 #include <fsl_ifc.h>
 #include <i2c.h>
@@ -71,9 +76,11 @@ void board_init_f(ulong dummy)
        preloader_console_init();
        spl_set_bd();
 
+#ifdef CONFIG_SYS_I2C
 #ifdef CONFIG_SPL_I2C_SUPPORT
        i2c_init_all();
 #endif
+#endif
 #ifdef CONFIG_VID
        init_func_vid();
 #endif