rcar_gen3: drivers: ddr-a: Inline ddr_init_e3.h
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 14 Jul 2019 09:19:18 +0000 (11:19 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 14 Jul 2019 10:15:46 +0000 (12:15 +0200)
Partly inline ddr_init_e3.h into ddr_init_e3.c . Drop duplicate
INITDRAM_* macros, which are defined in boot_init_dram.h .

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Change-Id: I758661d337a86b6a07f82cd4067fbc149cbaed1e

drivers/staging/renesas/rcar/ddr/ddr_a/ddr_init_e3.c
drivers/staging/renesas/rcar/ddr/ddr_a/ddr_init_e3.h [deleted file]

index 8b25546dfc446d65f4888287e72a7aa9e62ac3bc..71bd696c5a8c8284d6be456b9411bff698885645 100644 (file)
@@ -9,11 +9,23 @@
 
 #include <common/debug.h>
 
+#include "boot_init_dram.h"
 #include "boot_init_dram_regdef.h"
-#include "ddr_init_e3.h"
 
 #include "../dram_sub_func.h"
 
+#define RCAR_E3_DDR_VERSION    "rev.0.12"
+
+#ifdef ddr_qos_init_setting
+#define REFRESH_RATE   3900    /* Average periodic refresh interval[ns]. Support 3900,7800 */
+#else
+#if RCAR_REF_INT == 1
+#define REFRESH_RATE   7800
+#else
+#define REFRESH_RATE   3900
+#endif
+#endif
+
 /*******************************************************************************
  *  variables
  ******************************************************************************/
diff --git a/drivers/staging/renesas/rcar/ddr/ddr_a/ddr_init_e3.h b/drivers/staging/renesas/rcar/ddr/ddr_a/ddr_init_e3.h
deleted file mode 100644 (file)
index 1a96a69..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright (c) 2015-2019, Renesas Electronics Corporation. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-#ifndef DDR_INIT_E3_H
-#define DDR_INIT_E3_H
-
-#include <stdint.h>
-
-#define RCAR_E3_DDR_VERSION    "rev.0.12"
-
-#ifdef ddr_qos_init_setting
-   #define REFRESH_RATE  3900               /*  Average periodic refresh interval[ns]. Support 3900,7800 */
-#else
-   #if RCAR_REF_INT == 0
-      #define REFRESH_RATE  3900
-   #elif RCAR_REF_INT == 1
-      #define REFRESH_RATE  7800
-   #else
-      #define REFRESH_RATE  3900
-   #endif
-#endif
-
-extern int32_t rcar_dram_init(void);
-#define INITDRAM_OK (0)
-#define INITDRAM_NG (0xffffffff)
-#define INITDRAM_ERR_I (0xffffffff)
-#define INITDRAM_ERR_O (0xfffffffe)
-#define INITDRAM_ERR_T (0xfffffff0)
-
-#endif /* DDR_INIT_E3_H */