Where is DRAM initialisation done?

Fabio Estevam festevam at gmail.com
Mon Oct 13 16:11:22 PDT 2014


On Mon, Oct 13, 2014 at 8:02 PM, Fabio Estevam <festevam at gmail.com> wrote:
> On Mon, Oct 13, 2014 at 7:45 PM, Stuart Longland <stuartl at vrt.com.au> wrote:
>
>> In the old kernel[3] (based on Freescale's fork of 2.6.35), there was
>> some DRAM init code stuffed in arch/arm/mach-mx28, which Technologic
>> Systems patched to make it work.
>>
>> Does anyone happen to know where in the mainline kernel this is done, if
>> at all?
>
> The DDR is initialized only by the bootloader.
>
> You can check arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c in U-boot.

Also, maybe it can help if you have access to the old source code
where the DDR is initialized.

The 'old' way of doing the DDR init is via a separate package called 'bootlets'.

So if you have access to the bootlets code, it would be easy to port
the DDR init into U-boot.



More information about the linux-arm-kernel mailing list