From 7faabe0c9b9c0f0f35c99d9c883412eecbcfe4cd Mon Sep 17 00:00:00 2001 From: Michael Brandt Date: Mon, 12 Jul 2010 13:29:26 +0200 Subject: Memsize: Fixed rows/cols mask Fixed DMC_CTL_97 mask values for rows and columns. Signed-off-by: Michael Brandt Change-Id: I62da1b08392a390f3cdbba8e454bbe00af7ed226 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2770 Reviewed-by: Jonas ABERG --- board/st/u8500/u8500.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'board/st/u8500/u8500.c') diff --git a/board/st/u8500/u8500.c b/board/st/u8500/u8500.c index b5c5e60a7..addb376fa 100644 --- a/board/st/u8500/u8500.c +++ b/board/st/u8500/u8500.c @@ -197,8 +197,8 @@ int dram_init(void) * size = nCS x 2^(rows+cols) x nbanks x buswidth_bytes */ unused_cols_rows = readl(DMC_CTL_97); - nrows = 15 - (unused_cols_rows & 0xff); - ncols = 11 - ((unused_cols_rows & 0xff00) >> 8); + nrows = 15 - (unused_cols_rows & 0x07); + ncols = 11 - ((unused_cols_rows & 0x0700) >> 8); gd->bd->bi_dram[0].size = 2 * (1 << (nrows + ncols)) * 8 * 4; return 0; -- cgit v1.2.3