From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/6] SPL: Port SPL framework to powerpc
Date: Fri, 24 Aug 2012 09:19:15 -0700 [thread overview]
Message-ID: <5037A983.6050108@ti.com> (raw)
In-Reply-To: <5037A6D5.4070604@denx.de>
On 08/24/2012 09:07 AM, Stefan Roese wrote:
> On 08/24/2012 05:55 PM, Tom Rini wrote:
>>>> So, here's what I don't understand. On ARM, in general, we can't rely
>>>> on the global data pointer register (r8) to be set to a useful value, so
>>>> we do the above to ensure it points to something useful. Are you always
>>>> able to rely on r2 it looks like pointing to something useful? Or do
>>>> you take care of this much earlier on in powerpc? Thanks!
>>>
>>> You are correct, I missed something here. r2 was still configured to the
>>> value written to it from the "real" U-Boot (pointing to internal SRAM).
>>>
>>> I can't use the code in preloader_console_init() though to setup the gd
>>> pointer. As I need to write some values in gd *before* calling
>>> preloader_console_init() (mainly clocks for serial driver). And since
>>> this "gd stuff" is quite platform specific, we should probably move this
>>> into an platform/arch spl file instead. As you also mentioned in another
>>> reply to create an arch/${ARCH}/lib/spl.c file.
>>>
>>> What do you think? Can you move this gd init stuff into such a common
>>> ARM spl file in the next patchset version?
>>
>> Yes. We should probably say it's the job of board_init_f. I know full
>> U-Boot does it at the start of board_init_r but I think for SPL it makes
>> sense to document that board_init_f does any early init it needs to,
>> clears BSS, sets up gd and calls board_init_r.
>
> Full ack. In my next patchset version, I already extracted this gd setup
> into board_init_f().
OK good, I just booted and reset my arm9 platform with this
proof-of-concepted over. I should post v4 today.
--
Tom
next prev parent reply other threads:[~2012-08-24 16:19 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-23 8:12 [U-Boot] [PATCH 0/6] SPL: Port SPL framework to powerpc Stefan Roese
2012-08-23 8:12 ` [U-Boot] [PATCH 1/6] SPL: Add NOR flash booting support Stefan Roese
2012-08-23 15:07 ` Tom Rini
2012-08-23 15:19 ` Stefan Roese
2012-08-23 8:12 ` [U-Boot] [PATCH 2/6] powerpc: Extract EPAPR_MAGIC constants into processor.h Stefan Roese
2012-08-23 8:12 ` [U-Boot] [PATCH 3/6] SPL: Port SPL framework to powerpc Stefan Roese
2012-08-23 17:10 ` Tom Rini
2012-08-23 18:16 ` Stefan Roese
2012-08-23 19:31 ` Tom Rini
2012-08-24 8:17 ` Stefan Roese
2012-08-24 10:17 ` Heiko Schocher
2012-08-24 10:56 ` Stefan Roese
2012-08-24 11:13 ` Stefan Roese
2012-08-24 11:49 ` Daniel Schwierzeck
2012-08-24 14:11 ` Stefan Roese
2012-08-24 15:29 ` Daniel Schwierzeck
2012-08-24 16:06 ` Stefan Roese
2012-08-24 16:42 ` Daniel Schwierzeck
2012-08-24 17:24 ` Stefan Roese
2012-08-24 22:13 ` Daniel Schwierzeck
2012-08-24 19:15 ` Tom Rini
2012-08-25 8:48 ` Stefan Roese
2012-08-23 21:39 ` Tom Rini
2012-08-24 7:01 ` Stefan Roese
2012-08-24 15:55 ` Tom Rini
2012-08-24 16:07 ` Stefan Roese
2012-08-24 16:19 ` Tom Rini [this message]
2012-08-24 17:21 ` Stefan Roese
2012-08-23 21:52 ` Tom Rini
2012-08-24 7:03 ` Stefan Roese
2012-08-23 8:12 ` [U-Boot] [PATCH 4/6] env: Extract getenv_f() into separate source file Stefan Roese
2012-08-23 8:12 ` [U-Boot] [PATCH 5/6] mpc5200: Add SPL support Stefan Roese
2012-08-23 8:12 ` [U-Boot] [PATCH 6/6] mpc5200: Add a3m071 board support Stefan Roese
2012-08-23 21:53 ` [U-Boot] [PATCH 0/6] SPL: Port SPL framework to powerpc Tom Rini
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=5037A983.6050108@ti.com \
--to=trini@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox