This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5718: SDRAM initialization problem!!!

Part Number: AM5718


Tool/software: Linux

Hello. 

I'm new to AM5718 and have problem on initialization of SDRAM.

My custom board has 2-SDRAM (micron - MT41k256m16tw-107:p, 4Gbit), total 8 Gbits.

When first boot from MLO sdram_init() fails with this error!!!

So please kindly tell me where is the point to modify.

1. How to configure DRAM size. 

    omap_sdram_size() function reads from __raw_readl(DMM_BASE + i*4)

    but I can't find __raw_writel function in u-boot source code.

2. How to configure DRAM config in board.c

    static const struct emif_regs beagle_x15_emif1_ddr3_533mhz_emif_regs = {

             .sdram_config = 0x61851b32

              .... };

Regards. 

----- sdram_init() -----

in_sdram = 0

board is beagle lisa

emif1-enabled

>> 1. do_sdram_init() 4c000000

HW leveling success

<< 2. do_sdram_init() 4c000000

emif config is ok....

do some testing after the init

bank=1, sdram_base : 0x80000000

SDRAM: identified size not same as expected size identified: 4 expected: 80000000

  • Hi Yong Hee Nam,

    I suggest you to compare the "Micron MT41K256M16HA-125E" SDRAM configuration in boot loader ./arch/arm/include/asm/arch-am33xx/ddr_defs.h with configuration of your memory chip MT41k256m16tw-107. If there is some differences between parameters of both chip make your configuration according to MT41k256m16tw-107 specification.
    Then you can make your board configuration as refer to ./board/birdland/bav335x/board.c file where presents configuration for MT41K256M16HA-125E.

    BR
    Tsvetolin Shulev