kirkwood: implement kw_sdram_bs_set()
authorGerlando Falauto <gerlando.falauto@keymile.com>
Fri, 20 Jul 2012 02:34:25 +0000 (02:34 +0000)
committerPrafulla Wadaskar <prafulla@marvell.com>
Wed, 3 Oct 2012 11:13:13 +0000 (16:43 +0530)
commit455151652524570d7c5b320718c7004e63e01656
treee7e4b8fc9d5bf69aefa2fa18e62aab2aeee52b05
parentcf37c5d98bb2e23fbcbca8a0328ca7dd43d6af8c
kirkwood: implement kw_sdram_bs_set()

Some boards might be equipped with different SDRAM configurations.
When that is the case, CPU CS Window Size Register (CS[0]n Size)
should be set to the biggest value through board.cfg file; then its
value can be fixed at runtime according to the detected SDRAM size.

Therefore, implement kw_sdram_bs_set().

Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Marek Vasut <marex@denx.de>
Acked-by: Prafulla Wadaskar <Prafulla@marvell.com>
arch/arm/cpu/arm926ejs/kirkwood/dram.c