From: Gregoire Gentil <gregoire@gentil.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Boot reason in SPL for OMAP4
Date: Wed, 01 Oct 2014 12:13:50 -0700 [thread overview]
Message-ID: <542C526E.2010705@gentil.com> (raw)
In-Reply-To: <20141001173456.GZ25506@bill-the-cat>
On 10/01/2014 10:34 AM, Tom Rini wrote:
> On Tue, Sep 30, 2014 at 10:26:08AM -0700, Gregoire Gentil wrote:
>
>> Hello,
>>
>> In TI x-loader, the boot reason is copied to a scratchpad 0x4A326000
>> as shown here:
>> https://gitorious.org/x-loader/x-loader/source/HEAD:cpu/omap4/start.S#L102
>>
>> How can I access the boot reason in u-boot or in the SPL?
>
> spl_boot_mode() and spl_boot_device().
>
Thank you. Yes, I found the calls. My point is that I need the
boot_device after SPL and it's not transmitted down the chain. Doing the
following reestablishes what the legacy x-loader was doing:
*(volatile unsigned int *)(0x4A326000) = spl_boot_device();
I think that it's safe as the SRAM is not used after SPL,
Gr?goire
next prev parent reply other threads:[~2014-10-01 19:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-30 17:26 [U-Boot] Boot reason in SPL for OMAP4 Gregoire Gentil
2014-10-01 17:34 ` Tom Rini
2014-10-01 19:13 ` Gregoire Gentil [this message]
2014-10-02 13:53 ` Tom Rini
2014-10-01 19:16 ` [U-Boot] u-boot compilation broken for OMAP4 if no USB_HOST_ETHER Gregoire Gentil
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=542C526E.2010705@gentil.com \
--to=gregoire@gentil.com \
--cc=u-boot@lists.denx.de \
/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.