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.

EMIF4 - ram size

Other Parts Discussed in Thread: AM3517

Hi,

Is there a way to detect the size of the RAM connected to the EMIF4 controller ?

Seems possible, looking at the TODO in the actual U-Boot code for the AM3517

u32 get_sdr_cs_size(u32 cs)
{
    u32 size;

    /* TODO: Calculate the size based on EMIF4 configuration */
    size = CONFIG_SYS_CS0_SIZE;

    return size;
}

Page size and so on seems to be defined in do_emif4_init(). But is there a number of pages ?

Maybe it's time to remove this TODO :-)

regards

david