All of lore.kernel.org
 help / color / mirror / Atom feed
From: stuartl@vrt.com.au (Stuart Longland)
To: linux-arm-kernel@lists.infradead.org
Subject: Where is DRAM initialisation done?
Date: Tue, 14 Oct 2014 09:36:44 +1000	[thread overview]
Message-ID: <543C620C.3050302@vrt.com.au> (raw)
In-Reply-To: <CAOMZO5DfsimNGHS5KB133GHQuyD2hQx6ChNcVqm_ZraLY9VhMw@mail.gmail.com>

Hi Fabio,
On 14/10/14 09:11, Fabio Estevam wrote:
> On Mon, Oct 13, 2014 at 8:02 PM, Fabio Estevam <festevam@gmail.com> wrote:
>> On Mon, Oct 13, 2014 at 7:45 PM, Stuart Longland <stuartl@vrt.com.au> wrote:
>>
>>> 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.

Yes, I do have their bootlets code which was how they implemented the
old bootloader.  It's stuffed inside the kernel source tree they provide
(3rd link in my last email).

Copying and pasting bits out of that (and reading the datasheets) got me
where I am now, it's then I went digging and found some similar code in
their kernel itself, and so I wondered about the mainline kernel doing
the same.

At least now I know to focus my efforts on U-Boot itself: the kernel
should work if I get U-Boot working correctly.

Anyway, this has hopefully pointed me in the right direction, and I'll
keep bashing away at U-Boot to hopefully get a result there.

I think I see a light at the end of the tunnel and hopefully not light
from an oncoming train. :-)

Many thanks.
Regards,
-- 
Stuart Longland
Systems Engineer
     _ ___
\  /|_) |                           T: +61 7 3535 9619
 \/ | \ |     38b Douglas Street    F: +61 7 3535 9699
   SYSTEMS    Milton QLD 4064       http://www.vrt.com.au

  reply	other threads:[~2014-10-13 23:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-13 22:45 Where is DRAM initialisation done? Stuart Longland
2014-10-13 23:02 ` Fabio Estevam
2014-10-13 23:11   ` Fabio Estevam
2014-10-13 23:36     ` Stuart Longland [this message]
2014-10-14  9:24       ` Where is DRAM initialisation done? [Resolved] Stuart Longland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=543C620C.3050302@vrt.com.au \
    --to=stuartl@vrt.com.au \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.