Skip to content
  • York Sun's avatar
    powerpc/mpc8xxx: Fix DDR driver handling quad-rank DIMMs and address calculation · 123922b1
    York Sun authored
    
    
    Fix handling quad-rank DIMMs in a system with two DIMM slots and first
    slot supports both dual-rank DIMM and quad-rank DIMM.
    
    For systems with quad-rank DIMM and double dual-rank DIMMs, cs_config
    registers need to be enabled to maintain proper ODT operation. The
    inactive CS should have bnds registers cleared.
    
    Fix the turnaround timing for systems with all chip-selects enabled. This
    wasn't an issue before because DDR was running lower than 1600MT/s with
    this interleaving mode.
    
    Fix DDR address calculation. It wasn't an issue until we have multiple
    controllers with each more than 4GB and interleaving is disabled.
    
    It also fixes the message of DDR: 2 GiB (DDR3, 64-bit, CL=0.5, ECC off)
    when debugging DDR and first DDR controller is disabled. With the fix,
    the first enabled controller information will be displayed.
    
    Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
    Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
    123922b1