| 1 | /* |
| 2 | * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms and conditions of the GNU General Public License, |
| 6 | * version 2, as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT |
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 11 | * more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | * |
| 16 | * See file CREDITS for list of people who contributed to this |
| 17 | * project. |
| 18 | */ |
| 19 | |
| 20 | /** |
| 21 | * Defines the SDRAM parameter structure. |
| 22 | * |
| 23 | * Note that PLLM is used by EMC. |
| 24 | */ |
| 25 | |
| 26 | #ifndef INCLUDED_NVBOOT_SDRAM_PARAM_T30_H |
| 27 | #define INCLUDED_NVBOOT_SDRAM_PARAM_T30_H |
| 28 | |
| 29 | #define NVBOOT_BCT_SDRAM_ARB_CONFIG_WORDS 27 |
| 30 | |
| 31 | typedef enum { |
| 32 | /* Specifies the memory type to be undefined */ |
| 33 | nvboot_memory_type_none = 0, |
| 34 | |
| 35 | /* Specifies the memory type to be DDR SDRAM */ |
| 36 | nvboot_memory_type_ddr, |
| 37 | |
| 38 | /* Specifies the memory type to be LPDDR SDRAM */ |
| 39 | nvboot_memory_type_lpddr, |
| 40 | |
| 41 | /* Specifies the memory type to be DDR2 SDRAM */ |
| 42 | nvboot_memory_type_ddr2, |
| 43 | |
| 44 | /* Specifies the memory type to be LPDDR2 SDRAM */ |
| 45 | nvboot_memory_type_lpddr2, |
| 46 | |
| 47 | /* Specifies the memory type to be DDR3 SDRAM */ |
| 48 | nvboot_memory_type_ddr3, |
| 49 | |
| 50 | nvboot_memory_type_num, |
| 51 | nvboot_memory_type_force32 = 0x7FFFFFF |
| 52 | } nvboot_memory_type; |
| 53 | |
| 54 | /** |
| 55 | * Defines the SDRAM parameter structure |
| 56 | */ |
| 57 | typedef struct nvboot_sdram_params_rec { |
| 58 | /* sdram data structure generated by tool warmboot_code_gen */ |
| 59 | |
| 60 | /* Specifies the type of memory device */ |
| 61 | nvboot_memory_type memory_type; |
| 62 | |
| 63 | /* MC/EMC clock source configuration */ |
| 64 | |
| 65 | /* Specifies the CPCON value for PllM */ |
| 66 | uint32_t pllm_charge_pump_setup_ctrl; |
| 67 | /* Specifies the LPCON value for PllM */ |
| 68 | uint32_t pllm_loop_filter_setup_ctrl; |
| 69 | /* Specifies the M value for PllM */ |
| 70 | uint32_t pllm_input_divider; |
| 71 | /* Specifies the N value for PllM */ |
| 72 | uint32_t pllm_feedback_divider; |
| 73 | /* Specifies the P value for PllM */ |
| 74 | uint32_t pllm_post_divider; |
| 75 | /* Specifies the time to wait for PLLM to lock (in microseconds) */ |
| 76 | uint32_t pllm_stable_time; |
| 77 | |
| 78 | /* Specifies the divider for the EMC Clock Source */ |
| 79 | uint32_t emc_clock_divider; |
| 80 | /* Specifies the PLL source for the EMC Clock Source */ |
| 81 | uint32_t emc_clock_source; |
| 82 | /* |
| 83 | * Specifies the enable for using low jitter clock for |
| 84 | * the EMC Clock Source |
| 85 | */ |
| 86 | uint32_t emc_clock_use_pll_mud; |
| 87 | |
| 88 | /* Auto-calibration of EMC pads */ |
| 89 | |
| 90 | /* Specifies the value for EMC_AUTO_CAL_INTERVAL */ |
| 91 | uint32_t emc_auto_cal_interval; |
| 92 | /* |
| 93 | * Specifies the value for EMC_AUTO_CAL_CONFIG |
| 94 | * Note: Trigger bits are set by the SDRAM code. |
| 95 | */ |
| 96 | uint32_t emc_auto_cal_config; |
| 97 | /* |
| 98 | * Specifies the time for the calibration |
| 99 | * to stabilize (in microseconds) |
| 100 | */ |
| 101 | uint32_t emc_auto_cal_wait; |
| 102 | |
| 103 | /* |
| 104 | * DRAM size information |
| 105 | * Specifies the value for EMC_ADR_CFG |
| 106 | */ |
| 107 | uint32_t emc_adr_cfg; |
| 108 | |
| 109 | /* |
| 110 | * Specifies the time to wait after asserting pin |
| 111 | * CKE (in microseconds) |
| 112 | */ |
| 113 | uint32_t emc_pin_program_wait; |
| 114 | /* Specifies the extra delay before/after pin RESET/CKE command */ |
| 115 | uint32_t emc_pin_extra_wait; |
| 116 | /* |
| 117 | * Specifies the extra delay after the first writing |
| 118 | * of EMC_TIMING_CONTROL |
| 119 | */ |
| 120 | uint32_t emc_timing_control_wait; |
| 121 | |
| 122 | /* Timing parameters required for the SDRAM */ |
| 123 | |
| 124 | /* Specifies the value for EMC_RC */ |
| 125 | uint32_t emc_rc; |
| 126 | /* Specifies the value for EMC_RFC */ |
| 127 | uint32_t emc_rfc; |
| 128 | /* Specifies the value for EMC_RAS */ |
| 129 | uint32_t emc_ras; |
| 130 | /* Specifies the value for EMC_RP */ |
| 131 | uint32_t emc_rp; |
| 132 | /* Specifies the value for EMC_R2W */ |
| 133 | uint32_t emc_r2w; |
| 134 | /* Specifies the value for EMC_R2W */ |
| 135 | uint32_t emc_w2r; |
| 136 | /* Specifies the value for EMC_R2P */ |
| 137 | uint32_t emc_r2p; |
| 138 | /* Specifies the value for EMC_W2P */ |
| 139 | uint32_t emc_w2p; |
| 140 | /* Specifies the value for EMC_RD_RCD */ |
| 141 | uint32_t emc_rd_rcd; |
| 142 | /* Specifies the value for EMC_WR_RCD */ |
| 143 | uint32_t emc_wr_rcd; |
| 144 | /* Specifies the value for EMC_RRD */ |
| 145 | uint32_t emc_rrd; |
| 146 | /* Specifies the value for EMC_REXT */ |
| 147 | uint32_t emc_rext; |
| 148 | /* Specifies the value for EMC_WEXT */ |
| 149 | uint32_t emc_wext; |
| 150 | /* Specifies the value for EMC_WDV */ |
| 151 | uint32_t emc_wdv; |
| 152 | /* Specifies the value for EMC_QUSE */ |
| 153 | uint32_t emc_quse; |
| 154 | /* Specifies the value for EMC_QRST */ |
| 155 | uint32_t emc_qrst; |
| 156 | /* Specifies the value for EMC_QSAFE */ |
| 157 | uint32_t emc_qsafe; |
| 158 | /* Specifies the value for EMC_RDV */ |
| 159 | uint32_t emc_rdv; |
| 160 | /* Specifies the value for EMC_CTT */ |
| 161 | uint32_t emc_ctt; |
| 162 | /* Specifies the value for EMC_CTT_DURATION */ |
| 163 | uint32_t emc_ctt_duration; |
| 164 | /* Specifies the value for EMC_REFRESH */ |
| 165 | uint32_t emc_refresh; |
| 166 | /* Specifies the value for EMC_BURST_REFRESH_NUM */ |
| 167 | uint32_t emc_burst_refresh_num; |
| 168 | /* Specifies the value for EMC_PRE_REFRESH_REQ_CNT */ |
| 169 | uint32_t emc_prerefresh_req_cnt; |
| 170 | /* Specifies the value for EMC_PDEX2WR */ |
| 171 | uint32_t emc_pdex2wr; |
| 172 | /* Specifies the value for EMC_PDEX2RD */ |
| 173 | uint32_t emc_pdex2rd; |
| 174 | /* Specifies the value for EMC_PCHG2PDEN */ |
| 175 | uint32_t emc_pchg2pden; |
| 176 | /* Specifies the value for EMC_ACT2PDEN */ |
| 177 | uint32_t emc_act2pden; |
| 178 | /* Specifies the value for EMC_AR2PDEN */ |
| 179 | uint32_t emc_ar2pden; |
| 180 | /* Specifies the value for EMC_RW2PDEN */ |
| 181 | uint32_t emc_rw2pden; |
| 182 | /* Specifies the value for EMC_TXSR */ |
| 183 | uint32_t emc_txsr; |
| 184 | /* Specifies the value for EMC_TXSRDLL */ |
| 185 | uint32_t emc_txsr_dll; |
| 186 | /* Specifies the value for EMC_TCKE */ |
| 187 | uint32_t emc_tcke; |
| 188 | /* Specifies the value for EMC_TFAW */ |
| 189 | uint32_t emc_tfaw; |
| 190 | /* Specifies the value for EMC_TRPAB */ |
| 191 | uint32_t emc_trpab; |
| 192 | /* Specifies the value for EMC_TCLKSTABLE */ |
| 193 | uint32_t emc_tclkstable; |
| 194 | /* Specifies the value for EMC_TCLKSTOP */ |
| 195 | uint32_t emc_tclkstop; |
| 196 | /* Specifies the value for EMC_TREFBW */ |
| 197 | uint32_t emc_trefbw; |
| 198 | /* Specifies the value for EMC_QUSE_EXTRA */ |
| 199 | uint32_t emc_quse_extra; |
| 200 | |
| 201 | /* FBIO configuration values */ |
| 202 | |
| 203 | /* Specifies the value for EMC_FBIO_CFG5 */ |
| 204 | uint32_t emc_fbio_cfg5; |
| 205 | /* Specifies the value for EMC_FBIO_CFG6 */ |
| 206 | uint32_t emc_fbio_cfg6; |
| 207 | /* Specifies the value for EMC_FBIO_SPARE */ |
| 208 | uint32_t emc_fbio_spare; |
| 209 | |
| 210 | /* Specifies the value for EMC_CFG_RSV */ |
| 211 | uint32_t emc_cfg_rsv; |
| 212 | |
| 213 | /* MRS command values */ |
| 214 | |
| 215 | /* Specifies the value for EMC_MRS */ |
| 216 | uint32_t emc_mrs; |
| 217 | /* Specifies the value for EMC_EMRS */ |
| 218 | uint32_t emc_emrs; |
| 219 | /* Specifies the programming to LPDDR2 Mode Register 1 at cold boot */ |
| 220 | uint32_t emc_mrw1; |
| 221 | /* Specifies the programming to LPDDR2 Mode Register 2 at cold boot */ |
| 222 | uint32_t emc_mrw2; |
| 223 | /* Specifies the programming to LPDDR2 Mode Register 3 at cold boot */ |
| 224 | uint32_t emc_mrw3; |
| 225 | /* |
| 226 | * Specifies the programming to extra LPDDR2 Mode Register |
| 227 | * at cold boot |
| 228 | */ |
| 229 | uint32_t emc_mrw_extra; |
| 230 | /* Specifies the programming to LPDDR2 Mode Register 1 at warm boot */ |
| 231 | uint32_t emc_warm_boot_mrw1; |
| 232 | /* Specifies the programming to LPDDR2 Mode Register 2 at warm boot */ |
| 233 | uint32_t emc_warm_boot_mrw2; |
| 234 | /* Specifies the programming to LPDDR2 Mode Register 3 at warm boot */ |
| 235 | uint32_t emc_warm_boot_mrw3; |
| 236 | /* |
| 237 | * Specifies the programming to extra LPDDR2 Mode Register |
| 238 | * at warm boot |
| 239 | */ |
| 240 | uint32_t emc_warm_boot_mrw_extra; |
| 241 | /* |
| 242 | * Specify the enable of extra Mode Register programming at |
| 243 | * warm boot |
| 244 | */ |
| 245 | uint32_t emc_warm_boot_extramode_reg_write_enable; |
| 246 | /* |
| 247 | * Specify the enable of extra Mode Register programming at |
| 248 | * cold boot |
| 249 | */ |
| 250 | uint32_t emc_extramode_reg_write_enable; |
| 251 | |
| 252 | /* Specifies the EMC_MRW reset command value */ |
| 253 | uint32_t emc_mrw_reset_command; |
| 254 | /* Specifies the EMC Reset wait time (in microseconds) */ |
| 255 | uint32_t emc_mrw_reset_ninit_wait; |
| 256 | /* Specifies the value for EMC_MRS_WAIT_CNT */ |
| 257 | uint32_t emc_mrs_wait_cnt; |
| 258 | |
| 259 | /* EMC miscellaneous configurations */ |
| 260 | |
| 261 | /* Specifies the value for EMC_CFG */ |
| 262 | uint32_t emc_cfg; |
| 263 | /* Specifies the value for EMC_CFG_2 */ |
| 264 | uint32_t emc_cfg2; |
| 265 | /* Specifies the value for EMC_DBG */ |
| 266 | uint32_t emc_dbg; |
| 267 | /* Specifies the value for EMC_CMDQ */ |
| 268 | uint32_t emc_cmd_q; |
| 269 | /* Specifies the value for EMC_MC2EMCQ */ |
| 270 | uint32_t emc_mc2emc_q; |
| 271 | /* Specifies the value for EMC_DYN_SELF_REF_CONTROL */ |
| 272 | uint32_t emc_dyn_self_ref_control; |
| 273 | |
| 274 | /* Specifies the value for MEM_INIT_DONE */ |
| 275 | uint32_t ahb_arbitration_xbar_ctrl_meminit_done; |
| 276 | |
| 277 | /* Specifies the value for EMC_CFG_DIG_DLL */ |
| 278 | uint32_t emc_cfg_dig_dll; |
| 279 | /* Specifies the value for EMC_CFG_DIG_DLL_PERIOD */ |
| 280 | uint32_t emc_cfg_dig_dll_period; |
| 281 | /* Specifies the value of *DEV_SELECTN of various EMC registers */ |
| 282 | uint32_t emc_dev_select; |
| 283 | |
| 284 | /* Specifies the value for EMC_SEL_DPD_CTRL */ |
| 285 | uint32_t emc_sel_dpd_ctrl; |
| 286 | |
| 287 | /* Pads trimmer delays */ |
| 288 | |
| 289 | /* Specifies the value for EMC_DLL_XFORM_DQS0 */ |
| 290 | uint32_t emc_dll_xform_dqs0; |
| 291 | /* Specifies the value for EMC_DLL_XFORM_DQS1 */ |
| 292 | uint32_t emc_dll_xform_dqs1; |
| 293 | /* Specifies the value for EMC_DLL_XFORM_DQS2 */ |
| 294 | uint32_t emc_dll_xform_dqs2; |
| 295 | /* Specifies the value for EMC_DLL_XFORM_DQS3 */ |
| 296 | uint32_t emc_dll_xform_dqs3; |
| 297 | /* Specifies the value for EMC_DLL_XFORM_DQS4 */ |
| 298 | uint32_t emc_dll_xform_dqs4; |
| 299 | /* Specifies the value for EMC_DLL_XFORM_DQS5 */ |
| 300 | uint32_t emc_dll_xform_dqs5; |
| 301 | /* Specifies the value for EMC_DLL_XFORM_DQS6 */ |
| 302 | uint32_t emc_dll_xform_dqs6; |
| 303 | /* Specifies the value for EMC_DLL_XFORM_DQS7 */ |
| 304 | uint32_t emc_dll_xform_dqs7; |
| 305 | /* Specifies the value for EMC_DLL_XFORM_QUSE0 */ |
| 306 | uint32_t emc_dll_xform_quse0; |
| 307 | /* Specifies the value for EMC_DLL_XFORM_QUSE1 */ |
| 308 | uint32_t emc_dll_xform_quse1; |
| 309 | /* Specifies the value for EMC_DLL_XFORM_QUSE2 */ |
| 310 | uint32_t emc_dll_xform_quse2; |
| 311 | /* Specifies the value for EMC_DLL_XFORM_QUSE3 */ |
| 312 | uint32_t emc_dll_xform_quse3; |
| 313 | /* Specifies the value for EMC_DLL_XFORM_QUSE4 */ |
| 314 | uint32_t emc_dll_xform_quse4; |
| 315 | /* Specifies the value for EMC_DLL_XFORM_QUSE5 */ |
| 316 | uint32_t emc_dll_xform_quse5; |
| 317 | /* Specifies the value for EMC_DLL_XFORM_QUSE6 */ |
| 318 | uint32_t emc_dll_xform_quse6; |
| 319 | /* Specifies the value for EMC_DLL_XFORM_QUSE7 */ |
| 320 | uint32_t emc_dll_xform_quse7; |
| 321 | /* Specifies the value for EMC_DLI_TRIM_TXDQS0 */ |
| 322 | uint32_t emc_dli_trim_tx_dqs0; |
| 323 | /* Specifies the value for EMC_DLI_TRIM_TXDQS1 */ |
| 324 | uint32_t emc_dli_trim_tx_dqs1; |
| 325 | /* Specifies the value for EMC_DLI_TRIM_TXDQS2 */ |
| 326 | uint32_t emc_dli_trim_tx_dqs2; |
| 327 | /* Specifies the value for EMC_DLI_TRIM_TXDQS3 */ |
| 328 | uint32_t emc_dli_trim_tx_dqs3; |
| 329 | /* Specifies the value for EMC_DLI_TRIM_TXDQS4 */ |
| 330 | uint32_t emc_dli_trim_tx_dqs4; |
| 331 | /* Specifies the value for EMC_DLI_TRIM_TXDQS5 */ |
| 332 | uint32_t emc_dli_trim_tx_dqs5; |
| 333 | /* Specifies the value for EMC_DLI_TRIM_TXDQS6 */ |
| 334 | uint32_t emc_dli_trim_tx_dqs6; |
| 335 | /* Specifies the value for EMC_DLI_TRIM_TXDQS7 */ |
| 336 | uint32_t emc_dli_trim_tx_dqs7; |
| 337 | /* Specifies the value for EMC_DLL_XFORM_DQ0 */ |
| 338 | uint32_t emc_dll_xform_dq0; |
| 339 | /* Specifies the value for EMC_DLL_XFORM_DQ1 */ |
| 340 | uint32_t emc_dll_xform_dq1; |
| 341 | /* Specifies the value for EMC_DLL_XFORM_DQ2 */ |
| 342 | uint32_t emc_dll_xform_dq2; |
| 343 | /* Specifies the value for EMC_DLL_XFORM_DQ3 */ |
| 344 | uint32_t emc_dll_xform_dq3; |
| 345 | |
| 346 | /* |
| 347 | * Specifies the delay after asserting CKE pin during a WarmBoot0 |
| 348 | * sequence (in microseconds) |
| 349 | */ |
| 350 | uint32_t warm_boot_wait; |
| 351 | |
| 352 | /* Specifies the value for EMC_CTT_TERM_CTRL */ |
| 353 | uint32_t emc_ctt_term_ctrl; |
| 354 | |
| 355 | /* Specifies the value for EMC_ODT_WRITE */ |
| 356 | uint32_t emc_odt_write; |
| 357 | /* Specifies the value for EMC_ODT_WRITE */ |
| 358 | uint32_t emc_odt_read; |
| 359 | |
| 360 | /* Periodic ZQ calibration */ |
| 361 | |
| 362 | /* |
| 363 | * Specifies the value for EMC_ZCAL_INTERVAL |
| 364 | * Value 0 disables ZQ calibration |
| 365 | */ |
| 366 | uint32_t emc_zcal_interval; |
| 367 | /* Specifies the value for EMC_ZCAL_WAIT_CNT */ |
| 368 | uint32_t emc_zcal_wait_cnt; |
| 369 | /* Specifies the value for EMC_ZCAL_MRW_CMD */ |
| 370 | uint32_t emc_zcal_mrw_cmd; |
| 371 | |
| 372 | /* DRAM initialization sequence flow control */ |
| 373 | |
| 374 | /* Specifies the MRS command value for resetting DLL */ |
| 375 | uint32_t emc_mrs_reset_dll; |
| 376 | /* Specifies the command for ZQ initialization of device 0 */ |
| 377 | uint32_t emc_zcal_init_dev0; |
| 378 | /* Specifies the command for ZQ initialization of device 1 */ |
| 379 | uint32_t emc_zcal_init_dev1; |
| 380 | /* |
| 381 | * Specifies the wait time after programming a ZQ initialization |
| 382 | * command (in microseconds) |
| 383 | */ |
| 384 | uint32_t emc_zcal_init_wait; |
| 385 | /* Specifies the enable for ZQ calibration at cold boot */ |
| 386 | uint32_t emc_zcal_cold_boot_enable; |
| 387 | /* Specifies the enable for ZQ calibration at warm boot */ |
| 388 | uint32_t emc_zcal_warm_boot_enable; |
| 389 | |
| 390 | /* |
| 391 | * Specifies the MRW command to LPDDR2 for ZQ calibration |
| 392 | *on warmboot |
| 393 | */ |
| 394 | /* Is issued to both devices separately */ |
| 395 | uint32_t emc_mrw_lpddr2zcal_warm_boot; |
| 396 | /* |
| 397 | * Specifies the ZQ command to DDR3 for ZQ calibration on warmboot |
| 398 | * Is issued to both devices separately |
| 399 | */ |
| 400 | uint32_t emc_zqcal_ddr3_warm_boot; |
| 401 | /* |
| 402 | * Specifies the wait time for ZQ calibration on warmboot |
| 403 | * (in microseconds) |
| 404 | */ |
| 405 | uint32_t emc_zcal_warm_boot_wait; |
| 406 | /* |
| 407 | * Specifies the enable for DRAM Mode Register programming |
| 408 | * at warm boot |
| 409 | */ |
| 410 | uint32_t emc_mrs_warm_boot_enable; |
| 411 | /* |
| 412 | * Specifies the wait time after sending an MRS DLL reset command |
| 413 | * in microseconds) |
| 414 | */ |
| 415 | uint32_t emc_mrs_reset_dll_wait; |
| 416 | /* |
| 417 | * Specifies the first of two EMRS commands to initialize mode |
| 418 | * registers |
| 419 | */ |
| 420 | uint32_t emc_emrs_emr2; |
| 421 | /* |
| 422 | * Specifies the second of two EMRS commands to initialize mode |
| 423 | * registers |
| 424 | */ |
| 425 | uint32_t emc_emrs_emr3; |
| 426 | /* Specifies the extra MRS command to initialize mode registers */ |
| 427 | uint32_t emc_mrs_extra; |
| 428 | /* Specifies the programming to DDR3 Mode Register 0 at warm boot */ |
| 429 | uint32_t emc_warm_boot_mrs; |
| 430 | /* Specifies the programming to DDR3 Mode Register 1 at warm boot */ |
| 431 | uint32_t emc_warm_boot_emrs; |
| 432 | /* Specifies the programming to DDR3 Mode Register 2 at warm boot */ |
| 433 | uint32_t emc_warm_boot_emr2; |
| 434 | /* Specifies the programming to DDR3 Mode Register 3 at warm boot */ |
| 435 | uint32_t emc_warm_boot_emr3; |
| 436 | /* Specifies the extra MRS command at warm boot */ |
| 437 | uint32_t emc_warm_boot_mrs_extra; |
| 438 | /* Specifies the EMRS command to enable the DDR2 DLL */ |
| 439 | uint32_t emc_emrs_ddr2_dll_enable; |
| 440 | /* Specifies the MRS command to reset the DDR2 DLL */ |
| 441 | uint32_t emc_mrs_ddr2_dll_reset; |
| 442 | /* Specifies the EMRS command to set OCD calibration */ |
| 443 | uint32_t emc_emrs_ddr2_ocd_calib; |
| 444 | /* |
| 445 | * Specifies the wait between initializing DDR and setting OCD |
| 446 | * calibration (in microseconds) |
| 447 | */ |
| 448 | uint32_t emc_ddr2_wait; |
| 449 | /* Specifies the value for EMC_CLKEN_OVERRIDE */ |
| 450 | uint32_t emc_clken_override; |
| 451 | /* |
| 452 | * Specifies LOG2 of the extra refresh numbers after booting |
| 453 | * Program 0 to disable |
| 454 | */ |
| 455 | uint32_t emc_extra_refresh_num; |
| 456 | /* Specifies the master override for all EMC clocks */ |
| 457 | uint32_t emc_clken_override_allwarm_boot; |
| 458 | /* Specifies the master override for all MC clocks */ |
| 459 | uint32_t mc_clken_override_allwarm_boot; |
| 460 | /* Specifies digital dll period, choosing between 4 to 64 ms */ |
| 461 | uint32_t emc_cfg_dig_dll_period_warm_boot; |
| 462 | |
| 463 | /* Pad controls */ |
| 464 | |
| 465 | /* Specifies the value for PMC_VDDP_SEL */ |
| 466 | uint32_t pmc_vddp_sel; |
| 467 | /* Specifies the value for PMC_DDR_PWR */ |
| 468 | uint32_t pmc_ddr_pwr; |
| 469 | /* Specifies the value for PMC_DDR_CFG */ |
| 470 | uint32_t pmc_ddr_cfg; |
| 471 | /* Specifies the value for PMC_IO_DPD_REQ */ |
| 472 | uint32_t pmc_io_dpd_req; |
| 473 | /* Specifies the value for PMC_E_NO_VTTGEN */ |
| 474 | uint32_t pmc_eno_vtt_gen; |
| 475 | /* Specifies the value for PMC_NO_IOPOWER */ |
| 476 | uint32_t pmc_no_io_power; |
| 477 | /* Specifies the value for EMC_XM2CMDPADCTRL */ |
| 478 | uint32_t emc_xm2cmd_pad_ctrl; |
| 479 | /* Specifies the value for EMC_XM2CMDPADCTRL2 */ |
| 480 | uint32_t emc_xm2cmd_pad_ctrl2; |
| 481 | /* Specifies the value for EMC_XM2DQSPADCTRL */ |
| 482 | uint32_t emc_xm2dqs_pad_ctrl; |
| 483 | /* Specifies the value for EMC_XM2DQSPADCTRL2 */ |
| 484 | uint32_t emc_xm2dqs_pad_ctrl2; |
| 485 | /* Specifies the value for EMC_XM2DQSPADCTRL3 */ |
| 486 | uint32_t emc_xm2dqs_pad_ctrl3; |
| 487 | /* Specifies the value for EMC_XM2DQPADCTRL */ |
| 488 | uint32_t emc_xm2dq_pad_ctrl; |
| 489 | /* Specifies the value for EMC_XM2DQPADCTRL2 */ |
| 490 | uint32_t emc_xm2dq_pad_ctrl2; |
| 491 | /* Specifies the value for EMC_XM2CLKPADCTRL */ |
| 492 | uint32_t emc_xm2clk_pad_ctrl; |
| 493 | /* Specifies the value for EMC_XM2COMPPADCTRL */ |
| 494 | uint32_t emc_xm2comp_pad_ctrl; |
| 495 | /* Specifies the value for EMC_XM2VTTGENPADCTRL */ |
| 496 | uint32_t emc_xm2vttgen_pad_ctrl; |
| 497 | /* Specifies the value for EMC_XM2VTTGENPADCTRL2 */ |
| 498 | uint32_t emc_xm2vttgen_pad_ctrl2; |
| 499 | /* Specifies the value for EMC_XM2QUSEPADCTRL */ |
| 500 | uint32_t emc_xm2quse_pad_ctrl; |
| 501 | |
| 502 | /* DRAM size information */ |
| 503 | |
| 504 | /* Specifies the value for MC_EMEM_ADR_CFG */ |
| 505 | uint32_t mc_emem_adr_cfg; |
| 506 | /* Specifies the value for MC_EMEM_ADR_CFG_DEV0 */ |
| 507 | uint32_t mc_emem_adr_cfg_dev0; |
| 508 | /* Specifies the value for MC_EMEM_ADR_CFG_DEV1 */ |
| 509 | uint32_t mc_emem_adr_cfg_dev1; |
| 510 | |
| 511 | /* |
| 512 | * Specifies the value for MC_EMEM_CFG which holds the external memory |
| 513 | * size (in KBytes) |
| 514 | */ |
| 515 | uint32_t mc_emem_cfg; |
| 516 | |
| 517 | /* MC arbitration configuration */ |
| 518 | |
| 519 | /* Specifies the value for MC_EMEM_ARB_CFG */ |
| 520 | uint32_t mc_emem_arb_cfg; |
| 521 | /* Specifies the value for MC_EMEM_ARB_OUTSTANDING_REQ */ |
| 522 | uint32_t mc_emem_arb_outstanding_req; |
| 523 | /* Specifies the value for MC_EMEM_ARB_TIMING_RCD */ |
| 524 | uint32_t mc_emem_arb_timing_rcd; |
| 525 | /* Specifies the value for MC_EMEM_ARB_TIMING_RP */ |
| 526 | uint32_t mc_emem_arb_timing_rp; |
| 527 | /* Specifies the value for MC_EMEM_ARB_TIMING_RC */ |
| 528 | uint32_t mc_emem_arb_timing_rc; |
| 529 | /* Specifies the value for MC_EMEM_ARB_TIMING_RAS */ |
| 530 | uint32_t mc_emem_arb_timing_ras; |
| 531 | /* Specifies the value for MC_EMEM_ARB_TIMING_FAW */ |
| 532 | uint32_t mc_emem_arb_timing_faw; |
| 533 | /* Specifies the value for MC_EMEM_ARB_TIMING_RRD */ |
| 534 | uint32_t mc_emem_arb_timing_rrd; |
| 535 | /* Specifies the value for MC_EMEM_ARB_TIMING_RAP2PRE */ |
| 536 | uint32_t mc_emem_arb_timing_rap2pre; |
| 537 | /* Specifies the value for MC_EMEM_ARB_TIMING_WAP2PRE */ |
| 538 | uint32_t mc_emem_arb_timing_wap2pre; |
| 539 | /* Specifies the value for MC_EMEM_ARB_TIMING_R2R */ |
| 540 | uint32_t mc_emem_arb_timing_r2r; |
| 541 | /* Specifies the value for MC_EMEM_ARB_TIMING_W2W */ |
| 542 | uint32_t mc_emem_arb_timing_w2w; |
| 543 | /* Specifies the value for MC_EMEM_ARB_TIMING_R2W */ |
| 544 | uint32_t mc_emem_arb_timing_r2w; |
| 545 | /* Specifies the value for MC_EMEM_ARB_TIMING_W2R */ |
| 546 | uint32_t mc_emem_arb_timing_w2r; |
| 547 | /* Specifies the value for MC_EMEM_ARB_DA_TURNS */ |
| 548 | uint32_t mc_emem_arb_da_turns; |
| 549 | /* Specifies the value for MC_EMEM_ARB_DA_COVERS */ |
| 550 | uint32_t mc_emem_arb_da_covers; |
| 551 | /* Specifies the value for MC_EMEM_ARB_MISC0 */ |
| 552 | uint32_t mc_emem_arb_misc0; |
| 553 | /* Specifies the value for MC_EMEM_ARB_MISC1 */ |
| 554 | uint32_t mc_emem_arb_misc1; |
| 555 | /* Specifies the value for MC_EMEM_ARB_RING1_THROTTLE */ |
| 556 | uint32_t mc_emem_arb_ring1_throttle; |
| 557 | /* Specifies the value for MC_EMEM_ARB_OVERRIDE */ |
| 558 | uint32_t mc_emem_arb_override; |
| 559 | /* Specifies the value for MC_EMEM_ARB_RSV */ |
| 560 | uint32_t mc_emem_arb_rsv; |
| 561 | |
| 562 | /* Specifies the value for MC_CLKEN_OVERRIDE */ |
| 563 | uint32_t mc_clken_override; |
| 564 | |
| 565 | /* End of generated code by warmboot_code_gen */ |
| 566 | } nvboot_sdram_params; |
| 567 | #endif /* #ifndef INCLUDED_NVBOOT_SDRAM_PARAM_T30_H */ |
| 568 |