blaze: change ramcode 0000 to use 792MHz bct

The original sdram-hynix-2GB-792.inc was just copied from nyan
bct file. This change updates the cfg file for Hynix 2GB, 792MHz
DRAM based on the data generated by t124_emc_reg_tool.

BUG=none
BRANCH=blaze
TEST=emerged coreboot, booted successfully into kernel.

Original-Change-Id: I9534b4df6d35193179de124309df12ed830098a0
Original-Signed-off-by: Ken Chang <kenc@nvidia.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/197660
Original-Reviewed-by: Tom Warren <twarren@nvidia.com>
Original-Reviewed-by: Hung-Te Lin <hungte@chromium.org>
(cherry picked from commit 797dabe54f2679bb5717961dda1947df453eb0f1)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>

Change-Id: Ie67bedb29d5d9c3a3b58d949ddf9600716c385ec
Reviewed-on: http://review.coreboot.org/7898
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
Ken Chang 2014-04-30 17:04:04 +08:00 committed by Marc Jones
parent bb932c56f0
commit c3101a0963
2 changed files with 68 additions and 68 deletions

View File

@ -1,4 +1,4 @@
{ /* generated from sdram-0001-792-2GB.cfg; do not edit. */
{ /* generated from Hynix_2GB_H5TC4G63AFR_PBA_792MHz_0318_Modify.cfg; do not edit. */
.MemoryType = NvBootMemoryType_Ddr3,
.PllMInputDivider = 0x00000001,
.PllMFeedbackDivider = 0x00000042,
@ -33,18 +33,18 @@
.EmcPinExtraWait = 0x00000000,
.EmcTimingControlWait = 0x00000000,
.EmcRc = 0x00000025,
.EmcRfc = 0x000000cd,
.EmcRfc = 0x000000cc,
.EmcRfcSlr = 0x00000000,
.EmcRas = 0x00000019,
.EmcRp = 0x0000000a,
.EmcRas = 0x0000001a,
.EmcRp = 0x00000009,
.EmcR2r = 0x00000000,
.EmcW2w = 0x00000000,
.EmcR2w = 0x00000007,
.EmcR2w = 0x00000008,
.EmcW2r = 0x0000000d,
.EmcR2p = 0x00000004,
.EmcW2p = 0x00000013,
.EmcRdRcd = 0x0000000a,
.EmcWrRcd = 0x0000000a,
.EmcRdRcd = 0x00000009,
.EmcWrRcd = 0x00000009,
.EmcRrd = 0x00000003,
.EmcRext = 0x00000002,
.EmcWext = 0x00000000,
@ -53,31 +53,31 @@
.EmcQUse = 0x0000000b,
.EmcQuseWidth = 0x00000002,
.EmcIbdly = 0x00000000,
.EmcEInput = 0x00000003,
.EmcEInputDuration = 0x0000000c,
.EmcPutermExtra = 0x00090000,
.EmcEInput = 0x00000002,
.EmcEInputDuration = 0x0000000d,
.EmcPutermExtra = 0x00080000,
.EmcPutermWidth = 0x00000004,
.EmcPutermAdj = 0x00000000,
.EmcCdbCntl1 = 0x00000000,
.EmcCdbCntl2 = 0x00000000,
.EmcCdbCntl3 = 0x00000000,
.EmcQRst = 0x00000002,
.EmcQSafe = 0x00000011,
.EmcRdv = 0x00000017,
.EmcRdvMask = 0x00000019,
.EmcQRst = 0x00000001,
.EmcQSafe = 0x00000014,
.EmcRdv = 0x00000018,
.EmcRdvMask = 0x0000001a,
.EmcQpop = 0x0000000f,
.EmcCtt = 0x00000000,
.EmcCttDuration = 0x00000004,
.EmcRefresh = 0x000017eb,
.EmcRefresh = 0x000017e2,
.EmcBurstRefreshNum = 0x00000000,
.EmcPreRefreshReqCnt = 0x000005fa,
.EmcPreRefreshReqCnt = 0x000005f8,
.EmcPdEx2Wr = 0x00000003,
.EmcPdEx2Rd = 0x00000003,
.EmcPdEx2Rd = 0x00000011,
.EmcPChg2Pden = 0x00000001,
.EmcAct2Pden = 0x00000000,
.EmcAr2Pden = 0x000000c7,
.EmcAr2Pden = 0x000000c6,
.EmcRw2Pden = 0x00000018,
.EmcTxsr = 0x000000d7,
.EmcTxsr = 0x000000d6,
.EmcTxsrDll = 0x00000200,
.EmcTcke = 0x00000005,
.EmcTckesr = 0x00000006,
@ -86,12 +86,12 @@
.EmcTrpab = 0x00000000,
.EmcTClkStable = 0x00000008,
.EmcTClkStop = 0x00000008,
.EmcTRefBw = 0x0000182c,
.EmcFbioCfg5 = 0x104ab898,
.EmcFbioCfg6 = 0x00000002,
.EmcTRefBw = 0x00001822,
.EmcFbioCfg5 = 0x104ab098,
.EmcFbioCfg6 = 0x00000000,
.EmcFbioSpare = 0x00000000,
.EmcCfgRsv = 0xff00ff00,
.EmcMrs = 0x80001d71,
.EmcMrs = 0x80000d71,
.EmcEmrs = 0x80100002,
.EmcEmrs2 = 0x80200018,
.EmcEmrs3 = 0x80300000,
@ -105,17 +105,17 @@
.EmcExtraModeRegWriteEnable = 0x00000000,
.EmcMrwResetCommand = 0x00000000,
.EmcMrwResetNInitWait = 0x00000000,
.EmcMrsWaitCnt = 0x00f7000e,
.EmcMrsWaitCnt2 = 0x00f7000e,
.EmcMrsWaitCnt = 0x00f8000c,
.EmcMrsWaitCnt2 = 0x00f8000c,
.EmcCfg = 0x73300000,
.EmcCfg2 = 0x0000089d,
.EmcCfgPipe = 0x000040a0,
.EmcCfgPipe = 0x00004080,
.EmcDbg = 0x01000c00,
.EmcCmdQ = 0x10004408,
.EmcMc2EmcQ = 0x06000404,
.EmcDynSelfRefControl = 0x80003025,
.EmcDynSelfRefControl = 0x80003012,
.AhbArbitrationXbarCtrlMemInitDone = 0x00000001,
.EmcCfgDigDll = 0xe00701b1,
.EmcCfgDigDll = 0xe00700b1,
.EmcCfgDigDllPeriod = 0x00008000,
.EmcDevSelect = 0x00000002,
.EmcSelDpdCtrl = 0x00040000,
@ -143,11 +143,11 @@
.EmcDllXformQUse5 = 0x00000000,
.EmcDllXformQUse6 = 0x00000000,
.EmcDllXformQUse7 = 0x00000000,
.EmcDllXformAddr0 = 0x0000000e,
.EmcDllXformAddr1 = 0x0000000e,
.EmcDllXformAddr0 = 0x0002c000,
.EmcDllXformAddr1 = 0x0002c000,
.EmcDllXformAddr2 = 0x00000000,
.EmcDllXformAddr3 = 0x0000000e,
.EmcDllXformAddr4 = 0x00000000,
.EmcDllXformAddr3 = 0x0002c000,
.EmcDllXformAddr4 = 0x0002c000,
.EmcDllXformAddr5 = 0x00000000,
.EmcDllXformQUse8 = 0x00000000,
.EmcDllXformQUse9 = 0x00000000,
@ -157,30 +157,30 @@
.EmcDllXformQUse13 = 0x00000000,
.EmcDllXformQUse14 = 0x00000000,
.EmcDllXformQUse15 = 0x00000000,
.EmcDliTrimTxDqs0 = 0x00000000,
.EmcDliTrimTxDqs1 = 0x00000000,
.EmcDliTrimTxDqs2 = 0x00000000,
.EmcDliTrimTxDqs3 = 0x00000000,
.EmcDliTrimTxDqs4 = 0x00000000,
.EmcDliTrimTxDqs5 = 0x00000000,
.EmcDliTrimTxDqs6 = 0x00000000,
.EmcDliTrimTxDqs7 = 0x00000000,
.EmcDliTrimTxDqs8 = 0x00000000,
.EmcDliTrimTxDqs9 = 0x00000000,
.EmcDliTrimTxDqs10 = 0x00000000,
.EmcDliTrimTxDqs11 = 0x00000000,
.EmcDliTrimTxDqs12 = 0x00000000,
.EmcDliTrimTxDqs13 = 0x00000000,
.EmcDliTrimTxDqs14 = 0x00000000,
.EmcDliTrimTxDqs15 = 0x00000000,
.EmcDllXformDq0 = 0x0000000b,
.EmcDllXformDq1 = 0x0000000b,
.EmcDllXformDq2 = 0x0000000b,
.EmcDllXformDq3 = 0x0000000b,
.EmcDllXformDq4 = 0x0000000b,
.EmcDllXformDq5 = 0x0000000b,
.EmcDllXformDq6 = 0x0000000b,
.EmcDllXformDq7 = 0x0000000b,
.EmcDliTrimTxDqs0 = 0x00000008,
.EmcDliTrimTxDqs1 = 0x00000008,
.EmcDliTrimTxDqs2 = 0x00000005,
.EmcDliTrimTxDqs3 = 0x00000008,
.EmcDliTrimTxDqs4 = 0x0000000a,
.EmcDliTrimTxDqs5 = 0x00000008,
.EmcDliTrimTxDqs6 = 0x0000000a,
.EmcDliTrimTxDqs7 = 0x0000000a,
.EmcDliTrimTxDqs8 = 0x00000008,
.EmcDliTrimTxDqs9 = 0x00000008,
.EmcDliTrimTxDqs10 = 0x00000005,
.EmcDliTrimTxDqs11 = 0x00000008,
.EmcDliTrimTxDqs12 = 0x0000000a,
.EmcDliTrimTxDqs13 = 0x00000008,
.EmcDliTrimTxDqs14 = 0x0000000a,
.EmcDliTrimTxDqs15 = 0x0000000a,
.EmcDllXformDq0 = 0x0000000e,
.EmcDllXformDq1 = 0x0000000e,
.EmcDllXformDq2 = 0x0000000e,
.EmcDllXformDq3 = 0x0000000e,
.EmcDllXformDq4 = 0x0000000e,
.EmcDllXformDq5 = 0x0000000e,
.EmcDllXformDq6 = 0x0000000e,
.EmcDllXformDq7 = 0x0000000e,
.WarmBootWait = 0x00000002,
.EmcCttTermCtrl = 0x00000802,
.EmcOdtWrite = 0x00000000,
@ -198,7 +198,7 @@
.EmcZcalWarmBootWait = 0x00000001,
.EmcMrsWarmBootEnable = 0x00000001,
.EmcMrsResetDllWait = 0x00000000,
.EmcMrsExtra = 0x80001d71,
.EmcMrsExtra = 0x80000d71,
.EmcWarmBootMrsExtra = 0x80100002,
.EmcEmrsDdr2DllEnable = 0x00000000,
.EmcMrsDdr2DllReset = 0x00000000,
@ -225,20 +225,20 @@
.EmcXm2CmdPadCtrl4 = 0x00000000,
.EmcXm2CmdPadCtrl5 = 0x00111111,
.EmcXm2DqsPadCtrl = 0x770c1414,
.EmcXm2DqsPadCtrl2 = 0x0020013d,
.EmcXm2DqsPadCtrl2 = 0x0120113d,
.EmcXm2DqsPadCtrl3 = 0x61861820,
.EmcXm2DqsPadCtrl4 = 0x00514514,
.EmcXm2DqsPadCtrl5 = 0x00514514,
.EmcXm2DqsPadCtrl4 = 0x00492492,
.EmcXm2DqsPadCtrl5 = 0x00492492,
.EmcXm2DqsPadCtrl6 = 0x61861800,
.EmcXm2DqPadCtrl = 0x770c2990,
.EmcXm2DqPadCtrl2 = 0x00000000,
.EmcXm2DqPadCtrl3 = 0x00000000,
.EmcXm2ClkPadCtrl = 0x77ffc085,
.EmcXm2ClkPadCtrl2 = 0x00000707,
.EmcXm2ClkPadCtrl2 = 0x00000202,
.EmcXm2CompPadCtrl = 0x81f1f108,
.EmcXm2VttGenPadCtrl = 0x07070004,
.EmcXm2VttGenPadCtrl2 = 0x00000000,
.EmcXm2VttGenPadCtrl3 = 0x017fffff,
.EmcXm2VttGenPadCtrl3 = 0x016eeeee,
.EmcAcpdControl = 0x00000000,
.EmcSwizzleRank0ByteCfg = 0x00003120,
.EmcSwizzleRank0Byte0 = 0x25143067,
@ -250,7 +250,7 @@
.EmcSwizzleRank1Byte1 = 0x35104276,
.EmcSwizzleRank1Byte2 = 0x27043615,
.EmcSwizzleRank1Byte3 = 0x72306145,
.EmcDsrVttgenDrv = 0x0505003f,
.EmcDsrVttgenDrv = 0x0606003f,
.EmcTxdsrvttgen = 0x00000000,
.EmcBgbiasCtl0 = 0x00000000,
.McEmemAdrCfg = 0x00000000,
@ -273,11 +273,11 @@
.McEmemArbTimingWap2Pre = 0x0000000c,
.McEmemArbTimingR2R = 0x00000002,
.McEmemArbTimingW2W = 0x00000002,
.McEmemArbTimingR2W = 0x00000005,
.McEmemArbTimingR2W = 0x00000006,
.McEmemArbTimingW2R = 0x00000008,
.McEmemArbDaTurns = 0x08050202,
.McEmemArbDaCovers = 0x00170e13,
.McEmemArbMisc0 = 0x736c2414,
.McEmemArbDaTurns = 0x08060202,
.McEmemArbDaCovers = 0x00160d13,
.McEmemArbMisc0 = 0x734c2414,
.McEmemArbMisc1 = 0x70000f02,
.McEmemArbRing1Throttle = 0x001f0000,
.McEmemArbOverride = 0x10000000,

View File

@ -22,7 +22,7 @@
#include "sdram_configs.h"
static struct sdram_params sdram_configs[] = {
#include "bct/sdram-hynix-2GB-204.inc" /* ram_code = 0000 */
#include "bct/sdram-hynix-2GB-792.inc" /* ram_code = 0000 */
#include "bct/sdram-hynix-2GB-204.inc" /* ram_code = 0001 */
#include "bct/sdram-samsung-2GB-204.inc" /* ram_code = 0010 */
#include "bct/sdram-hynix-2GB-204.inc" /* ram_code = 0011 */