Kirkwood: bugfix: DRAM size initialization
authorTanmay Upadhyay <[tanmay.upadhyay@einfochips.com]>
Thu, 28 Oct 2010 14:36:22 +0000 (20:06 +0530)
committerPrafulla Wadaskar <prafulla@marvell.com>
Thu, 28 Oct 2010 14:36:22 +0000 (20:06 +0530)
commit28e57108a61bd0e554d9847170b8ad9dad093e07
tree85f4238317b8f6b4fd043bca5a2b7de753a0b5b9
parent31d80c77ff672e0202b4ada5215c4666c949ffc2
Kirkwood: bugfix: DRAM size initialization

If start of any DRAM bank is greater than total DDR size, remaining DDR banks' start address & size were left un-initialized in dram_init function. This could break other functions who uses array 'gd->bd->bi_dram'. Kirkwood network driver is one example. This also stops Linux kernel from booting.

v2 - Set start address also to 0. Without this Linux kernel couldn't
     boot up

Signed-off-by: Tanmay Upadhyay <tanmay.upadhyay@einfochips.com>
arch/arm/cpu/arm926ejs/kirkwood/dram.c