From: Baruch Siach <baruch@tkos.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 6/9] ARM: mvebu: add support for boot from SATA
Date: Thu, 16 May 2019 13:11:21 +0300 [thread overview]
Message-ID: <871s0yyaie.fsf@tarshish> (raw)
In-Reply-To: <b76dd0489a7f93c8bb7f0a7078425159e59f261f.1557997586.git.baruch@tkos.co.il>
Hi u-boot list, Stefan,
Please ignore this patch and the next. The patch series starts at the
0/9 cover letter.
Sorry for the spam.
baruch
On Thu, May 16 2019, Baruch Siach wrote:
> Add the required Kconfig and macro definitions to allow boot from SATA
> on Armada 38x systems.
>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> arch/arm/mach-mvebu/Kconfig | 5 +++++
> arch/arm/mach-mvebu/Makefile | 3 +++
> arch/arm/mach-mvebu/include/mach/soc.h | 2 ++
> arch/arm/mach-mvebu/spl.c | 5 +++++
> 4 files changed, 15 insertions(+)
>
> diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig
> index 495c48e6c749..fdd39685b75d 100644
> --- a/arch/arm/mach-mvebu/Kconfig
> +++ b/arch/arm/mach-mvebu/Kconfig
> @@ -239,6 +239,11 @@ config MVEBU_SPL_BOOT_DEVICE_MMC
> bool "SDIO/MMC card"
> select SPL_LIBDISK_SUPPORT
>
> +config MVEBU_SPL_BOOT_DEVICE_SATA
> + bool "SATA"
> + select SPL_SATA_SUPPORT
> + select SPL_LIBDISK_SUPPORT
> +
> config MVEBU_SPL_BOOT_DEVICE_UART
> bool "UART"
>
> diff --git a/arch/arm/mach-mvebu/Makefile b/arch/arm/mach-mvebu/Makefile
> index 02d3ce27ee74..8228a17972f9 100644
> --- a/arch/arm/mach-mvebu/Makefile
> +++ b/arch/arm/mach-mvebu/Makefile
> @@ -37,6 +37,9 @@ endif
> ifneq ($(CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC),)
> KWB_CFG_BOOT_FROM=sdio
> endif
> +ifneq ($(CONFIG_MVEBU_SPL_BOOT_DEVICE_SATA),)
> + KWB_CFG_BOOT_FROM=sata
> +endif
> ifneq ($(CONFIG_MVEBU_SPL_BOOT_DEVICE_UART),)
> KWB_CFG_BOOT_FROM=uart
> endif
> diff --git a/arch/arm/mach-mvebu/include/mach/soc.h b/arch/arm/mach-mvebu/include/mach/soc.h
> index f666ee24243b..acb9257c90fe 100644
> --- a/arch/arm/mach-mvebu/include/mach/soc.h
> +++ b/arch/arm/mach-mvebu/include/mach/soc.h
> @@ -159,7 +159,9 @@
> #define BOOT_DEV_SEL_MASK (0x3f << BOOT_DEV_SEL_OFFS)
>
> #define BOOT_FROM_NAND 0x0A
> +#define BOOT_FROM_SATA 0x22
> #define BOOT_FROM_UART 0x28
> +#define BOOT_FROM_SATA_ALT 0x2A
> #define BOOT_FROM_UART_ALT 0x3f
> #define BOOT_FROM_SPI 0x32
> #define BOOT_FROM_MMC 0x30
> diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c
> index 530b98c1aa31..d54de5195624 100644
> --- a/arch/arm/mach-mvebu/spl.c
> +++ b/arch/arm/mach-mvebu/spl.c
> @@ -59,6 +59,11 @@ static u32 get_boot_device(void)
> case BOOT_FROM_UART_ALT:
> #endif
> return BOOT_DEVICE_UART;
> +#ifdef BOOT_FROM_SATA
> + case BOOT_FROM_SATA:
> + case BOOT_FROM_SATA_ALT:
> + return BOOT_DEVICE_SATA;
> +#endif
> case BOOT_FROM_SPI:
> default:
> return BOOT_DEVICE_SPI;
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
next prev parent reply other threads:[~2019-05-16 10:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1557997586.git.baruch@tkos.co.il>
2019-05-16 10:03 ` [U-Boot] [PATCH 6/9] ARM: mvebu: add support for boot from SATA Baruch Siach
2019-05-16 10:11 ` Baruch Siach [this message]
2019-05-16 10:04 ` [U-Boot] [PATCH 7/9] ARM: dts: clearfog: enable SATA in SPL Baruch Siach
2019-05-16 10:03 [U-Boot] [PATCH 0/9] arm: mvebu: clearfog: support boot from SATA disk Baruch Siach
2019-05-16 10:03 ` [U-Boot] [PATCH 6/9] arm: mvebu: add support for boot from SATA Baruch Siach
2019-05-17 7:58 ` Chris Packham
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=871s0yyaie.fsf@tarshish \
--to=baruch@tkos.co.il \
--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.