From: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] [TESTING] da8xx: fixup ARM relocation support
Date: Mon, 23 Aug 2010 17:23:05 +0530 [thread overview]
Message-ID: <007501cb42b9$bf06fbc0$3d14f340$@raj@ti.com> (raw)
In-Reply-To: <AANLkTi=WGJJfuu-ao4FHV2AQu=-S4qXf6Sn-oUaEm6_Q@mail.gmail.com>
Hi Ben,
On Thu, Aug 19, 2010 at 18:32:48, Ben Gardiner wrote:
> Hi Sudhakar,
>
> Thank you for reviewing this patch.
>
> On Thu, Aug 19, 2010 at 2:25 AM, Sudhakar Rajashekhara
> <sudhakar.raj@ti.com> wrote:
> > Ben Gardiner <bengardiner <at> nanometrics.ca> writes:
> >
> > [...] snip
> >
> >> +
> >> +void dram_init_banksize (void)
> >> +{
> >> + ? ? gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
> >> + ? ? gd->bd->bi_dram[0].size = gd->ram_size;
> >> +}
> >> +#endif
> >>
> >
> > dram_init() gets called from arch/arm/lib/board.c and initializes gd->ram_size
> > but who is calling dram_init_banksize to initialize gd->bd->bi_dram[0].start
> > and gd->bd->bi_dram[0].size?
>
> As of commit a716b323f10d4f2bce6b4ae01f6d1544e5781ed8 on the
> arm-reloc-and-cache-support branch of
> git://git.denx.de/u-boot-testing.git , dram_init_banksize() is called
> from board_init_f which is executed just before relocation.
>
Though you have mentioned in your changelog, I just want to make sure
that gd->ramsize will be ZERO only when CONFIG_SYS_ARM_WITHOUT_RELOC is
defined. Is it right? Otherwise get_ram_size() needs to be called in both cases.
I was also about to comment about the line length in your patch but Heiko has
given the same comment. Please fix that and re-submit the patch. I can post
Acked-by/Reviewed-by on that version.
Regards,
Sudhakar
next prev parent reply other threads:[~2010-08-23 11:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-13 13:17 [U-Boot] [PATCH] [TESTING] da8xx: fixup ARM relocation support Ben Gardiner
2010-08-13 13:31 ` [U-Boot] [PATCH v2] " Ben Gardiner
2010-08-19 6:25 ` Sudhakar Rajashekhara
2010-08-19 13:02 ` Ben Gardiner
2010-08-23 11:53 ` Sudhakar Rajashekhara [this message]
2010-08-23 6:12 ` Heiko Schocher
2010-08-23 13:08 ` [U-Boot] [PATCH v3] " Ben Gardiner
2010-08-24 12:02 ` Sudhakar Rajashekhara
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='007501cb42b9$bf06fbc0$3d14f340$@raj@ti.com' \
--to=sudhakar.raj@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