public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/5] ARM: OMAP: Cleanup boot parameters usage
Date: Mon, 15 Apr 2013 11:35:27 -0400	[thread overview]
Message-ID: <516C1E3F.3050301@ti.com> (raw)
In-Reply-To: <1366038520-7492-5-git-send-email-r.sricharan@ti.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/15/2013 11:08 AM, Sricharan R wrote:
> The boot parameters are read from individual variables assigned
> for each of them. This been corrected and now they are stored as a
> part of the global data 'gd' structure. So read them from 'gd'
> instead.
> 
> Signed-off-by: Sricharan R <r.sricharan@ti.com> --- 
> arch/arm/cpu/armv7/lowlevel_init.S             |    8 ++++- 
> arch/arm/cpu/armv7/omap-common/boot-common.c   |   20 ++--------- 
> arch/arm/cpu/armv7/omap-common/lowlevel_init.S |   46 
> ++---------------------- 
> arch/arm/include/asm/arch-omap4/sys_proto.h    |   11 ++---- 
> arch/arm/include/asm/arch-omap5/sys_proto.h    |   12 ++----- 
> arch/arm/include/asm/omap_common.h             |    3 ++ 
> common/spl/spl.c                               |   12 ++++--- 
> include/configs/am335x_evm.h                   |    1 + 
> include/configs/pcm051.h                       |    1 + 
> include/configs/ti814x_evm.h                   |    1 + 
> include/spl.h                                  |    1 - 11 files 
> changed, 32 insertions(+), 84 deletions(-)

I can live with adding CONFIG_OMAP to the am335/ti81* parts.

[snip]
> diff --git a/common/spl/spl.c b/common/spl/spl.c index 
> 6715e0d..4a7ce42 100644 --- a/common/spl/spl.c +++ 
> b/common/spl/spl.c @@ -125,17 +125,21 @@ void 
> spl_parse_image_header(const struct image_header *header)
> 
> __weak void __noreturn jump_to_image_no_args(struct spl_image_info 
> *spl_image) { +#ifdef CONFIG_OMAP typedef void __noreturn 
> (*image_entry_noargs_t)(u32 *); +#else +	typedef void __noreturn 
> (*image_entry_noargs_t)(void); +#endif image_entry_noargs_t 
> image_entry = (image_entry_noargs_t) spl_image->entry_point;
> 
> debug("image entry point: 0x%X\n", spl_image->entry_point); /*
> Pass the saved boot_params from rom code */ -#if
> defined(CONFIG_VIRTIO) || defined(CONFIG_ZEBU) -	image_entry = 
> (image_entry_noargs_t)0x80100000; +#ifdef CONFIG_OMAP + 
> image_entry((u32 *)&gd->arch.omap_boot_params); +#else + 
> image_entry(); #endif -	u32 boot_params_ptr_addr = 
> (u32)&boot_params_ptr; -	image_entry((u32 *)boot_params_ptr_addr);
>  }

We must correct jump_to_image_no_args to really be, in the default
case here just image_entry() and have omap-common override the weak
function with one that passes along our params, and comment what's
going on.

- -- 
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRbB4/AAoJENk4IS6UOR1WeWgP/3YpBeHa7RCjfc1ZfHjHSX4T
RlULN42HhNG/pka7S/bTo83whcVLDYz3WXYLWDYO6YVCnpaU1dfV2SuXeKjJIA9M
rfB/q2pIc6Wnjcfzrazdh7LS1A/0iV3qe4AUBgkaVJdQX+q5WwJoHVjzp1WH7aOH
/iXUR9pnhPnv8Uc+DJwtoT9fnDH5TkeMeSkVKe2mJEYPbSiKhmPHfKDvwbX7VfPl
IAD6ifda7rApH4QTWFyFj+9MsfW/XkdILmg4JaGQU5Gp6DwVC2cmNS47br5d9WeV
dsY+vA8Fezw+/HT5Jq7HBAmhy+gu7x7gpnYs5IzOSlWS+32W6HWoPzo/CHcnCaGt
1ltB44KevYu5FCrBA4KlJsoMx9JR1yJukOv3ezEFe2G9PBPyylLwTJ0tkVJb0b2H
fJO2fPCWbOHzvIy5nIFFY0sE9YsnKu8PAxqPFYaJGeUWQL87kRo9E0ep72HUv/Ia
rrOD6KWgp6cHi1qrFqbnVctWbDKBjBCyd3kc1nhGSmZTSTUkd/9Z6ie3i+wOyYsO
yBtG9S6riJDcECcE8nOxXRfW973aqxkH7ybNn5ekbYdP8iHq+UgFx8rfhf73gaen
c07fmIZJxz7i0KXNTsjHGycDMq7UqsihrdX47C9kcrcFqxEWAcZc8kXBlM1Kura2
EX40u9fhgitYG8EG4GGo
=5qv1
-----END PGP SIGNATURE-----

  reply	other threads:[~2013-04-15 15:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-15 15:08 [U-Boot] [PATCH 0/5] ARM: OMAP: Cleanup save_boot_params function Sricharan R
2013-04-15 15:08 ` [U-Boot] [PATCH 1/5] ARM: OMAP: Make omap_boot_parameters common across socs Sricharan R
2013-04-15 15:08 ` [U-Boot] [PATCH 2/5] ARM: OMAP4/5: Make OMAPx_SRAM_SCRATCH_ defines common Sricharan R
2013-04-15 15:08 ` [U-Boot] [PATCH 3/5] ARM: OMAP: Correct save_boot_params and replace with 'C' function Sricharan R
2013-04-15 15:28   ` Tom Rini
2013-04-15 15:33     ` Sricharan R
2013-04-15 16:22   ` Michael Cashwell
2013-04-16  4:04     ` Sricharan R
2013-04-15 15:08 ` [U-Boot] [PATCH 4/5] ARM: OMAP: Cleanup boot parameters usage Sricharan R
2013-04-15 15:35   ` Tom Rini [this message]
2013-04-15 15:39     ` Sricharan R
2013-04-15 15:43       ` Tom Rini
2013-04-16  4:00         ` Sricharan R
2013-04-15 15:08 ` [U-Boot] [PATCH 5/5] ARM: OMAP: Add arch_cpu_init function Sricharan R

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=516C1E3F.3050301@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