aboutsummaryrefslogtreecommitdiff
path: root/src/soc/sifive/fu540/sdram.c
diff options
context:
space:
mode:
authorPhilipp Hug <philipp@hug.cx>2018-07-07 13:59:30 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-07-18 07:54:54 +0000
commit52a022f680e9f59fbb4991109c2435f017c4f6c9 (patch)
tree08670c1168c4dc9ceb579c0f6080b9a5a00f31a6 /src/soc/sifive/fu540/sdram.c
parent1b43ad7149ebae684b0cbd08d293117a7304249d (diff)
sifive/fu540: add empty sdram init and size functions
Change-Id: I65f900a3277bc8a4a83ebc8883d4a325bd690bf8 Signed-off-by: Philipp Hug <philipp@hug.cx> Reviewed-on: https://review.coreboot.org/27438 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/soc/sifive/fu540/sdram.c')
-rw-r--r--src/soc/sifive/fu540/sdram.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/soc/sifive/fu540/sdram.c b/src/soc/sifive/fu540/sdram.c
new file mode 100644
index 0000000000..1ad36da2b3
--- /dev/null
+++ b/src/soc/sifive/fu540/sdram.c
@@ -0,0 +1,33 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2016 Philipp Hug <philipp@hug.cx>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include <soc/sdram.h>
+
+void sdram_init(void)
+{
+ // TODO: implement
+}
+
+size_t sdram_size_mb(void)
+{
+ static size_t size_mb = 0;
+
+ if (!size_mb) {
+ // TODO: implement
+ size_mb = 8 * 1024;
+ }
+
+ return size_mb;
+}