Skip to content
  • John Keeping's avatar
    rockchip: sdram: Fix register layout for Linux · c482c60a
    John Keeping authored
    The ChromeOS kernel reads the RAM settings from PMU_SYS_REG2 and expects
    the bootloader to store the necessary information there.  We're using
    the same register to pass the same information between the SPL and
    U-Boot but in a slightly different format.
    
    Change this to use the format expected by the Linux DMC driver so that
    the system doesn't hang in Linux by misconfiguring the RAM.
    
    This is almost the same as commit b5788dc0 ("rockchip: rk3288: correct
    sdram setting") which was reverted in commit b525556e
    
     ("Revert "rockchip:
    rk3288: correct sdram setting"") but parenthese have been added to apply
    the mask correctly when reading the "bw" setting and a couple of minor
    style issues have been fixed to keep check_patch.pl happy.
    
    Signed-off-by: default avatarJohn Keeping <john@metanate.com>
    Reviewed-by: default avatarTom Rini <trini@konsulko.com>
    Acked-by: default avatarSimon Glass <sjg@chromium.org>
    c482c60a