summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/rush/sdram_configs.h
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2014-06-26 14:24:42 -0700
committerMarc Jones <marc.jones@se-eng.com>2015-03-04 18:23:46 +0100
commit650d11ce94dea9ecc3fee3c2eb4dcb423af3f503 (patch)
tree21494062dad07db23cd5255f34d1f3cccf99762c /src/mainboard/google/rush/sdram_configs.h
parentd42b3fc6a9adda4a20cd331b27117d95c70887a4 (diff)
downloadcoreboot-staging-650d11ce94dea9ecc3fee3c2eb4dcb423af3f503.zip
coreboot-staging-650d11ce94dea9ecc3fee3c2eb4dcb423af3f503.tar.gz
coreboot rush: Add dram init code
Add support for initializing dram within romstage. This is an essential before we move to the armv8 core. BUG=None BRANCH=None TEST=Compiles succesfully for rush. Tried writing to and reading value from the base of sdram and it worked fine. Also tested with primitive_memtest CL: https://chromium-review.googlesource.com/#/c/186309/5 Original-Change-Id: I67ec04c766e249c9727b0cf2ba216522c862c2f5 Original-Signed-off-by: Furquan Shaikh <furquan@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/205823 Original-Tested-by: Furquan Shaikh <furquan@chromium.org> Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Commit-Queue: Aaron Durbin <adurbin@chromium.org> (cherry picked from commit 33c468b16e7ccd8cf9266d6a9ca30c02da104821) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: I4baface2c109ca74f85f43a25508677c46c64159 Reviewed-on: http://review.coreboot.org/8574 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
Diffstat (limited to 'src/mainboard/google/rush/sdram_configs.h')
-rw-r--r--src/mainboard/google/rush/sdram_configs.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mainboard/google/rush/sdram_configs.h b/src/mainboard/google/rush/sdram_configs.h
new file mode 100644
index 0000000..e00e9ca
--- /dev/null
+++ b/src/mainboard/google/rush/sdram_configs.h
@@ -0,0 +1,28 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2014 Google Inc.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef __MAINBOARD_GOOGLE_RUSH_SDRAM_CONFIG_H__
+#define __MAINBOARD_GOOGLE_RUSH_SDRAM_CONFIG_H__
+
+#include <soc/nvidia/tegra132/sdram_param.h>
+
+/* Loads SDRAM configurations for current system. */
+const struct sdram_params *get_sdram_config(void);
+
+#endif /* __MAINBOARD_GOOGLE_RUSH_SDRAM_CONFIG_H__ */
OpenPOWER on IntegriCloud