/*1* Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.2*3* This program is free software; you can redistribute it and/or modify it4* under the terms and conditions of the GNU General Public License,5* version 2, as published by the Free Software Foundation.6*7* This program is distributed in the hope it will be useful, but WITHOUT8* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or9* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for10* more details.11*12* You should have received a copy of the GNU General Public License13* along with this program. If not, see <http://www.gnu.org/licenses/>.14*15* See file CREDITS for list of people who contributed to this16* project.17*/1819/**20* Defines the SDRAM parameter structure.21*22* Note that PLLM is used by EMC.23*/2425#ifndef _SDRAM_PARAM_T210_H_26#define _SDRAM_PARAM_T210_H_2728#define MEMORY_TYPE_NONE 029#define MEMORY_TYPE_DDR 030#define MEMORY_TYPE_LPDDR 031#define MEMORY_TYPE_DDR2 032#define MEMORY_TYPE_LPDDR2 133#define MEMORY_TYPE_DDR3L 234#define MEMORY_TYPE_LPDDR4 33536/**37* Defines the SDRAM parameter structure38*/39typedef struct _sdram_params_t210_t40{41/* Specifies the type of memory device */42u32 memory_type;4344/* MC/EMC clock source configuration */4546/* Specifies the M value for PllM */47u32 pllm_input_divider;48/* Specifies the N value for PllM */49u32 pllm_feedback_divider;50/* Specifies the time to wait for PLLM to lock (in microseconds) */51u32 pllm_stable_time;52/* Specifies misc. control bits */53u32 pllm_setup_control;54/* Specifies the P value for PLLM */55u32 pllm_post_divider;56/* Specifies value for Charge Pump Gain Control */57u32 pllm_kcp;58/* Specifies VCO gain */59u32 pllm_kvco;60/* Spare BCT param */61u32 emc_bct_spare0;62/* Spare BCT param */63u32 emc_bct_spare1;64/* Spare BCT param */65u32 emc_bct_spare2;66/* Spare BCT param */67u32 emc_bct_spare3;68/* Spare BCT param */69u32 emc_bct_spare4;70/* Spare BCT param */71u32 emc_bct_spare5;72/* Spare BCT param */73u32 emc_bct_spare6;74/* Spare BCT param */75u32 emc_bct_spare7;76/* Spare BCT param */77u32 emc_bct_spare8;78/* Spare BCT param */79u32 emc_bct_spare9;80/* Spare BCT param */81u32 emc_bct_spare10;82/* Spare BCT param */83u32 emc_bct_spare11;84/* Spare BCT param */85u32 emc_bct_spare12;86/* Spare BCT param */87u32 emc_bct_spare13;8889/* Defines EMC_2X_CLK_SRC, EMC_2X_CLK_DIVISOR, EMC_INVERT_DCD */90u32 emc_clock_source;91u32 emc_clock_source_dll;9293/* Defines possible override for PLLLM_MISC2 */94u32 clk_rst_pllm_misc20_override;95/* enables override for PLLLM_MISC2 */96u32 clk_rst_pllm_misc20_override_enable;97/* defines CLK_ENB_MC1 in register clk_rst_controller_clk_enb_w_clr */98u32 clear_clock2_mc1;99100/* Auto-calibration of EMC pads */101102/* Specifies the value for EMC_AUTO_CAL_INTERVAL */103u32 emc_auto_cal_interval;104/*105* Specifies the value for EMC_AUTO_CAL_CONFIG106* Note: Trigger bits are set by the SDRAM code.107*/108u32 emc_auto_cal_config;109110/* Specifies the value for EMC_AUTO_CAL_CONFIG2 */111u32 emc_auto_cal_config2;112113/* Specifies the value for EMC_AUTO_CAL_CONFIG3 */114u32 emc_auto_cal_config3;115u32 emc_auto_cal_config4;116u32 emc_auto_cal_config5;117u32 emc_auto_cal_config6;118u32 emc_auto_cal_config7;119u32 emc_auto_cal_config8;120/* Specifies the value for EMC_AUTO_CAL_VREF_SEL_0 */121u32 emc_auto_cal_vref_sel0;122u32 emc_auto_cal_vref_sel1;123124/* Specifies the value for EMC_AUTO_CAL_CHANNEL */125u32 emc_auto_cal_channel;126127/* Specifies the value for EMC_PMACRO_AUTOCAL_CFG_0 */128u32 emc_pmacro_auto_cal_cfg0;129u32 emc_pmacro_auto_cal_cfg1;130u32 emc_pmacro_auto_cal_cfg2;131132u32 emc_pmacro_rx_term;133u32 emc_pmacro_dq_tx_drive;134u32 emc_pmacro_ca_tx_drive;135u32 emc_pmacro_cmd_tx_drive;136u32 emc_pmacro_auto_cal_common;137u32 emc_pmacro_zcrtl;138139/*140* Specifies the time for the calibration141* to stabilize (in microseconds)142*/143u32 emc_auto_cal_wait;144145u32 emc_xm2_comp_pad_ctrl;146u32 emc_xm2_comp_pad_ctrl2;147u32 emc_xm2_comp_pad_ctrl3;148149/*150* DRAM size information151* Specifies the value for EMC_ADR_CFG152*/153u32 emc_adr_cfg;154155/*156* Specifies the time to wait after asserting pin157* CKE (in microseconds)158*/159u32 emc_pin_program_wait;160/* Specifies the extra delay before/after pin RESET/CKE command */161u32 emc_pin_extra_wait;162163u32 emc_pin_gpio_enable;164u32 emc_pin_gpio;165166/*167* Specifies the extra delay after the first writing168* of EMC_TIMING_CONTROL169*/170u32 emc_timing_control_wait;171172/* Timing parameters required for the SDRAM */173174/* Specifies the value for EMC_RC */175u32 emc_rc;176/* Specifies the value for EMC_RFC */177u32 emc_rfc;178179u32 emc_rfc_pb;180u32 emc_ref_ctrl2;181182/* Specifies the value for EMC_RFC_SLR */183u32 emc_rfc_slr;184/* Specifies the value for EMC_RAS */185u32 emc_ras;186/* Specifies the value for EMC_RP */187u32 emc_rp;188/* Specifies the value for EMC_R2R */189u32 emc_r2r;190/* Specifies the value for EMC_W2W */191u32 emc_w2w;192/* Specifies the value for EMC_R2W */193u32 emc_r2w;194/* Specifies the value for EMC_W2R */195u32 emc_w2r;196/* Specifies the value for EMC_R2P */197u32 emc_r2p;198/* Specifies the value for EMC_W2P */199u32 emc_w2p;200/* Specifies the value for EMC_RD_RCD */201202u32 emc_tppd;203u32 emc_ccdmw;204205u32 emc_rd_rcd;206/* Specifies the value for EMC_WR_RCD */207u32 emc_wr_rcd;208/* Specifies the value for EMC_RRD */209u32 emc_rrd;210/* Specifies the value for EMC_REXT */211u32 emc_rext;212/* Specifies the value for EMC_WEXT */213u32 emc_wext;214/* Specifies the value for EMC_WDV */215u32 emc_wdv;216217u32 emc_wdv_chk;218u32 emc_wsv;219u32 emc_wev;220221/* Specifies the value for EMC_WDV_MASK */222u32 emc_wdv_mask;223224u32 emc_ws_duration;225u32 emc_we_duration;226227/* Specifies the value for EMC_QUSE */228u32 emc_quse;229/* Specifies the value for EMC_QUSE_WIDTH */230u32 emc_quse_width;231/* Specifies the value for EMC_IBDLY */232u32 emc_ibdly;233234u32 emc_obdly;235236/* Specifies the value for EMC_EINPUT */237u32 emc_einput;238/* Specifies the value for EMC_EINPUT_DURATION */239u32 emc_einput_duration;240/* Specifies the value for EMC_PUTERM_EXTRA */241u32 emc_puterm_extra;242/* Specifies the value for EMC_PUTERM_WIDTH */243u32 emc_puterm_width;244245u32 emc_qrst;246u32 emc_qsafe;247u32 emc_rdv;248u32 emc_rdv_mask;249250u32 emc_rdv_early;251u32 emc_rdv_early_mask;252253/* Specifies the value for EMC_QPOP */254u32 emc_qpop;255256/* Specifies the value for EMC_REFRESH */257u32 emc_refresh;258/* Specifies the value for EMC_BURST_REFRESH_NUM */259u32 emc_burst_refresh_num;260/* Specifies the value for EMC_PRE_REFRESH_REQ_CNT */261u32 emc_prerefresh_req_cnt;262/* Specifies the value for EMC_PDEX2WR */263u32 emc_pdex2wr;264/* Specifies the value for EMC_PDEX2RD */265u32 emc_pdex2rd;266/* Specifies the value for EMC_PCHG2PDEN */267u32 emc_pchg2pden;268/* Specifies the value for EMC_ACT2PDEN */269u32 emc_act2pden;270/* Specifies the value for EMC_AR2PDEN */271u32 emc_ar2pden;272/* Specifies the value for EMC_RW2PDEN */273u32 emc_rw2pden;274275u32 emc_cke2pden;276u32 emc_pdex2che;277u32 emc_pdex2mrr;278279/* Specifies the value for EMC_TXSR */280u32 emc_txsr;281/* Specifies the value for EMC_TXSRDLL */282u32 emc_txsr_dll;283/* Specifies the value for EMC_TCKE */284u32 emc_tcke;285/* Specifies the value for EMC_TCKESR */286u32 emc_tckesr;287/* Specifies the value for EMC_TPD */288u32 emc_tpd;289/* Specifies the value for EMC_TFAW */290u32 emc_tfaw;291/* Specifies the value for EMC_TRPAB */292u32 emc_trpab;293/* Specifies the value for EMC_TCLKSTABLE */294u32 emc_tclkstable;295/* Specifies the value for EMC_TCLKSTOP */296u32 emc_tclkstop;297/* Specifies the value for EMC_TREFBW */298u32 emc_trefbw;299300/* FBIO configuration values */301302/* Specifies the value for EMC_FBIO_CFG5 */303u32 emc_fbio_cfg5;304/* Specifies the value for EMC_FBIO_CFG7 */305u32 emc_fbio_cfg7;306u32 emc_fbio_cfg8;307308/* Command mapping for CMD brick 0 */309u32 emc_cmd_mapping_cmd0_0;310u32 emc_cmd_mapping_cmd0_1;311u32 emc_cmd_mapping_cmd0_2;312u32 emc_cmd_mapping_cmd1_0;313u32 emc_cmd_mapping_cmd1_1;314u32 emc_cmd_mapping_cmd1_2;315u32 emc_cmd_mapping_cmd2_0;316u32 emc_cmd_mapping_cmd2_1;317u32 emc_cmd_mapping_cmd2_2;318u32 emc_cmd_mapping_cmd3_0;319u32 emc_cmd_mapping_cmd3_1;320u32 emc_cmd_mapping_cmd3_2;321u32 emc_cmd_mapping_byte;322323/* Specifies the value for EMC_FBIO_SPARE */324u32 emc_fbio_spare;325326/* Specifies the value for EMC_CFG_RSV */327u32 emc_cfg_rsv;328329/* MRS command values */330331/* Specifies the value for EMC_MRS */332u32 emc_mrs;333/* Specifies the MP0 command to initialize mode registers */334u32 emc_emrs;335/* Specifies the MP2 command to initialize mode registers */336u32 emc_emrs2;337/* Specifies the MP3 command to initialize mode registers */338u32 emc_emrs3;339/* Specifies the programming to LPDDR2 Mode Register 1 at cold boot */340u32 emc_mrw1;341/* Specifies the programming to LPDDR2 Mode Register 2 at cold boot */342u32 emc_mrw2;343/* Specifies the programming to LPDDR2 Mode Register 3 at cold boot */344u32 emc_mrw3;345/* Specifies the programming to LPDDR2 Mode Register 11 at cold boot */346u32 emc_mrw4;347348/* Specifies the programming to LPDDR4 Mode Register 3 at cold boot */349u32 emc_mrw6;350/* Specifies the programming to LPDDR4 Mode Register 11 at cold boot */351u32 emc_mrw8;352/* Specifies the programming to LPDDR4 Mode Register 11 at cold boot */353u32 emc_mrw9;354/* Specifies the programming to LPDDR4 Mode Register 12 at cold boot */355u32 emc_mrw10;356/* Specifies the programming to LPDDR4 Mode Register 14 at cold boot */357u32 emc_mrw12;358/* Specifies the programming to LPDDR4 Mode Register 14 at cold boot */359u32 emc_mrw13;360/* Specifies the programming to LPDDR4 Mode Register 22 at cold boot */361u32 emc_mrw14;362363/*364* Specifies the programming to extra LPDDR2 Mode Register365* at cold boot366*/367u32 emc_mrw_extra;368/*369* Specifies the programming to extra LPDDR2 Mode Register370* at warm boot371*/372u32 emc_warm_boot_mrw_extra;373/*374* Specify the enable of extra Mode Register programming at375* warm boot376*/377u32 emc_warm_boot_extramode_reg_write_enable;378/*379* Specify the enable of extra Mode Register programming at380* cold boot381*/382u32 emc_extramode_reg_write_enable;383384/* Specifies the EMC_MRW reset command value */385u32 emc_mrw_reset_command;386/* Specifies the EMC Reset wait time (in microseconds) */387u32 emc_mrw_reset_ninit_wait;388/* Specifies the value for EMC_MRS_WAIT_CNT */389u32 emc_mrs_wait_cnt;390/* Specifies the value for EMC_MRS_WAIT_CNT2 */391u32 emc_mrs_wait_cnt2;392393/* EMC miscellaneous configurations */394395/* Specifies the value for EMC_CFG */396u32 emc_cfg;397/* Specifies the value for EMC_CFG_2 */398u32 emc_cfg2;399/* Specifies the pipe bypass controls */400u32 emc_cfg_pipe;401402u32 emc_cfg_pipe_clk;403u32 emc_fdpd_ctrl_cmd_no_ramp;404u32 emc_cfg_update;405406/* Specifies the value for EMC_DBG */407u32 emc_dbg;408409u32 emc_dbg_write_mux;410411/* Specifies the value for EMC_CMDQ */412u32 emc_cmd_q;413/* Specifies the value for EMC_MC2EMCQ */414u32 emc_mc2emc_q;415/* Specifies the value for EMC_DYN_SELF_REF_CONTROL */416u32 emc_dyn_self_ref_control;417418/* Specifies the value for MEM_INIT_DONE */419u32 ahb_arbitration_xbar_ctrl_meminit_done;420421/* Specifies the value for EMC_CFG_DIG_DLL */422u32 emc_cfg_dig_dll;423u32 emc_cfg_dig_dll_1;424425/* Specifies the value for EMC_CFG_DIG_DLL_PERIOD */426u32 emc_cfg_dig_dll_period;427/* Specifies the value of *DEV_SELECTN of various EMC registers */428u32 emc_dev_select;429430/* Specifies the value for EMC_SEL_DPD_CTRL */431u32 emc_sel_dpd_ctrl;432433/* Pads trimmer delays */434u32 emc_fdpd_ctrl_dq;435u32 emc_fdpd_ctrl_cmd;436u32 emc_pmacro_ib_vref_dq_0;437u32 emc_pmacro_ib_vref_dq_1;438u32 emc_pmacro_ib_vref_dqs_0;439u32 emc_pmacro_ib_vref_dqs_1;440u32 emc_pmacro_ib_rxrt;441u32 emc_cfg_pipe1;442u32 emc_cfg_pipe2;443444/* Specifies the value for EMC_PMACRO_QUSE_DDLL_RANK0_0 */445u32 emc_pmacro_quse_ddll_rank0_0;446u32 emc_pmacro_quse_ddll_rank0_1;447u32 emc_pmacro_quse_ddll_rank0_2;448u32 emc_pmacro_quse_ddll_rank0_3;449u32 emc_pmacro_quse_ddll_rank0_4;450u32 emc_pmacro_quse_ddll_rank0_5;451u32 emc_pmacro_quse_ddll_rank1_0;452u32 emc_pmacro_quse_ddll_rank1_1;453u32 emc_pmacro_quse_ddll_rank1_2;454u32 emc_pmacro_quse_ddll_rank1_3;455u32 emc_pmacro_quse_ddll_rank1_4;456u32 emc_pmacro_quse_ddll_rank1_5;457458u32 emc_pmacro_ob_ddll_long_dq_rank0_0;459u32 emc_pmacro_ob_ddll_long_dq_rank0_1;460u32 emc_pmacro_ob_ddll_long_dq_rank0_2;461u32 emc_pmacro_ob_ddll_long_dq_rank0_3;462u32 emc_pmacro_ob_ddll_long_dq_rank0_4;463u32 emc_pmacro_ob_ddll_long_dq_rank0_5;464u32 emc_pmacro_ob_ddll_long_dq_rank1_0;465u32 emc_pmacro_ob_ddll_long_dq_rank1_1;466u32 emc_pmacro_ob_ddll_long_dq_rank1_2;467u32 emc_pmacro_ob_ddll_long_dq_rank1_3;468u32 emc_pmacro_ob_ddll_long_dq_rank1_4;469u32 emc_pmacro_ob_ddll_long_dq_rank1_5;470471u32 emc_pmacro_ob_ddll_long_dqs_rank0_0;472u32 emc_pmacro_ob_ddll_long_dqs_rank0_1;473u32 emc_pmacro_ob_ddll_long_dqs_rank0_2;474u32 emc_pmacro_ob_ddll_long_dqs_rank0_3;475u32 emc_pmacro_ob_ddll_long_dqs_rank0_4;476u32 emc_pmacro_ob_ddll_long_dqs_rank0_5;477u32 emc_pmacro_ob_ddll_long_dqs_rank1_0;478u32 emc_pmacro_ob_ddll_long_dqs_rank1_1;479u32 emc_pmacro_ob_ddll_long_dqs_rank1_2;480u32 emc_pmacro_ob_ddll_long_dqs_rank1_3;481u32 emc_pmacro_ob_ddll_long_dqs_rank1_4;482u32 emc_pmacro_ob_ddll_long_dqs_rank1_5;483484u32 emc_pmacro_ib_ddll_long_dqs_rank0_0;485u32 emc_pmacro_ib_ddll_long_dqs_rank0_1;486u32 emc_pmacro_ib_ddll_long_dqs_rank0_2;487u32 emc_pmacro_ib_ddll_long_dqs_rank0_3;488u32 emc_pmacro_ib_ddll_long_dqs_rank1_0;489u32 emc_pmacro_ib_ddll_long_dqs_rank1_1;490u32 emc_pmacro_ib_ddll_long_dqs_rank1_2;491u32 emc_pmacro_ib_ddll_long_dqs_rank1_3;492493u32 emc_pmacro_ddll_long_cmd_0;494u32 emc_pmacro_ddll_long_cmd_1;495u32 emc_pmacro_ddll_long_cmd_2;496u32 emc_pmacro_ddll_long_cmd_3;497u32 emc_pmacro_ddll_long_cmd_4;498u32 emc_pmacro_ddll_short_cmd_0;499u32 emc_pmacro_ddll_short_cmd_1;500u32 emc_pmacro_ddll_short_cmd_2;501502/*503* Specifies the delay after asserting CKE pin during a WarmBoot0504* sequence (in microseconds)505*/506u32 warm_boot_wait;507508/* Specifies the value for EMC_ODT_WRITE */509u32 emc_odt_write;510511/* Periodic ZQ calibration */512513/*514* Specifies the value for EMC_ZCAL_INTERVAL515* Value 0 disables ZQ calibration516*/517u32 emc_zcal_interval;518/* Specifies the value for EMC_ZCAL_WAIT_CNT */519u32 emc_zcal_wait_cnt;520/* Specifies the value for EMC_ZCAL_MRW_CMD */521u32 emc_zcal_mrw_cmd;522523/* DRAM initialization sequence flow control */524525/* Specifies the MRS command value for resetting DLL */526u32 emc_mrs_reset_dll;527/* Specifies the command for ZQ initialization of device 0 */528u32 emc_zcal_init_dev0;529/* Specifies the command for ZQ initialization of device 1 */530u32 emc_zcal_init_dev1;531/*532* Specifies the wait time after programming a ZQ initialization533* command (in microseconds)534*/535u32 emc_zcal_init_wait;536/*537* Specifies the enable for ZQ calibration at cold boot [bit 0]538* and warm boot [bit 1]539*/540u32 emc_zcal_warm_cold_boot_enables;541542/*543* Specifies the MRW command to LPDDR2 for ZQ calibration544* on warmboot545*/546/* Is issued to both devices separately */547u32 emc_mrw_lpddr2zcal_warm_boot;548/*549* Specifies the ZQ command to DDR3 for ZQ calibration on warmboot550* Is issued to both devices separately551*/552u32 emc_zqcal_ddr3_warm_boot;553554u32 emc_zqcal_lpddr4_warm_boot;555556/*557* Specifies the wait time for ZQ calibration on warmboot558* (in microseconds)559*/560u32 emc_zcal_warm_boot_wait;561/*562* Specifies the enable for DRAM Mode Register programming563* at warm boot564*/565u32 emc_mrs_warm_boot_enable;566/*567* Specifies the wait time after sending an MRS DLL reset command568* in microseconds)569*/570u32 emc_mrs_reset_dll_wait;571/* Specifies the extra MRS command to initialize mode registers */572u32 emc_mrs_extra;573/* Specifies the extra MRS command at warm boot */574u32 emc_warm_boot_mrs_extra;575/* Specifies the EMRS command to enable the DDR2 DLL */576u32 emc_emrs_ddr2_dll_enable;577/* Specifies the MRS command to reset the DDR2 DLL */578u32 emc_mrs_ddr2_dll_reset;579/* Specifies the EMRS command to set OCD calibration */580u32 emc_emrs_ddr2_ocd_calib;581/*582* Specifies the wait between initializing DDR and setting OCD583* calibration (in microseconds)584*/585u32 emc_ddr2_wait;586/* Specifies the value for EMC_CLKEN_OVERRIDE */587u32 emc_clken_override;588/*589* Specifies LOG2 of the extra refresh numbers after booting590* Program 0 to disable591*/592u32 emc_extra_refresh_num;593/* Specifies the master override for all EMC clocks */594u32 emc_clken_override_allwarm_boot;595/* Specifies the master override for all MC clocks */596u32 mc_clken_override_allwarm_boot;597/* Specifies digital dll period, choosing between 4 to 64 ms */598u32 emc_cfg_dig_dll_period_warm_boot;599600/* Pad controls */601602/* Specifies the value for PMC_VDDP_SEL */603u32 pmc_vddp_sel;604/* Specifies the wait time after programming PMC_VDDP_SEL */605u32 pmc_vddp_sel_wait;606/* Specifies the value for PMC_DDR_PWR */607u32 pmc_ddr_pwr;608/* Specifies the value for PMC_DDR_CFG */609u32 pmc_ddr_cfg;610/* Specifies the value for PMC_IO_DPD3_REQ */611u32 pmc_io_dpd3_req;612/* Specifies the wait time after programming PMC_IO_DPD3_REQ */613u32 pmc_io_dpd3_req_wait;614615u32 pmc_io_dpd4_req_wait;616617/* Specifies the value for PMC_REG_SHORT */618u32 pmc_reg_short;619/* Specifies the value for PMC_NO_IOPOWER */620u32 pmc_no_io_power;621622u32 pmc_ddr_ctrl_wait;623u32 pmc_ddr_ctrl;624625/* Specifies the value for EMC_ACPD_CONTROL */626u32 emc_acpd_control;627628/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE0 */629u32 emc_swizzle_rank0_byte0;630/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE1 */631u32 emc_swizzle_rank0_byte1;632/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE2 */633u32 emc_swizzle_rank0_byte2;634/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE3 */635u32 emc_swizzle_rank0_byte3;636/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE0 */637u32 emc_swizzle_rank1_byte0;638/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE1 */639u32 emc_swizzle_rank1_byte1;640/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE2 */641u32 emc_swizzle_rank1_byte2;642/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE3 */643u32 emc_swizzle_rank1_byte3;644645/* Specifies the value for EMC_TXDSRVTTGEN */646u32 emc_txdsrvttgen;647648/* Specifies the value for EMC_DATA_BRLSHFT_0 */649u32 emc_data_brlshft0;650u32 emc_data_brlshft1;651652u32 emc_dqs_brlshft0;653u32 emc_dqs_brlshft1;654655u32 emc_cmd_brlshft0;656u32 emc_cmd_brlshft1;657u32 emc_cmd_brlshft2;658u32 emc_cmd_brlshft3;659660u32 emc_quse_brlshft0;661u32 emc_quse_brlshft1;662u32 emc_quse_brlshft2;663u32 emc_quse_brlshft3;664665u32 emc_dll_cfg0;666u32 emc_dll_cfg1;667668u32 emc_pmc_scratch1;669u32 emc_pmc_scratch2;670u32 emc_pmc_scratch3;671672u32 emc_pmacro_pad_cfg_ctrl;673674u32 emc_pmacro_vttgen_ctrl0;675u32 emc_pmacro_vttgen_ctrl1;676u32 emc_pmacro_vttgen_ctrl2;677678u32 emc_pmacro_brick_ctrl_rfu1;679u32 emc_pmacro_cmd_brick_ctrl_fdpd;680u32 emc_pmacro_brick_ctrl_rfu2;681u32 emc_pmacro_data_brick_ctrl_fdpd;682u32 emc_pmacro_bg_bias_ctrl0;683u32 emc_pmacro_data_pad_rx_ctrl;684u32 emc_pmacro_cmd_pad_rx_ctrl;685u32 emc_pmacro_data_rx_term_mode;686u32 emc_pmacro_cmd_rx_term_mode;687u32 emc_pmacro_data_pad_tx_ctrl;688u32 emc_pmacro_common_pad_tx_ctrl;689u32 emc_pmacro_cmd_pad_tx_ctrl;690u32 emc_cfg3;691692u32 emc_pmacro_tx_pwrd0;693u32 emc_pmacro_tx_pwrd1;694u32 emc_pmacro_tx_pwrd2;695u32 emc_pmacro_tx_pwrd3;696u32 emc_pmacro_tx_pwrd4;697u32 emc_pmacro_tx_pwrd5;698699u32 emc_config_sample_delay;700701u32 emc_pmacro_brick_mapping0;702u32 emc_pmacro_brick_mapping1;703u32 emc_pmacro_brick_mapping2;704705u32 emc_pmacro_tx_sel_clk_src0;706u32 emc_pmacro_tx_sel_clk_src1;707u32 emc_pmacro_tx_sel_clk_src2;708u32 emc_pmacro_tx_sel_clk_src3;709u32 emc_pmacro_tx_sel_clk_src4;710u32 emc_pmacro_tx_sel_clk_src5;711712u32 emc_pmacro_ddll_bypass;713714u32 emc_pmacro_ddll_pwrd0;715u32 emc_pmacro_ddll_pwrd1;716u32 emc_pmacro_ddll_pwrd2;717718u32 emc_pmacro_cmd_ctrl0;719u32 emc_pmacro_cmd_ctrl1;720u32 emc_pmacro_cmd_ctrl2;721722/* DRAM size information */723724/* Specifies the value for MC_EMEM_ADR_CFG */725u32 mc_emem_adr_cfg;726/* Specifies the value for MC_EMEM_ADR_CFG_DEV0 */727u32 mc_emem_adr_cfg_dev0;728/* Specifies the value for MC_EMEM_ADR_CFG_DEV1 */729u32 mc_emem_adr_cfg_dev1;730731u32 mc_emem_adr_cfg_channel_mask;732733/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG0 */734u32 mc_emem_adr_cfg_bank_mask0;735/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG1 */736u32 mc_emem_adr_cfg_bank_mask1;737/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG2 */738u32 mc_emem_adr_cfg_bank_mask2;739740/*741* Specifies the value for MC_EMEM_CFG which holds the external memory742* size (in KBytes)743*/744u32 mc_emem_cfg;745746/* MC arbitration configuration */747748/* Specifies the value for MC_EMEM_ARB_CFG */749u32 mc_emem_arb_cfg;750/* Specifies the value for MC_EMEM_ARB_OUTSTANDING_REQ */751u32 mc_emem_arb_outstanding_req;752753u32 emc_emem_arb_refpb_hp_ctrl;754u32 emc_emem_arb_refpb_bank_ctrl;755756/* Specifies the value for MC_EMEM_ARB_TIMING_RCD */757u32 mc_emem_arb_timing_rcd;758/* Specifies the value for MC_EMEM_ARB_TIMING_RP */759u32 mc_emem_arb_timing_rp;760/* Specifies the value for MC_EMEM_ARB_TIMING_RC */761u32 mc_emem_arb_timing_rc;762/* Specifies the value for MC_EMEM_ARB_TIMING_RAS */763u32 mc_emem_arb_timing_ras;764/* Specifies the value for MC_EMEM_ARB_TIMING_FAW */765u32 mc_emem_arb_timing_faw;766/* Specifies the value for MC_EMEM_ARB_TIMING_RRD */767u32 mc_emem_arb_timing_rrd;768/* Specifies the value for MC_EMEM_ARB_TIMING_RAP2PRE */769u32 mc_emem_arb_timing_rap2pre;770/* Specifies the value for MC_EMEM_ARB_TIMING_WAP2PRE */771u32 mc_emem_arb_timing_wap2pre;772/* Specifies the value for MC_EMEM_ARB_TIMING_R2R */773u32 mc_emem_arb_timing_r2r;774/* Specifies the value for MC_EMEM_ARB_TIMING_W2W */775u32 mc_emem_arb_timing_w2w;776/* Specifies the value for MC_EMEM_ARB_TIMING_R2W */777u32 mc_emem_arb_timing_r2w;778/* Specifies the value for MC_EMEM_ARB_TIMING_W2R */779u32 mc_emem_arb_timing_w2r;780781u32 mc_emem_arb_timing_rfcpb;782783/* Specifies the value for MC_EMEM_ARB_DA_TURNS */784u32 mc_emem_arb_da_turns;785/* Specifies the value for MC_EMEM_ARB_DA_COVERS */786u32 mc_emem_arb_da_covers;787/* Specifies the value for MC_EMEM_ARB_MISC0 */788u32 mc_emem_arb_misc0;789/* Specifies the value for MC_EMEM_ARB_MISC1 */790u32 mc_emem_arb_misc1;791u32 mc_emem_arb_misc2;792793/* Specifies the value for MC_EMEM_ARB_RING1_THROTTLE */794u32 mc_emem_arb_ring1_throttle;795/* Specifies the value for MC_EMEM_ARB_OVERRIDE */796u32 mc_emem_arb_override;797/* Specifies the value for MC_EMEM_ARB_OVERRIDE_1 */798u32 mc_emem_arb_override1;799/* Specifies the value for MC_EMEM_ARB_RSV */800u32 mc_emem_arb_rsv;801802u32 mc_da_cfg0;803u32 mc_emem_arb_timing_ccdmw;804805/* Specifies the value for MC_CLKEN_OVERRIDE */806u32 mc_clken_override;807808/* Specifies the value for MC_STAT_CONTROL */809u32 mc_stat_control;810/* Specifies the value for MC_VIDEO_PROTECT_BOM */811u32 mc_video_protect_bom;812/* Specifies the value for MC_VIDEO_PROTECT_BOM_ADR_HI */813u32 mc_video_protect_bom_adr_hi;814/* Specifies the value for MC_VIDEO_PROTECT_SIZE_MB */815u32 mc_video_protect_size_mb;816/* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE */817u32 mc_video_protect_vpr_override;818/* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE1 */819u32 mc_video_protect_vpr_override1;820/* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_0 */821u32 mc_video_protect_gpu_override0;822/* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_1 */823u32 mc_video_protect_gpu_override1;824/* Specifies the value for MC_SEC_CARVEOUT_BOM */825u32 mc_sec_carveout_bom;826/* Specifies the value for MC_SEC_CARVEOUT_ADR_HI */827u32 mc_sec_carveout_adr_hi;828/* Specifies the value for MC_SEC_CARVEOUT_SIZE_MB */829u32 mc_sec_carveout_size_mb;830/* Specifies the value for MC_VIDEO_PROTECT_REG_CTRL.VIDEO_PROTECT_WRITE_ACCESS */831u32 mc_video_protect_write_access;832/* Specifies the value for MC_SEC_CARVEOUT_REG_CTRL.SEC_CARVEOUT_WRITE_ACCESS */833u32 mc_sec_carveout_protect_write_access;834835u32 mc_generalized_carveout1_bom;836u32 mc_generalized_carveout1_bom_hi;837u32 mc_generalized_carveout1_size_128kb;838u32 mc_generalized_carveout1_access0;839u32 mc_generalized_carveout1_access1;840u32 mc_generalized_carveout1_access2;841u32 mc_generalized_carveout1_access3;842u32 mc_generalized_carveout1_access4;843u32 mc_generalized_carveout1_force_internal_access0;844u32 mc_generalized_carveout1_force_internal_access1;845u32 mc_generalized_carveout1_force_internal_access2;846u32 mc_generalized_carveout1_force_internal_access3;847u32 mc_generalized_carveout1_force_internal_access4;848u32 mc_generalized_carveout1_cfg0;849850u32 mc_generalized_carveout2_bom;851u32 mc_generalized_carveout2_bom_hi;852u32 mc_generalized_carveout2_size_128kb;853u32 mc_generalized_carveout2_access0;854u32 mc_generalized_carveout2_access1;855u32 mc_generalized_carveout2_access2;856u32 mc_generalized_carveout2_access3;857u32 mc_generalized_carveout2_access4;858u32 mc_generalized_carveout2_force_internal_access0;859u32 mc_generalized_carveout2_force_internal_access1;860u32 mc_generalized_carveout2_force_internal_access2;861u32 mc_generalized_carveout2_force_internal_access3;862u32 mc_generalized_carveout2_force_internal_access4;863u32 mc_generalized_carveout2_cfg0;864865u32 mc_generalized_carveout3_bom;866u32 mc_generalized_carveout3_bom_hi;867u32 mc_generalized_carveout3_size_128kb;868u32 mc_generalized_carveout3_access0;869u32 mc_generalized_carveout3_access1;870u32 mc_generalized_carveout3_access2;871u32 mc_generalized_carveout3_access3;872u32 mc_generalized_carveout3_access4;873u32 mc_generalized_carveout3_force_internal_access0;874u32 mc_generalized_carveout3_force_internal_access1;875u32 mc_generalized_carveout3_force_internal_access2;876u32 mc_generalized_carveout3_force_internal_access3;877u32 mc_generalized_carveout3_force_internal_access4;878u32 mc_generalized_carveout3_cfg0;879880u32 mc_generalized_carveout4_bom;881u32 mc_generalized_carveout4_bom_hi;882u32 mc_generalized_carveout4_size_128kb;883u32 mc_generalized_carveout4_access0;884u32 mc_generalized_carveout4_access1;885u32 mc_generalized_carveout4_access2;886u32 mc_generalized_carveout4_access3;887u32 mc_generalized_carveout4_access4;888u32 mc_generalized_carveout4_force_internal_access0;889u32 mc_generalized_carveout4_force_internal_access1;890u32 mc_generalized_carveout4_force_internal_access2;891u32 mc_generalized_carveout4_force_internal_access3;892u32 mc_generalized_carveout4_force_internal_access4;893u32 mc_generalized_carveout4_cfg0;894895u32 mc_generalized_carveout5_bom;896u32 mc_generalized_carveout5_bom_hi;897u32 mc_generalized_carveout5_size_128kb;898u32 mc_generalized_carveout5_access0;899u32 mc_generalized_carveout5_access1;900u32 mc_generalized_carveout5_access2;901u32 mc_generalized_carveout5_access3;902u32 mc_generalized_carveout5_access4;903u32 mc_generalized_carveout5_force_internal_access0;904u32 mc_generalized_carveout5_force_internal_access1;905u32 mc_generalized_carveout5_force_internal_access2;906u32 mc_generalized_carveout5_force_internal_access3;907u32 mc_generalized_carveout5_force_internal_access4;908u32 mc_generalized_carveout5_cfg0;909910/* Specifies enable for CA training */911u32 emc_ca_training_enable;912/* Set if bit 6 select is greater than bit 7 select; uses aremc.spec packet SWIZZLE_BIT6_GT_BIT7 */913u32 swizzle_rank_byte_encode;914/* Specifies enable and offset for patched boot rom write */915u32 boot_rom_patch_control;916/* Specifies data for patched boot rom write */917u32 boot_rom_patch_data;918919/* Specifies the value for MC_MTS_CARVEOUT_BOM */920u32 mc_mts_carveout_bom;921/* Specifies the value for MC_MTS_CARVEOUT_ADR_HI */922u32 mc_mts_carveout_adr_hi;923/* Specifies the value for MC_MTS_CARVEOUT_SIZE_MB */924u32 mc_mts_carveout_size_mb;925/* Specifies the value for MC_MTS_CARVEOUT_REG_CTRL */926u32 mc_mts_carveout_reg_ctrl;927} sdram_params_t210_t;928929#endif930931932