From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3 v4] arm: A320: Add support for Faraday A320 evaluation board
Date: Mon, 17 Aug 2009 23:52:09 +0200 [thread overview]
Message-ID: <20090817215209.GG23695@game.jcrosoft.org> (raw)
In-Reply-To: <ec1aee9f0908052313v7581eb43m83ebbfa6a0e14170@mail.gmail.com>
On 14:13 Thu 06 Aug , Po-Yu Chuang wrote:
> Dear Jean-Christophe,
>
> 2009/7/8 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>:
> >> +.globl lowlevel_init
> >> +lowlevel_init:
> >> + ? ? mov ? ? r11, lr
> >> +
> >> + ? ? led ? ? 0x0
> >> +
> >> + ? ? /* if REMAP bit is set -> memory had been initialzed */
> >> +
> >> + ? ? ldr ? ? r0, =CONFIG_SYS_AHBC_BASE
> >> + ? ? ldr ? ? r1, [r0, #FTAHBC020_OFFSET_ICR]
> >> + ? ? tst ? ? r1, #FTAHBC020_ICR_REMAP ? ? ? ? ? ? ? ?@ test REMAP bit
> >> + ? ? bne ? ? skip_remap
> >> +
> >> + ? ? led ? ? 0x1
> >> +
> >> + ? ? bl ? ? ?init_sdmc
> >> +
> >> + ? ? led ? ? 0x2
> >> +
> >> + ? ? /*
> >> + ? ? ?* copy U-Boot to RAM
> >> + ? ? ?*/
> >> +copy_code:
> >> + ? ? ldr ? ? r0, =ROM_DEFAULT_BASE ? /* r0 <- source address ? ? */
> >> + ? ? ldr ? ? r1, =SDRAM_DEFAULT_BASE /* r1 <- target address ? ? */
> >> +
> >> + ? ? ldr ? ? r2, .LC5
> >> + ? ? ldr ? ? r3, .LC6
> >> + ? ? sub ? ? r2, r3, r2 ? ? ? ? ? ? ?/* r2 <- size of armboot ? ? ? ? ? ?*/
> >> + ? ? add ? ? r2, r0, r2 ? ? ? ? ? ? ?/* r2 <- source end address ? ? ? ? */
> >> +
> >> + ? ? led ? ? 0x3
> >> +
> >> +copy_loop:
> >> + ? ? ldmia ? r0!, {r3-r10} ? ? ? ? ? /* copy from source address [r0] ? ?*/
> >> + ? ? stmia ? r1!, {r3-r10} ? ? ? ? ? /* copy to ? target address [r1] ? ?*/
> >> + ? ? cmp ? ? r0, r2 ? ? ? ? ? ? ? ? ?/* until source end addreee [r2] ? ?*/
> >> + ? ? ble ? ? copy_loop
> >> +
> > I do not like to do this twice we need to find an otherway
> > do we really need to run in SDRAM before remap?
>
> I am afraid so.
> u-boot needs to be copied to SDRAM first to do the remap
> (swap ROM and SDRAM bank) to make SDRAM base becomes 0x0.
> cpu/arm920t/start.S then relocates u-boot to the end of SDRAM.
>
> Anyway, I have an idea now.
> I can submit a version that do not do the bank swap
> (SDRAM stays at 0x10000000).
>
> The the mainline keeps beautiful as you wish.
> Then I create another patch to do the bank swap for our internal use.
>
> This should be a win-win. :-)
why not but show us the code please
and we will see
Best Regards,
J.
next prev parent reply other threads:[~2009-08-17 21:52 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-01 11:13 [U-Boot] [PATCHv2 3/3] A320: Add support for Faraday A320 evaluation board Po-Yu Chuang
2009-07-02 3:05 ` Po-Yu Chuang
2009-07-02 6:11 ` [U-Boot] [PATCH v3 " Po-Yu Chuang
2009-07-03 7:14 ` [U-Boot] [PATCH 3/3 v4] arm: " Po-Yu Chuang
2009-07-08 11:30 ` Jean-Christophe PLAGNIOL-VILLARD
2009-08-03 6:42 ` Darius Augulis
2009-08-04 19:48 ` Jean-Christophe PLAGNIOL-VILLARD
2009-08-04 20:10 ` Darius Augulis
2009-08-06 4:45 ` Po-Yu Chuang
2009-08-17 21:49 ` Jean-Christophe PLAGNIOL-VILLARD
2009-08-17 21:45 ` Jean-Christophe PLAGNIOL-VILLARD
2009-08-06 6:13 ` Po-Yu Chuang
2009-08-17 21:52 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-08-18 1:38 ` Po-Yu Chuang
2009-08-19 21:36 ` Jean-Christophe PLAGNIOL-VILLARD
2009-08-20 1:54 ` Po-Yu Chuang
2009-08-20 5:21 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-08 22:19 ` [U-Boot] [PATCH v3 3/3] " Wolfgang Denk
2009-07-09 7:36 ` Po-Yu Chuang
2009-07-09 8:03 ` Wolfgang Denk
2009-07-02 8:35 ` [U-Boot] [PATCHv2 " Darius Augulis
2009-07-03 2:02 ` Po-Yu Chuang
2009-07-03 6:38 ` Po-Yu Chuang
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=20090817215209.GG23695@game.jcrosoft.org \
--to=plagnioj@jcrosoft.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