From: Holger Brunck Date: Wed, 25 Jul 2012 06:26:03 +0000 (+0000) Subject: arm/km: use kw_sdram_size_adjust to adjust SDRAM size X-Git-Tag: v2012.10-rc3~15^2~13^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3a5b9fe64949e5cf1dab49db4656096a0d6905cd;p=u-boot arm/km: use kw_sdram_size_adjust to adjust SDRAM size Some boards may differ only in the SDRAM size. This function allows to fix the size accordingly and we can use the same u-boot binary for both boards. Signed-off-by: Holger Brunck Signed-off-by: Gerlando Falauto cc: Prafulla Wadaskar cc: Valentin Longchamp --- diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c index be8f51c2fc..8b5fc568f4 100644 --- a/board/keymile/km_arm/km_arm.c +++ b/board/keymile/km_arm/km_arm.c @@ -250,7 +250,8 @@ int board_early_init_f(void) tmp = readl(KW_GPIO0_BASE + 4); writel(tmp & (~KM_KIRKWOOD_SOFT_I2C_GPIOS) , KW_GPIO0_BASE + 4); #endif - + /* adjust SDRAM size for bank 0 */ + kw_sdram_size_adjust(0); kirkwood_mpp_conf(kwmpp_config, NULL); return 0; }