All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1] rockchip: rk3399: spl: make SPL boot-order configurable via /chosen
Date: Tue, 4 Apr 2017 19:05:32 -0600	[thread overview]
Message-ID: <CAPnjgZ3S1+U-sKXBeuo6UFa=dWUc7otFg4dw_ih0Qb5Yv0VfKA@mail.gmail.com> (raw)
In-Reply-To: <CAPnjgZ3Aqu53xEH3Bja==brQ0XMo9A0attjc+FF1-Br+OaJgkg@mail.gmail.com>

On 31 March 2017 at 22:23, Simon Glass <sjg@chromium.org> wrote:
> On 28 March 2017 at 03:03, Philipp Tomsich
> <philipp.tomsich@theobroma-systems.com> wrote:
>> The RK3399 does not have any boot selection pins and the BootROM probes
>> the boot interfaces using the following boot-order:
>>     1. SPI
>>     2. eMMC (sdhci in DTS)
>>     3. SD card (sdmmc in DTS)
>>     4. USB loader
>> For ease of deployment, the SPL stage should mirror the boot order of
>> the ROM and use the same probing order (assuming that valid images can
>> be detected by SPL) unless instructed otherwise.  The boot-order can
>> then be configured via the 'u-boot,spl-boot-order' property in the
>> chosen-node of the DTS.
>>
>> While this approach is easily extensible to other boards, it is only
>> implemented for the RK3399 for now, as the large SRAM on the RK3399
>> makes this easy to fit the needed infrastructure into SPL and our
>> production setup already runs with DM, OF_CONTROL and BLK in SPL.
>>
>> The new boot-order property is expected to be used in conjunction with
>> FIT images (and all legacy image formats disabled via Kconfig).
>>
>> A boot-sequence with probing and fallthroughs from SPI via eMMC to SD
>> card (i.e. &spiflash, &sdhci, &sdmmc) has been validated on the RK3399-Q7.
>>
>> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
>> Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
>> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
>> ---
>>
>>  arch/arm/mach-rockchip/rk3399-board-spl.c | 99 +++++++++++++++++++++++++++++++
>>  doc/device-tree-bindings/chosen.txt       | 22 +++++++
>>  2 files changed, 121 insertions(+)
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-rockchip, thanks!

      reply	other threads:[~2017-04-05  1:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-28  9:02 [U-Boot] [PATCH v1 0/1] rockchip: rk3399: spl: make SPL boot-order configurable via /chosen Philipp Tomsich
2017-03-28  9:03 ` [U-Boot] [PATCH v1] " Philipp Tomsich
2017-04-01  4:23   ` Simon Glass
2017-04-05  1:05     ` Simon Glass [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='CAPnjgZ3S1+U-sKXBeuo6UFa=dWUc7otFg4dw_ih0Qb5Yv0VfKA@mail.gmail.com' \
    --to=sjg@chromium.org \
    --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.