1*79629b1aSNicolas Le Bayon /* 2*79629b1aSNicolas Le Bayon * Copyright (C) 2021-2024, STMicroelectronics - All Rights Reserved 3*79629b1aSNicolas Le Bayon * 4*79629b1aSNicolas Le Bayon * SPDX-License-Identifier: BSD-3-Clause 5*79629b1aSNicolas Le Bayon */ 6*79629b1aSNicolas Le Bayon 7*79629b1aSNicolas Le Bayon #ifndef MNPMUSRAMMSGBLOCK_LPDDR4_H 8*79629b1aSNicolas Le Bayon #define MNPMUSRAMMSGBLOCK_LPDDR4_H 9*79629b1aSNicolas Le Bayon 10*79629b1aSNicolas Le Bayon /* LPDDR4_1D training firmware message block structure 11*79629b1aSNicolas Le Bayon * 12*79629b1aSNicolas Le Bayon * Please refer to the Training Firmware App Note for futher information about 13*79629b1aSNicolas Le Bayon * the usage for Message Block. 14*79629b1aSNicolas Le Bayon */ 15*79629b1aSNicolas Le Bayon struct pmu_smb_ddr_1d { 16*79629b1aSNicolas Le Bayon uint8_t reserved00; /* 17*79629b1aSNicolas Le Bayon * Byte offset 0x00, CSR Addr 0x54000, Direction=In 18*79629b1aSNicolas Le Bayon * reserved00[0:4] RFU, must be zero 19*79629b1aSNicolas Le Bayon * 20*79629b1aSNicolas Le Bayon * reserved00[5] = Quick Rd2D during 1D Training 21*79629b1aSNicolas Le Bayon * 0x1 = Read Deskew will begin by enabling and quickly 22*79629b1aSNicolas Le Bayon * training the phy's per-lane reference voltages. 23*79629b1aSNicolas Le Bayon * Training the vrefDACs CSRs will increase the maximum 1D 24*79629b1aSNicolas Le Bayon * training time by around half a millisecond, but will 25*79629b1aSNicolas Le Bayon * improve 1D training accuracy on systems with 26*79629b1aSNicolas Le Bayon * significant voltage-offsets between lane read eyes. 27*79629b1aSNicolas Le Bayon * 0x0 = Read Deskew will assume the messageblock's 28*79629b1aSNicolas Le Bayon * phyVref setting is optimal for all lanes. 29*79629b1aSNicolas Le Bayon * 30*79629b1aSNicolas Le Bayon * reserved00[6] = Enable High Effort WrDQ1D 31*79629b1aSNicolas Le Bayon * 0x1 = WrDQ1D will conditionally retry training at 32*79629b1aSNicolas Le Bayon * several extra RxClkDly Timings. This will increase the 33*79629b1aSNicolas Le Bayon * maximum 1D training time by up to 4 extra iterations of 34*79629b1aSNicolas Le Bayon * WrDQ1D. This is only required in systems that suffer 35*79629b1aSNicolas Le Bayon * from very large, asymmetric eye-collapse when receiving 36*79629b1aSNicolas Le Bayon * PRBS patterns. 37*79629b1aSNicolas Le Bayon * 0x0 = WrDQ1D assume rxClkDly values found by SI 38*79629b1aSNicolas Le Bayon * Friendly RdDqs1D will work for receiving PRBS patterns 39*79629b1aSNicolas Le Bayon * 40*79629b1aSNicolas Le Bayon * reserved00[7] = Optimize for the special hard macros in 41*79629b1aSNicolas Le Bayon * TSMC28. 42*79629b1aSNicolas Le Bayon * 0x1 = set if the phy being trained was manufactured in 43*79629b1aSNicolas Le Bayon * any TSMC28 process node. 44*79629b1aSNicolas Le Bayon * 0x0 = otherwise, when not training a TSMC28 phy, leave 45*79629b1aSNicolas Le Bayon * this field as 0. 46*79629b1aSNicolas Le Bayon */ 47*79629b1aSNicolas Le Bayon uint8_t msgmisc; /* 48*79629b1aSNicolas Le Bayon * Byte offset 0x01, CSR Addr 0x54000, Direction=In 49*79629b1aSNicolas Le Bayon * Contains various global options for training. 50*79629b1aSNicolas Le Bayon * 51*79629b1aSNicolas Le Bayon * Bit fields: 52*79629b1aSNicolas Le Bayon * 53*79629b1aSNicolas Le Bayon * msgmisc[0] MTESTEnable 54*79629b1aSNicolas Le Bayon * 0x1 = Pulse primary digital test output bump at the end 55*79629b1aSNicolas Le Bayon * of each major training stage. This enables observation 56*79629b1aSNicolas Le Bayon * of training stage completion by observing the digital 57*79629b1aSNicolas Le Bayon * test output. 58*79629b1aSNicolas Le Bayon * 0x0 = Do not pulse primary digital test output bump 59*79629b1aSNicolas Le Bayon * 60*79629b1aSNicolas Le Bayon * msgmisc[1] SimulationOnlyReset 61*79629b1aSNicolas Le Bayon * 0x1 = Verilog only simulation option to shorten 62*79629b1aSNicolas Le Bayon * duration of DRAM reset pulse length to 1ns. 63*79629b1aSNicolas Le Bayon * Must never be set to 1 in silicon. 64*79629b1aSNicolas Le Bayon * 0x0 = Use reset pulse length specified by JEDEC 65*79629b1aSNicolas Le Bayon * standard. 66*79629b1aSNicolas Le Bayon * 67*79629b1aSNicolas Le Bayon * msgmisc[2] SimulationOnlyTraining 68*79629b1aSNicolas Le Bayon * 0x1 = Verilog only simulation option to shorten the 69*79629b1aSNicolas Le Bayon * duration of the training steps by performing fewer 70*79629b1aSNicolas Le Bayon * iterations. 71*79629b1aSNicolas Le Bayon * Must never be set to 1 in silicon. 72*79629b1aSNicolas Le Bayon * 0x0 = Use standard training duration. 73*79629b1aSNicolas Le Bayon * 74*79629b1aSNicolas Le Bayon * msgmisc[3] Disable Boot Clock 75*79629b1aSNicolas Le Bayon * 0x1 = Disable boot frequency clock when initializing 76*79629b1aSNicolas Le Bayon * DRAM. (not recommended) 77*79629b1aSNicolas Le Bayon * 0x0 = Use Boot Frequency Clock 78*79629b1aSNicolas Le Bayon * 79*79629b1aSNicolas Le Bayon * msgmisc[4] Suppress streaming messages, including 80*79629b1aSNicolas Le Bayon * assertions, regardless of hdtctrl setting. 81*79629b1aSNicolas Le Bayon * Stage Completion messages, as well as training completion 82*79629b1aSNicolas Le Bayon * and error messages are still sent depending on hdtctrl 83*79629b1aSNicolas Le Bayon * setting. 84*79629b1aSNicolas Le Bayon * 85*79629b1aSNicolas Le Bayon * msgmisc[5] PerByteMaxRdLat 86*79629b1aSNicolas Le Bayon * 0x1 = Each DBYTE will return dfi_rddata_valid at the 87*79629b1aSNicolas Le Bayon * lowest possible latency. This may result in unaligned 88*79629b1aSNicolas Le Bayon * data between bytes to be returned to the DFI. 89*79629b1aSNicolas Le Bayon * 0x0 = Every DBYTE will return dfi_rddata_valid 90*79629b1aSNicolas Le Bayon * simultaneously. This will ensure that data bytes will 91*79629b1aSNicolas Le Bayon * return aligned accesses to the DFI. 92*79629b1aSNicolas Le Bayon * 93*79629b1aSNicolas Le Bayon * msgmisc[7-6] RFU, must be zero 94*79629b1aSNicolas Le Bayon * 95*79629b1aSNicolas Le Bayon * Notes: 96*79629b1aSNicolas Le Bayon * 97*79629b1aSNicolas Le Bayon * - SimulationOnlyReset and SimulationOnlyTraining can be 98*79629b1aSNicolas Le Bayon * used to speed up simulation run times, and must never 99*79629b1aSNicolas Le Bayon * be used in real silicon. Some VIPs may have checks on 100*79629b1aSNicolas Le Bayon * DRAM reset parameters that may need to be disabled when 101*79629b1aSNicolas Le Bayon * using SimulationOnlyReset. 102*79629b1aSNicolas Le Bayon */ 103*79629b1aSNicolas Le Bayon uint16_t pmurevision; /* 104*79629b1aSNicolas Le Bayon * Byte offset 0x02, CSR Addr 0x54001, Direction=Out 105*79629b1aSNicolas Le Bayon * PMU firmware revision ID 106*79629b1aSNicolas Le Bayon * After training is run, this address will contain the 107*79629b1aSNicolas Le Bayon * revision ID of the firmware 108*79629b1aSNicolas Le Bayon */ 109*79629b1aSNicolas Le Bayon uint8_t pstate; /* 110*79629b1aSNicolas Le Bayon * Byte offset 0x04, CSR Addr 0x54002, Direction=In 111*79629b1aSNicolas Le Bayon * Must be set to the target pstate to be trained 112*79629b1aSNicolas Le Bayon * 0x0 = pstate 0 113*79629b1aSNicolas Le Bayon * 0x1 = pstate 1 114*79629b1aSNicolas Le Bayon * 0x2 = pstate 2 115*79629b1aSNicolas Le Bayon * 0x3 = pstate 3 116*79629b1aSNicolas Le Bayon * All other encodings are reserved 117*79629b1aSNicolas Le Bayon */ 118*79629b1aSNicolas Le Bayon uint8_t pllbypassen; /* 119*79629b1aSNicolas Le Bayon * Byte offset 0x05, CSR Addr 0x54002, Direction=In 120*79629b1aSNicolas Le Bayon * Set according to whether target pstate uses PHY PLL 121*79629b1aSNicolas Le Bayon * bypass 122*79629b1aSNicolas Le Bayon * 0x0 = PHY PLL is enabled for target pstate 123*79629b1aSNicolas Le Bayon * 0x1 = PHY PLL is bypassed for target pstate 124*79629b1aSNicolas Le Bayon */ 125*79629b1aSNicolas Le Bayon uint16_t dramfreq; /* 126*79629b1aSNicolas Le Bayon * Byte offset 0x06, CSR Addr 0x54003, Direction=In 127*79629b1aSNicolas Le Bayon * DDR data rate for the target pstate in units of MT/s. 128*79629b1aSNicolas Le Bayon * For example enter 0x0640 for DDR1600. 129*79629b1aSNicolas Le Bayon */ 130*79629b1aSNicolas Le Bayon uint8_t dfifreqratio; /* 131*79629b1aSNicolas Le Bayon * Byte offset 0x08, CSR Addr 0x54004, Direction=In 132*79629b1aSNicolas Le Bayon * Frequency ratio betwen DfiCtlClk and SDRAM memclk. 133*79629b1aSNicolas Le Bayon * 0x1 = 1:1 134*79629b1aSNicolas Le Bayon * 0x2 = 1:2 135*79629b1aSNicolas Le Bayon * 0x4 = 1:4 136*79629b1aSNicolas Le Bayon */ 137*79629b1aSNicolas Le Bayon uint8_t bpznresval; /* 138*79629b1aSNicolas Le Bayon * Byte offset 0x09, CSR Addr 0x54004, Direction=In 139*79629b1aSNicolas Le Bayon * Overwrite the value of precision resistor connected to 140*79629b1aSNicolas Le Bayon * Phy BP_ZN 141*79629b1aSNicolas Le Bayon * 0x00 = Do not program. Use current CSR value. 142*79629b1aSNicolas Le Bayon * 0xf0 = 240 Ohm 143*79629b1aSNicolas Le Bayon * 0x78 = 120 Ohm 144*79629b1aSNicolas Le Bayon * 0x28 = 40 Ohm 145*79629b1aSNicolas Le Bayon * All other values are reserved. 146*79629b1aSNicolas Le Bayon * It is recommended to set this to 0x00. 147*79629b1aSNicolas Le Bayon */ 148*79629b1aSNicolas Le Bayon uint8_t phyodtimpedance; /* 149*79629b1aSNicolas Le Bayon * Byte offset 0x0a, CSR Addr 0x54005, Direction=In 150*79629b1aSNicolas Le Bayon * Must be programmed to the termination impedance in ohms 151*79629b1aSNicolas Le Bayon * used by PHY during reads. 152*79629b1aSNicolas Le Bayon * 153*79629b1aSNicolas Le Bayon * 0x0 = Firmware skips programming (must be manually 154*79629b1aSNicolas Le Bayon * programmed by user prior to training start) 155*79629b1aSNicolas Le Bayon * 156*79629b1aSNicolas Le Bayon * See PHY databook for legal termination impedance values. 157*79629b1aSNicolas Le Bayon * 158*79629b1aSNicolas Le Bayon * For digital simulation, any legal value can be used. For 159*79629b1aSNicolas Le Bayon * silicon, the users must determine the correct value 160*79629b1aSNicolas Le Bayon * through SI simulation or other methods. 161*79629b1aSNicolas Le Bayon */ 162*79629b1aSNicolas Le Bayon uint8_t phydrvimpedance; /* 163*79629b1aSNicolas Le Bayon * Byte offset 0x0b, CSR Addr 0x54005, Direction=In 164*79629b1aSNicolas Le Bayon * Must be programmed to the driver impedance in ohms used 165*79629b1aSNicolas Le Bayon * by PHY during writes for all DBYTE drivers 166*79629b1aSNicolas Le Bayon * (DQ/DM/DBI/DQS). 167*79629b1aSNicolas Le Bayon * 168*79629b1aSNicolas Le Bayon * 0x0 = Firmware skips programming (must be manually 169*79629b1aSNicolas Le Bayon * programmed by user prior to training start) 170*79629b1aSNicolas Le Bayon * 171*79629b1aSNicolas Le Bayon * See PHY databook for legal R_on driver impedance values. 172*79629b1aSNicolas Le Bayon * 173*79629b1aSNicolas Le Bayon * For digital simulation, any value can be used that is not 174*79629b1aSNicolas Le Bayon * Hi-Z. For silicon, the users must determine the correct 175*79629b1aSNicolas Le Bayon * value through SI simulation or other methods. 176*79629b1aSNicolas Le Bayon */ 177*79629b1aSNicolas Le Bayon uint8_t phyvref; /* 178*79629b1aSNicolas Le Bayon * Byte offset 0x0c, CSR Addr 0x54006, Direction=In 179*79629b1aSNicolas Le Bayon * Must be programmed with the Vref level to be used by the 180*79629b1aSNicolas Le Bayon * PHY during reads 181*79629b1aSNicolas Le Bayon * 182*79629b1aSNicolas Le Bayon * The units of this field are a percentage of VDDQ 183*79629b1aSNicolas Le Bayon * according to the following equation: 184*79629b1aSNicolas Le Bayon * 185*79629b1aSNicolas Le Bayon * Receiver Vref = VDDQ*phyvref[6:0]/128 186*79629b1aSNicolas Le Bayon * 187*79629b1aSNicolas Le Bayon * For example to set Vref at 0.25*VDDQ, set this field to 188*79629b1aSNicolas Le Bayon * 0x20. 189*79629b1aSNicolas Le Bayon * 190*79629b1aSNicolas Le Bayon * For digital simulation, any legal value can be used. For 191*79629b1aSNicolas Le Bayon * silicon, the users must calculate the analytical Vref by 192*79629b1aSNicolas Le Bayon * using the impedances, terminations, and series resistance 193*79629b1aSNicolas Le Bayon * present in the system. 194*79629b1aSNicolas Le Bayon */ 195*79629b1aSNicolas Le Bayon uint8_t lp4misc; /* 196*79629b1aSNicolas Le Bayon * Byte offset 0x0d, CSR Addr 0x54006, Direction=In 197*79629b1aSNicolas Le Bayon * Lp4 specific options for training. 198*79629b1aSNicolas Le Bayon * 199*79629b1aSNicolas Le Bayon * Bit fields: 200*79629b1aSNicolas Le Bayon * 201*79629b1aSNicolas Le Bayon * lp4misc[0] Enable dfi_reset_n 202*79629b1aSNicolas Le Bayon * 203*79629b1aSNicolas Le Bayon * 0x0 = (Recommended) PHY internal registers control 204*79629b1aSNicolas Le Bayon * memreset during training, and also after training. 205*79629b1aSNicolas Le Bayon * dfi_reset_n cannot control the PHY BP_MEMRESET_L pin. 206*79629b1aSNicolas Le Bayon * 207*79629b1aSNicolas Le Bayon * 0x1 = Enables dfi_reset_n to control memreset after 208*79629b1aSNicolas Le Bayon * training. PHY Internal registers control memreset 209*79629b1aSNicolas Le Bayon * during training only. To ensure that no glitches occur 210*79629b1aSNicolas Le Bayon * on BP_MEMRESET at the end of training, The MC must 211*79629b1aSNicolas Le Bayon * drive dfi_reset_n=1'b1 _prior to starting training_ 212*79629b1aSNicolas Le Bayon * 213*79629b1aSNicolas Le Bayon * lp4misc[7-1] RFU, must be zero 214*79629b1aSNicolas Le Bayon */ 215*79629b1aSNicolas Le Bayon uint8_t reserved0e; /* 216*79629b1aSNicolas Le Bayon * Byte offset 0x0e, CSR Addr 0x54007, Direction=In 217*79629b1aSNicolas Le Bayon * Bit Field for enabling optional 2D training features 218*79629b1aSNicolas Le Bayon * that impact both Rx2D and Tx2D. 219*79629b1aSNicolas Le Bayon * 220*79629b1aSNicolas Le Bayon * reserved0E[0:3]: bitTimeControl 221*79629b1aSNicolas Le Bayon * input for the amount of data bits 2D writes/reads per DQ 222*79629b1aSNicolas Le Bayon * before deciding if any specific voltage and delay setting 223*79629b1aSNicolas Le Bayon * passes or fails. Every time this input increases by 1, 224*79629b1aSNicolas Le Bayon * the number of 2D data comparisons is doubled. The 2D run 225*79629b1aSNicolas Le Bayon * time will increase proportionally to the number of bit 226*79629b1aSNicolas Le Bayon * times requested per point. 227*79629b1aSNicolas Le Bayon * 0 = 288 bits per point (legacy behavior) 228*79629b1aSNicolas Le Bayon * 1 = 576 bits per point 229*79629b1aSNicolas Le Bayon * 2 = 1.125 kilobits per point 230*79629b1aSNicolas Le Bayon * . . . 231*79629b1aSNicolas Le Bayon * 15 = 9 megabits per point 232*79629b1aSNicolas Le Bayon * 233*79629b1aSNicolas Le Bayon * reserved0E[4]: Exhaustive2D 234*79629b1aSNicolas Le Bayon * 0 = 2D optimization assumes the optimal trained point 235*79629b1aSNicolas Le Bayon * is near the 1D trained point (legacy behavior) 236*79629b1aSNicolas Le Bayon * 1 = 2D optimization searches the entire passing region 237*79629b1aSNicolas Le Bayon * at the cost of run time. Recommended for optimal 238*79629b1aSNicolas Le Bayon * results any time the optimal trained point is expected 239*79629b1aSNicolas Le Bayon * to be near the edges of the eyes instead of near the 1D 240*79629b1aSNicolas Le Bayon * trained point. 241*79629b1aSNicolas Le Bayon * 242*79629b1aSNicolas Le Bayon * reserved0E[5]: Detect Vref Eye Truncation, ignored if 243*79629b1aSNicolas Le Bayon * eyeWeight2DControl == 0. 244*79629b1aSNicolas Le Bayon * 0 = 2D optimizes for the passing region it can measure. 245*79629b1aSNicolas Le Bayon * 1 = For every eye, 2D checks If the legal voltage range 246*79629b1aSNicolas Le Bayon * truncated the eye. If the true voltage margin cannot be 247*79629b1aSNicolas Le Bayon * measured, 2D will optimize heavily for delay margin 248*79629b1aSNicolas Le Bayon * instead of using incomplete voltage margin data. Eyes 249*79629b1aSNicolas Le Bayon * that are not truncated will still be optimized using 250*79629b1aSNicolas Le Bayon * user programmed weights. 251*79629b1aSNicolas Le Bayon * 252*79629b1aSNicolas Le Bayon * reserved0E[6]: eyeWeight2DControl 253*79629b1aSNicolas Le Bayon * 0 = Use 8 bit weights for Delay_Weight2D and 254*79629b1aSNicolas Le Bayon * Voltage_Weight2D and disable TrunkV behavior. 255*79629b1aSNicolas Le Bayon * 1 = Use 4 bit weights for Delay_weight2D and 256*79629b1aSNicolas Le Bayon * Voltage_Weight2D and enable TrunkV behavior. 257*79629b1aSNicolas Le Bayon * 258*79629b1aSNicolas Le Bayon * reserved0E[7]: RFU, must be 0 259*79629b1aSNicolas Le Bayon */ 260*79629b1aSNicolas Le Bayon uint8_t cstestfail; /* 261*79629b1aSNicolas Le Bayon * Byte offset 0x0f, CSR Addr 0x54007, Direction=Out 262*79629b1aSNicolas Le Bayon * This field will be set if training fails on any rank. 263*79629b1aSNicolas Le Bayon * 0x0 = No failures 264*79629b1aSNicolas Le Bayon * non-zero = one or more ranks failed training 265*79629b1aSNicolas Le Bayon */ 266*79629b1aSNicolas Le Bayon uint16_t sequencectrl; /* 267*79629b1aSNicolas Le Bayon * Byte offset 0x10, CSR Addr 0x54008, Direction=In 268*79629b1aSNicolas Le Bayon * Controls the training steps to be run. Each bit 269*79629b1aSNicolas Le Bayon * corresponds to a training step. 270*79629b1aSNicolas Le Bayon * 271*79629b1aSNicolas Le Bayon * If the bit is set to 1, the training step will run. 272*79629b1aSNicolas Le Bayon * If the bit is set to 0, the training step will be 273*79629b1aSNicolas Le Bayon * skipped. 274*79629b1aSNicolas Le Bayon * 275*79629b1aSNicolas Le Bayon * Training step to bit mapping: 276*79629b1aSNicolas Le Bayon * sequencectrl[0] = Run DevInit - Device/phy 277*79629b1aSNicolas Le Bayon * initialization. Should always be set. 278*79629b1aSNicolas Le Bayon * sequencectrl[1] = Run WrLvl - Write leveling 279*79629b1aSNicolas Le Bayon * sequencectrl[2] = Run RxEn - Read gate training 280*79629b1aSNicolas Le Bayon * sequencectrl[3] = Run RdDQS1D - 1d read dqs training 281*79629b1aSNicolas Le Bayon * sequencectrl[4] = Run WrDQ1D - 1d write dq training 282*79629b1aSNicolas Le Bayon * sequencectrl[5] = RFU, must be zero 283*79629b1aSNicolas Le Bayon * sequencectrl[6] = RFU, must be zero 284*79629b1aSNicolas Le Bayon * sequencectrl[7] = RFU, must be zero 285*79629b1aSNicolas Le Bayon * sequencectrl[8] = Run RdDeskew - Per lane read dq deskew 286*79629b1aSNicolas Le Bayon * training 287*79629b1aSNicolas Le Bayon * sequencectrl[9] = Run MxRdLat - Max read latency training 288*79629b1aSNicolas Le Bayon * sequencectrl[11-10] = RFU, must be zero 289*79629b1aSNicolas Le Bayon * sequencectrl[12] = Run LPCA - CA Training 290*79629b1aSNicolas Le Bayon * sequencectrl[15-13] = RFU, must be zero 291*79629b1aSNicolas Le Bayon */ 292*79629b1aSNicolas Le Bayon uint8_t hdtctrl; /* 293*79629b1aSNicolas Le Bayon * Byte offset 0x12, CSR Addr 0x54009, Direction=In 294*79629b1aSNicolas Le Bayon * To control the total number of debug messages, a 295*79629b1aSNicolas Le Bayon * verbosity subfield (hdtctrl, Hardware Debug Trace 296*79629b1aSNicolas Le Bayon * Control) exists in the message block. Every message has a 297*79629b1aSNicolas Le Bayon * verbosity level associated with it, and as the hdtctrl 298*79629b1aSNicolas Le Bayon * value is increased, less important s messages stop being 299*79629b1aSNicolas Le Bayon * sent through the mailboxes. The meanings of several major 300*79629b1aSNicolas Le Bayon * hdtctrl thresholds are explained below: 301*79629b1aSNicolas Le Bayon * 302*79629b1aSNicolas Le Bayon * 0x04 = Maximal debug messages (e.g., Eye contours) 303*79629b1aSNicolas Le Bayon * 0x05 = Detailed debug messages (e.g. Eye delays) 304*79629b1aSNicolas Le Bayon * 0x0A = Coarse debug messages (e.g. rank information) 305*79629b1aSNicolas Le Bayon * 0xC8 = Stage completion 306*79629b1aSNicolas Le Bayon * 0xC9 = Assertion messages 307*79629b1aSNicolas Le Bayon * 0xFF = Firmware completion messages only 308*79629b1aSNicolas Le Bayon */ 309*79629b1aSNicolas Le Bayon uint8_t reserved13; /* 310*79629b1aSNicolas Le Bayon * Byte offset 0x13, CSR Addr 0x54009, Direction=In 311*79629b1aSNicolas Le Bayon * 312*79629b1aSNicolas Le Bayon * 0 = Default operation, unchanged. 313*79629b1aSNicolas Le Bayon * Others = RD DQ calibration Training steps are completed 314*79629b1aSNicolas Le Bayon * with user specified pattern. 315*79629b1aSNicolas Le Bayon */ 316*79629b1aSNicolas Le Bayon uint8_t reserved14; /* 317*79629b1aSNicolas Le Bayon * Byte offset 0x14, CSR Addr 0x5400a, Direction=In 318*79629b1aSNicolas Le Bayon * Configure rd2D search iteration from a starting seed 319*79629b1aSNicolas Le Bayon * point: 320*79629b1aSNicolas Le Bayon * 321*79629b1aSNicolas Le Bayon * reserved14[5:0]: If reserved14[6] is 0, Number of search 322*79629b1aSNicolas Le Bayon * iterations (if 0, then default is 20); otherwise if this 323*79629b1aSNicolas Le Bayon * value non zero, this value is used as a delta to filter 324*79629b1aSNicolas Le Bayon * out points during the averaging: when averaging over a 325*79629b1aSNicolas Le Bayon * dimension (delay or voltage), the points having a margin 326*79629b1aSNicolas Le Bayon * smaller than the max of the eye in this dimension by at 327*79629b1aSNicolas Le Bayon * least this delta value are filtered out. 328*79629b1aSNicolas Le Bayon * 329*79629b1aSNicolas Le Bayon * reserved14[6]: If set, instead of search, extract center 330*79629b1aSNicolas Le Bayon * using an averaging function over the eye surface area, 331*79629b1aSNicolas Le Bayon * where some points can be filtered out using 332*79629b1aSNicolas Le Bayon * reserved14[5:0] 333*79629b1aSNicolas Le Bayon * 334*79629b1aSNicolas Le Bayon * reserved14[7]: if set, start search with large step size, 335*79629b1aSNicolas Le Bayon * decreasing at each 4 iterations, down to 1 (do not care 336*79629b1aSNicolas Le Bayon * if reserved14[6] is set) 337*79629b1aSNicolas Le Bayon */ 338*79629b1aSNicolas Le Bayon uint8_t reserved15; /* 339*79629b1aSNicolas Le Bayon * Byte offset 0x15, CSR Addr 0x5400a, Direction=In 340*79629b1aSNicolas Le Bayon * Configure wr2D search iteration from a starting seed 341*79629b1aSNicolas Le Bayon * point: 342*79629b1aSNicolas Le Bayon * 343*79629b1aSNicolas Le Bayon * reserved15[5:0]: If reserved15[6] is 0, Number of search 344*79629b1aSNicolas Le Bayon * iterations (if 0, then default is 20); otherwise if this 345*79629b1aSNicolas Le Bayon * value non zero, this value is used as a delta to filter 346*79629b1aSNicolas Le Bayon * out points during the averaging: when averaging over a 347*79629b1aSNicolas Le Bayon * dimension (delay or voltage), the points having a margin 348*79629b1aSNicolas Le Bayon * smaller than the max of the eye in this dimension by at 349*79629b1aSNicolas Le Bayon * least this delta value are filtered out. 350*79629b1aSNicolas Le Bayon * 351*79629b1aSNicolas Le Bayon * reserved15[6]: If set, instead of search, extract center 352*79629b1aSNicolas Le Bayon * using an averaging function over the eye surface area, 353*79629b1aSNicolas Le Bayon * where some points can be filtered out using 354*79629b1aSNicolas Le Bayon * reserved15[5:0] 355*79629b1aSNicolas Le Bayon * 356*79629b1aSNicolas Le Bayon * reserved15[7]: if set, start search with large step size, 357*79629b1aSNicolas Le Bayon * decreasing at each 4 iterations, down to 1 (do not care 358*79629b1aSNicolas Le Bayon * if reserved15[6] is set) 359*79629b1aSNicolas Le Bayon */ 360*79629b1aSNicolas Le Bayon uint8_t dfimrlmargin; /* 361*79629b1aSNicolas Le Bayon * Byte offset 0x16, CSR Addr 0x5400b, Direction=In 362*79629b1aSNicolas Le Bayon * Margin added to smallest passing trained DFI Max Read 363*79629b1aSNicolas Le Bayon * Latency value, in units of DFI clocks. Recommended to be 364*79629b1aSNicolas Le Bayon * >= 1. 365*79629b1aSNicolas Le Bayon * 366*79629b1aSNicolas Le Bayon * This margin must include the maximum positive drift 367*79629b1aSNicolas Le Bayon * expected in tDQSCK over the target temperature and 368*79629b1aSNicolas Le Bayon * voltage range of the users system. 369*79629b1aSNicolas Le Bayon */ 370*79629b1aSNicolas Le Bayon uint8_t reserved17; /* 371*79629b1aSNicolas Le Bayon * Byte offset 0x17, CSR Addr 0x5400b, Direction=In 372*79629b1aSNicolas Le Bayon * Configure DB from which extra info is dump during 2D 373*79629b1aSNicolas Le Bayon * training when maximal debug is set: 374*79629b1aSNicolas Le Bayon * 375*79629b1aSNicolas Le Bayon * reserved17[3:0]: first DB 376*79629b1aSNicolas Le Bayon * 377*79629b1aSNicolas Le Bayon * reserved17[7:4]: number of DB, including first DB (if 0, 378*79629b1aSNicolas Le Bayon * no extra debug per DB is dump) 379*79629b1aSNicolas Le Bayon */ 380*79629b1aSNicolas Le Bayon uint8_t usebroadcastmr; /* 381*79629b1aSNicolas Le Bayon * Byte offset 0x18, CSR Addr 0x5400c, Direction=In 382*79629b1aSNicolas Le Bayon * Training firmware can optionally set per rank mode 383*79629b1aSNicolas Le Bayon * register values for DRAM partial array self-refresh 384*79629b1aSNicolas Le Bayon * features if desired. 385*79629b1aSNicolas Le Bayon * 386*79629b1aSNicolas Le Bayon * 0x0 = Use mr<1:4, 11:14, 16:17, 22, 24>_a0 for rank 0 387*79629b1aSNicolas Le Bayon * channel A 388*79629b1aSNicolas Le Bayon * Use mr<1:4, 11:14, 16:17, 22, 24>_b0 for rank 0 389*79629b1aSNicolas Le Bayon * channel B 390*79629b1aSNicolas Le Bayon * Use mr<1:4, 11:14, 16:17, 22, 24>_a1 for rank 1 391*79629b1aSNicolas Le Bayon * channel A 392*79629b1aSNicolas Le Bayon * Use mr<1:4, 11:14, 16:17, 22, 24>_b1 for rank 1 393*79629b1aSNicolas Le Bayon * channel B 394*79629b1aSNicolas Le Bayon * 395*79629b1aSNicolas Le Bayon * 0x1 = Use mr<1:4, 11:14, 16:17, 22, 24>_a0 setting for 396*79629b1aSNicolas Le Bayon * all channels/ranks 397*79629b1aSNicolas Le Bayon * 398*79629b1aSNicolas Le Bayon * It is recommended in most LPDDR4 system configurations 399*79629b1aSNicolas Le Bayon * to set this to 1. 400*79629b1aSNicolas Le Bayon * It is recommended in LPDDR4x system configurations to 401*79629b1aSNicolas Le Bayon * set this to 0. 402*79629b1aSNicolas Le Bayon */ 403*79629b1aSNicolas Le Bayon uint8_t lp4quickboot; /* 404*79629b1aSNicolas Le Bayon * Byte offset 0x19, CSR Addr 0x5400c, Direction=In 405*79629b1aSNicolas Le Bayon * Enable Quickboot. It must be set to 0x0 since Quickboot 406*79629b1aSNicolas Le Bayon * is only supported in dedicated Quickboot firmware. 407*79629b1aSNicolas Le Bayon */ 408*79629b1aSNicolas Le Bayon uint8_t reserved1a; /* 409*79629b1aSNicolas Le Bayon * Byte offset 0x1a, CSR Addr 0x5400d, Direction=In 410*79629b1aSNicolas Le Bayon * Input for constraining the range of vref(DQ) values 411*79629b1aSNicolas Le Bayon * training will collect data for, usually reducing training 412*79629b1aSNicolas Le Bayon * time. However, too large of a voltage range may cause 413*79629b1aSNicolas Le Bayon * longer 2D training times while too small of a voltage 414*79629b1aSNicolas Le Bayon * range may truncate passing regions. When in doubt, leave 415*79629b1aSNicolas Le Bayon * this field set to 0. 416*79629b1aSNicolas Le Bayon * Used by 2D stages: Rd2D, Wr2D 417*79629b1aSNicolas Le Bayon * 418*79629b1aSNicolas Le Bayon * reserved1A[0-3]: Rd2D Voltage Range 419*79629b1aSNicolas Le Bayon * 0 = Training will search all phy vref(DQ) settings 420*79629b1aSNicolas Le Bayon * 1 = limit to +/-2 %VDDQ from phyVref 421*79629b1aSNicolas Le Bayon * 2 = limit to +/-4 %VDDQ from phyVref 422*79629b1aSNicolas Le Bayon * . . . 423*79629b1aSNicolas Le Bayon * 15 = limit to +/-30% VDDQ from phyVref 424*79629b1aSNicolas Le Bayon * 425*79629b1aSNicolas Le Bayon * reserved1A[4-7]: Wr2D Voltage Range 426*79629b1aSNicolas Le Bayon * 0 = Training will search all dram vref(DQ) settings 427*79629b1aSNicolas Le Bayon * 1 = limit to +/-2 %VDDQ from mr14 428*79629b1aSNicolas Le Bayon * 2 = limit to +/-4 %VDDQ from mr14 429*79629b1aSNicolas Le Bayon * . . . 430*79629b1aSNicolas Le Bayon * 15 = limit to +/-30% VDDQ from mr14 431*79629b1aSNicolas Le Bayon */ 432*79629b1aSNicolas Le Bayon uint8_t catrainopt; /* 433*79629b1aSNicolas Le Bayon * Byte offset 0x1b, CSR Addr 0x5400d, Direction=In 434*79629b1aSNicolas Le Bayon * CA training option bit field 435*79629b1aSNicolas Le Bayon * [0] CA VREF Training 436*79629b1aSNicolas Le Bayon * 1 = Enable CA VREF Training 437*79629b1aSNicolas Le Bayon * 0 = Disable CA VREF Training 438*79629b1aSNicolas Le Bayon * WARNING: catrainopt[0] must be set to the same value in 439*79629b1aSNicolas Le Bayon * 1D and 2D training. 440*79629b1aSNicolas Le Bayon * 441*79629b1aSNicolas Le Bayon * [1] Train terminated Rank only 442*79629b1aSNicolas Le Bayon * 1 = Only train terminated rank in CA training 443*79629b1aSNicolas Le Bayon * 0 = Train all ranks in CA training 444*79629b1aSNicolas Le Bayon * 445*79629b1aSNicolas Le Bayon * [2-7] RFU must be zero 446*79629b1aSNicolas Le Bayon */ 447*79629b1aSNicolas Le Bayon uint8_t x8mode; /* 448*79629b1aSNicolas Le Bayon * Byte offset 0x1c, CSR Addr 0x5400e, Direction=In 449*79629b1aSNicolas Le Bayon * X8 mode configuration: 450*79629b1aSNicolas Le Bayon * 0x0 = x16 configuration for all devices 451*79629b1aSNicolas Le Bayon * 0xF = x8 configuration for all devices 452*79629b1aSNicolas Le Bayon * All other values are RFU 453*79629b1aSNicolas Le Bayon */ 454*79629b1aSNicolas Le Bayon uint8_t reserved1d; /* Byte offset 0x1d, CSR Addr 0x5400e, Direction=N/A */ 455*79629b1aSNicolas Le Bayon uint8_t reserved1e; /* Byte offset 0x1e, CSR Addr 0x5400f, Direction=N/A */ 456*79629b1aSNicolas Le Bayon uint8_t share2dvrefresult; /* 457*79629b1aSNicolas Le Bayon * Byte offset 0x1f, CSR Addr 0x5400f, Direction=In 458*79629b1aSNicolas Le Bayon * Bitmap that designates the phy's vref source for every 459*79629b1aSNicolas Le Bayon * pstate 460*79629b1aSNicolas Le Bayon * If share2dvrefresult[x] = 0, then after 2D training, 461*79629b1aSNicolas Le Bayon * pstate x will continue using the phyVref provided in 462*79629b1aSNicolas Le Bayon * pstate x's 1D messageblock. 463*79629b1aSNicolas Le Bayon * If share2dvrefresult[x] = 1, then after 2D training, 464*79629b1aSNicolas Le Bayon * pstate x will use the per-lane VrefDAC0/1 CSRs trained by 465*79629b1aSNicolas Le Bayon * 2d training. 466*79629b1aSNicolas Le Bayon */ 467*79629b1aSNicolas Le Bayon uint8_t reserved20; /* Byte offset 0x20, CSR Addr 0x54010, Direction=N/A */ 468*79629b1aSNicolas Le Bayon uint8_t reserved21; /* Byte offset 0x21, CSR Addr 0x54010, Direction=N/A */ 469*79629b1aSNicolas Le Bayon uint16_t phyconfigoverride; /* 470*79629b1aSNicolas Le Bayon * Byte offset 0x22, CSR Addr 0x54011, Direction=In 471*79629b1aSNicolas Le Bayon * Override PhyConfig csr. 472*79629b1aSNicolas Le Bayon * 0x0: Use hardware csr value for PhyConfing 473*79629b1aSNicolas Le Bayon * (recommended) 474*79629b1aSNicolas Le Bayon * Other values: Use value for PhyConfig instead of 475*79629b1aSNicolas Le Bayon * Hardware value. 476*79629b1aSNicolas Le Bayon * 477*79629b1aSNicolas Le Bayon */ 478*79629b1aSNicolas Le Bayon uint8_t enableddqscha; /* 479*79629b1aSNicolas Le Bayon * Byte offset 0x24, CSR Addr 0x54012, Direction=In 480*79629b1aSNicolas Le Bayon * Total number of DQ bits enabled in PHY Channel A 481*79629b1aSNicolas Le Bayon */ 482*79629b1aSNicolas Le Bayon uint8_t cspresentcha; /* 483*79629b1aSNicolas Le Bayon * Byte offset 0x25, CSR Addr 0x54012, Direction=In 484*79629b1aSNicolas Le Bayon * Indicates presence of DRAM at each chip select for PHY 485*79629b1aSNicolas Le Bayon * channel A. 486*79629b1aSNicolas Le Bayon * 0x1 = CS0 is populated with DRAM 487*79629b1aSNicolas Le Bayon * 0x3 = CS0 and CS1 are populated with DRAM 488*79629b1aSNicolas Le Bayon * 489*79629b1aSNicolas Le Bayon * All other encodings are illegal 490*79629b1aSNicolas Le Bayon */ 491*79629b1aSNicolas Le Bayon int8_t cdd_cha_rr_1_0; /* 492*79629b1aSNicolas Le Bayon * Byte offset 0x26, CSR Addr 0x54013, Direction=Out 493*79629b1aSNicolas Le Bayon * This is a signed integer value. 494*79629b1aSNicolas Le Bayon * Read to read critical delay difference from cs 1 to cs 0 495*79629b1aSNicolas Le Bayon * on Channel A. 496*79629b1aSNicolas Le Bayon */ 497*79629b1aSNicolas Le Bayon int8_t cdd_cha_rr_0_1; /* 498*79629b1aSNicolas Le Bayon * Byte offset 0x27, CSR Addr 0x54013, Direction=Out 499*79629b1aSNicolas Le Bayon * This is a signed integer value. 500*79629b1aSNicolas Le Bayon * Read to read critical delay difference from cs 0 to cs 1 501*79629b1aSNicolas Le Bayon * on Channel A. 502*79629b1aSNicolas Le Bayon */ 503*79629b1aSNicolas Le Bayon int8_t cdd_cha_rw_1_1; /* 504*79629b1aSNicolas Le Bayon * Byte offset 0x28, CSR Addr 0x54014, Direction=Out 505*79629b1aSNicolas Le Bayon * This is a signed integer value. 506*79629b1aSNicolas Le Bayon * Read to write critical delay difference from cs 1 to cs 1 507*79629b1aSNicolas Le Bayon * on Channel A. 508*79629b1aSNicolas Le Bayon */ 509*79629b1aSNicolas Le Bayon int8_t cdd_cha_rw_1_0; /* 510*79629b1aSNicolas Le Bayon * Byte offset 0x29, CSR Addr 0x54014, Direction=Out 511*79629b1aSNicolas Le Bayon * This is a signed integer value. 512*79629b1aSNicolas Le Bayon * Read to write critical delay difference from cs 1 to cs 0 513*79629b1aSNicolas Le Bayon * on Channel A. 514*79629b1aSNicolas Le Bayon */ 515*79629b1aSNicolas Le Bayon int8_t cdd_cha_rw_0_1; /* 516*79629b1aSNicolas Le Bayon * Byte offset 0x2a, CSR Addr 0x54015, Direction=Out 517*79629b1aSNicolas Le Bayon * This is a signed integer value. 518*79629b1aSNicolas Le Bayon * Read to write critical delay difference from cs 0 to cs 1 519*79629b1aSNicolas Le Bayon * on Channel A. 520*79629b1aSNicolas Le Bayon */ 521*79629b1aSNicolas Le Bayon int8_t cdd_cha_rw_0_0; /* 522*79629b1aSNicolas Le Bayon * Byte offset 0x2b, CSR Addr 0x54015, Direction=Out 523*79629b1aSNicolas Le Bayon * This is a signed integer value. 524*79629b1aSNicolas Le Bayon * Read to write critical delay difference from cs0 to cs 0 525*79629b1aSNicolas Le Bayon * on Channel A. 526*79629b1aSNicolas Le Bayon */ 527*79629b1aSNicolas Le Bayon int8_t cdd_cha_wr_1_1; /* 528*79629b1aSNicolas Le Bayon * Byte offset 0x2c, CSR Addr 0x54016, Direction=Out 529*79629b1aSNicolas Le Bayon * This is a signed integer value. 530*79629b1aSNicolas Le Bayon * Write to read critical delay difference from cs 1 to cs 1 531*79629b1aSNicolas Le Bayon * on Channel A. 532*79629b1aSNicolas Le Bayon */ 533*79629b1aSNicolas Le Bayon int8_t cdd_cha_wr_1_0; /* 534*79629b1aSNicolas Le Bayon * Byte offset 0x2d, CSR Addr 0x54016, Direction=Out 535*79629b1aSNicolas Le Bayon * This is a signed integer value. 536*79629b1aSNicolas Le Bayon * Write to read critical delay difference from cs 1 to cs 0 537*79629b1aSNicolas Le Bayon * on Channel A. 538*79629b1aSNicolas Le Bayon */ 539*79629b1aSNicolas Le Bayon int8_t cdd_cha_wr_0_1; /* 540*79629b1aSNicolas Le Bayon * Byte offset 0x2e, CSR Addr 0x54017, Direction=Out 541*79629b1aSNicolas Le Bayon * This is a signed integer value. 542*79629b1aSNicolas Le Bayon * Write to read critical delay difference from cs 0 to cs 1 543*79629b1aSNicolas Le Bayon * on Channel A. 544*79629b1aSNicolas Le Bayon */ 545*79629b1aSNicolas Le Bayon int8_t cdd_cha_wr_0_0; /* 546*79629b1aSNicolas Le Bayon * Byte offset 0x2f, CSR Addr 0x54017, Direction=Out 547*79629b1aSNicolas Le Bayon * This is a signed integer value. 548*79629b1aSNicolas Le Bayon * Write to read critical delay difference from cs 0 to cs 0 549*79629b1aSNicolas Le Bayon * on Channel A. 550*79629b1aSNicolas Le Bayon */ 551*79629b1aSNicolas Le Bayon int8_t cdd_cha_ww_1_0; /* 552*79629b1aSNicolas Le Bayon * Byte offset 0x30, CSR Addr 0x54018, Direction=Out 553*79629b1aSNicolas Le Bayon * This is a signed integer value. 554*79629b1aSNicolas Le Bayon * Write to write critical delay difference from cs 1 to cs 555*79629b1aSNicolas Le Bayon * 0 on Channel A. 556*79629b1aSNicolas Le Bayon */ 557*79629b1aSNicolas Le Bayon int8_t cdd_cha_ww_0_1; /* 558*79629b1aSNicolas Le Bayon * Byte offset 0x31, CSR Addr 0x54018, Direction=Out 559*79629b1aSNicolas Le Bayon * This is a signed integer value. 560*79629b1aSNicolas Le Bayon * Write to write critical delay difference from cs 0 to cs 561*79629b1aSNicolas Le Bayon * 1 on Channel A. 562*79629b1aSNicolas Le Bayon */ 563*79629b1aSNicolas Le Bayon uint8_t mr1_a0; /* 564*79629b1aSNicolas Le Bayon * Byte offset 0x32, CSR Addr 0x54019, Direction=In 565*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 1 566*79629b1aSNicolas Le Bayon * {Channel A, Rank 0} 567*79629b1aSNicolas Le Bayon */ 568*79629b1aSNicolas Le Bayon uint8_t mr2_a0; /* 569*79629b1aSNicolas Le Bayon * Byte offset 0x33, CSR Addr 0x54019, Direction=In 570*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 2 571*79629b1aSNicolas Le Bayon * {Channel A, Rank 0} 572*79629b1aSNicolas Le Bayon */ 573*79629b1aSNicolas Le Bayon uint8_t mr3_a0; /* 574*79629b1aSNicolas Le Bayon * Byte offset 0x34, CSR Addr 0x5401a, Direction=In 575*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 3 576*79629b1aSNicolas Le Bayon * {Channel A, Rank 0} 577*79629b1aSNicolas Le Bayon */ 578*79629b1aSNicolas Le Bayon uint8_t mr4_a0; /* 579*79629b1aSNicolas Le Bayon * Byte offset 0x35, CSR Addr 0x5401a, Direction=In 580*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 4 581*79629b1aSNicolas Le Bayon * {Channel A, Rank 0} 582*79629b1aSNicolas Le Bayon */ 583*79629b1aSNicolas Le Bayon uint8_t mr11_a0; /* 584*79629b1aSNicolas Le Bayon * Byte offset 0x36, CSR Addr 0x5401b, Direction=In 585*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 11 586*79629b1aSNicolas Le Bayon * {Channel A, Rank 0} 587*79629b1aSNicolas Le Bayon */ 588*79629b1aSNicolas Le Bayon uint8_t mr12_a0; /* 589*79629b1aSNicolas Le Bayon * Byte offset 0x37, CSR Addr 0x5401b, Direction=In 590*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 12 591*79629b1aSNicolas Le Bayon * {Channel A, Rank 0} 592*79629b1aSNicolas Le Bayon */ 593*79629b1aSNicolas Le Bayon uint8_t mr13_a0; /* 594*79629b1aSNicolas Le Bayon * Byte offset 0x38, CSR Addr 0x5401c, Direction=In 595*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 13 596*79629b1aSNicolas Le Bayon * {Channel A, Rank 0} 597*79629b1aSNicolas Le Bayon */ 598*79629b1aSNicolas Le Bayon uint8_t mr14_a0; /* 599*79629b1aSNicolas Le Bayon * Byte offset 0x39, CSR Addr 0x5401c, Direction=In 600*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 14 601*79629b1aSNicolas Le Bayon * {Channel A, Rank 0} 602*79629b1aSNicolas Le Bayon */ 603*79629b1aSNicolas Le Bayon uint8_t mr16_a0; /* 604*79629b1aSNicolas Le Bayon * Byte offset 0x3a, CSR Addr 0x5401d, Direction=In 605*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 16 606*79629b1aSNicolas Le Bayon * {Channel A, Rank 0} 607*79629b1aSNicolas Le Bayon */ 608*79629b1aSNicolas Le Bayon uint8_t mr17_a0; /* 609*79629b1aSNicolas Le Bayon * Byte offset 0x3b, CSR Addr 0x5401d, Direction=In 610*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 17 611*79629b1aSNicolas Le Bayon * {Channel A, Rank 0} 612*79629b1aSNicolas Le Bayon */ 613*79629b1aSNicolas Le Bayon uint8_t mr22_a0; /* 614*79629b1aSNicolas Le Bayon * Byte offset 0x3c, CSR Addr 0x5401e, Direction=In 615*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 22 616*79629b1aSNicolas Le Bayon * {Channel A, Rank 0} 617*79629b1aSNicolas Le Bayon */ 618*79629b1aSNicolas Le Bayon uint8_t mr24_a0; /* 619*79629b1aSNicolas Le Bayon * Byte offset 0x3d, CSR Addr 0x5401e, Direction=In 620*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 24 621*79629b1aSNicolas Le Bayon * {Channel A, Rank 0} 622*79629b1aSNicolas Le Bayon */ 623*79629b1aSNicolas Le Bayon uint8_t mr1_a1; /* 624*79629b1aSNicolas Le Bayon * Byte offset 0x3e, CSR Addr 0x5401f, Direction=In 625*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 1 626*79629b1aSNicolas Le Bayon * {Channel A, Rank 1} 627*79629b1aSNicolas Le Bayon */ 628*79629b1aSNicolas Le Bayon uint8_t mr2_a1; /* 629*79629b1aSNicolas Le Bayon * Byte offset 0x3f, CSR Addr 0x5401f, Direction=In 630*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 2 631*79629b1aSNicolas Le Bayon * {Channel A, Rank 1} 632*79629b1aSNicolas Le Bayon */ 633*79629b1aSNicolas Le Bayon uint8_t mr3_a1; /* 634*79629b1aSNicolas Le Bayon * Byte offset 0x40, CSR Addr 0x54020, Direction=In 635*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 3 636*79629b1aSNicolas Le Bayon * {Channel A, Rank 1} 637*79629b1aSNicolas Le Bayon */ 638*79629b1aSNicolas Le Bayon uint8_t mr4_a1; /* 639*79629b1aSNicolas Le Bayon * Byte offset 0x41, CSR Addr 0x54020, Direction=In 640*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 4 641*79629b1aSNicolas Le Bayon * {Channel A, Rank 1} 642*79629b1aSNicolas Le Bayon */ 643*79629b1aSNicolas Le Bayon uint8_t mr11_a1; /* 644*79629b1aSNicolas Le Bayon * Byte offset 0x42, CSR Addr 0x54021, Direction=In 645*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 11 646*79629b1aSNicolas Le Bayon * {Channel A, Rank 1} 647*79629b1aSNicolas Le Bayon */ 648*79629b1aSNicolas Le Bayon uint8_t mr12_a1; /* 649*79629b1aSNicolas Le Bayon * Byte offset 0x43, CSR Addr 0x54021, Direction=In 650*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 12 651*79629b1aSNicolas Le Bayon * {Channel A, Rank 1} 652*79629b1aSNicolas Le Bayon */ 653*79629b1aSNicolas Le Bayon uint8_t mr13_a1; /* 654*79629b1aSNicolas Le Bayon * Byte offset 0x44, CSR Addr 0x54022, Direction=In 655*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 13 656*79629b1aSNicolas Le Bayon * {Channel A, Rank 1} 657*79629b1aSNicolas Le Bayon */ 658*79629b1aSNicolas Le Bayon uint8_t mr14_a1; /* 659*79629b1aSNicolas Le Bayon * Byte offset 0x45, CSR Addr 0x54022, Direction=In 660*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 14 661*79629b1aSNicolas Le Bayon * {Channel A, Rank 1} 662*79629b1aSNicolas Le Bayon */ 663*79629b1aSNicolas Le Bayon uint8_t mr16_a1; /* 664*79629b1aSNicolas Le Bayon * Byte offset 0x46, CSR Addr 0x54023, Direction=In 665*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 16 666*79629b1aSNicolas Le Bayon * {Channel A, Rank 1} 667*79629b1aSNicolas Le Bayon */ 668*79629b1aSNicolas Le Bayon uint8_t mr17_a1; /* 669*79629b1aSNicolas Le Bayon * Byte offset 0x47, CSR Addr 0x54023, Direction=In 670*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 17 671*79629b1aSNicolas Le Bayon * {Channel A, Rank 1} 672*79629b1aSNicolas Le Bayon */ 673*79629b1aSNicolas Le Bayon uint8_t mr22_a1; /* 674*79629b1aSNicolas Le Bayon * Byte offset 0x48, CSR Addr 0x54024, Direction=In 675*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 22 676*79629b1aSNicolas Le Bayon * {Channel A, Rank 1} 677*79629b1aSNicolas Le Bayon */ 678*79629b1aSNicolas Le Bayon uint8_t mr24_a1; /* 679*79629b1aSNicolas Le Bayon * Byte offset 0x49, CSR Addr 0x54024, Direction=In 680*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 24 681*79629b1aSNicolas Le Bayon * {Channel A, Rank 1} 682*79629b1aSNicolas Le Bayon */ 683*79629b1aSNicolas Le Bayon uint8_t caterminatingrankcha; /* Byte offset 0x4a, CSR Addr 0x54025, Direction=In 684*79629b1aSNicolas Le Bayon * Terminating Rank for CA bus on Channel A 685*79629b1aSNicolas Le Bayon * 0x0 = Rank 0 is terminating rank 686*79629b1aSNicolas Le Bayon * 0x1 = Rank 1 is terminating rank 687*79629b1aSNicolas Le Bayon */ 688*79629b1aSNicolas Le Bayon uint8_t reserved4b; /* Byte offset 0x4b, CSR Addr 0x54025, Direction=N/A */ 689*79629b1aSNicolas Le Bayon uint8_t reserved4c; /* Byte offset 0x4c, CSR Addr 0x54026, Direction=N/A */ 690*79629b1aSNicolas Le Bayon uint8_t reserved4d; /* Byte offset 0x4d, CSR Addr 0x54026, Direction=N/A */ 691*79629b1aSNicolas Le Bayon uint8_t reserved4e; /* Byte offset 0x4e, CSR Addr 0x54027, Direction=N/A */ 692*79629b1aSNicolas Le Bayon uint8_t reserved4f; /* Byte offset 0x4f, CSR Addr 0x54027, Direction=N/A */ 693*79629b1aSNicolas Le Bayon uint8_t reserved50; /* Byte offset 0x50, CSR Addr 0x54028, Direction=N/A */ 694*79629b1aSNicolas Le Bayon uint8_t reserved51; /* Byte offset 0x51, CSR Addr 0x54028, Direction=N/A */ 695*79629b1aSNicolas Le Bayon uint8_t reserved52; /* Byte offset 0x52, CSR Addr 0x54029, Direction=N/A */ 696*79629b1aSNicolas Le Bayon uint8_t reserved53; /* Byte offset 0x53, CSR Addr 0x54029, Direction=N/A */ 697*79629b1aSNicolas Le Bayon uint8_t reserved54; /* Byte offset 0x54, CSR Addr 0x5402a, Direction=N/A */ 698*79629b1aSNicolas Le Bayon uint8_t reserved55; /* Byte offset 0x55, CSR Addr 0x5402a, Direction=N/A */ 699*79629b1aSNicolas Le Bayon uint8_t reserved56; /* Byte offset 0x56, CSR Addr 0x5402b, Direction=N/A */ 700*79629b1aSNicolas Le Bayon uint8_t enableddqschb; /* 701*79629b1aSNicolas Le Bayon * Byte offset 0x57, CSR Addr 0x5402b, Direction=In 702*79629b1aSNicolas Le Bayon * Total number of DQ bits enabled in PHY Channel B 703*79629b1aSNicolas Le Bayon */ 704*79629b1aSNicolas Le Bayon uint8_t cspresentchb; /* 705*79629b1aSNicolas Le Bayon * Byte offset 0x58, CSR Addr 0x5402c, Direction=In 706*79629b1aSNicolas Le Bayon * Indicates presence of DRAM at each chip select for PHY 707*79629b1aSNicolas Le Bayon * channel B. 708*79629b1aSNicolas Le Bayon * 0x0 = No chip selects are populated with DRAM 709*79629b1aSNicolas Le Bayon * 0x1 = CS0 is populated with DRAM 710*79629b1aSNicolas Le Bayon * 0x3 = CS0 and CS1 are populated with DRAM 711*79629b1aSNicolas Le Bayon * 712*79629b1aSNicolas Le Bayon * All other encodings are illegal 713*79629b1aSNicolas Le Bayon */ 714*79629b1aSNicolas Le Bayon int8_t cdd_chb_rr_1_0; /* 715*79629b1aSNicolas Le Bayon * Byte offset 0x59, CSR Addr 0x5402c, Direction=Out 716*79629b1aSNicolas Le Bayon * This is a signed integer value. 717*79629b1aSNicolas Le Bayon * Read to read critical delay difference from cs 1 to cs 0 718*79629b1aSNicolas Le Bayon * on Channel B. 719*79629b1aSNicolas Le Bayon */ 720*79629b1aSNicolas Le Bayon int8_t cdd_chb_rr_0_1; /* 721*79629b1aSNicolas Le Bayon * Byte offset 0x5a, CSR Addr 0x5402d, Direction=Out 722*79629b1aSNicolas Le Bayon * This is a signed integer value. 723*79629b1aSNicolas Le Bayon * Read to read critical delay difference from cs 0 to cs 1 724*79629b1aSNicolas Le Bayon * on Channel B. 725*79629b1aSNicolas Le Bayon */ 726*79629b1aSNicolas Le Bayon int8_t cdd_chb_rw_1_1; /* 727*79629b1aSNicolas Le Bayon * Byte offset 0x5b, CSR Addr 0x5402d, Direction=Out 728*79629b1aSNicolas Le Bayon * This is a signed integer value. 729*79629b1aSNicolas Le Bayon * Read to write critical delay difference from cs 1 to cs 1 730*79629b1aSNicolas Le Bayon * on Channel B. 731*79629b1aSNicolas Le Bayon */ 732*79629b1aSNicolas Le Bayon int8_t cdd_chb_rw_1_0; /* 733*79629b1aSNicolas Le Bayon * Byte offset 0x5c, CSR Addr 0x5402e, Direction=Out 734*79629b1aSNicolas Le Bayon * This is a signed integer value. 735*79629b1aSNicolas Le Bayon * Read to write critical delay difference from cs 1 to cs 0 736*79629b1aSNicolas Le Bayon * on Channel B. 737*79629b1aSNicolas Le Bayon */ 738*79629b1aSNicolas Le Bayon int8_t cdd_chb_rw_0_1; /* 739*79629b1aSNicolas Le Bayon * Byte offset 0x5d, CSR Addr 0x5402e, Direction=Out 740*79629b1aSNicolas Le Bayon * This is a signed integer value. 741*79629b1aSNicolas Le Bayon * Read to write critical delay difference from cs 0 to cs 1 742*79629b1aSNicolas Le Bayon * on Channel B. 743*79629b1aSNicolas Le Bayon */ 744*79629b1aSNicolas Le Bayon int8_t cdd_chb_rw_0_0; /* 745*79629b1aSNicolas Le Bayon * Byte offset 0x5e, CSR Addr 0x5402f, Direction=Out 746*79629b1aSNicolas Le Bayon * This is a signed integer value. 747*79629b1aSNicolas Le Bayon * Read to write critical delay difference from cs01 to cs 0 748*79629b1aSNicolas Le Bayon * on Channel B. 749*79629b1aSNicolas Le Bayon */ 750*79629b1aSNicolas Le Bayon int8_t cdd_chb_wr_1_1; /* 751*79629b1aSNicolas Le Bayon * Byte offset 0x5f, CSR Addr 0x5402f, Direction=Out 752*79629b1aSNicolas Le Bayon * This is a signed integer value. 753*79629b1aSNicolas Le Bayon * Write to read critical delay difference from cs 1 to cs 1 754*79629b1aSNicolas Le Bayon * on Channel B. 755*79629b1aSNicolas Le Bayon */ 756*79629b1aSNicolas Le Bayon int8_t cdd_chb_wr_1_0; /* 757*79629b1aSNicolas Le Bayon * Byte offset 0x60, CSR Addr 0x54030, Direction=Out 758*79629b1aSNicolas Le Bayon * This is a signed integer value. 759*79629b1aSNicolas Le Bayon * Write to read critical delay difference from cs 1 to cs 0 760*79629b1aSNicolas Le Bayon * on Channel B. 761*79629b1aSNicolas Le Bayon */ 762*79629b1aSNicolas Le Bayon int8_t cdd_chb_wr_0_1; /* 763*79629b1aSNicolas Le Bayon * Byte offset 0x61, CSR Addr 0x54030, Direction=Out 764*79629b1aSNicolas Le Bayon * This is a signed integer value. 765*79629b1aSNicolas Le Bayon * Write to read critical delay difference from cs 0 to cs 1 766*79629b1aSNicolas Le Bayon * on Channel B. 767*79629b1aSNicolas Le Bayon */ 768*79629b1aSNicolas Le Bayon int8_t cdd_chb_wr_0_0; /* 769*79629b1aSNicolas Le Bayon * Byte offset 0x62, CSR Addr 0x54031, Direction=Out 770*79629b1aSNicolas Le Bayon * This is a signed integer value. 771*79629b1aSNicolas Le Bayon * Write to read critical delay difference from cs 0 to cs 0 772*79629b1aSNicolas Le Bayon * on Channel B. 773*79629b1aSNicolas Le Bayon */ 774*79629b1aSNicolas Le Bayon int8_t cdd_chb_ww_1_0; /* 775*79629b1aSNicolas Le Bayon * Byte offset 0x63, CSR Addr 0x54031, Direction=Out 776*79629b1aSNicolas Le Bayon * This is a signed integer value. 777*79629b1aSNicolas Le Bayon * Write to write critical delay difference from cs 1 to cs 778*79629b1aSNicolas Le Bayon * 0 on Channel B. 779*79629b1aSNicolas Le Bayon */ 780*79629b1aSNicolas Le Bayon int8_t cdd_chb_ww_0_1; /* 781*79629b1aSNicolas Le Bayon * Byte offset 0x64, CSR Addr 0x54032, Direction=Out 782*79629b1aSNicolas Le Bayon * This is a signed integer value. 783*79629b1aSNicolas Le Bayon * Write to write critical delay difference from cs 0 to cs 784*79629b1aSNicolas Le Bayon * 1 on Channel B. 785*79629b1aSNicolas Le Bayon */ 786*79629b1aSNicolas Le Bayon uint8_t mr1_b0; /* 787*79629b1aSNicolas Le Bayon * Byte offset 0x65, CSR Addr 0x54032, Direction=In 788*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 1 789*79629b1aSNicolas Le Bayon * {Channel B, Rank 0} 790*79629b1aSNicolas Le Bayon */ 791*79629b1aSNicolas Le Bayon uint8_t mr2_b0; /* 792*79629b1aSNicolas Le Bayon * Byte offset 0x66, CSR Addr 0x54033, Direction=In 793*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 2 794*79629b1aSNicolas Le Bayon * {Channel B, Rank 0} 795*79629b1aSNicolas Le Bayon */ 796*79629b1aSNicolas Le Bayon uint8_t mr3_b0; /* 797*79629b1aSNicolas Le Bayon * Byte offset 0x67, CSR Addr 0x54033, Direction=In 798*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 3 799*79629b1aSNicolas Le Bayon * {Channel B, Rank 0} 800*79629b1aSNicolas Le Bayon */ 801*79629b1aSNicolas Le Bayon uint8_t mr4_b0; /* 802*79629b1aSNicolas Le Bayon * Byte offset 0x68, CSR Addr 0x54034, Direction=In 803*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 4 804*79629b1aSNicolas Le Bayon * {Channel B, Rank 0} 805*79629b1aSNicolas Le Bayon */ 806*79629b1aSNicolas Le Bayon uint8_t mr11_b0; /* 807*79629b1aSNicolas Le Bayon * Byte offset 0x69, CSR Addr 0x54034, Direction=In 808*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 11 809*79629b1aSNicolas Le Bayon * {Channel B, Rank 0} 810*79629b1aSNicolas Le Bayon */ 811*79629b1aSNicolas Le Bayon uint8_t mr12_b0; /* 812*79629b1aSNicolas Le Bayon * Byte offset 0x6a, CSR Addr 0x54035, Direction=In 813*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 12 814*79629b1aSNicolas Le Bayon * {Channel B, Rank 0} 815*79629b1aSNicolas Le Bayon */ 816*79629b1aSNicolas Le Bayon uint8_t mr13_b0; /* 817*79629b1aSNicolas Le Bayon * Byte offset 0x6b, CSR Addr 0x54035, Direction=In 818*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 13 819*79629b1aSNicolas Le Bayon * {Channel B, Rank 0} 820*79629b1aSNicolas Le Bayon */ 821*79629b1aSNicolas Le Bayon uint8_t mr14_b0; /* 822*79629b1aSNicolas Le Bayon * Byte offset 0x6c, CSR Addr 0x54036, Direction=In 823*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 14 824*79629b1aSNicolas Le Bayon * {Channel B, Rank 0} 825*79629b1aSNicolas Le Bayon */ 826*79629b1aSNicolas Le Bayon uint8_t mr16_b0; /* 827*79629b1aSNicolas Le Bayon * Byte offset 0x6d, CSR Addr 0x54036, Direction=In 828*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 16 829*79629b1aSNicolas Le Bayon * {Channel B, Rank 0} 830*79629b1aSNicolas Le Bayon */ 831*79629b1aSNicolas Le Bayon uint8_t mr17_b0; /* 832*79629b1aSNicolas Le Bayon * Byte offset 0x6e, CSR Addr 0x54037, Direction=In 833*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 17 834*79629b1aSNicolas Le Bayon * {Channel B, Rank 0} 835*79629b1aSNicolas Le Bayon */ 836*79629b1aSNicolas Le Bayon uint8_t mr22_b0; /* 837*79629b1aSNicolas Le Bayon * Byte offset 0x6f, CSR Addr 0x54037, Direction=In 838*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 22 839*79629b1aSNicolas Le Bayon * {Channel B, Rank 0} 840*79629b1aSNicolas Le Bayon */ 841*79629b1aSNicolas Le Bayon uint8_t mr24_b0; /* 842*79629b1aSNicolas Le Bayon * Byte offset 0x70, CSR Addr 0x54038, Direction=In 843*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 24 844*79629b1aSNicolas Le Bayon * {Channel B, Rank 0} 845*79629b1aSNicolas Le Bayon */ 846*79629b1aSNicolas Le Bayon uint8_t mr1_b1; /* 847*79629b1aSNicolas Le Bayon * Byte offset 0x71, CSR Addr 0x54038, Direction=In 848*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 1 849*79629b1aSNicolas Le Bayon * {Channel B, Rank 1} 850*79629b1aSNicolas Le Bayon */ 851*79629b1aSNicolas Le Bayon uint8_t mr2_b1; /* 852*79629b1aSNicolas Le Bayon * Byte offset 0x72, CSR Addr 0x54039, Direction=In 853*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 2 854*79629b1aSNicolas Le Bayon * {Channel B, Rank 1} 855*79629b1aSNicolas Le Bayon */ 856*79629b1aSNicolas Le Bayon uint8_t mr3_b1; /* 857*79629b1aSNicolas Le Bayon * Byte offset 0x73, CSR Addr 0x54039, Direction=In 858*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 3 859*79629b1aSNicolas Le Bayon * {Channel B, Rank 1} 860*79629b1aSNicolas Le Bayon */ 861*79629b1aSNicolas Le Bayon uint8_t mr4_b1; /* 862*79629b1aSNicolas Le Bayon * Byte offset 0x74, CSR Addr 0x5403a, Direction=In 863*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 4 864*79629b1aSNicolas Le Bayon * {Channel B, Rank 1} 865*79629b1aSNicolas Le Bayon */ 866*79629b1aSNicolas Le Bayon uint8_t mr11_b1; /* 867*79629b1aSNicolas Le Bayon * Byte offset 0x75, CSR Addr 0x5403a, Direction=In 868*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 11 869*79629b1aSNicolas Le Bayon * {Channel B, Rank 1} 870*79629b1aSNicolas Le Bayon */ 871*79629b1aSNicolas Le Bayon uint8_t mr12_b1; /* 872*79629b1aSNicolas Le Bayon * Byte offset 0x76, CSR Addr 0x5403b, Direction=In 873*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 12 874*79629b1aSNicolas Le Bayon * {Channel B, Rank 1} 875*79629b1aSNicolas Le Bayon */ 876*79629b1aSNicolas Le Bayon uint8_t mr13_b1; /* 877*79629b1aSNicolas Le Bayon * Byte offset 0x77, CSR Addr 0x5403b, Direction=In 878*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 13 879*79629b1aSNicolas Le Bayon * {Channel B, Rank 1} 880*79629b1aSNicolas Le Bayon */ 881*79629b1aSNicolas Le Bayon uint8_t mr14_b1; /* 882*79629b1aSNicolas Le Bayon * Byte offset 0x78, CSR Addr 0x5403c, Direction=In 883*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 14 884*79629b1aSNicolas Le Bayon * {Channel B, Rank 1} 885*79629b1aSNicolas Le Bayon */ 886*79629b1aSNicolas Le Bayon uint8_t mr16_b1; /* 887*79629b1aSNicolas Le Bayon * Byte offset 0x79, CSR Addr 0x5403c, Direction=In 888*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 16 889*79629b1aSNicolas Le Bayon * {Channel B, Rank 1} 890*79629b1aSNicolas Le Bayon */ 891*79629b1aSNicolas Le Bayon uint8_t mr17_b1; /* 892*79629b1aSNicolas Le Bayon * Byte offset 0x7a, CSR Addr 0x5403d, Direction=In 893*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 17 894*79629b1aSNicolas Le Bayon * {Channel B, Rank 1} 895*79629b1aSNicolas Le Bayon */ 896*79629b1aSNicolas Le Bayon uint8_t mr22_b1; /* 897*79629b1aSNicolas Le Bayon * Byte offset 0x7b, CSR Addr 0x5403d, Direction=In 898*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 22 899*79629b1aSNicolas Le Bayon * {Channel B, Rank 1} 900*79629b1aSNicolas Le Bayon */ 901*79629b1aSNicolas Le Bayon uint8_t mr24_b1; /* 902*79629b1aSNicolas Le Bayon * Byte offset 0x7c, CSR Addr 0x5403e, Direction=In 903*79629b1aSNicolas Le Bayon * Value to be programmed in DRAM Mode Register 24 904*79629b1aSNicolas Le Bayon * {Channel B, Rank 1} 905*79629b1aSNicolas Le Bayon */ 906*79629b1aSNicolas Le Bayon uint8_t caterminatingrankchb; /* Byte offset 0x7d, CSR Addr 0x5403e, Direction=In 907*79629b1aSNicolas Le Bayon * Terminating Rank for CA bus on Channel B 908*79629b1aSNicolas Le Bayon * 0x0 = Rank 0 is terminating rank 909*79629b1aSNicolas Le Bayon * 0x1 = Rank 1 is terminating rank 910*79629b1aSNicolas Le Bayon */ 911*79629b1aSNicolas Le Bayon uint8_t reserved7e; /* Byte offset 0x7e, CSR Addr 0x5403f, Direction=N/A */ 912*79629b1aSNicolas Le Bayon uint8_t reserved7f; /* Byte offset 0x7f, CSR Addr 0x5403f, Direction=N/A */ 913*79629b1aSNicolas Le Bayon uint8_t reserved80; /* Byte offset 0x80, CSR Addr 0x54040, Direction=N/A */ 914*79629b1aSNicolas Le Bayon uint8_t reserved81; /* Byte offset 0x81, CSR Addr 0x54040, Direction=N/A */ 915*79629b1aSNicolas Le Bayon uint8_t reserved82; /* Byte offset 0x82, CSR Addr 0x54041, Direction=N/A */ 916*79629b1aSNicolas Le Bayon uint8_t reserved83; /* Byte offset 0x83, CSR Addr 0x54041, Direction=N/A */ 917*79629b1aSNicolas Le Bayon uint8_t reserved84; /* Byte offset 0x84, CSR Addr 0x54042, Direction=N/A */ 918*79629b1aSNicolas Le Bayon uint8_t reserved85; /* Byte offset 0x85, CSR Addr 0x54042, Direction=N/A */ 919*79629b1aSNicolas Le Bayon uint8_t reserved86; /* Byte offset 0x86, CSR Addr 0x54043, Direction=N/A */ 920*79629b1aSNicolas Le Bayon uint8_t reserved87; /* Byte offset 0x87, CSR Addr 0x54043, Direction=N/A */ 921*79629b1aSNicolas Le Bayon uint8_t reserved88; /* Byte offset 0x88, CSR Addr 0x54044, Direction=N/A */ 922*79629b1aSNicolas Le Bayon uint8_t reserved89; /* Byte offset 0x89, CSR Addr 0x54044, Direction=N/A */ 923*79629b1aSNicolas Le Bayon } __packed __aligned(2); 924*79629b1aSNicolas Le Bayon 925*79629b1aSNicolas Le Bayon #endif /* MNPMUSRAMMSGBLOCK_LPDDR4_H */ 926