Skip to content
  • Tony Lindgren's avatar
    LC15: Fix flakey ddr3 detection with ref_ctrl and ref_ctrl_final · babb512f
    Tony Lindgren authored
    Since commit 802bb57a
    
     ("ARM: DRA7: EMIF: Update SDRAM_REF_CTRL
    register value") we now do this in two phases.
    
    We are not currently configuring ref_ctrl and this seems to cause
    bogus memory errors early in u-boot that often happen if the board
    has been powered off for a while:
    
    SDRAM: identified size not same as expected size identified: 0
    expected: 40000000
    ...
    WARNING: DDR RAM is not working! (12000000)
    ...
    ### ERROR ### Please RESET the board ###
    
    Note that this does not solve the kernel related memory issues,
    but gets us to the point where u-boot starts reliably.
    
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    babb512f