From: Yen Lin Date: Mon, 2 Apr 2012 13:18:56 +0000 (+0000) Subject: tegra: Setup PMC scratch info from ap20 setup X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c5179da9f3746f4ef59e8b5458b06b8fa2af422c;p=project%2Fbcm63xx%2Fu-boot.git tegra: Setup PMC scratch info from ap20 setup Save SDRAM parameters into the warmboot scratch registers Signed-off-by: Simon Glass Signed-off-by: Yen Lin Signed-off-by: Tom Warren --- diff --git a/arch/arm/cpu/armv7/tegra2/ap20.c b/arch/arm/cpu/armv7/tegra2/ap20.c index 150fbfd59e..698bfd0e17 100644 --- a/arch/arm/cpu/armv7/tegra2/ap20.c +++ b/arch/arm/cpu/armv7/tegra2/ap20.c @@ -31,6 +31,7 @@ #include #include #include +#include #include int tegra_get_chip_type(void) @@ -322,6 +323,11 @@ void init_pmc_scratch(void) /* ODMDATA is for kernel use to determine RAM size, LP config, etc. */ writel(CONFIG_SYS_BOARD_ODMDATA, &pmc->pmc_scratch20); + +#ifdef CONFIG_TEGRA2_LP0 + /* save Sdram params to PMC 2, 4, and 24 for WB0 */ + warmboot_save_sdram_params(); +#endif } void tegra2_start(void)