2 * (C) Copyright 2010, 2011
3 * NVIDIA Corporation <www.nvidia.com>
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 #ifndef _SDRAM_PARAM_H_
25 #define _SDRAM_PARAM_H_
28 * Defines the number of 32-bit words provided in each set of SDRAM parameters
29 * for arbitration configuration data.
31 #define BCT_SDRAM_ARB_CONFIG_WORDS 27
40 MEMORY_TYPE_FORCE32 = 0x7FFFFFFF
43 /* Defines the SDRAM parameter structure */
45 enum memory_type memory_type;
46 u32 pllm_charge_pump_setup_control;
47 u32 pllm_loop_filter_setup_control;
48 u32 pllm_input_divider;
49 u32 pllm_feedback_divider;
50 u32 pllm_post_divider;
52 u32 emc_clock_divider;
53 u32 emc_auto_cal_interval;
54 u32 emc_auto_cal_config;
55 u32 emc_auto_cal_wait;
56 u32 emc_pin_program_wait;
75 u32 emc_burst_refresh_num;
91 u32 emc_fbio_dqsib_dly;
92 u32 emc_fbio_dqsib_dly_msb;
93 u32 emc_fbio_quse_dly;
94 u32 emc_fbio_quse_dly_msb;
103 u32 emc_mrw_reset_command;
104 u32 emc_mrw_reset_init_wait;
108 u32 emc_low_latency_config;
112 u32 ahb_arbitration_xbar_ctrl;
114 u32 emc_dll_xform_dqs;
115 u32 emc_dll_xform_quse;
117 u32 emc_ctt_term_ctrl;
120 u32 emc_zcal_ref_cnt;
121 u32 emc_zcal_wait_cnt;
122 u32 emc_zcal_mrw_cmd;
123 u32 emc_mrs_reset_dll;
124 u32 emc_mrw_zq_init_dev0;
125 u32 emc_mrw_zq_init_dev1;
126 u32 emc_mrw_zq_init_wait;
127 u32 emc_mrs_reset_dll_wait;
130 u32 emc_emrs_ddr2_dll_enable;
131 u32 emc_mrs_ddr2_dll_reset;
132 u32 emc_emrs_ddr2_ocd_calib;
134 u32 emc_cfg_clktrim0;
135 u32 emc_cfg_clktrim1;
136 u32 emc_cfg_clktrim2;
138 u32 apb_misc_gp_xm2cfga_padctrl;
139 u32 apb_misc_gp_xm2cfgc_padctrl;
140 u32 apb_misc_gp_xm2cfgc_padctrl2;
141 u32 apb_misc_gp_xm2cfgd_padctrl;
142 u32 apb_misc_gp_xm2cfgd_padctrl2;
143 u32 apb_misc_gp_xm2clkcfg_padctrl;
144 u32 apb_misc_gp_xm2comp_padctrl;
145 u32 apb_misc_gp_xm2vttgen_padctrl;
146 u32 arbitration_config[BCT_SDRAM_ARB_CONFIG_WORDS];