[coreboot-gerrit] New patch to review for coreboot: google/oak: add table for 4GB configuration

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Mon Mar 14 10:59:35 CET 2016


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14089

-gerrit

commit eb69f322f10745ebc69e5aeba00c78a05b932d78
Author: PH Hsu <ph.hsu at mediatek.com>
Date:   Wed Dec 16 13:48:10 2015 +0800

    google/oak: add table for 4GB configuration
    
    BRANCH=none
    BUG=chrome-os-partner:49229
    BUG=chrome-os-partner:50806
    TEST=power on to kernel on Oak Rev3 with 4GB dram
    
    Change-Id: I32fa881df12eb9b7f66086904aebde3dd1483fbf
    Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
    Original-Commit-Id: 94c8b7ad911c93c4325113e7afc009f2f81d2275
    Original-Change-Id: Ia3640882a46e695550e679dc70611855b64a560f
    Original-Signed-off-by: PH Hsu <ph.hsu at mediatek.com>
    Original-Reviewed-on: https://chromium-review.googlesource.com/331811
    Original-Commit-Ready: Yidi Lin <yidi.lin at mediatek.com>
    Original-Tested-by: Yidi Lin <yidi.lin at mediatek.com>
    Original-Reviewed-by: Julius Werner <jwerner at chromium.org>
---
 src/mainboard/google/oak/sdram_configs.c           |   2 +-
 .../oak/sdram_inf/sdram-lpddr3-samsung-4GB.inc     | 116 +++++++++++++++++++++
 2 files changed, 117 insertions(+), 1 deletion(-)

diff --git a/src/mainboard/google/oak/sdram_configs.c b/src/mainboard/google/oak/sdram_configs.c
index f2b5362..def0ccd 100644
--- a/src/mainboard/google/oak/sdram_configs.c
+++ b/src/mainboard/google/oak/sdram_configs.c
@@ -21,7 +21,7 @@
 static const struct mt8173_sdram_params sdram_configs[] = {
 #include "sdram_inf/sdram-lpddr3-hynix-2GB.inc"   /* ram_code = 0000 */
 #include "sdram_inf/sdram-lpddr3-samsung-2GB.inc" /* ram_code = 0001 */
-#include "sdram_inf/sdram-unused.inc"             /* ram_code = 0010 */
+#include "sdram_inf/sdram-lpddr3-samsung-4GB.inc" /* ram_code = 0010 */
 #include "sdram_inf/sdram-unused.inc"             /* ram_code = 0011 */
 #include "sdram_inf/sdram-unused.inc"             /* ram_code = 0100 */
 #include "sdram_inf/sdram-unused.inc"             /* ram_code = 0101 */
diff --git a/src/mainboard/google/oak/sdram_inf/sdram-lpddr3-samsung-4GB.inc b/src/mainboard/google/oak/sdram_inf/sdram-lpddr3-samsung-4GB.inc
new file mode 100644
index 0000000..e6c3a83
--- /dev/null
+++ b/src/mainboard/google/oak/sdram_inf/sdram-lpddr3-samsung-4GB.inc
@@ -0,0 +1,116 @@
+{ /* 4GB (16Gb + 16Gb) for dual rank dram setting */
+	{
+		.impedance_drvp = 0x9,
+		.impedance_drvn = 0xa,
+		.datlat_ucfirst = 18,
+
+		.ca_train = {
+			[CHANNEL_A] = { 6, 4, 3, 5, 4, 0, 0, 0, 0, 0},
+			[CHANNEL_B] = { 1, 1, 1, 1, 0, 6, 5, 5, 5, 7}
+		},
+
+		.ca_train_center = {
+			[CHANNEL_A] = 3,
+			[CHANNEL_B] = 3
+		},
+
+		.wr_level = {
+			[CHANNEL_A] = { 8, 10, 6, 8},
+			[CHANNEL_B] = { 9,  9, 7, 6}
+		},
+
+		.gating_win = {
+			[CHANNEL_A] = {
+					{ 27, 64},
+					{ 27, 72}
+			},
+			[CHANNEL_B] = {
+					{ 27, 72},
+					{ 27, 72}
+			}
+		},
+
+		.rx_dqs_dly = {
+			[CHANNEL_A] = 0x08080908,
+			[CHANNEL_B] = 0x0b0b060b
+		},
+
+		.rx_dq_dly = {
+			[CHANNEL_A] = {
+						0x01010300,
+						0x06030002,
+						0x01010201,
+						0x03020002,
+						0x00010103,
+						0x02010201,
+						0x02040200,
+						0x02020201
+			},
+			[CHANNEL_B] = {
+						0x00020202,
+						0x02020202,
+						0x01020201,
+						0x01010100,
+						0x01010101,
+						0x01000002,
+						0x02000201,
+						0x00010101,
+			}
+		},
+	},
+	{
+		.actim     = 0xaafd478c,
+		.actim1    = 0x91001f59,
+		.actim05t  = 0x000025e1,
+		.conf1     = 0x00048403,
+		.conf2     = 0x030000a9,
+		.ddr2ctl   = 0x000063b1,
+		.gddr3ctl1 = 0x11000000,
+		.misctl0   = 0x21000000,
+		.pd_ctrl   = 0xd1976442,
+		.rkcfg     = 0x002156c1,
+		.test2_3   = 0xbfc70401,
+		.test2_4   = 0x2801110d
+	},
+	{
+		.cona     = 0x50a350a7,
+		.conb     = 0x17283544,
+		.conc     = 0x0a1a0b1a,
+		.cond     = 0x00000000,
+		.cone     = 0xffff0848,
+		.conf     = 0x08420000,
+		.cong     = 0x2b2b2a38,
+		.conh     = 0x00000000,
+		.conm_1   = 0x40000500,
+		.conm_2   = 0x400005ff,
+		.mdct_1   = 0x80030303,
+		.mdct_2   = 0x34220c3f,
+		.test0    = 0xcccccccc,
+		.test1    = 0xcccccccc,
+		.testb    = 0x00060124,
+		.testc    = 0x38470000,
+		.testd    = 0x00000000,
+		.arba     = 0x7f077a49,
+		.arbc     = 0xa0a070dd,
+		.arbd     = 0x07007046,
+		.arbe     = 0x40407046,
+		.arbf     = 0xa0a070c6,
+		.arbg     = 0xffff7047,
+		.arbi     = 0x20406188,
+		.arbj     = 0x9719595e,
+		.arbk     = 0x64f3fc79,
+		.slct_1   = 0x00010800,
+		.slct_2   = 0xff03ff00,
+		.bmen     = 0x00ff0001
+	},
+	{
+		.mrs_1  = 0x00830001,
+		.mrs_2  = 0x001c0002,
+		.mrs_3  = 0x00010003,
+		.mrs_10 = 0x00ff000a,
+		.mrs_11 = 0x0000000b,
+		.mrs_63 = 0x0000003f
+	},
+	.type = TYPE_LPDDR3,
+	.dram_freq = 896 * MHz,
+},



More information about the coreboot-gerrit mailing list