aboutsummaryrefslogtreecommitdiff
path: root/drivers/renesas/rzg/ddr/boot_init_dram.h
diff options
context:
space:
mode:
authorBiju Das <biju.das.jz@bp.renesas.com>2020-11-09 09:36:46 +0000
committerBiju Das <biju.das.jz@bp.renesas.com>2021-01-13 13:03:49 +0000
commited4fde3125563bb74d32c8a6284b255b764cc56b (patch)
tree967cebd4dc0bf9c2a258ba51131d7127c5320218 /drivers/renesas/rzg/ddr/boot_init_dram.h
parent27bbfca97587bc2073967dd1eea1076c6da41275 (diff)
downloadtrusted-firmware-a-ed4fde3125563bb74d32c8a6284b255b764cc56b.tar.gz
renesas: rzg: Add support for DRAM initialization
Add support for initializing DRAM on RZ/G2M SoC. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Change-Id: I99f1a6971a061a44687af498d55306a93e4fc8f7
Diffstat (limited to 'drivers/renesas/rzg/ddr/boot_init_dram.h')
-rw-r--r--drivers/renesas/rzg/ddr/boot_init_dram.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/renesas/rzg/ddr/boot_init_dram.h b/drivers/renesas/rzg/ddr/boot_init_dram.h
new file mode 100644
index 0000000000..294582fa70
--- /dev/null
+++ b/drivers/renesas/rzg/ddr/boot_init_dram.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2020, Renesas Electronics Corporation. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef BOOT_INIT_DRAM_H
+#define BOOT_INIT_DRAM_H
+
+extern int32_t rzg_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 /* BOOT_INIT_DRAM_H */