]> Git Repo - J-u-boot.git/blobdiff - arch/arc/lib/init_helpers.c
common: Drop init.h from common header
[J-u-boot.git] / arch / arc / lib / init_helpers.c
index dbc8d68ffb240c692eac6c3dda76404f8451a439..023eae190759938d6f64132003f7dd52049d6086 100644 (file)
@@ -1,17 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2013-2015 Synopsys, Inc. All rights reserved.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
+#include <init.h>
+#include <asm/cache.h>
 #include <common.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 int init_cache_f_r(void)
 {
-#ifndef CONFIG_SYS_DCACHE_OFF
-       flush_dcache_all();
-#endif
+       sync_n_cleanup_cache_all();
+
        return 0;
 }
This page took 0.025986 seconds and 4 git commands to generate.