common: Drop net.h from common header
[oweals/u-boot.git] / arch / arm / mach-orion5x / cpu.c
index f88db3b1f96ad400fdf47c0e3bbd83f91a46ed6a..7d57dd257fe0730bd96fea8d3ca24e1686a812ee 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2010 Albert ARIBAUD <albert.u.boot@aribaud.net>
  *
@@ -5,11 +6,11 @@
  * (C) Copyright 2009
  * Marvell Semiconductor <www.marvell.com>
  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
+#include <cpu_func.h>
+#include <net.h>
 #include <netdev.h>
 #include <asm/cache.h>
 #include <asm/io.h>
@@ -234,7 +235,9 @@ int arch_cpu_init(void)
        /* Enable and invalidate L2 cache in write through mode */
        invalidate_l2_cache();
 
+#ifdef CONFIG_SPL_BUILD
        orion5x_config_adr_windows();
+#endif
 
        return 0;
 }