Merge tag 'u-boot-imx-20200121' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
[oweals/u-boot.git] / arch / arm / mach-imx / mx7ulp / soc.c
index 7f8fdc7005e8cc03a212ba4eabba94d32965311a..46484813d2c77ccda3b210dab4ea8d29dc854f0f 100644 (file)
@@ -118,6 +118,7 @@ void init_wdog(void)
        disable_wdog(WDG2_RBASE);
 }
 
+#if !defined(CONFIG_SPL) || (defined(CONFIG_SPL) && defined(CONFIG_SPL_BUILD))
 #if defined(CONFIG_LDO_ENABLED_MODE)
 static void init_ldo_mode(void)
 {
@@ -175,6 +176,7 @@ void s_init(void)
 #endif
        return;
 }
+#endif
 
 #ifndef CONFIG_ULP_WATCHDOG
 void reset_cpu(ulong addr)