Path: blob/master/modules/hekate_libsys_lp0/sdram_lp0_param_t210b01.h
1476 views
/*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 __TEGRA210B01_SDRAM_PARAM_H__14#define __TEGRA210B01_SDRAM_PARAM_H__1516#include "types.h"1718struct sdram_params_t210b0119{20/* Specifies the type of memory device */21u32 memory_type;2223/* MC/EMC clock source configuration */2425/* Specifies the M value for PllM */26u32 pllm_input_divider;27/* Specifies the N value for PllM */28u32 pllm_feedback_divider;29/* Specifies the time to wait for PLLM to lock (in microseconds) */30u32 pllm_stable_time;31/* Specifies misc. control bits */32u32 pllm_setup_control;33/* Specifies the P value for PLLM */34u32 pllm_post_divider;35/* Specifies value for Charge Pump Gain Control */36u32 pllm_kcp;37/* Specifies VCO gain */38u32 pllm_kvco;39/* Spare BCT param */40u32 emc_bct_spare0;41/* Spare BCT param */42u32 emc_bct_spare1;43/* Spare BCT param */44u32 emc_bct_spare2;45/* Spare BCT param */46u32 emc_bct_spare3;47/* Spare BCT param */48u32 emc_bct_spare4;49/* Spare BCT param */50u32 emc_bct_spare5;51/* Spare BCT param */52u32 emc_bct_spare6;53/* Spare BCT param */54u32 emc_bct_spare7;55/* Spare BCT param */56u32 emc_bct_spare8;57/* Spare BCT param */58u32 emc_bct_spare9;59/* Spare BCT param */60u32 emc_bct_spare10;61/* Spare BCT param */62u32 emc_bct_spare11;63/* Spare BCT param */64u32 emc_bct_spare12;65/* Spare BCT param */66u32 emc_bct_spare13;67/* Spare BCT param */68u32 emc_bct_spare_secure0;69/* Spare BCT param */70u32 emc_bct_spare_secure1;71/* Spare BCT param */72u32 emc_bct_spare_secure2;73/* Spare BCT param */74u32 emc_bct_spare_secure3;75/* Spare BCT param */76u32 emc_bct_spare_secure4;77/* Spare BCT param */78u32 emc_bct_spare_secure5;79/* Spare BCT param */80u32 emc_bct_spare_secure6;81/* Spare BCT param */82u32 emc_bct_spare_secure7;83/* Spare BCT param */84u32 emc_bct_spare_secure8;85/* Spare BCT param */86u32 emc_bct_spare_secure9;87/* Spare BCT param */88u32 emc_bct_spare_secure10;89/* Spare BCT param */90u32 emc_bct_spare_secure11;91/* Spare BCT param */92u32 emc_bct_spare_secure12;93/* Spare BCT param */94u32 emc_bct_spare_secure13;95/* Spare BCT param */96u32 emc_bct_spare_secure14;97/* Spare BCT param */98u32 emc_bct_spare_secure15;99/* Spare BCT param */100u32 emc_bct_spare_secure16;101/* Spare BCT param */102u32 emc_bct_spare_secure17;103/* Spare BCT param */104u32 emc_bct_spare_secure18;105/* Spare BCT param */106u32 emc_bct_spare_secure19;107/* Spare BCT param */108u32 emc_bct_spare_secure20;109/* Spare BCT param */110u32 emc_bct_spare_secure21;111/* Spare BCT param */112u32 emc_bct_spare_secure22;113/* Spare BCT param */114u32 emc_bct_spare_secure23;115116/* Defines EMC_2X_CLK_SRC, EMC_2X_CLK_DIVISOR, EMC_INVERT_DCD */117u32 emc_clock_source;118u32 emc_clock_source_dll;119120/* Defines possible override for PLLLM_MISC2 */121u32 clk_rst_pllm_misc20_override;122/* enables override for PLLLM_MISC2 */123u32 clk_rst_pllm_misc20_override_enable;124/* defines CLK_ENB_MC1 in register clk_rst_controller_clk_enb_w_clr */125u32 clear_clock2_mc1;126127/* Auto-calibration of EMC pads */128129/* Specifies the value for EMC_AUTO_CAL_INTERVAL */130u32 emc_auto_cal_interval;131/*132* Specifies the value for EMC_AUTO_CAL_CONFIG133* Note: Trigger bits are set by the SDRAM code.134*/135u32 emc_auto_cal_config;136137/* Specifies the value for EMC_AUTO_CAL_CONFIG2 */138u32 emc_auto_cal_config2;139140/* Specifies the value for EMC_AUTO_CAL_CONFIG3 */141u32 emc_auto_cal_config3;142u32 emc_auto_cal_config4;143u32 emc_auto_cal_config5;144u32 emc_auto_cal_config6;145u32 emc_auto_cal_config7;146u32 emc_auto_cal_config8;147u32 emc_auto_cal_config9;148149/* Specifies the value for EMC_AUTO_CAL_VREF_SEL_0 */150u32 emc_auto_cal_vref_sel0;151u32 emc_auto_cal_vref_sel1;152153/* Specifies the value for EMC_AUTO_CAL_CHANNEL */154u32 emc_auto_cal_channel;155156/* Specifies the value for EMC_PMACRO_AUTOCAL_CFG_0 */157u32 emc_pmacro_auto_cal_cfg0;158u32 emc_pmacro_auto_cal_cfg1;159u32 emc_pmacro_auto_cal_cfg2;160161u32 emc_pmacro_rx_term;162u32 emc_pmacro_dq_tx_drive;163u32 emc_pmacro_ca_tx_drive;164u32 emc_pmacro_cmd_tx_drive;165u32 emc_pmacro_auto_cal_common;166u32 emc_pmacro_zcrtl;167168/*169* Specifies the time for the calibration170* to stabilize (in microseconds)171*/172u32 emc_auto_cal_wait;173174u32 emc_xm2_comp_pad_ctrl;175u32 emc_xm2_comp_pad_ctrl2;176u32 emc_xm2_comp_pad_ctrl3;177178/*179* DRAM size information180* Specifies the value for EMC_ADR_CFG181*/182u32 emc_adr_cfg;183184/*185* Specifies the time to wait after asserting pin186* CKE (in microseconds)187*/188u32 emc_pin_program_wait;189/* Specifies the extra delay before/after pin RESET/CKE command */190u32 emc_pin_extra_wait;191192u32 emc_pin_gpio_enable;193u32 emc_pin_gpio;194195/*196* Specifies the extra delay after the first writing197* of EMC_TIMING_CONTROL198*/199u32 emc_timing_control_wait;200201/* Timing parameters required for the SDRAM */202203/* Specifies the value for EMC_RC */204u32 emc_rc;205/* Specifies the value for EMC_RFC */206u32 emc_rfc;207208u32 emc_rfc_pb;209u32 emc_ref_ctrl2;210211/* Specifies the value for EMC_RFC_SLR */212u32 emc_rfc_slr;213/* Specifies the value for EMC_RAS */214u32 emc_ras;215/* Specifies the value for EMC_RP */216u32 emc_rp;217/* Specifies the value for EMC_R2R */218u32 emc_r2r;219/* Specifies the value for EMC_W2W */220u32 emc_w2w;221/* Specifies the value for EMC_R2W */222u32 emc_r2w;223/* Specifies the value for EMC_W2R */224u32 emc_w2r;225/* Specifies the value for EMC_R2P */226u32 emc_r2p;227/* Specifies the value for EMC_W2P */228u32 emc_w2p;229230u32 emc_tppd;231u32 emc_trtm;232u32 emc_twtm;233u32 emc_tratm;234u32 emc_twatm;235u32 emc_tr2ref;236u32 emc_ccdmw;237238/* Specifies the value for EMC_RD_RCD */239u32 emc_rd_rcd;240/* Specifies the value for EMC_WR_RCD */241u32 emc_wr_rcd;242/* Specifies the value for EMC_RRD */243u32 emc_rrd;244/* Specifies the value for EMC_REXT */245u32 emc_rext;246/* Specifies the value for EMC_WEXT */247u32 emc_wext;248/* Specifies the value for EMC_WDV */249u32 emc_wdv;250251u32 emc_wdv_chk;252u32 emc_wsv;253u32 emc_wev;254255/* Specifies the value for EMC_WDV_MASK */256u32 emc_wdv_mask;257258u32 emc_ws_duration;259u32 emc_we_duration;260261/* Specifies the value for EMC_QUSE */262u32 emc_quse;263/* Specifies the value for EMC_QUSE_WIDTH */264u32 emc_quse_width;265/* Specifies the value for EMC_IBDLY */266u32 emc_ibdly;267268u32 emc_obdly;269270/* Specifies the value for EMC_EINPUT */271u32 emc_einput;272/* Specifies the value for EMC_EINPUT_DURATION */273u32 emc_einput_duration;274/* Specifies the value for EMC_PUTERM_EXTRA */275u32 emc_puterm_extra;276/* Specifies the value for EMC_PUTERM_WIDTH */277u32 emc_puterm_width;278279u32 emc_qrst;280u32 emc_qsafe;281u32 emc_rdv;282u32 emc_rdv_mask;283284u32 emc_rdv_early;285u32 emc_rdv_early_mask;286287/* Specifies the value for EMC_QPOP */288u32 emc_qpop;289290/* Specifies the value for EMC_REFRESH */291u32 emc_refresh;292/* Specifies the value for EMC_BURST_REFRESH_NUM */293u32 emc_burst_refresh_num;294/* Specifies the value for EMC_PRE_REFRESH_REQ_CNT */295u32 emc_prerefresh_req_cnt;296/* Specifies the value for EMC_PDEX2WR */297u32 emc_pdex2wr;298/* Specifies the value for EMC_PDEX2RD */299u32 emc_pdex2rd;300/* Specifies the value for EMC_PCHG2PDEN */301u32 emc_pchg2pden;302/* Specifies the value for EMC_ACT2PDEN */303u32 emc_act2pden;304/* Specifies the value for EMC_AR2PDEN */305u32 emc_ar2pden;306/* Specifies the value for EMC_RW2PDEN */307u32 emc_rw2pden;308309u32 emc_cke2pden;310u32 emc_pdex2che;311u32 emc_pdex2mrr;312313/* Specifies the value for EMC_TXSR */314u32 emc_txsr;315/* Specifies the value for EMC_TXSRDLL */316u32 emc_txsr_dll;317/* Specifies the value for EMC_TCKE */318u32 emc_tcke;319/* Specifies the value for EMC_TCKESR */320u32 emc_tckesr;321/* Specifies the value for EMC_TPD */322u32 emc_tpd;323/* Specifies the value for EMC_TFAW */324u32 emc_tfaw;325/* Specifies the value for EMC_TRPAB */326u32 emc_trpab;327/* Specifies the value for EMC_TCLKSTABLE */328u32 emc_tclkstable;329/* Specifies the value for EMC_TCLKSTOP */330u32 emc_tclkstop;331/* Specifies the value for EMC_TREFBW */332u32 emc_trefbw;333334/* FBIO configuration values */335336/* Specifies the value for EMC_FBIO_CFG5 */337u32 emc_fbio_cfg5;338/* Specifies the value for EMC_FBIO_CFG7 */339u32 emc_fbio_cfg7;340u32 emc_fbio_cfg8;341342/* Command mapping for CMD brick 0 */343u32 emc_cmd_mapping_cmd0_0;344u32 emc_cmd_mapping_cmd0_1;345u32 emc_cmd_mapping_cmd0_2;346u32 emc_cmd_mapping_cmd1_0;347u32 emc_cmd_mapping_cmd1_1;348u32 emc_cmd_mapping_cmd1_2;349u32 emc_cmd_mapping_cmd2_0;350u32 emc_cmd_mapping_cmd2_1;351u32 emc_cmd_mapping_cmd2_2;352u32 emc_cmd_mapping_cmd3_0;353u32 emc_cmd_mapping_cmd3_1;354u32 emc_cmd_mapping_cmd3_2;355u32 emc_cmd_mapping_byte;356357/* Specifies the value for EMC_FBIO_SPARE */358u32 emc_fbio_spare;359360/* Specifies the value for EMC_CFG_RSV */361u32 emc_cfg_rsv;362363/* MRS command values */364365/* Specifies the value for EMC_MRS */366u32 emc_mrs;367/* Specifies the MP0 command to initialize mode registers */368u32 emc_emrs;369/* Specifies the MP2 command to initialize mode registers */370u32 emc_emrs2;371/* Specifies the MP3 command to initialize mode registers */372u32 emc_emrs3;373/* Specifies the programming to LPDDR2 Mode Register 1 at cold boot */374u32 emc_mrw1;375/* Specifies the programming to LPDDR2 Mode Register 2 at cold boot */376u32 emc_mrw2;377/* Specifies the programming to LPDDR2 Mode Register 3 at cold boot */378u32 emc_mrw3;379/* Specifies the programming to LPDDR2 Mode Register 11 at cold boot */380u32 emc_mrw4;381382/* Specifies the programming to LPDDR4 Mode Register 3 at cold boot */383u32 emc_mrw6;384/* Specifies the programming to LPDDR4 Mode Register 11 at cold boot */385u32 emc_mrw8;386/* Specifies the programming to LPDDR4 Mode Register 11 at cold boot */387u32 emc_mrw9;388/* Specifies the programming to LPDDR4 Mode Register 12 at cold boot */389u32 emc_mrw10;390/* Specifies the programming to LPDDR4 Mode Register 14 at cold boot */391u32 emc_mrw12;392/* Specifies the programming to LPDDR4 Mode Register 14 at cold boot */393u32 emc_mrw13;394/* Specifies the programming to LPDDR4 Mode Register 22 at cold boot */395u32 emc_mrw14;396397/*398* Specifies the programming to extra LPDDR2 Mode Register399* at cold boot400*/401u32 emc_mrw_extra;402/*403* Specifies the programming to extra LPDDR2 Mode Register404* at warm boot405*/406u32 emc_warm_boot_mrw_extra;407/*408* Specify the enable of extra Mode Register programming at409* warm boot410*/411u32 emc_warm_boot_extramode_reg_write_enable;412/*413* Specify the enable of extra Mode Register programming at414* cold boot415*/416u32 emc_extramode_reg_write_enable;417418/* Specifies the EMC_MRW reset command value */419u32 emc_mrw_reset_command;420/* Specifies the EMC Reset wait time (in microseconds) */421u32 emc_mrw_reset_ninit_wait;422/* Specifies the value for EMC_MRS_WAIT_CNT */423u32 emc_mrs_wait_cnt;424/* Specifies the value for EMC_MRS_WAIT_CNT2 */425u32 emc_mrs_wait_cnt2;426427/* EMC miscellaneous configurations */428429/* Specifies the value for EMC_CFG */430u32 emc_cfg;431/* Specifies the value for EMC_CFG_2 */432u32 emc_cfg2;433/* Specifies the pipe bypass controls */434u32 emc_cfg_pipe;435436u32 emc_cfg_pipe_clk;437u32 emc_fdpd_ctrl_cmd_no_ramp;438u32 emc_cfg_update;439440/* Specifies the value for EMC_DBG */441u32 emc_dbg;442443u32 emc_dbg_write_mux;444445/* Specifies the value for EMC_CMDQ */446u32 emc_cmd_q;447/* Specifies the value for EMC_MC2EMCQ */448u32 emc_mc2emc_q;449/* Specifies the value for EMC_DYN_SELF_REF_CONTROL */450u32 emc_dyn_self_ref_control;451452/* Specifies the value for MEM_INIT_DONE */453u32 ahb_arbitration_xbar_ctrl_meminit_done;454455/* Specifies the value for EMC_CFG_DIG_DLL */456u32 emc_cfg_dig_dll;457u32 emc_cfg_dig_dll_1;458459/* Specifies the value for EMC_CFG_DIG_DLL_PERIOD */460u32 emc_cfg_dig_dll_period;461/* Specifies the value of *DEV_SELECTN of various EMC registers */462u32 emc_dev_select;463464/* Specifies the value for EMC_SEL_DPD_CTRL */465u32 emc_sel_dpd_ctrl;466467/* Pads trimmer delays */468u32 emc_fdpd_ctrl_dq;469u32 emc_fdpd_ctrl_cmd;470u32 emc_pmacro_ib_vref_dq_0;471u32 emc_pmacro_ib_vref_dq_1;472u32 emc_pmacro_ib_vref_dqs_0;473u32 emc_pmacro_ib_vref_dqs_1;474u32 emc_pmacro_ib_rxrt;475u32 emc_cfg_pipe1;476u32 emc_cfg_pipe2;477478/* Specifies the value for EMC_PMACRO_QUSE_DDLL_RANK0_0 */479u32 emc_pmacro_quse_ddll_rank0_0;480u32 emc_pmacro_quse_ddll_rank0_1;481u32 emc_pmacro_quse_ddll_rank0_2;482u32 emc_pmacro_quse_ddll_rank0_3;483u32 emc_pmacro_quse_ddll_rank0_4;484u32 emc_pmacro_quse_ddll_rank0_5;485u32 emc_pmacro_quse_ddll_rank1_0;486u32 emc_pmacro_quse_ddll_rank1_1;487u32 emc_pmacro_quse_ddll_rank1_2;488u32 emc_pmacro_quse_ddll_rank1_3;489u32 emc_pmacro_quse_ddll_rank1_4;490u32 emc_pmacro_quse_ddll_rank1_5;491492u32 emc_pmacro_ob_ddll_long_dq_rank0_0;493u32 emc_pmacro_ob_ddll_long_dq_rank0_1;494u32 emc_pmacro_ob_ddll_long_dq_rank0_2;495u32 emc_pmacro_ob_ddll_long_dq_rank0_3;496u32 emc_pmacro_ob_ddll_long_dq_rank0_4;497u32 emc_pmacro_ob_ddll_long_dq_rank0_5;498u32 emc_pmacro_ob_ddll_long_dq_rank1_0;499u32 emc_pmacro_ob_ddll_long_dq_rank1_1;500u32 emc_pmacro_ob_ddll_long_dq_rank1_2;501u32 emc_pmacro_ob_ddll_long_dq_rank1_3;502u32 emc_pmacro_ob_ddll_long_dq_rank1_4;503u32 emc_pmacro_ob_ddll_long_dq_rank1_5;504505u32 emc_pmacro_ob_ddll_long_dqs_rank0_0;506u32 emc_pmacro_ob_ddll_long_dqs_rank0_1;507u32 emc_pmacro_ob_ddll_long_dqs_rank0_2;508u32 emc_pmacro_ob_ddll_long_dqs_rank0_3;509u32 emc_pmacro_ob_ddll_long_dqs_rank0_4;510u32 emc_pmacro_ob_ddll_long_dqs_rank0_5;511u32 emc_pmacro_ob_ddll_long_dqs_rank1_0;512u32 emc_pmacro_ob_ddll_long_dqs_rank1_1;513u32 emc_pmacro_ob_ddll_long_dqs_rank1_2;514u32 emc_pmacro_ob_ddll_long_dqs_rank1_3;515u32 emc_pmacro_ob_ddll_long_dqs_rank1_4;516u32 emc_pmacro_ob_ddll_long_dqs_rank1_5;517518u32 emc_pmacro_ib_ddll_long_dqs_rank0_0;519u32 emc_pmacro_ib_ddll_long_dqs_rank0_1;520u32 emc_pmacro_ib_ddll_long_dqs_rank0_2;521u32 emc_pmacro_ib_ddll_long_dqs_rank0_3;522u32 emc_pmacro_ib_ddll_long_dqs_rank1_0;523u32 emc_pmacro_ib_ddll_long_dqs_rank1_1;524u32 emc_pmacro_ib_ddll_long_dqs_rank1_2;525u32 emc_pmacro_ib_ddll_long_dqs_rank1_3;526527u32 emc_pmacro_ddll_long_cmd_0;528u32 emc_pmacro_ddll_long_cmd_1;529u32 emc_pmacro_ddll_long_cmd_2;530u32 emc_pmacro_ddll_long_cmd_3;531u32 emc_pmacro_ddll_long_cmd_4;532u32 emc_pmacro_ddll_short_cmd_0;533u32 emc_pmacro_ddll_short_cmd_1;534u32 emc_pmacro_ddll_short_cmd_2;535536u32 emc_pmacro_ddll_periodic_offset;537538/*539* Specifies the delay after asserting CKE pin during a WarmBoot0540* sequence (in microseconds)541*/542u32 warm_boot_wait;543544/* Specifies the value for EMC_ODT_WRITE */545u32 emc_odt_write;546547/* Periodic ZQ calibration */548549/*550* Specifies the value for EMC_ZCAL_INTERVAL551* Value 0 disables ZQ calibration552*/553u32 emc_zcal_interval;554/* Specifies the value for EMC_ZCAL_WAIT_CNT */555u32 emc_zcal_wait_cnt;556/* Specifies the value for EMC_ZCAL_MRW_CMD */557u32 emc_zcal_mrw_cmd;558559/* DRAM initialization sequence flow control */560561/* Specifies the MRS command value for resetting DLL */562u32 emc_mrs_reset_dll;563/* Specifies the command for ZQ initialization of device 0 */564u32 emc_zcal_init_dev0;565/* Specifies the command for ZQ initialization of device 1 */566u32 emc_zcal_init_dev1;567/*568* Specifies the wait time after programming a ZQ initialization569* command (in microseconds)570*/571u32 emc_zcal_init_wait;572/*573* Specifies the enable for ZQ calibration at cold boot [bit 0]574* and warm boot [bit 1]575*/576u32 emc_zcal_warm_cold_boot_enables;577578/*579* Specifies the MRW command to LPDDR2 for ZQ calibration580* on warmboot581*/582/* Is issued to both devices separately */583u32 emc_mrw_lpddr2zcal_warm_boot;584/*585* Specifies the ZQ command to DDR3 for ZQ calibration on warmboot586* Is issued to both devices separately587*/588u32 emc_zqcal_ddr3_warm_boot;589590u32 emc_zqcal_lpddr4_warm_boot;591592/*593* Specifies the wait time for ZQ calibration on warmboot594* (in microseconds)595*/596u32 emc_zcal_warm_boot_wait;597/*598* Specifies the enable for DRAM Mode Register programming599* at warm boot600*/601u32 emc_mrs_warm_boot_enable;602/*603* Specifies the wait time after sending an MRS DLL reset command604* in microseconds)605*/606u32 emc_mrs_reset_dll_wait;607/* Specifies the extra MRS command to initialize mode registers */608u32 emc_mrs_extra;609/* Specifies the extra MRS command at warm boot */610u32 emc_warm_boot_mrs_extra;611/* Specifies the EMRS command to enable the DDR2 DLL */612u32 emc_emrs_ddr2_dll_enable;613/* Specifies the MRS command to reset the DDR2 DLL */614u32 emc_mrs_ddr2_dll_reset;615/* Specifies the EMRS command to set OCD calibration */616u32 emc_emrs_ddr2_ocd_calib;617/*618* Specifies the wait between initializing DDR and setting OCD619* calibration (in microseconds)620*/621u32 emc_ddr2_wait;622/* Specifies the value for EMC_CLKEN_OVERRIDE */623u32 emc_clken_override;624/*625* Specifies LOG2 of the extra refresh numbers after booting626* Program 0 to disable627*/628u32 emc_extra_refresh_num;629/* Specifies the master override for all EMC clocks */630u32 emc_clken_override_allwarm_boot;631/* Specifies the master override for all MC clocks */632u32 mc_clken_override_allwarm_boot;633/* Specifies digital dll period, choosing between 4 to 64 ms */634u32 emc_cfg_dig_dll_period_warm_boot;635636/* Pad controls */637638/* Specifies the value for PMC_VDDP_SEL */639u32 pmc_vddp_sel;640/* Specifies the wait time after programming PMC_VDDP_SEL */641u32 pmc_vddp_sel_wait;642/* Specifies the value for PMC_DDR_CFG */643u32 pmc_ddr_cfg;644/* Specifies the value for PMC_IO_DPD3_REQ */645u32 pmc_io_dpd3_req;646/* Specifies the wait time after programming PMC_IO_DPD3_REQ */647u32 pmc_io_dpd3_req_wait;648649u32 pmc_io_dpd4_req_wait;650651/* Specifies the value for PMC_REG_SHORT */652u32 pmc_reg_short;653/* Specifies the value for PMC_NO_IOPOWER */654u32 pmc_no_io_power;655656u32 pmc_ddr_ctrl_wait;657u32 pmc_ddr_ctrl;658659/* Specifies the value for EMC_ACPD_CONTROL */660u32 emc_acpd_control;661662/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE0 */663u32 emc_swizzle_rank0_byte0;664/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE1 */665u32 emc_swizzle_rank0_byte1;666/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE2 */667u32 emc_swizzle_rank0_byte2;668/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE3 */669u32 emc_swizzle_rank0_byte3;670/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE0 */671u32 emc_swizzle_rank1_byte0;672/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE1 */673u32 emc_swizzle_rank1_byte1;674/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE2 */675u32 emc_swizzle_rank1_byte2;676/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE3 */677u32 emc_swizzle_rank1_byte3;678679/* Specifies the value for EMC_TXDSRVTTGEN */680u32 emc_txdsrvttgen;681682/* Specifies the value for EMC_DATA_BRLSHFT_0 */683u32 emc_data_brlshft0;684u32 emc_data_brlshft1;685686u32 emc_dqs_brlshft0;687u32 emc_dqs_brlshft1;688689u32 emc_cmd_brlshft0;690u32 emc_cmd_brlshft1;691u32 emc_cmd_brlshft2;692u32 emc_cmd_brlshft3;693694u32 emc_quse_brlshft0;695u32 emc_quse_brlshft1;696u32 emc_quse_brlshft2;697u32 emc_quse_brlshft3;698699u32 emc_dll_cfg0;700u32 emc_dll_cfg1;701702u32 emc_pmc_scratch1;703u32 emc_pmc_scratch2;704u32 emc_pmc_scratch3;705706u32 emc_pmacro_pad_cfg_ctrl;707708u32 emc_pmacro_vttgen_ctrl0;709u32 emc_pmacro_vttgen_ctrl1;710u32 emc_pmacro_vttgen_ctrl2;711u32 emc_pmacro_dsr_vttgen_ctrl0;712u32 emc_pmacro_brick_ctrl_rfu1;713u32 emc_pmacro_cmd_brick_ctrl_fdpd;714u32 emc_pmacro_brick_ctrl_rfu2;715u32 emc_pmacro_data_brick_ctrl_fdpd;716u32 emc_pmacro_bg_bias_ctrl0;717u32 emc_pmacro_data_pad_rx_ctrl;718u32 emc_pmacro_cmd_pad_rx_ctrl;719u32 emc_pmacro_data_rx_term_mode;720u32 emc_pmacro_cmd_rx_term_mode;721u32 emc_pmacro_data_pad_tx_ctrl;722u32 emc_pmacro_cmd_pad_tx_ctrl;723u32 emc_cfg3;724725u32 emc_pmacro_tx_pwrd0;726u32 emc_pmacro_tx_pwrd1;727u32 emc_pmacro_tx_pwrd2;728u32 emc_pmacro_tx_pwrd3;729u32 emc_pmacro_tx_pwrd4;730u32 emc_pmacro_tx_pwrd5;731732u32 emc_config_sample_delay;733734u32 emc_pmacro_brick_mapping0;735u32 emc_pmacro_brick_mapping1;736u32 emc_pmacro_brick_mapping2;737738u32 emc_pmacro_tx_sel_clk_src0;739u32 emc_pmacro_tx_sel_clk_src1;740u32 emc_pmacro_tx_sel_clk_src2;741u32 emc_pmacro_tx_sel_clk_src3;742u32 emc_pmacro_tx_sel_clk_src4;743u32 emc_pmacro_tx_sel_clk_src5;744745u32 emc_pmacro_perbit_fgcg_ctrl0;746u32 emc_pmacro_perbit_fgcg_ctrl1;747u32 emc_pmacro_perbit_fgcg_ctrl2;748u32 emc_pmacro_perbit_fgcg_ctrl3;749u32 emc_pmacro_perbit_fgcg_ctrl4;750u32 emc_pmacro_perbit_fgcg_ctrl5;751u32 emc_pmacro_perbit_rfu_ctrl0;752u32 emc_pmacro_perbit_rfu_ctrl1;753u32 emc_pmacro_perbit_rfu_ctrl2;754u32 emc_pmacro_perbit_rfu_ctrl3;755u32 emc_pmacro_perbit_rfu_ctrl4;756u32 emc_pmacro_perbit_rfu_ctrl5;757u32 emc_pmacro_perbit_rfu1_ctrl0;758u32 emc_pmacro_perbit_rfu1_ctrl1;759u32 emc_pmacro_perbit_rfu1_ctrl2;760u32 emc_pmacro_perbit_rfu1_ctrl3;761u32 emc_pmacro_perbit_rfu1_ctrl4;762u32 emc_pmacro_perbit_rfu1_ctrl5;763764u32 emc_pmacro_data_pi_ctrl;765u32 emc_pmacro_cmd_pi_ctrl;766767u32 emc_pmacro_ddll_bypass;768769u32 emc_pmacro_ddll_pwrd0;770u32 emc_pmacro_ddll_pwrd1;771u32 emc_pmacro_ddll_pwrd2;772773u32 emc_pmacro_cmd_ctrl0;774u32 emc_pmacro_cmd_ctrl1;775u32 emc_pmacro_cmd_ctrl2;776777/* DRAM size information */778779/* Specifies the value for MC_EMEM_ADR_CFG */780u32 mc_emem_adr_cfg;781/* Specifies the value for MC_EMEM_ADR_CFG_DEV0 */782u32 mc_emem_adr_cfg_dev0;783/* Specifies the value for MC_EMEM_ADR_CFG_DEV1 */784u32 mc_emem_adr_cfg_dev1;785786u32 mc_emem_adr_cfg_channel_mask;787788/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG0 */789u32 mc_emem_adr_cfg_bank_mask0;790/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG1 */791u32 mc_emem_adr_cfg_bank_mask1;792/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG2 */793u32 mc_emem_adr_cfg_bank_mask2;794795/*796* Specifies the value for MC_EMEM_CFG which holds the external memory797* size (in KBytes)798*/799u32 mc_emem_cfg;800801/* MC arbitration configuration */802803/* Specifies the value for MC_EMEM_ARB_CFG */804u32 mc_emem_arb_cfg;805/* Specifies the value for MC_EMEM_ARB_OUTSTANDING_REQ */806u32 mc_emem_arb_outstanding_req;807808u32 emc_emem_arb_refpb_hp_ctrl;809u32 emc_emem_arb_refpb_bank_ctrl;810811/* Specifies the value for MC_EMEM_ARB_TIMING_RCD */812u32 mc_emem_arb_timing_rcd;813/* Specifies the value for MC_EMEM_ARB_TIMING_RP */814u32 mc_emem_arb_timing_rp;815/* Specifies the value for MC_EMEM_ARB_TIMING_RC */816u32 mc_emem_arb_timing_rc;817/* Specifies the value for MC_EMEM_ARB_TIMING_RAS */818u32 mc_emem_arb_timing_ras;819/* Specifies the value for MC_EMEM_ARB_TIMING_FAW */820u32 mc_emem_arb_timing_faw;821/* Specifies the value for MC_EMEM_ARB_TIMING_RRD */822u32 mc_emem_arb_timing_rrd;823/* Specifies the value for MC_EMEM_ARB_TIMING_RAP2PRE */824u32 mc_emem_arb_timing_rap2pre;825/* Specifies the value for MC_EMEM_ARB_TIMING_WAP2PRE */826u32 mc_emem_arb_timing_wap2pre;827/* Specifies the value for MC_EMEM_ARB_TIMING_R2R */828u32 mc_emem_arb_timing_r2r;829/* Specifies the value for MC_EMEM_ARB_TIMING_W2W */830u32 mc_emem_arb_timing_w2w;831/* Specifies the value for MC_EMEM_ARB_TIMING_R2W */832u32 mc_emem_arb_timing_r2w;833/* Specifies the value for MC_EMEM_ARB_TIMING_W2R */834u32 mc_emem_arb_timing_w2r;835836u32 mc_emem_arb_timing_rfcpb;837838/* Specifies the value for MC_EMEM_ARB_DA_TURNS */839u32 mc_emem_arb_da_turns;840/* Specifies the value for MC_EMEM_ARB_DA_COVERS */841u32 mc_emem_arb_da_covers;842/* Specifies the value for MC_EMEM_ARB_MISC0 */843u32 mc_emem_arb_misc0;844/* Specifies the value for MC_EMEM_ARB_MISC1 */845u32 mc_emem_arb_misc1;846u32 mc_emem_arb_misc2;847848/* Specifies the value for MC_EMEM_ARB_RING1_THROTTLE */849u32 mc_emem_arb_ring1_throttle;850/* Specifies the value for MC_EMEM_ARB_OVERRIDE */851u32 mc_emem_arb_override;852/* Specifies the value for MC_EMEM_ARB_OVERRIDE_1 */853u32 mc_emem_arb_override1;854/* Specifies the value for MC_EMEM_ARB_RSV */855u32 mc_emem_arb_rsv;856857u32 mc_da_cfg0;858u32 mc_emem_arb_timing_ccdmw;859860/* Specifies the value for MC_CLKEN_OVERRIDE */861u32 mc_clken_override;862863/* Specifies the value for MC_STAT_CONTROL */864u32 mc_stat_control;865/* Specifies the value for MC_VIDEO_PROTECT_BOM */866u32 mc_video_protect_bom;867/* Specifies the value for MC_VIDEO_PROTECT_BOM_ADR_HI */868u32 mc_video_protect_bom_adr_hi;869/* Specifies the value for MC_VIDEO_PROTECT_SIZE_MB */870u32 mc_video_protect_size_mb;871/* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE */872u32 mc_video_protect_vpr_override;873/* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE1 */874u32 mc_video_protect_vpr_override1;875/* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_0 */876u32 mc_video_protect_gpu_override0;877/* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_1 */878u32 mc_video_protect_gpu_override1;879/* Specifies the value for MC_SEC_CARVEOUT_BOM */880u32 mc_sec_carveout_bom;881/* Specifies the value for MC_SEC_CARVEOUT_ADR_HI */882u32 mc_sec_carveout_adr_hi;883/* Specifies the value for MC_SEC_CARVEOUT_SIZE_MB */884u32 mc_sec_carveout_size_mb;885/* Specifies the value for MC_VIDEO_PROTECT_REG_CTRL.VIDEO_PROTECT_WRITE_ACCESS */886u32 mc_video_protect_write_access;887/* Specifies the value for MC_SEC_CARVEOUT_REG_CTRL.SEC_CARVEOUT_WRITE_ACCESS */888u32 mc_sec_carveout_protect_write_access;889890u32 mc_generalized_carveout1_bom;891u32 mc_generalized_carveout1_bom_hi;892u32 mc_generalized_carveout1_size_128kb;893u32 mc_generalized_carveout1_access0;894u32 mc_generalized_carveout1_access1;895u32 mc_generalized_carveout1_access2;896u32 mc_generalized_carveout1_access3;897u32 mc_generalized_carveout1_access4;898u32 mc_generalized_carveout1_force_internal_access0;899u32 mc_generalized_carveout1_force_internal_access1;900u32 mc_generalized_carveout1_force_internal_access2;901u32 mc_generalized_carveout1_force_internal_access3;902u32 mc_generalized_carveout1_force_internal_access4;903u32 mc_generalized_carveout1_cfg0;904905u32 mc_generalized_carveout2_bom;906u32 mc_generalized_carveout2_bom_hi;907u32 mc_generalized_carveout2_size_128kb;908u32 mc_generalized_carveout2_access0;909u32 mc_generalized_carveout2_access1;910u32 mc_generalized_carveout2_access2;911u32 mc_generalized_carveout2_access3;912u32 mc_generalized_carveout2_access4;913u32 mc_generalized_carveout2_force_internal_access0;914u32 mc_generalized_carveout2_force_internal_access1;915u32 mc_generalized_carveout2_force_internal_access2;916u32 mc_generalized_carveout2_force_internal_access3;917u32 mc_generalized_carveout2_force_internal_access4;918u32 mc_generalized_carveout2_cfg0;919920u32 mc_generalized_carveout3_bom;921u32 mc_generalized_carveout3_bom_hi;922u32 mc_generalized_carveout3_size_128kb;923u32 mc_generalized_carveout3_access0;924u32 mc_generalized_carveout3_access1;925u32 mc_generalized_carveout3_access2;926u32 mc_generalized_carveout3_access3;927u32 mc_generalized_carveout3_access4;928u32 mc_generalized_carveout3_force_internal_access0;929u32 mc_generalized_carveout3_force_internal_access1;930u32 mc_generalized_carveout3_force_internal_access2;931u32 mc_generalized_carveout3_force_internal_access3;932u32 mc_generalized_carveout3_force_internal_access4;933u32 mc_generalized_carveout3_cfg0;934935u32 mc_generalized_carveout4_bom;936u32 mc_generalized_carveout4_bom_hi;937u32 mc_generalized_carveout4_size_128kb;938u32 mc_generalized_carveout4_access0;939u32 mc_generalized_carveout4_access1;940u32 mc_generalized_carveout4_access2;941u32 mc_generalized_carveout4_access3;942u32 mc_generalized_carveout4_access4;943u32 mc_generalized_carveout4_force_internal_access0;944u32 mc_generalized_carveout4_force_internal_access1;945u32 mc_generalized_carveout4_force_internal_access2;946u32 mc_generalized_carveout4_force_internal_access3;947u32 mc_generalized_carveout4_force_internal_access4;948u32 mc_generalized_carveout4_cfg0;949950u32 mc_generalized_carveout5_bom;951u32 mc_generalized_carveout5_bom_hi;952u32 mc_generalized_carveout5_size_128kb;953u32 mc_generalized_carveout5_access0;954u32 mc_generalized_carveout5_access1;955u32 mc_generalized_carveout5_access2;956u32 mc_generalized_carveout5_access3;957u32 mc_generalized_carveout5_access4;958u32 mc_generalized_carveout5_force_internal_access0;959u32 mc_generalized_carveout5_force_internal_access1;960u32 mc_generalized_carveout5_force_internal_access2;961u32 mc_generalized_carveout5_force_internal_access3;962u32 mc_generalized_carveout5_force_internal_access4;963u32 mc_generalized_carveout5_cfg0;964965/* Specifies enable for CA training */966u32 emc_ca_training_enable;967/* Set if bit 6 select is greater than bit 7 select; uses aremc.spec packet SWIZZLE_BIT6_GT_BIT7 */968u32 swizzle_rank_byte_encode;969/* Specifies enable and offset for patched boot rom write */970u32 boot_rom_patch_control;971/* Specifies data for patched boot rom write */972u32 boot_rom_patch_data;973974/* Specifies the value for MC_MTS_CARVEOUT_BOM */975u32 mc_mts_carveout_bom;976/* Specifies the value for MC_MTS_CARVEOUT_ADR_HI */977u32 mc_mts_carveout_adr_hi;978/* Specifies the value for MC_MTS_CARVEOUT_SIZE_MB */979u32 mc_mts_carveout_size_mb;980/* Specifies the value for MC_MTS_CARVEOUT_REG_CTRL */981u32 mc_mts_carveout_reg_ctrl;982983/* Specifies the clients that are allowed to access untranslated memory */984u32 mc_untranslated_region_check;985986/* Just a place holder for special usage when there is no BCT for certain registers */987u32 bct_na;988};989990#endif991992993