diff options
author | Vaibhav Hiremath <hvaibhav@ti.com> | 2010-11-29 16:36:10 -0500 |
---|---|---|
committer | Sandeep Paulraj <s-paulraj@ti.com> | 2010-11-29 16:36:10 -0500 |
commit | 279c8283db09b1168fce83fc9851ca8b36ea07f8 (patch) | |
tree | f8f277951e8b94671f942bc37f9f43c2abd4afd0 /arch/arm/cpu | |
parent | aa82d5f2a6cf373463270ad5e3160ef906d99175 (diff) | |
download | u-boot-imx-279c8283db09b1168fce83fc9851ca8b36ea07f8.zip u-boot-imx-279c8283db09b1168fce83fc9851ca8b36ea07f8.tar.gz u-boot-imx-279c8283db09b1168fce83fc9851ca8b36ea07f8.tar.bz2 |
AM3517:EMIF4: fix SDRAM size to 256Mb
With addition of "dram_init_banksize()" function from Heiko,Schocher
(commit ID: 561142af20f1fd7b425d9425730014e656defb91), the DRAM size
is getting configured wrongly to 512Mb (CS0 & CS1).
So fix it to 256Mb.
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv7/omap3/emif4.c | 5 |
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 0870857..2227576 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; } |