]> git.sur5r.net Git - u-boot/commit
kirkwood: implement kw_sdram_size_adjust
authorGerlando Falauto <gerlando.falauto@keymile.com>
Wed, 25 Jul 2012 06:23:48 +0000 (06:23 +0000)
committerPrafulla Wadaskar <prafulla@marvell.com>
Wed, 3 Oct 2012 11:13:13 +0000 (16:43 +0530)
commitb3168f4be86ef02905281ff7531960112e10cc7e
treebd5b68951292adc14ffdf59943419f0b01954be8
parent455151652524570d7c5b320718c7004e63e01656
kirkwood: implement kw_sdram_size_adjust

Size of the SDRAM chips might differ between any two (otherwise
identical) instances of the same board.

So add a function kw_sdram_size_adjust() which reads out the current
ram size for a given bank, and adjusts the Kirkwood's SDRAM window size
register accordingly.

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>
arch/arm/cpu/arm926ejs/kirkwood/dram.c
arch/arm/include/asm/arch-kirkwood/cpu.h