[U-Boot] u-boot on beagleboard finds incorrect memory size.

wilsonjonathan piercing_male at hotmail.com
Fri Jan 27 16:50:07 CET 2012


I think the area of code that needs investigating is in
arch/arm/cpu/armv7/omap3/sdrc.c

line 82 onwards :-


> u32 get_sdr_cs_size(u32 cs)
> {
> 	u32 size;
> 
> 	/* get ram size field */
> 	size = readl(&sdrc_base->cs[cs].mcfg) >> 8;
> 	size &= 0x3FF;		/* remove unwanted bits */
> 	size <<= 21;		/* multiply by 2 MiB to find size in MB */
> 	return size;
> }
> 

Which I think is set in arc/arm/include/asm/arch-omap3/cpu.h but I don't
understand how the -> stuff works.

I think its line 262 which is wrong but I'm not sure what it should say.


> #define RAMSIZE_128		(0x40 << 8) /* RAM size in 2MB chunks */



More information about the U-Boot mailing list