ARMV7: OMAP4: Calculate SDRAM size
authorAneesh V <aneesh@ti.com>
Sun, 12 Sep 2010 05:02:55 +0000 (10:32 +0530)
committerSandeep Paulraj <s-paulraj@ti.com>
Tue, 28 Sep 2010 17:54:43 +0000 (13:54 -0400)
commit7ca3f9c5688b9f42d8dcc765c0f982be6542f4b3
tree6bac5e2d18e2ced2f98f6d9148a05fa3e4294534
parentc1244e852f06346a65ffa433b172fef8dfe33032
ARMV7: OMAP4: Calculate SDRAM size

Calculate the SDRAM size from DMM configuration registers instead of using
hard-coded values. This gives correct values for all different boards.

It's assumed that DMM sections do not overlap memory areas.

Signed-off-by: Aneesh V <aneesh@ti.com>
Tested-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
arch/arm/cpu/armv7/omap4/board.c
arch/arm/include/asm/arch-omap4/omap4.h