From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S
Date: Thu, 05 Feb 2015 09:27:21 +0100 [thread overview]
Message-ID: <54D32969.2030803@redhat.com> (raw)
In-Reply-To: <CAPnjgZ3GoVj6P77Wwax_-Scpf=+dPH4jih_86T_XCHjnfqU=zg@mail.gmail.com>
Hi,
On 05-02-15 04:00, Simon Glass wrote:
> Hi Albert,
>
> On 4 February 2015 at 01:48, Albert ARIBAUD <albert.u.boot@aribaud.net> wrote:
>> Hello Tom,
>>
>> On Mon, 2 Feb 2015 13:56:57 -0500, Tom Rini <trini@ti.com> wrote:
>>
>>> And (and this is being split into
>>> different email threads, sigh), it would be good, possibly, if we have
>>> something that means "very early init things, but we can be written in
>>> C".
>>
>> "Very early" -- and "early" too, BTW -- is way too vague for me to be
>> sure we're talking about the same thing, so let's find out what various
>> earlinesses mean to us. My own view:
>>
>> "Starting early": the 'start', or 'reset', entry point, can't get
>> earlier than that. This is where U-Boot resets the target to a known
>> state (cache disable and invalidate, for instance). For some SoCs, at
>> this point core registers have to be saved somewhere because they
>> contain informative values that we want to keep, so we need to be able
>> to hook this stage. There is no C environment.
>>
>> "Flipping early": after the entry point but before the DDR is usable.
>> That's where PLLs/clocks are set up minimaly to get going and have
>> access to the needed resources including DDR. Still no C environment.
>
> This is the current lowlelvel_init() I think. I don't believe it
> should set up DDR.
>
>>
>> "Effing early": after the DDR was made usable but before relocation.
>> That's when board_init_f() starts. It's there to get the relocation
>
> At present board_init_f() ses up DDR and I'd prefer we keep that, e.g.
> with console output before DDR is ready.
Ack, DRAM setup is iffy, and we definitely want to have (early) console
output working at that point. I do not even want to think about having
to debug DRAM setup without console output.
Regards,
Hans
next prev parent reply other threads:[~2015-02-05 8:27 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-21 20:03 [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S Hans de Goede
2015-01-21 20:03 ` [U-Boot] [PATCH 2/3] ARMv7: Add a cpu_init_cortex_a7 helper function Hans de Goede
2015-01-21 20:03 ` [U-Boot] [PATCH 3/3] sunxi: Switch to using soc_init hook for setting the ACTLR.SMP bit Hans de Goede
2015-02-08 5:42 ` Ian Campbell
2015-01-21 21:59 ` [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S Bill Pringlemeir
2015-01-22 13:29 ` Hans de Goede
2015-01-22 15:48 ` Bill Pringlemeir
2015-01-22 16:20 ` Tom Rini
2015-01-22 19:10 ` Hans de Goede
2015-01-22 21:03 ` Tom Rini
2015-01-23 8:54 ` Hans de Goede
2015-01-26 15:18 ` Tom Rini
2015-01-26 19:32 ` Hans de Goede
2015-01-27 14:23 ` Tom Rini
2015-01-31 21:25 ` Albert ARIBAUD
2015-01-31 21:49 ` Tom Rini
2015-01-31 22:14 ` Simon Glass
2015-02-02 18:56 ` Tom Rini
2015-02-02 19:26 ` Simon Glass
2015-02-04 8:48 ` Albert ARIBAUD
2015-02-05 3:00 ` Simon Glass
2015-02-05 8:27 ` Hans de Goede [this message]
2015-02-05 15:14 ` Albert ARIBAUD
2015-02-05 15:34 ` Simon Glass
2015-02-05 18:02 ` Albert ARIBAUD
2015-02-05 19:13 ` Simon Glass
2015-02-10 22:07 ` Tom Rini
2015-02-10 23:27 ` Simon Glass
2015-01-26 8:09 ` Albert ARIBAUD
2015-01-26 10:50 ` Hans de Goede
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=54D32969.2030803@redhat.com \
--to=hdegoede@redhat.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.