[U-Boot] [PATCH v2] rockchip: sdram: Fix register layout for Linux

Simon Glass sjg at chromium.org
Sun Jul 17 16:13:08 CEST 2016


On 15 July 2016 at 10:33, John Keeping <john at metanate.com> wrote:
> 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 b5788dc ("rockchip: rk3288: correct
> sdram setting") which was reverted in commit b525556 ("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: John Keeping <john at metanate.com>
>
> ---
>
> Changes in v2:
> - Reword the commit message to not be "Revert: Revert: ..."
>
>  arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list