diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2012-01-26 01:17:49 +0530 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-02-24 12:25:38 -0800 |
commit | fa70fd522b52c79925220f4664d224b9f95b5bca (patch) | |
tree | e836972d1e1f42b575dd5405d3725bf54a0e2954 | |
parent | d8403a167014adc0751c3b8a3044560fe3b8f2d5 (diff) |
arm: tegra3: header file for the MC/EMC registers
BUG=chromium-os:23496
TEST=build for Cardhu, Waluigi and Seaboard
Change-Id: I6d26502d1ecc393b266ffe06b540f59c595e19ae
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/14811
-rw-r--r-- | arch/arm/include/asm/arch-tegra3/sdram_param.h | 214 |
1 files changed, 214 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-tegra3/sdram_param.h b/arch/arm/include/asm/arch-tegra3/sdram_param.h new file mode 100644 index 00000000000..1806431fff8 --- /dev/null +++ b/arch/arm/include/asm/arch-tegra3/sdram_param.h @@ -0,0 +1,214 @@ +/* + * (C) Copyright 2010, 2011 + * NVIDIA Corporation <www.nvidia.com> + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +#ifndef _SDRAM_PARAM_H_ +#define _SDRAM_PARAM_H_ + +enum memory_type { + MEMORY_TYPE_NONE = 0, + MEMORY_TYPE_DDR, + MEMORY_TYPE_LPDDR, + MEMORY_TYPE_DDR2, + MEMORY_TYPE_LPDDR2, + MEMORY_TYPE_DDR3, + + MEMORY_TYPE_NUM, + MEMORY_TYPE_FORCE32 = 0x7fffffff +}; + +/** + * Defines the SDRAM parameter structure. Contains the config options + * exposed by the Memory Controller and the External Memory Controller + */ +struct sdram_params { + enum memory_type memory_type; + u32 pllm_charge_pump_setup_control; + u32 pllm_loop_filter_setup_control; + u32 pllm_input_divider; + u32 pllm_feedback_divider; + u32 pllm_post_divider; + u32 pllm_stable_time; + u32 emc_clock_divider; + u32 emc_clock_source; + u32 emc_clock_use_pllmud; + u32 emc_auto_cal_interval; + u32 emc_auto_cal_config; + u32 emc_auto_cal_wait; + u32 emc_adr_cfg; + u32 emc_pin_program_wait; + u32 emc_pin_extra_wait; + u32 emc_timing_control_wait; + u32 emc_rc; + u32 emc_rfc; + u32 emc_ras; + u32 emc_rp; + u32 emc_r2w; + u32 emc_w2r; + u32 emc_r2p; + u32 emc_w2p; + u32 emc_rd_rcd; + u32 emc_wr_rcd; + u32 emc_rrd; + u32 emc_rext; + u32 emc_wext; + u32 emc_wdv; + u32 emc_quse; + u32 emc_qrst; + u32 emc_qsafe; + u32 emc_rdv; + u32 emc_ctt; + u32 emc_ctt_duration; + u32 emc_refresh; + u32 emc_burst_refresh_num; + u32 emc_pre_refresh_req_cnt; + u32 emc_pdex2wr; + u32 emc_pdex2rd; + u32 emc_pchg2pden; + u32 emc_act2pden; + u32 emc_ar2pden; + u32 emc_rw2pden; + u32 emc_txsr; + u32 emc_txsrdll; + u32 emc_tcke; + u32 emc_tfaw; + u32 emc_trpab; + u32 emc_tclkstable; + u32 emc_tclkstop; + u32 emc_trefbw; + u32 emc_quse_extra; + u32 emc_fbio_cfg5; + u32 emc_fbio_cfg6; + u32 emc_fbio_spare; + u32 emc_cfg_rsv; + u32 emc_mrs; + u32 emc_emrs; + u32 emc_mrw1; + u32 emc_mrw2; + u32 emc_mrw3; + u32 emc_mrw_extra; + u32 emc_wb_mrw1; + u32 emc_wb_mrw2; + u32 emc_wb_mrw3; + u32 emc_wb_mrw_extra; + u32 emc_wb_ext_mode_reg_enable; + u32 emc_ext_mode_reg_enable; + u32 emc_mrw_reset_command; + u32 emc_mrw_reset_n_init_wait; + u32 emc_mrs_wait_cnt; + u32 emc_cfg; + u32 emc_cfg2; + u32 emc_dbg; + u32 emc_cmdq; + u32 emc_mc2emcq; + u32 emc_dyn_self_ref_control; + u32 ahb_arbitration_xbar_ctrl_mem_init_done; + u32 emc_cfg_dig_dll; + u32 emc_cfg_dig_dll_period; + u32 emc_dev_select; + u32 emc_sel_dpd_ctrl; + u32 emc_dll_xform_dqs[8]; + u32 emc_dll_xform_quse[8]; + u32 emc_dli_trim_txdqs[8]; + u32 emc_dll_xform_dq[4]; + u32 wb_wait; + u32 emc_ctt_term_ctrl; + u32 emc_odt_write; + u32 emc_odt_read; + u32 emc_zcal_interval; + u32 emc_zcal_wait_cnt; + u32 emc_zcal_mrw_cmd; + u32 emc_mrs_reset_dll; + u32 emc_zcal_init_dev0; + u32 emc_zcal_init_dev1; + u32 emc_zcal_init_wait; + u32 emc_zcal_cold_boot_enable; + u32 emc_zcal_wb_enable; + u32 emc_mrw_lpddr2_zcal_wb; + u32 emc_zq_cal_ddr3_wb; + u32 emc_zcal_wb_wait; + u32 emc_mrs_wb_enable; + u32 emc_mrs_reset_dll_wait; + u32 emc_emrs_emr2; + u32 emc_emrs_emr3; + u32 emc_mrs_extra; + u32 emc_wb_mrs; + u32 emc_wb_emrs; + u32 emc_wb_emr2; + u32 emc_wb_emr3; + u32 emc_wb_mrs_extra; + u32 emc_emrs_ddr2_dll_enable; + u32 emc_mrs_ddr2_dll_reset; + u32 emc_emrs_ddr2_ocd_calib; + u32 emc_ddr2_wait; + u32 emc_clken_override; + u32 emc_extra_refresh_num; + u32 emc_clken_override_all_wb; + u32 mc_clken_override_all_wb; + u32 emc_cfg_dig_dll_period_wb; + u32 pmc_vddp_sel; + u32 pmc_ddr_pwr; + u32 pmc_ddr_cfg; + u32 pmc_io_dpd_req; + u32 pmc_e_no_vttGen; + u32 pmc_no_io_power; + u32 emc_xm2cmd_pad_ctrl; + u32 emc_xm2cmd_pad_ctrl2; + u32 emc_xm2dqs_pad_ctrl; + u32 emc_xm2dqs_pad_ctrl2; + u32 emc_xm2dqs_pad_ctrl3; + u32 emc_xm2dq_pad_ctrl; + u32 emc_xm2dq_pad_ctrl2; + u32 emc_xm2clk_pad_ctrl; + u32 emc_xm2comp_pad_ctrl; + u32 emc_xm2vttgen_pad_ctrl; + u32 emc_xm2vttgen_pad_ctrl2; + u32 emc_xm2quse_pad_ctrl; + u32 mc_emem_adr_cfg; + u32 mc_emem_adr_cfg_dev0; + u32 mc_emem_adr_cfg_dev1; + u32 mc_emem_cfg; + u32 mc_emem_arb_cfg; + u32 mc_emem_arb_outstanding_req; + u32 mc_emem_arb_timing_rcd; + u32 mc_emem_arb_timing_rp; + u32 mc_emem_arb_timing_rc; + u32 mc_emem_arb_timing_ras; + u32 mc_emem_arb_timing_faw; + u32 mc_emem_arb_timing_rrd; + u32 mc_emem_arb_timing_rap2pre; + u32 mc_emem_arb_timing_wap2pre; + u32 mc_emem_arb_timing_r2r; + u32 mc_emem_arb_timing_w2w; + u32 mc_emem_arb_timing_r2w; + u32 mc_emem_arb_timing_w2r; + u32 mc_emem_arb_da_turns; + u32 mc_emem_arb_da_covers; + u32 mc_emem_arb_misc0; + u32 mc_emem_arb_misc1; + u32 mc_emem_arb_ring1_throttle; + u32 mc_emem_arb_override; + u32 mc_emem_arb_rsv; + u32 mc_clken_override; +}; + +#endif |