From: Siarhei Siamashka <siarhei.siamashka@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/3] arm: spl: Provide for a board-specific loader
Date: Sun, 8 Feb 2015 05:44:55 +0200 [thread overview]
Message-ID: <20150208054455.27582c5b@i7> (raw)
In-Reply-To: <1423331250-8040-2-git-send-email-sjg@chromium.org>
On Sat, 7 Feb 2015 10:47:29 -0700
Simon Glass <sjg@chromium.org> wrote:
> Some boards have a special way of loading U-Boot that does not fit with
> the existing SPL code. For example sunxi uses an 'FEL' mode where U-Boot
> is loaded over USB. Add a CONFIG option and boot mode for this.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> Changes in v2: None
>
> arch/arm/include/asm/spl.h | 4 ++++
> common/spl/spl.c | 5 +++++
> 2 files changed, 9 insertions(+)
>
> diff --git a/arch/arm/include/asm/spl.h b/arch/arm/include/asm/spl.h
> index 8acd7cd..17b6f54 100644
> --- a/arch/arm/include/asm/spl.h
> +++ b/arch/arm/include/asm/spl.h
> @@ -26,10 +26,14 @@ enum {
> BOOT_DEVICE_SPI,
> BOOT_DEVICE_SATA,
> BOOT_DEVICE_I2C,
> + BOOT_DEVICE_BOARD,
> BOOT_DEVICE_NONE
> };
> #endif
>
> +/* Board-specific load method */
> +void spl_board_load_image(void);
> +
> /* Linker symbols. */
> extern char __bss_start[], __bss_end[];
>
> diff --git a/common/spl/spl.c b/common/spl/spl.c
> index daaeb50..ded0f30 100644
> --- a/common/spl/spl.c
> +++ b/common/spl/spl.c
> @@ -229,6 +229,11 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
> spl_sata_load_image();
> break;
> #endif
> +#ifdef CONFIG_SPL_BOARD_LOAD_IMAGE
> + case BOOT_DEVICE_BOARD:
> + spl_board_load_image();
> + break;
> +#endif
> default:
> #if defined(CONFIG_SPL_SERIAL_SUPPORT) && defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
> puts("SPL: Unsupported Boot Device!\n");
Acked-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
--
Best regards,
Siarhei Siamashka
next prev parent reply other threads:[~2015-02-08 3:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-07 17:47 [U-Boot] [PATCH v2 1/3] arm: Allow lr to be saved by board code Simon Glass
2015-02-07 17:47 ` [U-Boot] [PATCH v2 2/3] arm: spl: Provide for a board-specific loader Simon Glass
2015-02-08 3:44 ` Siarhei Siamashka [this message]
2015-02-07 17:47 ` [U-Boot] [PATCH v2 3/3] sunxi: Normalise FEL support Simon Glass
2015-02-07 17:59 ` Hans de Goede
2015-02-07 18:02 ` Simon Glass
2015-02-07 21:46 ` Hans de Goede
2015-02-08 3:48 ` Siarhei Siamashka
2015-02-09 22:23 ` Simon Glass
2015-02-11 3:05 ` Siarhei Siamashka
2015-02-11 4:45 ` Simon Glass
2015-02-08 3:43 ` [U-Boot] [PATCH v2 1/3] arm: Allow lr to be saved by board code Siarhei Siamashka
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=20150208054455.27582c5b@i7 \
--to=siarhei.siamashka@gmail.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