Path: blob/master/modules/hekate_libsys_lp0/sdram_lp0_param_t210.h
1476 views
/*1* Copyright (c) 2013-2015, NVIDIA CORPORATION. All rights reserved.2* Copyright 2014 Google Inc.3* Copyright (c) 2018 CTCaer4*5* This program is free software; you can redistribute it and/or modify it6* under the terms and conditions of the GNU General Public License,7* version 2, as published by the Free Software Foundation.8*9* This program is distributed in the hope it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for12* more details.13*/1415/**16* Defines the SDRAM parameter structure.17*18* Note that PLLM is used by EMC. The field names are in camel case to ease19* directly converting BCT config files (*.cfg) into C structure.20*/2122#ifndef __TEGRA210_SDRAM_PARAM_H__23#define __TEGRA210_SDRAM_PARAM_H__2425#include "types.h"2627enum28{29/* Specifies the memory type to be undefined */30NvBootMemoryType_None = 0,3132/* Specifies the memory type to be DDR SDRAM */33NvBootMemoryType_Ddr = 0,3435/* Specifies the memory type to be LPDDR SDRAM */36NvBootMemoryType_LpDdr = 0,3738/* Specifies the memory type to be DDR2 SDRAM */39NvBootMemoryType_Ddr2 = 0,4041/* Specifies the memory type to be LPDDR2 SDRAM */42NvBootMemoryType_LpDdr2,4344/* Specifies the memory type to be DDR3 SDRAM */45NvBootMemoryType_Ddr3,4647/* Specifies the memory type to be LPDDR4 SDRAM */48NvBootMemoryType_LpDdr4,4950NvBootMemoryType_Num,5152/* Specifies an entry in the ram_code table that's not in use */53NvBootMemoryType_Unused = 0X7FFFFFF,54};5556/**57* Defines the SDRAM parameter structure58*/59struct sdram_params_t21060{6162/* Specifies the type of memory device */63u32 MemoryType;6465/* MC/EMC clock source configuration */6667/* Specifies the M value for PllM */68u32 PllMInputDivider;69/* Specifies the N value for PllM */70u32 PllMFeedbackDivider;71/* Specifies the time to wait for PLLM to lock (in microseconds) */72u32 PllMStableTime;73/* Specifies misc. control bits */74u32 PllMSetupControl;75/* Specifies the P value for PLLM */76u32 PllMPostDivider;77/* Specifies value for Charge Pump Gain Control */78u32 PllMKCP;79/* Specifies VCO gain */80u32 PllMKVCO;81/* Spare BCT param */82u32 EmcBctSpare0;83/* Spare BCT param */84u32 EmcBctSpare1;85/* Spare BCT param */86u32 EmcBctSpare2;87/* Spare BCT param */88u32 EmcBctSpare3;89/* Spare BCT param */90u32 EmcBctSpare4;91/* Spare BCT param */92u32 EmcBctSpare5;93/* Spare BCT param */94u32 EmcBctSpare6;95/* Spare BCT param */96u32 EmcBctSpare7;97/* Spare BCT param */98u32 EmcBctSpare8;99/* Spare BCT param */100u32 EmcBctSpare9;101/* Spare BCT param */102u32 EmcBctSpare10;103/* Spare BCT param */104u32 EmcBctSpare11;105/* Spare BCT param */106u32 EmcBctSpare12;107/* Spare BCT param */108u32 EmcBctSpare13;109110/* Defines EMC_2X_CLK_SRC, EMC_2X_CLK_DIVISOR, EMC_INVERT_DCD */111u32 EmcClockSource;112u32 EmcClockSourceDll;113114/* Defines possible override for PLLLM_MISC2 */115u32 ClkRstControllerPllmMisc2Override;116/* enables override for PLLLM_MISC2 */117u32 ClkRstControllerPllmMisc2OverrideEnable;118/* defines CLK_ENB_MC1 in register clk_rst_controller_clk_enb_w_clr */119u32 ClearClk2Mc1;120121/* Auto-calibration of EMC pads */122123/* Specifies the value for EMC_AUTO_CAL_INTERVAL */124u32 EmcAutoCalInterval;125/*126* Specifies the value for EMC_AUTO_CAL_CONFIG127* Note: Trigger bits are set by the SDRAM code.128*/129u32 EmcAutoCalConfig;130131/* Specifies the value for EMC_AUTO_CAL_CONFIG2 */132u32 EmcAutoCalConfig2;133134/* Specifies the value for EMC_AUTO_CAL_CONFIG3 */135u32 EmcAutoCalConfig3;136137/* Specifies the values for EMC_AUTO_CAL_CONFIG4-8 */138u32 EmcAutoCalConfig4;139u32 EmcAutoCalConfig5;140u32 EmcAutoCalConfig6;141u32 EmcAutoCalConfig7;142u32 EmcAutoCalConfig8;143144/* Specifies the value for EMC_AUTO_CAL_VREF_SEL_0 */145u32 EmcAutoCalVrefSel0;146u32 EmcAutoCalVrefSel1;147148/* Specifies the value for EMC_AUTO_CAL_CHANNEL */149u32 EmcAutoCalChannel;150151/* Specifies the value for EMC_PMACRO_AUTOCAL_CFG_0 */152u32 EmcPmacroAutocalCfg0;153u32 EmcPmacroAutocalCfg1;154u32 EmcPmacroAutocalCfg2;155u32 EmcPmacroRxTerm;156u32 EmcPmacroDqTxDrv;157u32 EmcPmacroCaTxDrv;158u32 EmcPmacroCmdTxDrv;159u32 EmcPmacroAutocalCfgCommon;160u32 EmcPmacroZctrl;161162/*163* Specifies the time for the calibration164* to stabilize (in microseconds)165*/166u32 EmcAutoCalWait;167168u32 EmcXm2CompPadCtrl;169u32 EmcXm2CompPadCtrl2;170u32 EmcXm2CompPadCtrl3;171172/*173* DRAM size information174* Specifies the value for EMC_ADR_CFG175*/176u32 EmcAdrCfg;177178/*179* Specifies the time to wait after asserting pin180* CKE (in microseconds)181*/182u32 EmcPinProgramWait;183/* Specifies the extra delay before/after pin RESET/CKE command */184u32 EmcPinExtraWait;185186u32 EmcPinGpioEn;187u32 EmcPinGpio;188189/*190* Specifies the extra delay after the first writing191* of EMC_TIMING_CONTROL192*/193u32 EmcTimingControlWait;194195/* Timing parameters required for the SDRAM */196197/* Specifies the value for EMC_RC */198u32 EmcRc;199/* Specifies the value for EMC_RFC */200u32 EmcRfc;201/* Specifies the value for EMC_RFC_PB */202u32 EmcRfcPb;203/* Specifies the value for EMC_RFC_CTRL2 */204u32 EmcRefctrl2;205/* Specifies the value for EMC_RFC_SLR */206u32 EmcRfcSlr;207/* Specifies the value for EMC_RAS */208u32 EmcRas;209/* Specifies the value for EMC_RP */210u32 EmcRp;211/* Specifies the value for EMC_R2R */212u32 EmcR2r;213/* Specifies the value for EMC_W2W */214u32 EmcW2w;215/* Specifies the value for EMC_R2W */216u32 EmcR2w;217/* Specifies the value for EMC_W2R */218u32 EmcW2r;219/* Specifies the value for EMC_R2P */220u32 EmcR2p;221/* Specifies the value for EMC_W2P */222u32 EmcW2p;223224u32 EmcTppd;225u32 EmcCcdmw;226227/* Specifies the value for EMC_RD_RCD */228u32 EmcRdRcd;229/* Specifies the value for EMC_WR_RCD */230u32 EmcWrRcd;231/* Specifies the value for EMC_RRD */232u32 EmcRrd;233/* Specifies the value for EMC_REXT */234u32 EmcRext;235/* Specifies the value for EMC_WEXT */236u32 EmcWext;237/* Specifies the value for EMC_WDV */238u32 EmcWdv;239240u32 EmcWdvChk;241u32 EmcWsv;242u32 EmcWev;243244/* Specifies the value for EMC_WDV_MASK */245u32 EmcWdvMask;246247u32 EmcWsDuration;248u32 EmcWeDuration;249250/* Specifies the value for EMC_QUSE */251u32 EmcQUse;252/* Specifies the value for EMC_QUSE_WIDTH */253u32 EmcQuseWidth;254/* Specifies the value for EMC_IBDLY */255u32 EmcIbdly;256/* Specifies the value for EMC_OBDLY */257u32 EmcObdly;258/* Specifies the value for EMC_EINPUT */259u32 EmcEInput;260/* Specifies the value for EMC_EINPUT_DURATION */261u32 EmcEInputDuration;262/* Specifies the value for EMC_PUTERM_EXTRA */263u32 EmcPutermExtra;264/* Specifies the value for EMC_PUTERM_WIDTH */265u32 EmcPutermWidth;266/* Specifies the value for EMC_PUTERM_ADJ */267////u32 EmcPutermAdj;268269/* Specifies the value for EMC_QRST */270u32 EmcQRst;271/* Specifies the value for EMC_QSAFE */272u32 EmcQSafe;273/* Specifies the value for EMC_RDV */274u32 EmcRdv;275/* Specifies the value for EMC_RDV_MASK */276u32 EmcRdvMask;277/* Specifies the value for EMC_RDV_EARLY */278u32 EmcRdvEarly;279/* Specifies the value for EMC_RDV_EARLY_MASK */280u32 EmcRdvEarlyMask;281/* Specifies the value for EMC_QPOP */282u32 EmcQpop;283284/* Specifies the value for EMC_REFRESH */285u32 EmcRefresh;286/* Specifies the value for EMC_BURST_REFRESH_NUM */287u32 EmcBurstRefreshNum;288/* Specifies the value for EMC_PRE_REFRESH_REQ_CNT */289u32 EmcPreRefreshReqCnt;290/* Specifies the value for EMC_PDEX2WR */291u32 EmcPdEx2Wr;292/* Specifies the value for EMC_PDEX2RD */293u32 EmcPdEx2Rd;294/* Specifies the value for EMC_PCHG2PDEN */295u32 EmcPChg2Pden;296/* Specifies the value for EMC_ACT2PDEN */297u32 EmcAct2Pden;298/* Specifies the value for EMC_AR2PDEN */299u32 EmcAr2Pden;300/* Specifies the value for EMC_RW2PDEN */301u32 EmcRw2Pden;302/* Specifies the value for EMC_CKE2PDEN */303u32 EmcCke2Pden;304/* Specifies the value for EMC_PDEX2CKE */305u32 EmcPdex2Cke;306/* Specifies the value for EMC_PDEX2MRR */307u32 EmcPdex2Mrr;308/* Specifies the value for EMC_TXSR */309u32 EmcTxsr;310/* Specifies the value for EMC_TXSRDLL */311u32 EmcTxsrDll;312/* Specifies the value for EMC_TCKE */313u32 EmcTcke;314/* Specifies the value for EMC_TCKESR */315u32 EmcTckesr;316/* Specifies the value for EMC_TPD */317u32 EmcTpd;318/* Specifies the value for EMC_TFAW */319u32 EmcTfaw;320/* Specifies the value for EMC_TRPAB */321u32 EmcTrpab;322/* Specifies the value for EMC_TCLKSTABLE */323u32 EmcTClkStable;324/* Specifies the value for EMC_TCLKSTOP */325u32 EmcTClkStop;326/* Specifies the value for EMC_TREFBW */327u32 EmcTRefBw;328329/* FBIO configuration values */330331/* Specifies the value for EMC_FBIO_CFG5 */332u32 EmcFbioCfg5;333/* Specifies the value for EMC_FBIO_CFG7 */334u32 EmcFbioCfg7;335/* Specifies the value for EMC_FBIO_CFG8 */336u32 EmcFbioCfg8;337338/* Command mapping for CMD brick 0 */339u32 EmcCmdMappingCmd0_0;340u32 EmcCmdMappingCmd0_1;341u32 EmcCmdMappingCmd0_2;342u32 EmcCmdMappingCmd1_0;343u32 EmcCmdMappingCmd1_1;344u32 EmcCmdMappingCmd1_2;345u32 EmcCmdMappingCmd2_0;346u32 EmcCmdMappingCmd2_1;347u32 EmcCmdMappingCmd2_2;348u32 EmcCmdMappingCmd3_0;349u32 EmcCmdMappingCmd3_1;350u32 EmcCmdMappingCmd3_2;351u32 EmcCmdMappingByte;352353/* Specifies the value for EMC_FBIO_SPARE */354u32 EmcFbioSpare;355356/* Specifies the value for EMC_CFG_RSV */357u32 EmcCfgRsv;358359/* MRS command values */360361/* Specifies the value for EMC_MRS */362u32 EmcMrs;363/* Specifies the MP0 command to initialize mode registers */364u32 EmcEmrs;365/* Specifies the MP2 command to initialize mode registers */366u32 EmcEmrs2;367/* Specifies the MP3 command to initialize mode registers */368u32 EmcEmrs3;369/* Specifies the programming to LPDDR2 Mode Register 1 at cold boot */370u32 EmcMrw1;371/* Specifies the programming to LPDDR2 Mode Register 2 at cold boot */372u32 EmcMrw2;373/* Specifies the programming to LPDDR2 Mode Register 3 at cold boot */374u32 EmcMrw3;375/* Specifies the programming to LPDDR2 Mode Register 11 at cold boot */376u32 EmcMrw4;377/* Specifies the programming to LPDDR2 Mode Register 3? at cold boot */378u32 EmcMrw6;379/* Specifies the programming to LPDDR2 Mode Register 11 at cold boot */380u32 EmcMrw8;381/* Specifies the programming to LPDDR2 Mode Register 11? at cold boot */382u32 EmcMrw9;383/* Specifies the programming to LPDDR2 Mode Register 12 at cold boot */384u32 EmcMrw10;385/* Specifies the programming to LPDDR2 Mode Register 14 at cold boot */386u32 EmcMrw12;387/* Specifies the programming to LPDDR2 Mode Register 14? at cold boot */388u32 EmcMrw13;389/* Specifies the programming to LPDDR2 Mode Register 22 at cold boot */390u32 EmcMrw14;391/*392* Specifies the programming to extra LPDDR2 Mode Register393* at cold boot394*/395u32 EmcMrwExtra;396/*397* Specifies the programming to extra LPDDR2 Mode Register398* at warm boot399*/400u32 EmcWarmBootMrwExtra;401/*402* Specify the enable of extra Mode Register programming at403* warm boot404*/405u32 EmcWarmBootExtraModeRegWriteEnable;406/*407* Specify the enable of extra Mode Register programming at408* cold boot409*/410u32 EmcExtraModeRegWriteEnable;411412/* Specifies the EMC_MRW reset command value */413u32 EmcMrwResetCommand;414/* Specifies the EMC Reset wait time (in microseconds) */415u32 EmcMrwResetNInitWait;416/* Specifies the value for EMC_MRS_WAIT_CNT */417u32 EmcMrsWaitCnt;418/* Specifies the value for EMC_MRS_WAIT_CNT2 */419u32 EmcMrsWaitCnt2;420421/* EMC miscellaneous configurations */422423/* Specifies the value for EMC_CFG */424u32 EmcCfg;425/* Specifies the value for EMC_CFG_2 */426u32 EmcCfg2;427/* Specifies the pipe bypass controls */428u32 EmcCfgPipe;429u32 EmcCfgPipeClk;430u32 EmcFdpdCtrlCmdNoRamp;431u32 EmcCfgUpdate;432433/* Specifies the value for EMC_DBG */434u32 EmcDbg;435u32 EmcDbgWriteMux;436437/* Specifies the value for EMC_CMDQ */438u32 EmcCmdQ;439/* Specifies the value for EMC_MC2EMCQ */440u32 EmcMc2EmcQ;441/* Specifies the value for EMC_DYN_SELF_REF_CONTROL */442u32 EmcDynSelfRefControl;443444/* Specifies the value for MEM_INIT_DONE */445u32 AhbArbitrationXbarCtrlMemInitDone;446447/* Specifies the value for EMC_CFG_DIG_DLL */448u32 EmcCfgDigDll;449u32 EmcCfgDigDll_1;450/* Specifies the value for EMC_CFG_DIG_DLL_PERIOD */451u32 EmcCfgDigDllPeriod;452/* Specifies the value of *DEV_SELECTN of various EMC registers */453u32 EmcDevSelect;454455/* Specifies the value for EMC_SEL_DPD_CTRL */456u32 EmcSelDpdCtrl;457458/* Pads trimmer delays */459u32 EmcFdpdCtrlDq;460u32 EmcFdpdCtrlCmd;461u32 EmcPmacroIbVrefDq_0;462u32 EmcPmacroIbVrefDq_1;463u32 EmcPmacroIbVrefDqs_0;464u32 EmcPmacroIbVrefDqs_1;465u32 EmcPmacroIbRxrt;466u32 EmcCfgPipe1;467u32 EmcCfgPipe2;468469/* Specifies the value for EMC_PMACRO_QUSE_DDLL_RANK0_0 */470u32 EmcPmacroQuseDdllRank0_0;471u32 EmcPmacroQuseDdllRank0_1;472u32 EmcPmacroQuseDdllRank0_2;473u32 EmcPmacroQuseDdllRank0_3;474u32 EmcPmacroQuseDdllRank0_4;475u32 EmcPmacroQuseDdllRank0_5;476u32 EmcPmacroQuseDdllRank1_0;477u32 EmcPmacroQuseDdllRank1_1;478u32 EmcPmacroQuseDdllRank1_2;479u32 EmcPmacroQuseDdllRank1_3;480u32 EmcPmacroQuseDdllRank1_4;481u32 EmcPmacroQuseDdllRank1_5;482483u32 EmcPmacroObDdllLongDqRank0_0;484u32 EmcPmacroObDdllLongDqRank0_1;485u32 EmcPmacroObDdllLongDqRank0_2;486u32 EmcPmacroObDdllLongDqRank0_3;487u32 EmcPmacroObDdllLongDqRank0_4;488u32 EmcPmacroObDdllLongDqRank0_5;489u32 EmcPmacroObDdllLongDqRank1_0;490u32 EmcPmacroObDdllLongDqRank1_1;491u32 EmcPmacroObDdllLongDqRank1_2;492u32 EmcPmacroObDdllLongDqRank1_3;493u32 EmcPmacroObDdllLongDqRank1_4;494u32 EmcPmacroObDdllLongDqRank1_5;495496u32 EmcPmacroObDdllLongDqsRank0_0;497u32 EmcPmacroObDdllLongDqsRank0_1;498u32 EmcPmacroObDdllLongDqsRank0_2;499u32 EmcPmacroObDdllLongDqsRank0_3;500u32 EmcPmacroObDdllLongDqsRank0_4;501u32 EmcPmacroObDdllLongDqsRank0_5;502u32 EmcPmacroObDdllLongDqsRank1_0;503u32 EmcPmacroObDdllLongDqsRank1_1;504u32 EmcPmacroObDdllLongDqsRank1_2;505u32 EmcPmacroObDdllLongDqsRank1_3;506u32 EmcPmacroObDdllLongDqsRank1_4;507u32 EmcPmacroObDdllLongDqsRank1_5;508509u32 EmcPmacroIbDdllLongDqsRank0_0;510u32 EmcPmacroIbDdllLongDqsRank0_1;511u32 EmcPmacroIbDdllLongDqsRank0_2;512u32 EmcPmacroIbDdllLongDqsRank0_3;513u32 EmcPmacroIbDdllLongDqsRank1_0;514u32 EmcPmacroIbDdllLongDqsRank1_1;515u32 EmcPmacroIbDdllLongDqsRank1_2;516u32 EmcPmacroIbDdllLongDqsRank1_3;517518u32 EmcPmacroDdllLongCmd_0;519u32 EmcPmacroDdllLongCmd_1;520u32 EmcPmacroDdllLongCmd_2;521u32 EmcPmacroDdllLongCmd_3;522u32 EmcPmacroDdllLongCmd_4;523u32 EmcPmacroDdllShortCmd_0;524u32 EmcPmacroDdllShortCmd_1;525u32 EmcPmacroDdllShortCmd_2;526527/*528* Specifies the delay after asserting CKE pin during a WarmBoot0529* sequence (in microseconds)530*/531u32 WarmBootWait;532533/* Specifies the value for EMC_ODT_WRITE */534u32 EmcOdtWrite;535536/* Periodic ZQ calibration */537538/*539* Specifies the value for EMC_ZCAL_INTERVAL540* Value 0 disables ZQ calibration541*/542u32 EmcZcalInterval;543/* Specifies the value for EMC_ZCAL_WAIT_CNT */544u32 EmcZcalWaitCnt;545/* Specifies the value for EMC_ZCAL_MRW_CMD */546u32 EmcZcalMrwCmd;547548/* DRAM initialization sequence flow control */549550/* Specifies the MRS command value for resetting DLL */551u32 EmcMrsResetDll;552/* Specifies the command for ZQ initialization of device 0 */553u32 EmcZcalInitDev0;554/* Specifies the command for ZQ initialization of device 1 */555u32 EmcZcalInitDev1;556/*557* Specifies the wait time after programming a ZQ initialization558* command (in microseconds)559*/560u32 EmcZcalInitWait;561/*562* Specifies the enable for ZQ calibration at cold boot [bit 0]563* and warm boot [bit 1]564*/565u32 EmcZcalWarmColdBootEnables;566567/*568* Specifies the MRW command to LPDDR2 for ZQ calibration569* on warmboot570*/571/* Is issued to both devices separately */572u32 EmcMrwLpddr2ZcalWarmBoot;573/*574* Specifies the ZQ command to DDR3 for ZQ calibration on warmboot575* Is issued to both devices separately576*/577u32 EmcZqCalDdr3WarmBoot;578u32 EmcZqCalLpDdr4WarmBoot;579/*580* Specifies the wait time for ZQ calibration on warmboot581* (in microseconds)582*/583u32 EmcZcalWarmBootWait;584/*585* Specifies the enable for DRAM Mode Register programming586* at warm boot587*/588u32 EmcMrsWarmBootEnable;589/*590* Specifies the wait time after sending an MRS DLL reset command591* in microseconds)592*/593u32 EmcMrsResetDllWait;594/* Specifies the extra MRS command to initialize mode registers */595u32 EmcMrsExtra;596/* Specifies the extra MRS command at warm boot */597u32 EmcWarmBootMrsExtra;598/* Specifies the EMRS command to enable the DDR2 DLL */599u32 EmcEmrsDdr2DllEnable;600/* Specifies the MRS command to reset the DDR2 DLL */601u32 EmcMrsDdr2DllReset;602/* Specifies the EMRS command to set OCD calibration */603u32 EmcEmrsDdr2OcdCalib;604/*605* Specifies the wait between initializing DDR and setting OCD606* calibration (in microseconds)607*/608u32 EmcDdr2Wait;609/* Specifies the value for EMC_CLKEN_OVERRIDE */610u32 EmcClkenOverride;611612/*613* Specifies LOG2 of the extra refresh numbers after booting614* Program 0 to disable615*/616u32 EmcExtraRefreshNum;617/* Specifies the master override for all EMC clocks */618u32 EmcClkenOverrideAllWarmBoot;619/* Specifies the master override for all MC clocks */620u32 McClkenOverrideAllWarmBoot;621/* Specifies digital dll period, choosing between 4 to 64 ms */622u32 EmcCfgDigDllPeriodWarmBoot;623624/* Pad controls */625626/* Specifies the value for PMC_VDDP_SEL */627u32 PmcVddpSel;628/* Specifies the wait time after programming PMC_VDDP_SEL */629u32 PmcVddpSelWait;630/* Specifies the value for PMC_DDR_PWR */631u32 PmcDdrPwr;632/* Specifies the value for PMC_DDR_CFG */633u32 PmcDdrCfg;634/* Specifies the value for PMC_IO_DPD3_REQ */635u32 PmcIoDpd3Req;636/* Specifies the wait time after programming PMC_IO_DPD3_REQ */637u32 PmcIoDpd3ReqWait;638u32 PmcIoDpd4ReqWait;639640/* Specifies the value for PMC_REG_SHORT */641u32 PmcRegShort;642/* Specifies the value for PMC_NO_IOPOWER */643u32 PmcNoIoPower;644645u32 PmcDdrCntrlWait;646u32 PmcDdrCntrl;647648/* Specifies the value for EMC_ACPD_CONTROL */649u32 EmcAcpdControl;650651/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE_CFG */652////u32 EmcSwizzleRank0ByteCfg;653/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE0 */654u32 EmcSwizzleRank0Byte0;655/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE1 */656u32 EmcSwizzleRank0Byte1;657/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE2 */658u32 EmcSwizzleRank0Byte2;659/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE3 */660u32 EmcSwizzleRank0Byte3;661/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE_CFG */662////u32 EmcSwizzleRank1ByteCfg;663/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE0 */664u32 EmcSwizzleRank1Byte0;665/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE1 */666u32 EmcSwizzleRank1Byte1;667/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE2 */668u32 EmcSwizzleRank1Byte2;669/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE3 */670u32 EmcSwizzleRank1Byte3;671672/* Specifies the value for EMC_TXDSRVTTGEN */673u32 EmcTxdsrvttgen;674675/* Specifies the value for EMC_DATA_BRLSHFT_0 */676u32 EmcDataBrlshft0;677u32 EmcDataBrlshft1;678679u32 EmcDqsBrlshft0;680u32 EmcDqsBrlshft1;681682u32 EmcCmdBrlshft0;683u32 EmcCmdBrlshft1;684u32 EmcCmdBrlshft2;685u32 EmcCmdBrlshft3;686687u32 EmcQuseBrlshft0;688u32 EmcQuseBrlshft1;689u32 EmcQuseBrlshft2;690u32 EmcQuseBrlshft3;691692u32 EmcDllCfg0;693u32 EmcDllCfg1;694695u32 EmcPmcScratch1;696u32 EmcPmcScratch2;697u32 EmcPmcScratch3;698699u32 EmcPmacroPadCfgCtrl;700701u32 EmcPmacroVttgenCtrl0;702u32 EmcPmacroVttgenCtrl1;703u32 EmcPmacroVttgenCtrl2;704705u32 EmcPmacroBrickCtrlRfu1;706u32 EmcPmacroCmdBrickCtrlFdpd;707u32 EmcPmacroBrickCtrlRfu2;708u32 EmcPmacroDataBrickCtrlFdpd;709u32 EmcPmacroBgBiasCtrl0;710u32 EmcPmacroDataPadRxCtrl;711u32 EmcPmacroCmdPadRxCtrl;712u32 EmcPmacroDataRxTermMode;713u32 EmcPmacroCmdRxTermMode;714u32 EmcPmacroDataPadTxCtrl;715u32 EmcPmacroCommonPadTxCtrl;716u32 EmcPmacroCmdPadTxCtrl;717u32 EmcCfg3;718719u32 EmcPmacroTxPwrd0;720u32 EmcPmacroTxPwrd1;721u32 EmcPmacroTxPwrd2;722u32 EmcPmacroTxPwrd3;723u32 EmcPmacroTxPwrd4;724u32 EmcPmacroTxPwrd5;725726u32 EmcConfigSampleDelay;727728u32 EmcPmacroBrickMapping0;729u32 EmcPmacroBrickMapping1;730u32 EmcPmacroBrickMapping2;731732u32 EmcPmacroTxSelClkSrc0;733u32 EmcPmacroTxSelClkSrc1;734u32 EmcPmacroTxSelClkSrc2;735u32 EmcPmacroTxSelClkSrc3;736u32 EmcPmacroTxSelClkSrc4;737u32 EmcPmacroTxSelClkSrc5;738739u32 EmcPmacroDdllBypass;740741u32 EmcPmacroDdllPwrd0;742u32 EmcPmacroDdllPwrd1;743u32 EmcPmacroDdllPwrd2;744745u32 EmcPmacroCmdCtrl0;746u32 EmcPmacroCmdCtrl1;747u32 EmcPmacroCmdCtrl2;748749/* DRAM size information */750751/* Specifies the value for MC_EMEM_ADR_CFG */752u32 McEmemAdrCfg;753/* Specifies the value for MC_EMEM_ADR_CFG_DEV0 */754u32 McEmemAdrCfgDev0;755/* Specifies the value for MC_EMEM_ADR_CFG_DEV1 */756u32 McEmemAdrCfgDev1;757u32 McEmemAdrCfgChannelMask;758759/* Specifies the value for MC_EMEM_BANK_SWIZZLECfg0 */760u32 McEmemAdrCfgBankMask0;761/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG1 */762u32 McEmemAdrCfgBankMask1;763/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG2 */764u32 McEmemAdrCfgBankMask2;765766/*767* Specifies the value for MC_EMEM_CFG which holds the external memory768* size (in KBytes)769*/770u32 McEmemCfg;771772/* MC arbitration configuration */773774/* Specifies the value for MC_EMEM_ARB_CFG */775u32 McEmemArbCfg;776/* Specifies the value for MC_EMEM_ARB_OUTSTANDING_REQ */777u32 McEmemArbOutstandingReq;778779u32 McEmemArbRefpbHpCtrl;780u32 McEmemArbRefpbBankCtrl;781782/* Specifies the value for MC_EMEM_ARB_TIMING_RCD */783u32 McEmemArbTimingRcd;784/* Specifies the value for MC_EMEM_ARB_TIMING_RP */785u32 McEmemArbTimingRp;786/* Specifies the value for MC_EMEM_ARB_TIMING_RC */787u32 McEmemArbTimingRc;788/* Specifies the value for MC_EMEM_ARB_TIMING_RAS */789u32 McEmemArbTimingRas;790/* Specifies the value for MC_EMEM_ARB_TIMING_FAW */791u32 McEmemArbTimingFaw;792/* Specifies the value for MC_EMEM_ARB_TIMING_RRD */793u32 McEmemArbTimingRrd;794/* Specifies the value for MC_EMEM_ARB_TIMING_RAP2PRE */795u32 McEmemArbTimingRap2Pre;796/* Specifies the value for MC_EMEM_ARB_TIMING_WAP2PRE */797u32 McEmemArbTimingWap2Pre;798/* Specifies the value for MC_EMEM_ARB_TIMING_R2R */799u32 McEmemArbTimingR2R;800/* Specifies the value for MC_EMEM_ARB_TIMING_W2W */801u32 McEmemArbTimingW2W;802/* Specifies the value for MC_EMEM_ARB_TIMING_R2W */803u32 McEmemArbTimingR2W;804/* Specifies the value for MC_EMEM_ARB_TIMING_W2R */805u32 McEmemArbTimingW2R;806807u32 McEmemArbTimingRFCPB;808809/* Specifies the value for MC_EMEM_ARB_DA_TURNS */810u32 McEmemArbDaTurns;811/* Specifies the value for MC_EMEM_ARB_DA_COVERS */812u32 McEmemArbDaCovers;813/* Specifies the value for MC_EMEM_ARB_MISC0 */814u32 McEmemArbMisc0;815/* Specifies the value for MC_EMEM_ARB_MISC1 */816u32 McEmemArbMisc1;817u32 McEmemArbMisc2;818819/* Specifies the value for MC_EMEM_ARB_RING1_THROTTLE */820u32 McEmemArbRing1Throttle;821/* Specifies the value for MC_EMEM_ARB_OVERRIDE */822u32 McEmemArbOverride;823/* Specifies the value for MC_EMEM_ARB_OVERRIDE_1 */824u32 McEmemArbOverride1;825/* Specifies the value for MC_EMEM_ARB_RSV */826u32 McEmemArbRsv;827828u32 McDaCfg0;829u32 McEmemArbTimingCcdmw;830831/* Specifies the value for MC_CLKEN_OVERRIDE */832u32 McClkenOverride;833834/* Specifies the value for MC_STAT_CONTROL */835u32 McStatControl;836837/* Specifies the value for MC_VIDEO_PROTECT_BOM */838u32 McVideoProtectBom;839/* Specifies the value for MC_VIDEO_PROTECT_BOM_ADR_HI */840u32 McVideoProtectBomAdrHi;841/* Specifies the value for MC_VIDEO_PROTECT_SIZE_MB */842u32 McVideoProtectSizeMb;843/* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE */844u32 McVideoProtectVprOverride;845/* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE1 */846u32 McVideoProtectVprOverride1;847/* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_0 */848u32 McVideoProtectGpuOverride0;849/* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_1 */850u32 McVideoProtectGpuOverride1;851/* Specifies the value for MC_SEC_CARVEOUT_BOM */852u32 McSecCarveoutBom;853/* Specifies the value for MC_SEC_CARVEOUT_ADR_HI */854u32 McSecCarveoutAdrHi;855/* Specifies the value for MC_SEC_CARVEOUT_SIZE_MB */856u32 McSecCarveoutSizeMb;857/* Specifies the value for MC_VIDEO_PROTECT_REG_CTRL.858VIDEO_PROTECT_WRITEAccess */859u32 McVideoProtectWriteAccess;860/* Specifies the value for MC_SEC_CARVEOUT_REG_CTRL.861SEC_CARVEOUT_WRITEAccess */862u32 McSecCarveoutProtectWriteAccess;863864/* Write-Protect Regions (WPR) */865u32 McGeneralizedCarveout1Bom;866u32 McGeneralizedCarveout1BomHi;867u32 McGeneralizedCarveout1Size128kb;868u32 McGeneralizedCarveout1Access0;869u32 McGeneralizedCarveout1Access1;870u32 McGeneralizedCarveout1Access2;871u32 McGeneralizedCarveout1Access3;872u32 McGeneralizedCarveout1Access4;873u32 McGeneralizedCarveout1ForceInternalAccess0;874u32 McGeneralizedCarveout1ForceInternalAccess1;875u32 McGeneralizedCarveout1ForceInternalAccess2;876u32 McGeneralizedCarveout1ForceInternalAccess3;877u32 McGeneralizedCarveout1ForceInternalAccess4;878u32 McGeneralizedCarveout1Cfg0;879880u32 McGeneralizedCarveout2Bom;881u32 McGeneralizedCarveout2BomHi;882u32 McGeneralizedCarveout2Size128kb;883u32 McGeneralizedCarveout2Access0;884u32 McGeneralizedCarveout2Access1;885u32 McGeneralizedCarveout2Access2;886u32 McGeneralizedCarveout2Access3;887u32 McGeneralizedCarveout2Access4;888u32 McGeneralizedCarveout2ForceInternalAccess0;889u32 McGeneralizedCarveout2ForceInternalAccess1;890u32 McGeneralizedCarveout2ForceInternalAccess2;891u32 McGeneralizedCarveout2ForceInternalAccess3;892u32 McGeneralizedCarveout2ForceInternalAccess4;893u32 McGeneralizedCarveout2Cfg0;894895u32 McGeneralizedCarveout3Bom;896u32 McGeneralizedCarveout3BomHi;897u32 McGeneralizedCarveout3Size128kb;898u32 McGeneralizedCarveout3Access0;899u32 McGeneralizedCarveout3Access1;900u32 McGeneralizedCarveout3Access2;901u32 McGeneralizedCarveout3Access3;902u32 McGeneralizedCarveout3Access4;903u32 McGeneralizedCarveout3ForceInternalAccess0;904u32 McGeneralizedCarveout3ForceInternalAccess1;905u32 McGeneralizedCarveout3ForceInternalAccess2;906u32 McGeneralizedCarveout3ForceInternalAccess3;907u32 McGeneralizedCarveout3ForceInternalAccess4;908u32 McGeneralizedCarveout3Cfg0;909910u32 McGeneralizedCarveout4Bom;911u32 McGeneralizedCarveout4BomHi;912u32 McGeneralizedCarveout4Size128kb;913u32 McGeneralizedCarveout4Access0;914u32 McGeneralizedCarveout4Access1;915u32 McGeneralizedCarveout4Access2;916u32 McGeneralizedCarveout4Access3;917u32 McGeneralizedCarveout4Access4;918u32 McGeneralizedCarveout4ForceInternalAccess0;919u32 McGeneralizedCarveout4ForceInternalAccess1;920u32 McGeneralizedCarveout4ForceInternalAccess2;921u32 McGeneralizedCarveout4ForceInternalAccess3;922u32 McGeneralizedCarveout4ForceInternalAccess4;923u32 McGeneralizedCarveout4Cfg0;924925u32 McGeneralizedCarveout5Bom;926u32 McGeneralizedCarveout5BomHi;927u32 McGeneralizedCarveout5Size128kb;928u32 McGeneralizedCarveout5Access0;929u32 McGeneralizedCarveout5Access1;930u32 McGeneralizedCarveout5Access2;931u32 McGeneralizedCarveout5Access3;932u32 McGeneralizedCarveout5Access4;933u32 McGeneralizedCarveout5ForceInternalAccess0;934u32 McGeneralizedCarveout5ForceInternalAccess1;935u32 McGeneralizedCarveout5ForceInternalAccess2;936u32 McGeneralizedCarveout5ForceInternalAccess3;937u32 McGeneralizedCarveout5ForceInternalAccess4;938u32 McGeneralizedCarveout5Cfg0;939940/* Specifies enable for CA training */941u32 EmcCaTrainingEnable;942943/* Set if bit 6 select is greater than bit 7 select; uses aremc.944spec packet SWIZZLE_BIT6_GT_BIT7 */945u32 SwizzleRankByteEncode;946/* Specifies enable and offset for patched boot ROM write */947u32 BootRomPatchControl;948/* Specifies data for patched boot ROM write */949u32 BootRomPatchData;950951/* Specifies the value for MC_MTS_CARVEOUT_BOM */952u32 McMtsCarveoutBom;953/* Specifies the value for MC_MTS_CARVEOUT_ADR_HI */954u32 McMtsCarveoutAdrHi;955/* Specifies the value for MC_MTS_CARVEOUT_SIZE_MB */956u32 McMtsCarveoutSizeMb;957/* Specifies the value for MC_MTS_CARVEOUT_REG_CTRL */958u32 McMtsCarveoutRegCtrl;959960/* End */961};962963#endif /* __SOC_NVIDIA_TEGRA210_SDRAM_PARAM_H__ */964965966