[U-Boot] SDRAM init on OMAP4

Michael Cashwell mboards at prograde.net
Sat Apr 27 00:47:21 CEST 2013


Greetings,

I've gotten a new custom OMAP4 board and can't get the SDRAM to work.
My plan is to retest part of this on a 4460 ES1.1 Pandaboard next week but
wanted to put a feeler out now to see if this is known. I've see this today
using DENX Mainline u-boot and u-boot-arm/master.

I'm currently on u-boot-arm/master:
U-Boot SPL 2013.04-rc2-14354-gf2e8a87-dirty (Apr 26 2013 - 18:37:55)

I have one case that works. An older board (whose CPU I think is identical
to the Panda mentioned above). Using pre-canned SDRAM/EMIFS settings this
seems to work. However with what seems to be a new CPU the pre-canned
settings hang (it seems in omap_sdram_size()).

So I tried to use the SDRAM auto-detect modes:

#undef CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS
#define CONFIG_SYS_AUTOMATIC_SDRAM_DETECTION
(I've tried it with and without CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS and see
no difference.)

It still hangs in omap_sdram_size() on both the old and new CPUs but
interestingly the new one reports:

EMIF1 CS0       Micron          LPDDR2-S4       512 MB
get_mr: EMIF1 cs 1 mr 80000000 val 0xffffffff
EMIF2 CS0       Micron          LPDDR2-S4       512 MB
get_mr: EMIF2 cs 1 mr 80000000 val 0xffffffff
emif1_size 0x20000000 emif2_size 0x20000000
<<dmm_init() EMIF1 en: 1, EMIF2 en: 1

When I try that auto-detect mode on the old CPU I get:
EMIF1 CS0       Micron          LPDDR2-S4       256 MB
EMIF1 CS1       Micron          LPDDR2-S4       256 MB
EMIF2 CS0       Micron          LPDDR2-S4       256 MB
EMIF2 CS1       Micron          LPDDR2-S4       256 MB

Are the SDRAM auto-detect modes expected to work on OMAP4460ES1.1?

I'll report the Panda testing next week.

Thanks
-Mike Cashwell



More information about the U-Boot mailing list