diff options
author | Wolfgang Denk <wd@denx.de> | 2009-09-15 21:43:25 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-09-15 21:43:25 +0200 |
commit | cae26e2fdd9934644086fda9f7cbc336a1fe5ce8 (patch) | |
tree | 5f9ae145135d5583fadff9564196fbf5f10e34ea /board/w7o/w7o.c | |
parent | 6c7bc91fb3dba186d3398a1653f6db236510ffa7 (diff) | |
parent | 4c1883670acbf1cc83c04df1876235c3aedde128 (diff) | |
download | u-boot-imx-cae26e2fdd9934644086fda9f7cbc336a1fe5ce8.zip u-boot-imx-cae26e2fdd9934644086fda9f7cbc336a1fe5ce8.tar.gz u-boot-imx-cae26e2fdd9934644086fda9f7cbc336a1fe5ce8.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Diffstat (limited to 'board/w7o/w7o.c')
-rw-r--r-- | board/w7o/w7o.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/board/w7o/w7o.c b/board/w7o/w7o.c index 22cdfcd..6479bee 100644 --- a/board/w7o/w7o.c +++ b/board/w7o/w7o.c @@ -170,17 +170,17 @@ unsigned long get_dram_size (void) int size = 0; /* Get bank Size registers */ - mtdcr (memcfga, mem_mb0cf); /* get bank 0 config reg */ - regs[0] = mfdcr (memcfgd); + mtdcr (SDRAM0_CFGADDR, mem_mb0cf); /* get bank 0 config reg */ + regs[0] = mfdcr (SDRAM0_CFGDATA); - mtdcr (memcfga, mem_mb1cf); /* get bank 1 config reg */ - regs[1] = mfdcr (memcfgd); + mtdcr (SDRAM0_CFGADDR, mem_mb1cf); /* get bank 1 config reg */ + regs[1] = mfdcr (SDRAM0_CFGDATA); - mtdcr (memcfga, mem_mb2cf); /* get bank 2 config reg */ - regs[2] = mfdcr (memcfgd); + mtdcr (SDRAM0_CFGADDR, mem_mb2cf); /* get bank 2 config reg */ + regs[2] = mfdcr (SDRAM0_CFGDATA); - mtdcr (memcfga, mem_mb3cf); /* get bank 3 config reg */ - regs[3] = mfdcr (memcfgd); + mtdcr (SDRAM0_CFGADDR, mem_mb3cf); /* get bank 3 config reg */ + regs[3] = mfdcr (SDRAM0_CFGDATA); /* compute the size, add each bank if enabled */ for (i = 0; i < 4; i++) { |