From: Pavel Machek <pavel@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] socfpga 2016.05, CV socdk Rev E1, SPL and u-boot fail when booting from QSPI
Date: Wed, 29 Jun 2016 09:03:23 +0200 [thread overview]
Message-ID: <20160629070323.GA27886@amd> (raw)
In-Reply-To: <AM4PR0401MB23692653C2D1007C7901BE40C42A0@AM4PR0401MB2369.eurprd04.prod.outlook.com>
Hi!
> > We don't support quad mode in U-Boot . You mean not entering Quad mode
> > in Linux ?
> >
>
> Nope, there seems to be quad support in u-boot, from spi_flash.c (my patched version):
>
> #ifndef CONFIG_SPL_BUILD
> /* Look for the fastest read cmd */
> cmd = fls(params->e_rd_cmd & spi->mode_rx);
> if (cmd) {
> cmd = spi_read_cmds_array[cmd - 1];
> flash->read_cmd = cmd;
> } else {
> #endif
> /* Go for default supported read cmd */
> flash->read_cmd = CMD_READ_ARRAY_FAST;
> #ifndef CONFIG_SPL_BUILD
> }
>
> /* Not require to look for fastest only two write cmds yet */
> if (params->flags & WR_QPP && spi->mode & SPI_TX_QUAD)
> flash->write_cmd = CMD_QUAD_PAGE_PROGRAM;
> else
> #endif
> /* Go for default supported write cmd */
> flash->write_cmd = CMD_PAGE_PROGRAM;
>
> /* Set the quad enable bit - only for quad commands */
> if ((flash->read_cmd == CMD_READ_QUAD_OUTPUT_FAST) ||
> (flash->read_cmd == CMD_READ_QUAD_IO_FAST) ||
> (flash->write_cmd == CMD_QUAD_PAGE_PROGRAM)) {
> ret = set_quad_mode(flash, idcode[0]);
> if (ret) {
> debug("SF: Fail to set QEB for %02x\n", idcode[0]);
> return -EINVAL;
> }
> }
>
> So there is a call to set_quad_mode that prevented the SPL to work
> in vanilla 2016.05.
Just for the record, I seen similar problems on is1 board, and they
also somehow magically went away.
One possibility was that SPL was too big, and the quad spi probing
pushed it over the limits.
Best regards,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2016-06-29 7:03 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-09 18:15 [U-Boot] socfpga 2016.05, CV socdk Rev E1, SPL and u-boot fail when booting from QSPI Christian Didriksson
2016-06-15 10:06 ` Christian Didriksson
2016-06-15 22:36 ` Marek Vasut
2016-06-16 10:13 ` Christian Didriksson
2016-06-16 13:32 ` Marek Vasut
2016-06-17 14:39 ` Christian Didriksson
2016-06-17 14:48 ` Marek Vasut
2016-06-20 13:22 ` Christian Didriksson
2016-06-20 13:43 ` Marek Vasut
2016-06-20 16:04 ` Christian Didriksson
2016-06-20 20:22 ` Marek Vasut
2016-06-21 7:32 ` Christian Didriksson
2016-06-29 7:03 ` Pavel Machek [this message]
2016-06-17 16:45 ` Dinh Nguyen
-- strict thread matches above, loose matches on Subject: below --
2016-06-21 15:30 Christian Didriksson
2016-06-21 17:07 ` Marek Vasut
2016-06-21 19:22 ` Christian Didriksson
2016-06-22 16:37 ` Christian Didriksson
2016-06-23 13:07 ` Marek Vasut
2016-06-23 15:58 ` Sylvain Lesne
2016-06-23 16:14 ` Marek Vasut
2016-06-23 16:31 ` Sylvain Lesne
2016-06-23 18:42 ` Marek Vasut
2016-06-27 9:10 ` Christian Didriksson
2016-06-27 9:38 ` Sylvain Lesne
2016-06-27 10:43 ` Christian Didriksson
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=20160629070323.GA27886@amd \
--to=pavel@denx.de \
--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