All of lore.kernel.org
 help / color / mirror / Atom feed
From: Prabhakar Kushwaha <prabhakar@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 10/10] board/t104xrdb: Add support of NAND, SD, SPI boot for T1040RDB
Date: Tue, 1 Apr 2014 07:43:38 +0530	[thread overview]
Message-ID: <533A20D2.2060603@freescale.com> (raw)
In-Reply-To: <loom.20140401T010039-408@post.gmane.org>


On 4/1/2014 4:40 AM, Rommel G Custodio wrote:
> Dear Prabhakar Kushwaha,
>
> Prabhakar Kushwaha <prabhakar <at> freescale.com> writes:
>
>> Add support of 2 stage NAND, SD, SPI boot loader using SPL framework.
>> here, PBL initialise the internal SRAM and copy SPL(160KB). This further
>> initialise DDR using SPD and environment and copy u-boot(768 KB) from NAND
> to DDR.
>> Finally SPL transer control to u-boot.
> This patch does not apply to HEAD.
>
> [u-boot (X_2stage $)]$ pw_u.sh 335250
> 2014-04-01 07:11:13 URL:http://patchwork.ozlabs.org/patch/335250/mbox/
> [23256] -> "pw-am-335250.patch" [1]
> Applying: board/t104xrdb: Add support of NAND, SD, SPI boot for T1040RDB
> error: patch failed: boards.cfg:933
> error: boards.cfg: patch does not apply
> error: include/configs/T104xRDB.h: does not exist in index
>
>
> More comments below.
>
> 8>< snipped ><8
>
>> diff --git a/board/freescale/t104xrdb/t1040_rcw.cfg
> b/board/freescale/t104xrdb/t1040_rcw.cfg
>> new file mode 100644
>> index 0000000..3300c18
>> --- /dev/null
>> +++ b/board/freescale/t104xrdb/t1040_rcw.cfg
>>   <at>  <at>  -0,0 +1,7  <at>  <at>
>> +#PBL preamble and RCW header
>> +aa55aa55 010e0100
>> +# serdes protocol 0x66
>> +0c18000e 0e000000 00000000 00000000
>> +66000002 80000002 e8106000 01000000
> e8106000
> ^^^^^^^^
> Don't you need a separate RCW setting for SPI?
> The previous patchset had a note about it.
>

You can change.
Generally switch has higher precedence over  PBI_SRC in RCW.


>> +00000000 00000000 00000000 00032810
>> +00000000 0342500f 00000000 00000000
>> diff --git a/board/freescale/t104xrdb/t1042_rcw.cfg
> b/board/freescale/t104xrdb/t1042_rcw.cfg
>> new file mode 100644
>> index 0000000..a3ea8ad
>> --- /dev/null
>> +++ b/board/freescale/t104xrdb/t1042_rcw.cfg
>>   <at>  <at>  -0,0 +1,7  <at>  <at>
>> +#PBL preamble and RCW header
>> +aa55aa55 010e0100
>> +# serdes protocol 0x66
>> +0c18000e 0e000000 00000000 00000000
>> +06000002 00400002 e8106000 01000000
>> +00000000 00000000 00000000 00030810
>> +00000000 01fe0a06 00000000 00000000
>> diff --git a/board/freescale/t104xrdb/t104x_pbi.cfg
> b/board/freescale/t104xrdb/t104x_pbi.cfg
>> new file mode 100644
>> index 0000000..7b9e9b0
>> --- /dev/null
>> +++ b/board/freescale/t104xrdb/t104x_pbi.cfg
>>   <at>  <at>  -0,0 +1,26  <at>  <at>
>> +#PBI commands
>> +#Initialize CPC1
>> +09010000 00200400
>> +09138000 00000000
>> +091380c0 00000100
>> +#Configure CPC1 as 256KB SRAM
>> +09010100 00000000
>> +09010104 fffc0007
>> +09010f00 08000000
>> +09010000 80000000
>> +#Configure LAW for CPC1
>> +09000cd0 00000000
>> +09000cd4 fffc0000
>> +09000cd8 81000011
>> +#Configure alternate space
>> +09000010 00000000
>> +09000014 ff000000
>> +09000018 81000000
>> +#Configure SPI controller
>> +09110000 80000403
>> +09110020 2d170008
>> +09110024 00100008
>> +09110028 00100008
>> +0911002c 00100008
>> +#Flush PBL data
>> +091380c0 000FFFFF
> That's a "Wait" command.
> Unless the "Flush" was command (that is in most PBI files I've read,
> Flush/Wait pait) was inadvertantly deleted.
>

Flush command only work for CCSRBAR address space. It should not be used 
for CPC-SRAM.

This is the reason, it has been removed.

Regards,
Prabhakar

  parent reply	other threads:[~2014-04-01  2:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-31 10:05 [U-Boot] [PATCH 10/10] board/t104xrdb: Add support of NAND, SD, SPI boot for T1040RDB Prabhakar Kushwaha
2014-03-31 23:10 ` Rommel G Custodio
2014-03-31 23:44   ` Rommel G Custodio
2014-04-01  2:17     ` Prabhakar Kushwaha
2014-04-01  2:13   ` Prabhakar Kushwaha [this message]
2014-04-01  6:50     ` Rommel G Custodio

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=533A20D2.2060603@freescale.com \
    --to=prabhakar@freescale.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.