diff mbox series

[08/10] arm: mvebu: enable working default boot support

Message ID 20200111193639.19022-8-mrjoel@lixil.net
State Superseded
Headers show
Series [01/10] arm: mvebu: fix SerDes table alignment | expand

Commit Message

Joel Johnson Jan. 11, 2020, 7:36 p.m. UTC
With the move to driver model usage, ensure that the required driver
support for SPI and MMC booting is available in SPL.

Tested on SolidRun ClearFog devices.

Signed-off-by: Joel Johnson <mrjoel at lixil.net>
---

 arch/arm/mach-mvebu/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Joel Johnson Jan. 11, 2020, 9:07 p.m. UTC | #1
I've found an issue in testing with the ENV_IS_IN_X values, they need to 
be changed from a "select" to an "imply" to enable disabling default 
values and support booting from MMC and having flash in SPI (or the 
other way around).

I have the change queued for either a second patch submission (pending 
additional review and comments), or subsequent patch.

Joel

On 2020-01-11 12:36, Joel Johnson wrote:
> With the move to driver model usage, ensure that the required driver
> support for SPI and MMC booting is available in SPL.
> 
> Tested on SolidRun ClearFog devices.
> 
> Signed-off-by: Joel Johnson <mrjoel at lixil.net>
> ---
> 
>  arch/arm/mach-mvebu/Kconfig | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig
> index c6a1a0a944..b3239b2b01 100644
> --- a/arch/arm/mach-mvebu/Kconfig
> +++ b/arch/arm/mach-mvebu/Kconfig
> @@ -234,9 +234,19 @@ choice
> 
>  config MVEBU_SPL_BOOT_DEVICE_SPI
>  	bool "SPI NOR flash"
> +	select ENV_IS_IN_SPI_FLASH
> +	select SPL_DM_SPI
> +	select SPL_MTD_SUPPORT
> +	select SPL_SPI_FLASH_SUPPORT
> +	select SPL_SPI_LOAD
> +	select SPL_SPI_SUPPORT
> 
>  config MVEBU_SPL_BOOT_DEVICE_MMC
>  	bool "SDIO/MMC card"
> +	select ENV_IS_IN_MMC
> +	# GPIO required for SD card presence detection line
> +	select SPL_DM_GPIO
> +	select SPL_DM_MMC
>  	select SPL_LIBDISK_SUPPORT
> 
>  config MVEBU_SPL_BOOT_DEVICE_SATA
Stefan Roese Jan. 13, 2020, 8:26 a.m. UTC | #2
Hi Joel,

On 11.01.20 22:07, Joel Johnson wrote:
> I've found an issue in testing with the ENV_IS_IN_X values, they need to
> be changed from a "select" to an "imply" to enable disabling default
> values and support booting from MMC and having flash in SPI (or the
> other way around).
> 
> I have the change queued for either a second patch submission (pending
> additional review and comments), or subsequent patch.

As you will most likely rebase your patches on top of Baruch's patches,
please change this patch to using "imply" then.

Thanks,
Stefan
  
> Joel
> 
> On 2020-01-11 12:36, Joel Johnson wrote:
>> With the move to driver model usage, ensure that the required driver
>> support for SPI and MMC booting is available in SPL.
>>
>> Tested on SolidRun ClearFog devices.
>>
>> Signed-off-by: Joel Johnson <mrjoel at lixil.net>
>> ---
>>
>>   arch/arm/mach-mvebu/Kconfig | 10 ++++++++++
>>   1 file changed, 10 insertions(+)
>>
>> diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig
>> index c6a1a0a944..b3239b2b01 100644
>> --- a/arch/arm/mach-mvebu/Kconfig
>> +++ b/arch/arm/mach-mvebu/Kconfig
>> @@ -234,9 +234,19 @@ choice
>>
>>   config MVEBU_SPL_BOOT_DEVICE_SPI
>>   	bool "SPI NOR flash"
>> +	select ENV_IS_IN_SPI_FLASH
>> +	select SPL_DM_SPI
>> +	select SPL_MTD_SUPPORT
>> +	select SPL_SPI_FLASH_SUPPORT
>> +	select SPL_SPI_LOAD
>> +	select SPL_SPI_SUPPORT
>>
>>   config MVEBU_SPL_BOOT_DEVICE_MMC
>>   	bool "SDIO/MMC card"
>> +	select ENV_IS_IN_MMC
>> +	# GPIO required for SD card presence detection line
>> +	select SPL_DM_GPIO
>> +	select SPL_DM_MMC
>>   	select SPL_LIBDISK_SUPPORT
>>
>>   config MVEBU_SPL_BOOT_DEVICE_SATA

Viele Grüße,
Stefan
diff mbox series

Patch

diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig
index c6a1a0a944..b3239b2b01 100644
--- a/arch/arm/mach-mvebu/Kconfig
+++ b/arch/arm/mach-mvebu/Kconfig
@@ -234,9 +234,19 @@  choice
 
 config MVEBU_SPL_BOOT_DEVICE_SPI
 	bool "SPI NOR flash"
+	select ENV_IS_IN_SPI_FLASH
+	select SPL_DM_SPI
+	select SPL_MTD_SUPPORT
+	select SPL_SPI_FLASH_SUPPORT
+	select SPL_SPI_LOAD
+	select SPL_SPI_SUPPORT
 
 config MVEBU_SPL_BOOT_DEVICE_MMC
 	bool "SDIO/MMC card"
+	select ENV_IS_IN_MMC
+	# GPIO required for SD card presence detection line
+	select SPL_DM_GPIO
+	select SPL_DM_MMC
 	select SPL_LIBDISK_SUPPORT
 
 config MVEBU_SPL_BOOT_DEVICE_SATA