public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 10/12] avr32: add generic board support
Date: Sun, 08 Feb 2015 22:21:05 +0100	[thread overview]
Message-ID: <54D7D341.6070409@googlemail.com> (raw)
In-Reply-To: <CAPnjgZ0RXuBeEjwCB_vhLfmrr11QjOyHqda-C9BxUmrwofpVdg@mail.gmail.com>

Hi Simon,

On 07.02.15 01:28, Simon Glass wrote:
> On 6 February 2015 at 15:06, Andreas Bie?mann
> <andreas.devel@googlemail.com> wrote:
>> Signed-off-by: Andreas Bie?mann <andreas.devel@googlemail.com>
>> ---
>> This version still has the mmu_init_r() in common/board_r. Removing this now is
>> not that easy ... I'd love to get it in as is and change it later to the
>> board_init_f_r() sequence.
>>
>> Changes in v3:
>> - remove unnecessary stack implementation for avr32
>> - fix bdinfo output
>>
>> Changes in v2:
>> - remove bootparams allocation, provide as extra patch
>> - use the else path in setup_mon_len()
>> - provide arch_reserve_stacks() for avr32
>> - use the newly introduced dram_init()
>>
>> Changes in v1:
>> - add timer_init in board_r
>> - remove extern declaration of mmu_init_r()
>>
>>  arch/avr32/config.mk            |    3 +++
>>  arch/avr32/cpu/u-boot.lds       |    2 ++
>>  arch/avr32/include/asm/config.h |    1 +
>>  arch/avr32/include/asm/u-boot.h |    7 +++++++
>>  arch/avr32/lib/Makefile         |    2 ++
>>  arch/avr32/lib/interrupts.c     |    5 +++++
>>  common/board_f.c                |    2 +-
>>  common/board_r.c                |   13 ++++++++++---
>>  common/cmd_bdinfo.c             |    4 ++--
>>  include/asm-generic/u-boot.h    |    4 ++++
>>  10 files changed, 37 insertions(+), 6 deletions(-)

>> diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
>> index e6d8a7a..999d026 100644
>> --- a/common/cmd_bdinfo.c
>> +++ b/common/cmd_bdinfo.c
>> @@ -333,8 +333,8 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
>>         bd_t *bd = gd->bd;
>>
>>         print_num("boot_params",        (ulong)bd->bi_boot_params);
>> -       print_num("memstart",           (ulong)bd->bi_memstart);
>> -       print_lnum("memsize",           (u64)bd->bi_memsize);
>> +       print_num("memstart",           (ulong)bd->bi_dram[0].start);
>> +       print_lnum("memsize",           (u64)bd->bi_dram[0].size);
> 
> Can you explain this change please? I'm not sure what is happening here.

avr32 never had bd_t.bi_mem(start|size) members, they where always
defined to bd_t.bi_dram[0].(start|size). Please have a look at
arch/avr32/include/asm/u-boot.h.

When converting to generic board I also have to use the generic bd_t
(which is a mess). Since the current generic board implementation do not
set both bi_mem(start|size) for all architectures I decided to go with
bi_dram[0].(start|size), this will also work with the other boards not
converted yet. To use just the first entry in bi_dram[] and do not loop
over is ok on avr32 since the only SoC available there has just one
SDRAM controller.

If you're Ok with this change I would apply this series with one fix for
'common/board_f: factor out reserve_stacks' and maybe a more descriptive
commit message for 'common/board_r: allocate bootparams' mid of next
week to avr32/master and send a PR. AFAIR the microblaze generic board
conversion depends on at least one patch of this series.

Best regards

Andreas Bie?mann

  reply	other threads:[~2015-02-08 21:21 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-06 22:06 [U-Boot] [PATCH v3 0/12] avr32: add generic board Andreas Bießmann
2015-02-06 22:06 ` [U-Boot] [PATCH v3 01/12] avr32: use dlmalloc for DMA buffers Andreas Bießmann
2015-02-16 20:22   ` [U-Boot] [U-Boot,v3,01/12] " Andreas Bießmann
2015-02-06 22:06 ` [U-Boot] [PATCH v3 02/12] avr32: rename cpu_init() -> arch_cpu_init() Andreas Bießmann
2015-02-16 20:22   ` [U-Boot] [U-Boot,v3,02/12] " Andreas Bießmann
2015-02-06 22:06 ` [U-Boot] [PATCH v3 03/12] avr32: factor out cpu_mmc_init() Andreas Bießmann
2015-02-16 20:22   ` [U-Boot] [U-Boot,v3,03/12] " Andreas Bießmann
2015-02-06 22:06 ` [U-Boot] [PATCH v3 04/12] avr32: rename mmu.h definitions Andreas Bießmann
2015-02-16 20:22   ` [U-Boot] [U-Boot,v3,04/12] " Andreas Bießmann
2015-02-06 22:06 ` [U-Boot] [PATCH v3 05/12] avr32: convert to dram_init() Andreas Bießmann
2015-02-16 20:22   ` [U-Boot] [U-Boot,v3,05/12] " Andreas Bießmann
2015-02-06 22:06 ` [U-Boot] [PATCH v3 06/12] avr32: use generic gd->start_addr_sp Andreas Bießmann
2015-02-16 20:22   ` [U-Boot] [U-Boot,v3,06/12] " Andreas Bießmann
2015-02-06 22:06 ` [U-Boot] [PATCH v3 07/12] common/board_f: factor out reserve_stacks Andreas Bießmann
2015-02-07  0:28   ` Simon Glass
2015-02-16 20:23   ` [U-Boot] [U-Boot,v3,07/12] " Andreas Bießmann
2015-02-06 22:06 ` [U-Boot] [PATCH v3 08/12] common/board_r: manual relocation for cmd table Andreas Bießmann
2015-02-06 22:06 ` [U-Boot] [PATCH v3 09/12] common/board_r: allocate bootparams Andreas Bießmann
2015-02-07  0:28   ` Simon Glass
2015-02-16 20:23   ` [U-Boot] [U-Boot,v3,09/12] " Andreas Bießmann
2015-02-06 22:06 ` [U-Boot] [PATCH v3 10/12] avr32: add generic board support Andreas Bießmann
2015-02-07  0:28   ` Simon Glass
2015-02-08 21:21     ` Andreas Bießmann [this message]
2015-02-09  4:30       ` Simon Glass
2015-02-16 20:23   ` [U-Boot] [U-Boot,v3,10/12] " Andreas Bießmann
2015-02-06 22:06 ` [U-Boot] [PATCH v3 11/12] grasshopper: enable generic board Andreas Bießmann
2015-02-16 20:23   ` [U-Boot] [U-Boot,v3,11/12] " Andreas Bießmann
2015-02-06 22:06 ` [U-Boot] [PATCH v3 12/12] atstk1002: " Andreas Bießmann
2015-02-16 20:23   ` [U-Boot] [U-Boot,v3,12/12] " Andreas Bießmann
2015-02-10 19:34 ` [U-Boot] [PATCH v3 0/12] avr32: add " Waldemar Brodkorb

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=54D7D341.6070409@googlemail.com \
    --to=andreas.devel@googlemail.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