All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Looijmans <mike.looijmans@topic.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] zynq/board.c: Add support for qspiboot and nandboot
Date: Fri, 13 Jan 2017 14:51:54 +0100	[thread overview]
Message-ID: <fbe48eee-20fa-059c-c27b-d58ead74c2ca@topic.nl> (raw)
In-Reply-To: <b8b300c2-4a7a-c46b-459f-be550a8e3e30@xilinx.com>

?Ah, missed that. I noticed that "run $modeboot" didn't work for QSPI in the 
2017.1 tag, hadn't seen that one yet.

On 13-01-17 14:18, Michal Simek wrote:
> Hi,
>
> On 13.1.2017 14:04, Mike Looijmans wrote:
>> The Zynq can also boot from QSPI or NAND, and environment scripting
>> uses "qspiboot" and "nandboot" already. Add these to the board init
>> routines so that modeboot is properly set to one of these values when
>> the mode bits indicate so.
>>
>> Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
>> ---
>>  board/xilinx/zynq/board.c | 6 ++++++
>>  1 file changed, 6 insertions(+)
>>
>> diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
>> index 5cd9bbf..cf80302 100644
>> --- a/board/xilinx/zynq/board.c
>> +++ b/board/xilinx/zynq/board.c
>> @@ -85,9 +85,15 @@ int board_init(void)
>>  int board_late_init(void)
>>  {
>>  	switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
>> +	case ZYNQ_BM_QSPI:
>> +		setenv("modeboot", "qspiboot");
>> +		break;
>>  	case ZYNQ_BM_NOR:
>>  		setenv("modeboot", "norboot");
>>  		break;
>> +	case ZYNQ_BM_NAND:
>> +		setenv("modeboot", "nandboot");
>> +		break;
>>  	case ZYNQ_BM_SD:
>>  		setenv("modeboot", "sdboot");
>>  		break;
>>
>
> The same patch was merged some days ago. Please check latest master branch.
>
> Thanks,
> Michal
>



Kind regards,

Mike Looijmans
System Expert

TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans at topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail

      reply	other threads:[~2017-01-13 13:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-13 13:04 [U-Boot] [PATCH] zynq/board.c: Add support for qspiboot and nandboot Mike Looijmans
2017-01-13 13:18 ` Michal Simek
2017-01-13 13:51   ` Mike Looijmans [this message]

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=fbe48eee-20fa-059c-c27b-d58ead74c2ca@topic.nl \
    --to=mike.looijmans@topic.nl \
    --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.