diff options
author | Wolfgang Denk <wd@denx.de> | 2010-10-17 20:25:05 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-17 20:25:05 +0200 |
commit | cacc342d5aa311673efdc05770cb53246dd41c9f (patch) | |
tree | 628ad99e5ea23c3f6ae6f728167056001bd16847 /arch/arm/cpu/armv7 | |
parent | 5641f34f8b83b3dcb64ba5f6c0f83d2204c41387 (diff) | |
parent | 59e0d611ad0418245e9600b50bf1374a725c95b6 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-arm
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r-- | arch/arm/cpu/armv7/omap3/sdrc.c | 2 | ||||
-rw-r--r-- | arch/arm/cpu/armv7/omap4/board.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/omap3/sdrc.c b/arch/arm/cpu/armv7/omap3/sdrc.c index 2719bb53a7..6c419f5b93 100644 --- a/arch/arm/cpu/armv7/omap3/sdrc.c +++ b/arch/arm/cpu/armv7/omap3/sdrc.c @@ -99,7 +99,7 @@ u32 get_sdr_cs_offset(u32 cs) return 0; offset = readl(&sdrc_base->cs_cfg); - offset = (offset & 15) << 27 | (offset & 0x30) >> 17; + offset = (offset & 15) << 27 | (offset & 0x30) << 17; return offset; } diff --git a/arch/arm/cpu/armv7/omap4/board.c b/arch/arm/cpu/armv7/omap4/board.c index 8c1f3953ed..24a66f5b94 100644 --- a/arch/arm/cpu/armv7/omap4/board.c +++ b/arch/arm/cpu/armv7/omap4/board.c @@ -102,8 +102,13 @@ int dram_init(void) { DECLARE_GLOBAL_DATA_PTR; +#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) gd->bd->bi_dram[0].start = 0x80000000; gd->bd->bi_dram[0].size = sdram_size(); +#else + gd->ram_size = sdram_size(); +#endif + return 0; } |