diff options
author | Michael Brandt <michael.brandt@stericsson.com> | 2010-07-12 13:29:26 +0200 |
---|---|---|
committer | Michael BRANDT <michael.brandt@stericsson.com> | 2010-07-12 15:43:11 +0200 |
commit | 7faabe0c9b9c0f0f35c99d9c883412eecbcfe4cd (patch) | |
tree | 866bc22652fc76ca2cae0674db408149b8edef1d /board/st | |
parent | 5ede6c8a938d3c677b8939cf9110862691946059 (diff) |
Memsize: Fixed rows/cols mask
Fixed DMC_CTL_97 mask values for rows and columns.
Signed-off-by: Michael Brandt <michael.brandt@stericsson.com>
Change-Id: I62da1b08392a390f3cdbba8e454bbe00af7ed226
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2770
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'board/st')
-rw-r--r-- | board/st/u8500/u8500.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |