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