summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/omap3/emif4.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-11-30 22:12:36 +0100
committerWolfgang Denk <wd@denx.de>2010-11-30 22:12:36 +0100
commitf8264e015e93e27bb52bd047b58e5a130161764b (patch)
tree175e6bee060fc06df13752561efe1d7a4e024f6a /arch/arm/cpu/armv7/omap3/emif4.c
parent3410a994e580082e3ed8e28a349a71a1b0cc395e (diff)
parent52eb2c79110151b9017a0829c4d44ee7b8e2ca04 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-arm
Diffstat (limited to 'arch/arm/cpu/armv7/omap3/emif4.c')
-rw-r--r--arch/arm/cpu/armv7/omap3/emif4.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/omap3/emif4.c b/arch/arm/cpu/armv7/omap3/emif4.c
index 0870857ede..2227576b7b 100644
--- a/arch/arm/cpu/armv7/omap3/emif4.c
+++ b/arch/arm/cpu/armv7/omap3/emif4.c
@@ -48,10 +48,11 @@ u32 is_mem_sdr(void)
*/
u32 get_sdr_cs_size(u32 cs)
{
- u32 size;
+ u32 size = 0;
/* TODO: Calculate the size based on EMIF4 configuration */
- size = CONFIG_SYS_CS0_SIZE;
+ if (cs == CS0)
+ size = CONFIG_SYS_CS0_SIZE;
return size;
}