/*1* Copyright (c) 2020 CTCaer2*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*/1213#ifndef _SDRAM_PARAM_T210B01_H_14#define _SDRAM_PARAM_T210B01_H_1516typedef struct _sdram_params_t210b01_t17{18/* Specifies the type of memory device */19u32 memory_type;2021/* MC/EMC clock source configuration */2223/* Specifies the M value for PllM */24u32 pllm_input_divider;25/* Specifies the N value for PllM */26u32 pllm_feedback_divider;27/* Specifies the time to wait for PLLM to lock (in microseconds) */28u32 pllm_stable_time;29/* Specifies misc. control bits */30u32 pllm_setup_control;31/* Specifies the P value for PLLM */32u32 pllm_post_divider;33/* Specifies value for Charge Pump Gain Control */34u32 pllm_kcp;35/* Specifies VCO gain */36u32 pllm_kvco;37/* Spare BCT param */38u32 emc_bct_spare0;39/* Spare BCT param */40u32 emc_bct_spare1;41/* Spare BCT param */42u32 emc_bct_spare2;43/* Spare BCT param */44u32 emc_bct_spare3;45/* Spare BCT param */46u32 emc_bct_spare4;47/* Spare BCT param */48u32 emc_bct_spare5;49/* Spare BCT param */50u32 emc_bct_spare6;51/* Spare BCT param */52u32 emc_bct_spare7;53/* Spare BCT param */54u32 emc_bct_spare8;55/* Spare BCT param */56u32 emc_bct_spare9;57/* Spare BCT param */58u32 emc_bct_spare10;59/* Spare BCT param */60u32 emc_bct_spare11;61/* Spare BCT param */62u32 emc_bct_spare12;63/* Spare BCT param */64u32 emc_bct_spare13;65/* Spare BCT param */66u32 emc_bct_spare_secure0;67/* Spare BCT param */68u32 emc_bct_spare_secure1;69/* Spare BCT param */70u32 emc_bct_spare_secure2;71/* Spare BCT param */72u32 emc_bct_spare_secure3;73/* Spare BCT param */74u32 emc_bct_spare_secure4;75/* Spare BCT param */76u32 emc_bct_spare_secure5;77/* Spare BCT param */78u32 emc_bct_spare_secure6;79/* Spare BCT param */80u32 emc_bct_spare_secure7;81/* Spare BCT param */82u32 emc_bct_spare_secure8;83/* Spare BCT param */84u32 emc_bct_spare_secure9;85/* Spare BCT param */86u32 emc_bct_spare_secure10;87/* Spare BCT param */88u32 emc_bct_spare_secure11;89/* Spare BCT param */90u32 emc_bct_spare_secure12;91/* Spare BCT param */92u32 emc_bct_spare_secure13;93/* Spare BCT param */94u32 emc_bct_spare_secure14;95/* Spare BCT param */96u32 emc_bct_spare_secure15;97/* Spare BCT param */98u32 emc_bct_spare_secure16;99/* Spare BCT param */100u32 emc_bct_spare_secure17;101/* Spare BCT param */102u32 emc_bct_spare_secure18;103/* Spare BCT param */104u32 emc_bct_spare_secure19;105/* Spare BCT param */106u32 emc_bct_spare_secure20;107/* Spare BCT param */108u32 emc_bct_spare_secure21;109/* Spare BCT param */110u32 emc_bct_spare_secure22;111/* Spare BCT param */112u32 emc_bct_spare_secure23;113114/* Defines EMC_2X_CLK_SRC, EMC_2X_CLK_DIVISOR, EMC_INVERT_DCD */115u32 emc_clock_source;116u32 emc_clock_source_dll;117118/* Defines possible override for PLLLM_MISC2 */119u32 clk_rst_pllm_misc20_override;120/* enables override for PLLLM_MISC2 */121u32 clk_rst_pllm_misc20_override_enable;122/* defines CLK_ENB_MC1 in register clk_rst_controller_clk_enb_w_clr */123u32 clear_clock2_mc1;124125/* Auto-calibration of EMC pads */126127/* Specifies the value for EMC_AUTO_CAL_INTERVAL */128u32 emc_auto_cal_interval;129/*130* Specifies the value for EMC_AUTO_CAL_CONFIG131* Note: Trigger bits are set by the SDRAM code.132*/133u32 emc_auto_cal_config;134135/* Specifies the value for EMC_AUTO_CAL_CONFIG2 */136u32 emc_auto_cal_config2;137138/* Specifies the value for EMC_AUTO_CAL_CONFIG3 */139u32 emc_auto_cal_config3;140u32 emc_auto_cal_config4;141u32 emc_auto_cal_config5;142u32 emc_auto_cal_config6;143u32 emc_auto_cal_config7;144u32 emc_auto_cal_config8;145u32 emc_auto_cal_config9;146147/* Specifies the value for EMC_AUTO_CAL_VREF_SEL_0 */148u32 emc_auto_cal_vref_sel0;149u32 emc_auto_cal_vref_sel1;150151/* Specifies the value for EMC_AUTO_CAL_CHANNEL */152u32 emc_auto_cal_channel;153154/* Specifies the value for EMC_PMACRO_AUTOCAL_CFG_0 */155u32 emc_pmacro_auto_cal_cfg0;156u32 emc_pmacro_auto_cal_cfg1;157u32 emc_pmacro_auto_cal_cfg2;158159u32 emc_pmacro_rx_term;160u32 emc_pmacro_dq_tx_drive;161u32 emc_pmacro_ca_tx_drive;162u32 emc_pmacro_cmd_tx_drive;163u32 emc_pmacro_auto_cal_common;164u32 emc_pmacro_zcrtl;165166/*167* Specifies the time for the calibration168* to stabilize (in microseconds)169*/170u32 emc_auto_cal_wait;171172u32 emc_xm2_comp_pad_ctrl;173u32 emc_xm2_comp_pad_ctrl2;174u32 emc_xm2_comp_pad_ctrl3;175176/*177* DRAM size information178* Specifies the value for EMC_ADR_CFG179*/180u32 emc_adr_cfg;181182/*183* Specifies the time to wait after asserting pin184* CKE (in microseconds)185*/186u32 emc_pin_program_wait;187/* Specifies the extra delay before/after pin RESET/CKE command */188u32 emc_pin_extra_wait;189190u32 emc_pin_gpio_enable;191u32 emc_pin_gpio;192193/*194* Specifies the extra delay after the first writing195* of EMC_TIMING_CONTROL196*/197u32 emc_timing_control_wait;198199/* Timing parameters required for the SDRAM */200201/* Specifies the value for EMC_RC */202u32 emc_rc;203/* Specifies the value for EMC_RFC */204u32 emc_rfc;205206u32 emc_rfc_pb;207u32 emc_ref_ctrl2;208209/* Specifies the value for EMC_RFC_SLR */210u32 emc_rfc_slr;211/* Specifies the value for EMC_RAS */212u32 emc_ras;213/* Specifies the value for EMC_RP */214u32 emc_rp;215/* Specifies the value for EMC_R2R */216u32 emc_r2r;217/* Specifies the value for EMC_W2W */218u32 emc_w2w;219/* Specifies the value for EMC_R2W */220u32 emc_r2w;221/* Specifies the value for EMC_W2R */222u32 emc_w2r;223/* Specifies the value for EMC_R2P */224u32 emc_r2p;225/* Specifies the value for EMC_W2P */226u32 emc_w2p;227228u32 emc_tppd;229u32 emc_trtm;230u32 emc_twtm;231u32 emc_tratm;232u32 emc_twatm;233u32 emc_tr2ref;234u32 emc_ccdmw;235236/* Specifies the value for EMC_RD_RCD */237u32 emc_rd_rcd;238/* Specifies the value for EMC_WR_RCD */239u32 emc_wr_rcd;240/* Specifies the value for EMC_RRD */241u32 emc_rrd;242/* Specifies the value for EMC_REXT */243u32 emc_rext;244/* Specifies the value for EMC_WEXT */245u32 emc_wext;246/* Specifies the value for EMC_WDV */247u32 emc_wdv;248249u32 emc_wdv_chk;250u32 emc_wsv;251u32 emc_wev;252253/* Specifies the value for EMC_WDV_MASK */254u32 emc_wdv_mask;255256u32 emc_ws_duration;257u32 emc_we_duration;258259/* Specifies the value for EMC_QUSE */260u32 emc_quse;261/* Specifies the value for EMC_QUSE_WIDTH */262u32 emc_quse_width;263/* Specifies the value for EMC_IBDLY */264u32 emc_ibdly;265266u32 emc_obdly;267268/* Specifies the value for EMC_EINPUT */269u32 emc_einput;270/* Specifies the value for EMC_EINPUT_DURATION */271u32 emc_einput_duration;272/* Specifies the value for EMC_PUTERM_EXTRA */273u32 emc_puterm_extra;274/* Specifies the value for EMC_PUTERM_WIDTH */275u32 emc_puterm_width;276277u32 emc_qrst;278u32 emc_qsafe;279u32 emc_rdv;280u32 emc_rdv_mask;281282u32 emc_rdv_early;283u32 emc_rdv_early_mask;284285/* Specifies the value for EMC_QPOP */286u32 emc_qpop;287288/* Specifies the value for EMC_REFRESH */289u32 emc_refresh;290/* Specifies the value for EMC_BURST_REFRESH_NUM */291u32 emc_burst_refresh_num;292/* Specifies the value for EMC_PRE_REFRESH_REQ_CNT */293u32 emc_prerefresh_req_cnt;294/* Specifies the value for EMC_PDEX2WR */295u32 emc_pdex2wr;296/* Specifies the value for EMC_PDEX2RD */297u32 emc_pdex2rd;298/* Specifies the value for EMC_PCHG2PDEN */299u32 emc_pchg2pden;300/* Specifies the value for EMC_ACT2PDEN */301u32 emc_act2pden;302/* Specifies the value for EMC_AR2PDEN */303u32 emc_ar2pden;304/* Specifies the value for EMC_RW2PDEN */305u32 emc_rw2pden;306307u32 emc_cke2pden;308u32 emc_pdex2che;309u32 emc_pdex2mrr;310311/* Specifies the value for EMC_TXSR */312u32 emc_txsr;313/* Specifies the value for EMC_TXSRDLL */314u32 emc_txsr_dll;315/* Specifies the value for EMC_TCKE */316u32 emc_tcke;317/* Specifies the value for EMC_TCKESR */318u32 emc_tckesr;319/* Specifies the value for EMC_TPD */320u32 emc_tpd;321/* Specifies the value for EMC_TFAW */322u32 emc_tfaw;323/* Specifies the value for EMC_TRPAB */324u32 emc_trpab;325/* Specifies the value for EMC_TCLKSTABLE */326u32 emc_tclkstable;327/* Specifies the value for EMC_TCLKSTOP */328u32 emc_tclkstop;329/* Specifies the value for EMC_TREFBW */330u32 emc_trefbw;331332/* FBIO configuration values */333334/* Specifies the value for EMC_FBIO_CFG5 */335u32 emc_fbio_cfg5;336/* Specifies the value for EMC_FBIO_CFG7 */337u32 emc_fbio_cfg7;338u32 emc_fbio_cfg8;339340/* Command mapping for CMD brick 0 */341u32 emc_cmd_mapping_cmd0_0;342u32 emc_cmd_mapping_cmd0_1;343u32 emc_cmd_mapping_cmd0_2;344u32 emc_cmd_mapping_cmd1_0;345u32 emc_cmd_mapping_cmd1_1;346u32 emc_cmd_mapping_cmd1_2;347u32 emc_cmd_mapping_cmd2_0;348u32 emc_cmd_mapping_cmd2_1;349u32 emc_cmd_mapping_cmd2_2;350u32 emc_cmd_mapping_cmd3_0;351u32 emc_cmd_mapping_cmd3_1;352u32 emc_cmd_mapping_cmd3_2;353u32 emc_cmd_mapping_byte;354355/* Specifies the value for EMC_FBIO_SPARE */356u32 emc_fbio_spare;357358/* Specifies the value for EMC_CFG_RSV */359u32 emc_cfg_rsv;360361/* MRS command values */362363/* Specifies the value for EMC_MRS */364u32 emc_mrs;365/* Specifies the MP0 command to initialize mode registers */366u32 emc_emrs;367/* Specifies the MP2 command to initialize mode registers */368u32 emc_emrs2;369/* Specifies the MP3 command to initialize mode registers */370u32 emc_emrs3;371/* Specifies the programming to LPDDR2 Mode Register 1 at cold boot */372u32 emc_mrw1;373/* Specifies the programming to LPDDR2 Mode Register 2 at cold boot */374u32 emc_mrw2;375/* Specifies the programming to LPDDR2 Mode Register 3 at cold boot */376u32 emc_mrw3;377/* Specifies the programming to LPDDR2 Mode Register 11 at cold boot */378u32 emc_mrw4;379380/* Specifies the programming to LPDDR4 Mode Register 3 at cold boot */381u32 emc_mrw6;382/* Specifies the programming to LPDDR4 Mode Register 11 at cold boot */383u32 emc_mrw8;384/* Specifies the programming to LPDDR4 Mode Register 11 at cold boot */385u32 emc_mrw9;386/* Specifies the programming to LPDDR4 Mode Register 12 at cold boot */387u32 emc_mrw10;388/* Specifies the programming to LPDDR4 Mode Register 14 at cold boot */389u32 emc_mrw12;390/* Specifies the programming to LPDDR4 Mode Register 14 at cold boot */391u32 emc_mrw13;392/* Specifies the programming to LPDDR4 Mode Register 22 at cold boot */393u32 emc_mrw14;394395/*396* Specifies the programming to extra LPDDR2 Mode Register397* at cold boot398*/399u32 emc_mrw_extra;400/*401* Specifies the programming to extra LPDDR2 Mode Register402* at warm boot403*/404u32 emc_warm_boot_mrw_extra;405/*406* Specify the enable of extra Mode Register programming at407* warm boot408*/409u32 emc_warm_boot_extramode_reg_write_enable;410/*411* Specify the enable of extra Mode Register programming at412* cold boot413*/414u32 emc_extramode_reg_write_enable;415416/* Specifies the EMC_MRW reset command value */417u32 emc_mrw_reset_command;418/* Specifies the EMC Reset wait time (in microseconds) */419u32 emc_mrw_reset_ninit_wait;420/* Specifies the value for EMC_MRS_WAIT_CNT */421u32 emc_mrs_wait_cnt;422/* Specifies the value for EMC_MRS_WAIT_CNT2 */423u32 emc_mrs_wait_cnt2;424425/* EMC miscellaneous configurations */426427/* Specifies the value for EMC_CFG */428u32 emc_cfg;429/* Specifies the value for EMC_CFG_2 */430u32 emc_cfg2;431/* Specifies the pipe bypass controls */432u32 emc_cfg_pipe;433434u32 emc_cfg_pipe_clk;435u32 emc_fdpd_ctrl_cmd_no_ramp;436u32 emc_cfg_update;437438/* Specifies the value for EMC_DBG */439u32 emc_dbg;440441u32 emc_dbg_write_mux;442443/* Specifies the value for EMC_CMDQ */444u32 emc_cmd_q;445/* Specifies the value for EMC_MC2EMCQ */446u32 emc_mc2emc_q;447/* Specifies the value for EMC_DYN_SELF_REF_CONTROL */448u32 emc_dyn_self_ref_control;449450/* Specifies the value for MEM_INIT_DONE */451u32 ahb_arbitration_xbar_ctrl_meminit_done;452453/* Specifies the value for EMC_CFG_DIG_DLL */454u32 emc_cfg_dig_dll;455u32 emc_cfg_dig_dll_1;456457/* Specifies the value for EMC_CFG_DIG_DLL_PERIOD */458u32 emc_cfg_dig_dll_period;459/* Specifies the value of *DEV_SELECTN of various EMC registers */460u32 emc_dev_select;461462/* Specifies the value for EMC_SEL_DPD_CTRL */463u32 emc_sel_dpd_ctrl;464465/* Pads trimmer delays */466u32 emc_fdpd_ctrl_dq;467u32 emc_fdpd_ctrl_cmd;468u32 emc_pmacro_ib_vref_dq_0;469u32 emc_pmacro_ib_vref_dq_1;470u32 emc_pmacro_ib_vref_dqs_0;471u32 emc_pmacro_ib_vref_dqs_1;472u32 emc_pmacro_ib_rxrt;473u32 emc_cfg_pipe1;474u32 emc_cfg_pipe2;475476/* Specifies the value for EMC_PMACRO_QUSE_DDLL_RANK0_0 */477u32 emc_pmacro_quse_ddll_rank0_0;478u32 emc_pmacro_quse_ddll_rank0_1;479u32 emc_pmacro_quse_ddll_rank0_2;480u32 emc_pmacro_quse_ddll_rank0_3;481u32 emc_pmacro_quse_ddll_rank0_4;482u32 emc_pmacro_quse_ddll_rank0_5;483u32 emc_pmacro_quse_ddll_rank1_0;484u32 emc_pmacro_quse_ddll_rank1_1;485u32 emc_pmacro_quse_ddll_rank1_2;486u32 emc_pmacro_quse_ddll_rank1_3;487u32 emc_pmacro_quse_ddll_rank1_4;488u32 emc_pmacro_quse_ddll_rank1_5;489490u32 emc_pmacro_ob_ddll_long_dq_rank0_0;491u32 emc_pmacro_ob_ddll_long_dq_rank0_1;492u32 emc_pmacro_ob_ddll_long_dq_rank0_2;493u32 emc_pmacro_ob_ddll_long_dq_rank0_3;494u32 emc_pmacro_ob_ddll_long_dq_rank0_4;495u32 emc_pmacro_ob_ddll_long_dq_rank0_5;496u32 emc_pmacro_ob_ddll_long_dq_rank1_0;497u32 emc_pmacro_ob_ddll_long_dq_rank1_1;498u32 emc_pmacro_ob_ddll_long_dq_rank1_2;499u32 emc_pmacro_ob_ddll_long_dq_rank1_3;500u32 emc_pmacro_ob_ddll_long_dq_rank1_4;501u32 emc_pmacro_ob_ddll_long_dq_rank1_5;502503u32 emc_pmacro_ob_ddll_long_dqs_rank0_0;504u32 emc_pmacro_ob_ddll_long_dqs_rank0_1;505u32 emc_pmacro_ob_ddll_long_dqs_rank0_2;506u32 emc_pmacro_ob_ddll_long_dqs_rank0_3;507u32 emc_pmacro_ob_ddll_long_dqs_rank0_4;508u32 emc_pmacro_ob_ddll_long_dqs_rank0_5;509u32 emc_pmacro_ob_ddll_long_dqs_rank1_0;510u32 emc_pmacro_ob_ddll_long_dqs_rank1_1;511u32 emc_pmacro_ob_ddll_long_dqs_rank1_2;512u32 emc_pmacro_ob_ddll_long_dqs_rank1_3;513u32 emc_pmacro_ob_ddll_long_dqs_rank1_4;514u32 emc_pmacro_ob_ddll_long_dqs_rank1_5;515516u32 emc_pmacro_ib_ddll_long_dqs_rank0_0;517u32 emc_pmacro_ib_ddll_long_dqs_rank0_1;518u32 emc_pmacro_ib_ddll_long_dqs_rank0_2;519u32 emc_pmacro_ib_ddll_long_dqs_rank0_3;520u32 emc_pmacro_ib_ddll_long_dqs_rank1_0;521u32 emc_pmacro_ib_ddll_long_dqs_rank1_1;522u32 emc_pmacro_ib_ddll_long_dqs_rank1_2;523u32 emc_pmacro_ib_ddll_long_dqs_rank1_3;524525u32 emc_pmacro_ddll_long_cmd_0;526u32 emc_pmacro_ddll_long_cmd_1;527u32 emc_pmacro_ddll_long_cmd_2;528u32 emc_pmacro_ddll_long_cmd_3;529u32 emc_pmacro_ddll_long_cmd_4;530u32 emc_pmacro_ddll_short_cmd_0;531u32 emc_pmacro_ddll_short_cmd_1;532u32 emc_pmacro_ddll_short_cmd_2;533534u32 emc_pmacro_ddll_periodic_offset;535536/*537* Specifies the delay after asserting CKE pin during a WarmBoot0538* sequence (in microseconds)539*/540u32 warm_boot_wait;541542/* Specifies the value for EMC_ODT_WRITE */543u32 emc_odt_write;544545/* Periodic ZQ calibration */546547/*548* Specifies the value for EMC_ZCAL_INTERVAL549* Value 0 disables ZQ calibration550*/551u32 emc_zcal_interval;552/* Specifies the value for EMC_ZCAL_WAIT_CNT */553u32 emc_zcal_wait_cnt;554/* Specifies the value for EMC_ZCAL_MRW_CMD */555u32 emc_zcal_mrw_cmd;556557/* DRAM initialization sequence flow control */558559/* Specifies the MRS command value for resetting DLL */560u32 emc_mrs_reset_dll;561/* Specifies the command for ZQ initialization of device 0 */562u32 emc_zcal_init_dev0;563/* Specifies the command for ZQ initialization of device 1 */564u32 emc_zcal_init_dev1;565/*566* Specifies the wait time after programming a ZQ initialization567* command (in microseconds)568*/569u32 emc_zcal_init_wait;570/*571* Specifies the enable for ZQ calibration at cold boot [bit 0]572* and warm boot [bit 1]573*/574u32 emc_zcal_warm_cold_boot_enables;575576/*577* Specifies the MRW command to LPDDR2 for ZQ calibration578* on warmboot579*/580/* Is issued to both devices separately */581u32 emc_mrw_lpddr2zcal_warm_boot;582/*583* Specifies the ZQ command to DDR3 for ZQ calibration on warmboot584* Is issued to both devices separately585*/586u32 emc_zqcal_ddr3_warm_boot;587588u32 emc_zqcal_lpddr4_warm_boot;589590/*591* Specifies the wait time for ZQ calibration on warmboot592* (in microseconds)593*/594u32 emc_zcal_warm_boot_wait;595/*596* Specifies the enable for DRAM Mode Register programming597* at warm boot598*/599u32 emc_mrs_warm_boot_enable;600/*601* Specifies the wait time after sending an MRS DLL reset command602* in microseconds)603*/604u32 emc_mrs_reset_dll_wait;605/* Specifies the extra MRS command to initialize mode registers */606u32 emc_mrs_extra;607/* Specifies the extra MRS command at warm boot */608u32 emc_warm_boot_mrs_extra;609/* Specifies the EMRS command to enable the DDR2 DLL */610u32 emc_emrs_ddr2_dll_enable;611/* Specifies the MRS command to reset the DDR2 DLL */612u32 emc_mrs_ddr2_dll_reset;613/* Specifies the EMRS command to set OCD calibration */614u32 emc_emrs_ddr2_ocd_calib;615/*616* Specifies the wait between initializing DDR and setting OCD617* calibration (in microseconds)618*/619u32 emc_ddr2_wait;620/* Specifies the value for EMC_CLKEN_OVERRIDE */621u32 emc_clken_override;622/*623* Specifies LOG2 of the extra refresh numbers after booting624* Program 0 to disable625*/626u32 emc_extra_refresh_num;627/* Specifies the master override for all EMC clocks */628u32 emc_clken_override_allwarm_boot;629/* Specifies the master override for all MC clocks */630u32 mc_clken_override_allwarm_boot;631/* Specifies digital dll period, choosing between 4 to 64 ms */632u32 emc_cfg_dig_dll_period_warm_boot;633634/* Pad controls */635636/* Specifies the value for PMC_VDDP_SEL */637u32 pmc_vddp_sel;638/* Specifies the wait time after programming PMC_VDDP_SEL */639u32 pmc_vddp_sel_wait;640/* Specifies the value for PMC_DDR_CFG */641u32 pmc_ddr_cfg;642/* Specifies the value for PMC_IO_DPD3_REQ */643u32 pmc_io_dpd3_req;644/* Specifies the wait time after programming PMC_IO_DPD3_REQ */645u32 pmc_io_dpd3_req_wait;646647u32 pmc_io_dpd4_req_wait;648649/* Specifies the value for PMC_REG_SHORT */650u32 pmc_reg_short;651/* Specifies the value for PMC_NO_IOPOWER */652u32 pmc_no_io_power;653654u32 pmc_ddr_ctrl_wait;655u32 pmc_ddr_ctrl;656657/* Specifies the value for EMC_ACPD_CONTROL */658u32 emc_acpd_control;659660/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE0 */661u32 emc_swizzle_rank0_byte0;662/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE1 */663u32 emc_swizzle_rank0_byte1;664/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE2 */665u32 emc_swizzle_rank0_byte2;666/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE3 */667u32 emc_swizzle_rank0_byte3;668/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE0 */669u32 emc_swizzle_rank1_byte0;670/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE1 */671u32 emc_swizzle_rank1_byte1;672/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE2 */673u32 emc_swizzle_rank1_byte2;674/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE3 */675u32 emc_swizzle_rank1_byte3;676677/* Specifies the value for EMC_TXDSRVTTGEN */678u32 emc_txdsrvttgen;679680/* Specifies the value for EMC_DATA_BRLSHFT_0 */681u32 emc_data_brlshft0;682u32 emc_data_brlshft1;683684u32 emc_dqs_brlshft0;685u32 emc_dqs_brlshft1;686687u32 emc_cmd_brlshft0;688u32 emc_cmd_brlshft1;689u32 emc_cmd_brlshft2;690u32 emc_cmd_brlshft3;691692u32 emc_quse_brlshft0;693u32 emc_quse_brlshft1;694u32 emc_quse_brlshft2;695u32 emc_quse_brlshft3;696697u32 emc_dll_cfg0;698u32 emc_dll_cfg1;699700u32 emc_pmc_scratch1;701u32 emc_pmc_scratch2;702u32 emc_pmc_scratch3;703704u32 emc_pmacro_pad_cfg_ctrl;705706u32 emc_pmacro_vttgen_ctrl0;707u32 emc_pmacro_vttgen_ctrl1;708u32 emc_pmacro_vttgen_ctrl2;709u32 emc_pmacro_dsr_vttgen_ctrl0;710u32 emc_pmacro_brick_ctrl_rfu1;711u32 emc_pmacro_cmd_brick_ctrl_fdpd;712u32 emc_pmacro_brick_ctrl_rfu2;713u32 emc_pmacro_data_brick_ctrl_fdpd;714u32 emc_pmacro_bg_bias_ctrl0;715u32 emc_pmacro_data_pad_rx_ctrl;716u32 emc_pmacro_cmd_pad_rx_ctrl;717u32 emc_pmacro_data_rx_term_mode;718u32 emc_pmacro_cmd_rx_term_mode;719u32 emc_pmacro_data_pad_tx_ctrl;720u32 emc_pmacro_cmd_pad_tx_ctrl;721u32 emc_cfg3;722723u32 emc_pmacro_tx_pwrd0;724u32 emc_pmacro_tx_pwrd1;725u32 emc_pmacro_tx_pwrd2;726u32 emc_pmacro_tx_pwrd3;727u32 emc_pmacro_tx_pwrd4;728u32 emc_pmacro_tx_pwrd5;729730u32 emc_config_sample_delay;731732u32 emc_pmacro_brick_mapping0;733u32 emc_pmacro_brick_mapping1;734u32 emc_pmacro_brick_mapping2;735736u32 emc_pmacro_tx_sel_clk_src0;737u32 emc_pmacro_tx_sel_clk_src1;738u32 emc_pmacro_tx_sel_clk_src2;739u32 emc_pmacro_tx_sel_clk_src3;740u32 emc_pmacro_tx_sel_clk_src4;741u32 emc_pmacro_tx_sel_clk_src5;742743u32 emc_pmacro_perbit_fgcg_ctrl0;744u32 emc_pmacro_perbit_fgcg_ctrl1;745u32 emc_pmacro_perbit_fgcg_ctrl2;746u32 emc_pmacro_perbit_fgcg_ctrl3;747u32 emc_pmacro_perbit_fgcg_ctrl4;748u32 emc_pmacro_perbit_fgcg_ctrl5;749u32 emc_pmacro_perbit_rfu_ctrl0;750u32 emc_pmacro_perbit_rfu_ctrl1;751u32 emc_pmacro_perbit_rfu_ctrl2;752u32 emc_pmacro_perbit_rfu_ctrl3;753u32 emc_pmacro_perbit_rfu_ctrl4;754u32 emc_pmacro_perbit_rfu_ctrl5;755u32 emc_pmacro_perbit_rfu1_ctrl0;756u32 emc_pmacro_perbit_rfu1_ctrl1;757u32 emc_pmacro_perbit_rfu1_ctrl2;758u32 emc_pmacro_perbit_rfu1_ctrl3;759u32 emc_pmacro_perbit_rfu1_ctrl4;760u32 emc_pmacro_perbit_rfu1_ctrl5;761762u32 emc_pmacro_data_pi_ctrl;763u32 emc_pmacro_cmd_pi_ctrl;764765u32 emc_pmacro_ddll_bypass;766767u32 emc_pmacro_ddll_pwrd0;768u32 emc_pmacro_ddll_pwrd1;769u32 emc_pmacro_ddll_pwrd2;770771u32 emc_pmacro_cmd_ctrl0;772u32 emc_pmacro_cmd_ctrl1;773u32 emc_pmacro_cmd_ctrl2;774775/* DRAM size information */776777/* Specifies the value for MC_EMEM_ADR_CFG */778u32 mc_emem_adr_cfg;779/* Specifies the value for MC_EMEM_ADR_CFG_DEV0 */780u32 mc_emem_adr_cfg_dev0;781/* Specifies the value for MC_EMEM_ADR_CFG_DEV1 */782u32 mc_emem_adr_cfg_dev1;783784u32 mc_emem_adr_cfg_channel_mask;785786/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG0 */787u32 mc_emem_adr_cfg_bank_mask0;788/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG1 */789u32 mc_emem_adr_cfg_bank_mask1;790/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG2 */791u32 mc_emem_adr_cfg_bank_mask2;792793/*794* Specifies the value for MC_EMEM_CFG which holds the external memory795* size (in KBytes)796*/797u32 mc_emem_cfg;798799/* MC arbitration configuration */800801/* Specifies the value for MC_EMEM_ARB_CFG */802u32 mc_emem_arb_cfg;803/* Specifies the value for MC_EMEM_ARB_OUTSTANDING_REQ */804u32 mc_emem_arb_outstanding_req;805806u32 emc_emem_arb_refpb_hp_ctrl;807u32 emc_emem_arb_refpb_bank_ctrl;808809/* Specifies the value for MC_EMEM_ARB_TIMING_RCD */810u32 mc_emem_arb_timing_rcd;811/* Specifies the value for MC_EMEM_ARB_TIMING_RP */812u32 mc_emem_arb_timing_rp;813/* Specifies the value for MC_EMEM_ARB_TIMING_RC */814u32 mc_emem_arb_timing_rc;815/* Specifies the value for MC_EMEM_ARB_TIMING_RAS */816u32 mc_emem_arb_timing_ras;817/* Specifies the value for MC_EMEM_ARB_TIMING_FAW */818u32 mc_emem_arb_timing_faw;819/* Specifies the value for MC_EMEM_ARB_TIMING_RRD */820u32 mc_emem_arb_timing_rrd;821/* Specifies the value for MC_EMEM_ARB_TIMING_RAP2PRE */822u32 mc_emem_arb_timing_rap2pre;823/* Specifies the value for MC_EMEM_ARB_TIMING_WAP2PRE */824u32 mc_emem_arb_timing_wap2pre;825/* Specifies the value for MC_EMEM_ARB_TIMING_R2R */826u32 mc_emem_arb_timing_r2r;827/* Specifies the value for MC_EMEM_ARB_TIMING_W2W */828u32 mc_emem_arb_timing_w2w;829/* Specifies the value for MC_EMEM_ARB_TIMING_R2W */830u32 mc_emem_arb_timing_r2w;831/* Specifies the value for MC_EMEM_ARB_TIMING_W2R */832u32 mc_emem_arb_timing_w2r;833834u32 mc_emem_arb_timing_rfcpb;835836/* Specifies the value for MC_EMEM_ARB_DA_TURNS */837u32 mc_emem_arb_da_turns;838/* Specifies the value for MC_EMEM_ARB_DA_COVERS */839u32 mc_emem_arb_da_covers;840/* Specifies the value for MC_EMEM_ARB_MISC0 */841u32 mc_emem_arb_misc0;842/* Specifies the value for MC_EMEM_ARB_MISC1 */843u32 mc_emem_arb_misc1;844u32 mc_emem_arb_misc2;845846/* Specifies the value for MC_EMEM_ARB_RING1_THROTTLE */847u32 mc_emem_arb_ring1_throttle;848/* Specifies the value for MC_EMEM_ARB_OVERRIDE */849u32 mc_emem_arb_override;850/* Specifies the value for MC_EMEM_ARB_OVERRIDE_1 */851u32 mc_emem_arb_override1;852/* Specifies the value for MC_EMEM_ARB_RSV */853u32 mc_emem_arb_rsv;854855u32 mc_da_cfg0;856u32 mc_emem_arb_timing_ccdmw;857858/* Specifies the value for MC_CLKEN_OVERRIDE */859u32 mc_clken_override;860861/* Specifies the value for MC_STAT_CONTROL */862u32 mc_stat_control;863/* Specifies the value for MC_VIDEO_PROTECT_BOM */864u32 mc_video_protect_bom;865/* Specifies the value for MC_VIDEO_PROTECT_BOM_ADR_HI */866u32 mc_video_protect_bom_adr_hi;867/* Specifies the value for MC_VIDEO_PROTECT_SIZE_MB */868u32 mc_video_protect_size_mb;869/* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE */870u32 mc_video_protect_vpr_override;871/* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE1 */872u32 mc_video_protect_vpr_override1;873/* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_0 */874u32 mc_video_protect_gpu_override0;875/* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_1 */876u32 mc_video_protect_gpu_override1;877/* Specifies the value for MC_SEC_CARVEOUT_BOM */878u32 mc_sec_carveout_bom;879/* Specifies the value for MC_SEC_CARVEOUT_ADR_HI */880u32 mc_sec_carveout_adr_hi;881/* Specifies the value for MC_SEC_CARVEOUT_SIZE_MB */882u32 mc_sec_carveout_size_mb;883/* Specifies the value for MC_VIDEO_PROTECT_REG_CTRL.VIDEO_PROTECT_WRITE_ACCESS */884u32 mc_video_protect_write_access;885/* Specifies the value for MC_SEC_CARVEOUT_REG_CTRL.SEC_CARVEOUT_WRITE_ACCESS */886u32 mc_sec_carveout_protect_write_access;887888u32 mc_generalized_carveout1_bom;889u32 mc_generalized_carveout1_bom_hi;890u32 mc_generalized_carveout1_size_128kb;891u32 mc_generalized_carveout1_access0;892u32 mc_generalized_carveout1_access1;893u32 mc_generalized_carveout1_access2;894u32 mc_generalized_carveout1_access3;895u32 mc_generalized_carveout1_access4;896u32 mc_generalized_carveout1_force_internal_access0;897u32 mc_generalized_carveout1_force_internal_access1;898u32 mc_generalized_carveout1_force_internal_access2;899u32 mc_generalized_carveout1_force_internal_access3;900u32 mc_generalized_carveout1_force_internal_access4;901u32 mc_generalized_carveout1_cfg0;902903u32 mc_generalized_carveout2_bom;904u32 mc_generalized_carveout2_bom_hi;905u32 mc_generalized_carveout2_size_128kb;906u32 mc_generalized_carveout2_access0;907u32 mc_generalized_carveout2_access1;908u32 mc_generalized_carveout2_access2;909u32 mc_generalized_carveout2_access3;910u32 mc_generalized_carveout2_access4;911u32 mc_generalized_carveout2_force_internal_access0;912u32 mc_generalized_carveout2_force_internal_access1;913u32 mc_generalized_carveout2_force_internal_access2;914u32 mc_generalized_carveout2_force_internal_access3;915u32 mc_generalized_carveout2_force_internal_access4;916u32 mc_generalized_carveout2_cfg0;917918u32 mc_generalized_carveout3_bom;919u32 mc_generalized_carveout3_bom_hi;920u32 mc_generalized_carveout3_size_128kb;921u32 mc_generalized_carveout3_access0;922u32 mc_generalized_carveout3_access1;923u32 mc_generalized_carveout3_access2;924u32 mc_generalized_carveout3_access3;925u32 mc_generalized_carveout3_access4;926u32 mc_generalized_carveout3_force_internal_access0;927u32 mc_generalized_carveout3_force_internal_access1;928u32 mc_generalized_carveout3_force_internal_access2;929u32 mc_generalized_carveout3_force_internal_access3;930u32 mc_generalized_carveout3_force_internal_access4;931u32 mc_generalized_carveout3_cfg0;932933u32 mc_generalized_carveout4_bom;934u32 mc_generalized_carveout4_bom_hi;935u32 mc_generalized_carveout4_size_128kb;936u32 mc_generalized_carveout4_access0;937u32 mc_generalized_carveout4_access1;938u32 mc_generalized_carveout4_access2;939u32 mc_generalized_carveout4_access3;940u32 mc_generalized_carveout4_access4;941u32 mc_generalized_carveout4_force_internal_access0;942u32 mc_generalized_carveout4_force_internal_access1;943u32 mc_generalized_carveout4_force_internal_access2;944u32 mc_generalized_carveout4_force_internal_access3;945u32 mc_generalized_carveout4_force_internal_access4;946u32 mc_generalized_carveout4_cfg0;947948u32 mc_generalized_carveout5_bom;949u32 mc_generalized_carveout5_bom_hi;950u32 mc_generalized_carveout5_size_128kb;951u32 mc_generalized_carveout5_access0;952u32 mc_generalized_carveout5_access1;953u32 mc_generalized_carveout5_access2;954u32 mc_generalized_carveout5_access3;955u32 mc_generalized_carveout5_access4;956u32 mc_generalized_carveout5_force_internal_access0;957u32 mc_generalized_carveout5_force_internal_access1;958u32 mc_generalized_carveout5_force_internal_access2;959u32 mc_generalized_carveout5_force_internal_access3;960u32 mc_generalized_carveout5_force_internal_access4;961u32 mc_generalized_carveout5_cfg0;962963/* Specifies enable for CA training */964u32 emc_ca_training_enable;965/* Set if bit 6 select is greater than bit 7 select; uses aremc.spec packet SWIZZLE_BIT6_GT_BIT7 */966u32 swizzle_rank_byte_encode;967/* Specifies enable and offset for patched boot rom write */968u32 boot_rom_patch_control;969/* Specifies data for patched boot rom write */970u32 boot_rom_patch_data;971972/* Specifies the value for MC_MTS_CARVEOUT_BOM */973u32 mc_mts_carveout_bom;974/* Specifies the value for MC_MTS_CARVEOUT_ADR_HI */975u32 mc_mts_carveout_adr_hi;976/* Specifies the value for MC_MTS_CARVEOUT_SIZE_MB */977u32 mc_mts_carveout_size_mb;978/* Specifies the value for MC_MTS_CARVEOUT_REG_CTRL */979u32 mc_mts_carveout_reg_ctrl;980981/* Specifies the clients that are allowed to access untranslated memory */982u32 mc_untranslated_region_check;983984/* Just a place holder for special usage when there is no BCT for certain registers */985u32 bct_na;986} sdram_params_t210b01_t;987988#endif989990991