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.

Detect Elpida different parts in x-loader and kernel for OMAP4

Hello,

We have an OMAP4 board in production and we have now both elpida EDB8064B1PB-8D-F and  EDB8164B3PF-8D-F. We have managed to make work both configurations with some timing modifications in x-loader as well as emif modifications in kernel.

I would prefer to avoid having two different mlo uImage files. Is there a way in x-loader and kernel to differentiate both Elpida parts to have real-time the right settings for each memory?

Many thanks in advance for any hint or advice.

  • Gregoire,

    You can contact your TI representative for access to an application note that describes OMAP4 DDR settings, including type detection, in detail.  To summarize, you can read the Mode Registers to determine the LPDDR2 part.  

    This patch adds SDRAM detection in the Denx mainline u-boot: http://lists.denx.de/pipermail/u-boot/2011-July/096334.html. While the mainline u-boot is not officially supported or maintained by TI, you could use this patch as an example, port it to the TI x-loader or u-boot, and modify as needed for your platform. These additional patches provide some bug fixes to the original patch:
    • http://www.sakoman.com/cgi-bin/gitweb.cgi?p=u-boot.git;a=commit;h=3f22e6a5e55aba08bcd365d7aabaa8672080f194
    • http://www.sakoman.com/cgi-bin/gitweb.cgi?p=u-boot.git;a=commit;h=b7ae51218ec6add8cbb71467f5244f0694d43625

    Regards,
    Gina 

  • Always good answer from Gina! Thank you very much. But still some work to do if I want to integrate this into x-loader.