diff options
author | Aaron Durbin <adurbin@chromium.org> | 2014-08-04 12:35:32 -0500 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-03-25 22:31:37 +0100 |
commit | 8c6d34c1f87f7f48f351e9496ec45985208f5076 (patch) | |
tree | 65931af3fcfb4d7dca8bee8e670c468c0a166bfb /src/mainboard/google/rush_ryu/bct/sdram-micron-4GB-528.inc | |
parent | dabf0ebec03772cac320dc950cac57a48e1bd3c9 (diff) | |
download | coreboot-8c6d34c1f87f7f48f351e9496ec45985208f5076.tar.xz |
ryu: Add 4 LPDDR3 SDRAM BCTs
These are used by the LPDDR3 code in sdram.c.
Based on the schematic and email, I've filled in 4 slots
in sdram_configs.c. My A44 returns RAMCODE 0 (using only bits
1:0) for Samsung SDRAM. I haven't tested the other 2 types of
RAM (Hynix and Micron). The 4th slot is a fallback slow Micron
config.
Previously existing configurations were dropped.
BUG=chrome-os-partner:29921
BUG=chrome-os-partner:31031
BRANCH=None
TEST=Built for rush and rush_ryu.
Change-Id: I55a737db269fe5fac1565d58bd8f8afcbc5beecb
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 9a431466171a85a5c8151e7466eb5f77862e7b44
Original-Change-Id: If216096ffc9e9836b6d082ad0668640b3eec37b7
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Commit-Id: a45e7788dd78697ac5f48b6cc64108ca0e4912dd
Original-Change-Id: Ib7e8b814eb6dadb9b366536721876a3eeba0d2c0
Original-Signed-off-by: Tom Warren <twarren@nvidia.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/216000
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/8976
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/google/rush_ryu/bct/sdram-micron-4GB-528.inc')
-rw-r--r-- | src/mainboard/google/rush_ryu/bct/sdram-micron-4GB-528.inc | 311 |
1 files changed, 311 insertions, 0 deletions
diff --git a/src/mainboard/google/rush_ryu/bct/sdram-micron-4GB-528.inc b/src/mainboard/google/rush_ryu/bct/sdram-micron-4GB-528.inc new file mode 100644 index 0000000000..52180ccff6 --- /dev/null +++ b/src/mainboard/google/rush_ryu/bct/sdram-micron-4GB-528.inc @@ -0,0 +1,311 @@ +{ /* generated from sdram-micron-4GB-528.cfg; do not edit. */ + .MemoryType = NvBootMemoryType_LpDdr2, + .PllMInputDivider = 0x00000001, + .PllMFeedbackDivider = 0x0000002c, + .PllMStableTime = 0x0000012c, + .PllMSetupControl = 0x00000000, + .PllMSelectDiv2 = 0x00000000, + .PllMPDLshiftPh45 = 0x00000001, + .PllMPDLshiftPh90 = 0x00000001, + .PllMPDLshiftPh135 = 0x00000001, + .PllMKCP = 0x00000000, + .PllMKVCO = 0x00000000, + .EmcBctSpare0 = 0x00000000, + .EmcBctSpare1 = 0x00000000, + .EmcBctSpare2 = 0x00000000, + .EmcBctSpare3 = 0x00000000, + .EmcBctSpare4 = 0x00000000, + .EmcBctSpare5 = 0x00000000, + .EmcBctSpare6 = 0x00000000, + .EmcBctSpare7 = 0x00000000, + .EmcBctSpare8 = 0x00000000, + .EmcBctSpare9 = 0x00000000, + .EmcBctSpare10 = 0x00000000, + .EmcBctSpare11 = 0x00000000, + .EmcClockSource = 0x80000000, + .EmcAutoCalInterval = 0x001fffff, + .EmcAutoCalConfig = 0xa1430000, + .EmcAutoCalConfig2 = 0x00000000, + .EmcAutoCalConfig3 = 0x00000000, + .EmcAutoCalWait = 0x00000190, + .EmcAdrCfg = 0x00000001, + .EmcPinProgramWait = 0x00000000, + .EmcPinExtraWait = 0x00000000, + .EmcTimingControlWait = 0x00000000, + .EmcRc = 0x0000001f, + .EmcRfc = 0x00000044, + .EmcRfcSlr = 0x00000000, + .EmcRas = 0x00000016, + .EmcRp = 0x00000009, + .EmcR2r = 0x00000000, + .EmcW2w = 0x00000000, + .EmcR2w = 0x0000000a, + .EmcW2r = 0x00000009, + .EmcR2p = 0x00000003, + .EmcW2p = 0x0000000d, + .EmcRdRcd = 0x00000009, + .EmcWrRcd = 0x00000009, + .EmcRrd = 0x00000005, + .EmcRext = 0x00000004, + .EmcWext = 0x00000000, + .EmcWdv = 0x00000002, + .EmcWdvMask = 0x00000002, + .EmcQUse = 0x00000008, + .EmcQuseWidth = 0x00000003, + .EmcIbdly = 0x00000000, + .EmcEInput = 0x00000003, + .EmcEInputDuration = 0x0000000a, + .EmcPutermExtra = 0x00050000, + .EmcPutermWidth = 0x00000004, + .EmcPutermAdj = 0x00000000, + .EmcCdbCntl1 = 0x00000000, + .EmcCdbCntl2 = 0x00000000, + .EmcCdbCntl3 = 0x00000000, + .EmcQRst = 0x00000002, + .EmcQSafe = 0x00000011, + .EmcRdv = 0x00000015, + .EmcRdvMask = 0x00000017, + .EmcQpop = 0x0000000d, + .EmcCtt = 0x00000000, + .EmcCttDuration = 0x00000004, + .EmcRefresh = 0x000007cd, + .EmcBurstRefreshNum = 0x00000000, + .EmcPreRefreshReqCnt = 0x000001f3, + .EmcPdEx2Wr = 0x00000003, + .EmcPdEx2Rd = 0x00000003, + .EmcPChg2Pden = 0x00000009, + .EmcAct2Pden = 0x00000000, + .EmcAr2Pden = 0x00000001, + .EmcRw2Pden = 0x00000011, + .EmcTxsr = 0x0000004a, + .EmcTxsrDll = 0x0000004a, + .EmcTcke = 0x00000004, + .EmcTckesr = 0x00000008, + .EmcTpd = 0x00000004, + .EmcTfaw = 0x00000019, + .EmcTrpab = 0x0000000c, + .EmcTClkStable = 0x00000003, + .EmcTClkStop = 0x00000003, + .EmcTRefBw = 0x00000895, + .EmcFbioCfg5 = 0x1363a096, + .EmcFbioCfg6 = 0x00000000, + .EmcFbioSpare = 0x00000000, + .EmcCfgRsv = 0xff00ff00, + .EmcMrs = 0x00000000, + .EmcEmrs = 0x00000000, + .EmcEmrs2 = 0x00000000, + .EmcEmrs3 = 0x00000000, + .EmcMrw1 = 0x000100c3, + .EmcMrw2 = 0x00020006, + .EmcMrw3 = 0x00030001, + .EmcMrw4 = 0x800b0000, + .EmcMrwExtra = 0x000100c3, + .EmcWarmBootMrwExtra = 0x00020006, + .EmcWarmBootExtraModeRegWriteEnable = 0x00000000, + .EmcExtraModeRegWriteEnable = 0x00000000, + .EmcMrwResetCommand = 0x003f00fc, + .EmcMrwResetNInitWait = 0x0000000a, + .EmcMrsWaitCnt = 0x02100013, + .EmcMrsWaitCnt2 = 0x02100013, + .EmcCfg = 0xf3300000, + .EmcCfg2 = 0x0000089f, + .EmcCfgPipe = 0x000042a0, + .EmcDbg = 0x01000c00, + .EmcCmdQ = 0x10004408, + .EmcMc2EmcQ = 0x06000404, + .EmcDynSelfRefControl = 0x800010b3, + .AhbArbitrationXbarCtrlMemInitDone = 0x00000001, + .EmcCfgDigDll = 0xe01200b9, + .EmcCfgDigDllPeriod = 0x00008000, + .EmcDevSelect = 0x00000000, + .EmcSelDpdCtrl = 0x0004001c, + .EmcDllXformDqs0 = 0x007f400a, + .EmcDllXformDqs1 = 0x007f400a, + .EmcDllXformDqs2 = 0x007f400a, + .EmcDllXformDqs3 = 0x007f400a, + .EmcDllXformDqs4 = 0x007f400a, + .EmcDllXformDqs5 = 0x007f400a, + .EmcDllXformDqs6 = 0x007f400a, + .EmcDllXformDqs7 = 0x007f400a, + .EmcDllXformDqs8 = 0x007f400a, + .EmcDllXformDqs9 = 0x007f400a, + .EmcDllXformDqs10 = 0x007f400a, + .EmcDllXformDqs11 = 0x007f400a, + .EmcDllXformDqs12 = 0x007f400a, + .EmcDllXformDqs13 = 0x007f400a, + .EmcDllXformDqs14 = 0x007f400a, + .EmcDllXformDqs15 = 0x007f400a, + .EmcDllXformQUse0 = 0x00000000, + .EmcDllXformQUse1 = 0x00000000, + .EmcDllXformQUse2 = 0x00000000, + .EmcDllXformQUse3 = 0x00000000, + .EmcDllXformQUse4 = 0x00000000, + .EmcDllXformQUse5 = 0x00000000, + .EmcDllXformQUse6 = 0x00000000, + .EmcDllXformQUse7 = 0x00000000, + .EmcDllXformAddr0 = 0x00024000, + .EmcDllXformAddr1 = 0x00024000, + .EmcDllXformAddr2 = 0x00000006, + .EmcDllXformAddr3 = 0x00024000, + .EmcDllXformAddr4 = 0x00024000, + .EmcDllXformAddr5 = 0x00000006, + .EmcDllXformQUse8 = 0x00000000, + .EmcDllXformQUse9 = 0x00000000, + .EmcDllXformQUse10 = 0x00000000, + .EmcDllXformQUse11 = 0x00000000, + .EmcDllXformQUse12 = 0x00000000, + .EmcDllXformQUse13 = 0x00000000, + .EmcDllXformQUse14 = 0x00000000, + .EmcDllXformQUse15 = 0x00000000, + .EmcDliTrimTxDqs0 = 0x0000000b, + .EmcDliTrimTxDqs1 = 0x0000000b, + .EmcDliTrimTxDqs2 = 0x00000008, + .EmcDliTrimTxDqs3 = 0x0000000b, + .EmcDliTrimTxDqs4 = 0x0000000b, + .EmcDliTrimTxDqs5 = 0x00000008, + .EmcDliTrimTxDqs6 = 0x0000000b, + .EmcDliTrimTxDqs7 = 0x0000000b, + .EmcDliTrimTxDqs8 = 0x0000000b, + .EmcDliTrimTxDqs9 = 0x0000000b, + .EmcDliTrimTxDqs10 = 0x00000008, + .EmcDliTrimTxDqs11 = 0x0000000b, + .EmcDliTrimTxDqs12 = 0x0000000b, + .EmcDliTrimTxDqs13 = 0x00000008, + .EmcDliTrimTxDqs14 = 0x0000000b, + .EmcDliTrimTxDqs15 = 0x0000000b, + .EmcDllXformDq0 = 0x0000000c, + .EmcDllXformDq1 = 0x0000000c, + .EmcDllXformDq2 = 0x0000000c, + .EmcDllXformDq3 = 0x0000000c, + .EmcDllXformDq4 = 0x0000000c, + .EmcDllXformDq5 = 0x0000000c, + .EmcDllXformDq6 = 0x0000000c, + .EmcDllXformDq7 = 0x0000000c, + .WarmBootWait = 0x00000001, + .EmcCttTermCtrl = 0x00000802, + .EmcOdtWrite = 0x00000000, + .EmcOdtRead = 0x00000000, + .EmcZcalInterval = 0x00064000, + .EmcZcalWaitCnt = 0x00000034, + .EmcZcalMrwCmd = 0x000a0056, + .EmcMrsResetDll = 0x00000000, + .EmcZcalInitDev0 = 0x840a00ff, + .EmcZcalInitDev1 = 0x440a00ff, + .EmcZcalInitWait = 0x00000001, + .EmcZcalWarmColdBootEnables = 0x00000003, + .EmcMrwLpddr2ZcalWarmBoot = 0x040a00ab, + .EmcZqCalDdr3WarmBoot = 0x00000000, + .EmcZcalWarmBootWait = 0x00000001, + .EmcMrsWarmBootEnable = 0x00000001, + .EmcMrsResetDllWait = 0x00000000, + .EmcMrsExtra = 0x00000000, + .EmcWarmBootMrsExtra = 0x00000000, + .EmcEmrsDdr2DllEnable = 0x00000000, + .EmcMrsDdr2DllReset = 0x00000000, + .EmcEmrsDdr2OcdCalib = 0x00000000, + .EmcDdr2Wait = 0x00000000, + .EmcClkenOverride = 0x00000000, + .McDisExtraSnapLevels = 0x00000000, + .EmcExtraRefreshNum = 0x00000002, + .EmcClkenOverrideAllWarmBoot = 0x00000000, + .McClkenOverrideAllWarmBoot = 0x00000000, + .EmcCfgDigDllPeriodWarmBoot = 0x00000003, + .PmcVddpSel = 0x00000001, + .PmcVddpSelWait = 0x00000002, + .PmcDdrPwr = 0x00000003, + .PmcDdrCfg = 0x00001000, + .PmcIoDpd3Req = 0x4ffefef7, + .PmcIoDpd3ReqWait = 0x00000000, + .PmcRegShort = 0x0000330f, + .PmcNoIoPower = 0x00000000, + .PmcPorDpdCtrlWait = 0x00000001, + .EmcXm2CmdPadCtrl = 0x00000220, + .EmcXm2CmdPadCtrl2 = 0x770c0000, + .EmcXm2CmdPadCtrl3 = 0x050c0000, + .EmcXm2CmdPadCtrl4 = 0x00000000, + .EmcXm2CmdPadCtrl5 = 0x00100100, + .EmcXm2DqsPadCtrl = 0x770c1414, + .EmcXm2DqsPadCtrl2 = 0x0123123d, + .EmcXm2DqsPadCtrl3 = 0x51451420, + .EmcXm2DqsPadCtrl4 = 0x00514514, + .EmcXm2DqsPadCtrl5 = 0x00514514, + .EmcXm2DqsPadCtrl6 = 0x51451400, + .EmcXm2DqPadCtrl = 0x770c2990, + .EmcXm2DqPadCtrl2 = 0x00000000, + .EmcXm2DqPadCtrl3 = 0x00000000, + .EmcXm2ClkPadCtrl = 0x77ffc004, + .EmcXm2ClkPadCtrl2 = 0x00000000, + .EmcXm2CompPadCtrl = 0x81f1f008, + .EmcXm2VttGenPadCtrl = 0x07070000, + .EmcXm2VttGenPadCtrl2 = 0x0000003f, + .EmcXm2VttGenPadCtrl3 = 0x015ddddd, + .EmcAcpdControl = 0x00000000, + .EmcSwizzleRank0ByteCfg = 0x00001032, + .EmcSwizzleRank0Byte0 = 0x53067142, + .EmcSwizzleRank0Byte1 = 0x73025146, + .EmcSwizzleRank0Byte2 = 0x20136475, + .EmcSwizzleRank0Byte3 = 0x46273150, + .EmcSwizzleRank1ByteCfg = 0x00003210, + .EmcSwizzleRank1Byte0 = 0x73451026, + .EmcSwizzleRank1Byte1 = 0x73025146, + .EmcSwizzleRank1Byte2 = 0x20641735, + .EmcSwizzleRank1Byte3 = 0x42136075, + .EmcDsrVttgenDrv = 0x0000003f, + .EmcTxdsrvttgen = 0x00000000, + .EmcBgbiasCtl0 = 0x00000000, + .McEmemAdrCfg = 0x00000001, + .McEmemAdrCfgDev0 = 0x00080304, + .McEmemAdrCfgDev1 = 0x00080304, + .McEmemAdrCfgBankMask0 = 0x00001248, + .McEmemAdrCfgBankMask1 = 0x00002490, + .McEmemAdrCfgBankMask2 = 0x00000920, + .McEmemAdrCfgBankSwizzle3 = 0x00000001, + .McEmemCfg = 0x00001000, + .McEmemArbCfg = 0x0f000007, + .McEmemArbOutstandingReq = 0x80000040, + .McEmemArbTimingRcd = 0x00000003, + .McEmemArbTimingRp = 0x00000004, + .McEmemArbTimingRc = 0x00000010, + .McEmemArbTimingRas = 0x0000000a, + .McEmemArbTimingFaw = 0x0000000d, + .McEmemArbTimingRrd = 0x00000002, + .McEmemArbTimingRap2Pre = 0x00000002, + .McEmemArbTimingWap2Pre = 0x00000009, + .McEmemArbTimingR2R = 0x00000003, + .McEmemArbTimingW2W = 0x00000001, + .McEmemArbTimingR2W = 0x00000006, + .McEmemArbTimingW2R = 0x00000006, + .McEmemArbDaTurns = 0x06060103, + .McEmemArbDaCovers = 0x00120b10, + .McEmemArbMisc0 = 0x71c81811, + .McEmemArbMisc1 = 0x70000f03, + .McEmemArbRing1Throttle = 0x001f0000, + .McEmemArbOverride = 0x10000000, + .McEmemArbOverride1 = 0x00000000, + .McEmemArbRsv = 0xff00ff00, + .McClkenOverride = 0x00000000, + .McStatControl = 0x00000000, + .McDisplaySnapRing = 0x00000003, + .McVideoProtectBom = 0xfff00000, + .McVideoProtectBomAdrHi = 0x00000000, + .McVideoProtectSizeMb = 0x00000000, + .McVideoProtectVprOverride = 0xe4bac743, + .McVideoProtectVprOverride1 = 0x00000013, + .McVideoProtectGpuOverride0 = 0x00000000, + .McVideoProtectGpuOverride1 = 0x00000000, + .McSecCarveoutBom = 0xfff00000, + .McSecCarveoutAdrHi = 0x00000000, + .McSecCarveoutSizeMb = 0x00000000, + .McVideoProtectWriteAccess = 0x00000000, + .McSecCarveoutProtectWriteAccess = 0x00000000, + .EmcCaTrainingEnable = 0x00000001, + .EmcCaTrainingTimingCntl1 = 0x09257359, + .EmcCaTrainingTimingCntl2 = 0x00000017, + .SwizzleRankByteEncode = 0x00000008, + .BootRomPatchControl = 0x00000000, + .BootRomPatchData = 0x00000000, + .McMtsCarveoutBom = 0x78000000, + .McMtsCarveoutAdrHi = 0x00000001, + .McMtsCarveoutSizeMb = 0x00000080, + .McMtsCarveoutRegCtrl = 0x00000001, +}, |