diff mbox

[U-Boot,2/2] sunxi: OrangePi Zero: defconfig: enable SPI flash

Message ID 1484359570-10428-3-git-send-email-andre.przywara@arm.com
State Accepted
Commit 7490130c9f8a4e17e858a38c767ad9ed64bd777b
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Andre Przywara Jan. 14, 2017, 2:06 a.m. UTC
Newer OrangePi Zero boards all come with 16 Mib SPI flash soldered, from
which the board can actually boot from.
Enable the SPL support for the SPI controller and SPI flash to allow
putting the SPL, the DT and U-Boot proper into there. This will let
a board boot without an SD card inserted.
The flash chip can be written with a version of the sunxi-fel tool.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 configs/orangepi_zero_defconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Priit Laes Jan. 14, 2017, 10:36 a.m. UTC | #1
On Sat, 2017-01-14 at 02:06 +0000, Andre Przywara wrote:
> Newer OrangePi Zero boards all come with 16 Mib SPI flash soldered,
> from
> which the board can actually boot from.
> Enable the SPL support for the SPI controller and SPI flash to allow
> putting the SPL, the DT and U-Boot proper into there. This will let
> a board boot without an SD card inserted.
> The flash chip can be written with a version of the sunxi-fel tool.

Thanks, I had this one in my queue :)

> 
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>

Tested-by: Priit Laes <plaes@plaes.org>

> ---
>  configs/orangepi_zero_defconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/configs/orangepi_zero_defconfig
> b/configs/orangepi_zero_defconfig
> index 8813927..abb3fcf 100644
> --- a/configs/orangepi_zero_defconfig
> +++ b/configs/orangepi_zero_defconfig
> @@ -13,3 +13,5 @@ CONFIG_SPL=y
>  # CONFIG_CMD_FPGA is not set
>  CONFIG_SUN8I_EMAC=y
>  CONFIG_USB_EHCI_HCD=y
> +CONFIG_SPL_SPI_SUNXI=y
> +CONFIG_SPL_SPI_FLASH_SUPPORT=y
> -- 
> 2.8.2
>
Maxime Ripard Jan. 15, 2017, 4:04 p.m. UTC | #2
On Sat, Jan 14, 2017 at 02:06:10AM +0000, Andre Przywara wrote:
> Newer OrangePi Zero boards all come with 16 Mib SPI flash soldered, from
> which the board can actually boot from.
> Enable the SPL support for the SPI controller and SPI flash to allow
> putting the SPL, the DT and U-Boot proper into there. This will let
> a board boot without an SD card inserted.
> The flash chip can be written with a version of the sunxi-fel tool.
> 
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>

Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Thanks,
Maxime
Jagan Teki Jan. 15, 2017, 5:25 p.m. UTC | #3
On Sunday 15 January 2017 05:04 PM, Maxime Ripard wrote:
> On Sat, Jan 14, 2017 at 02:06:10AM +0000, Andre Przywara wrote:
>> Newer OrangePi Zero boards all come with 16 Mib SPI flash soldered, from
>> which the board can actually boot from.
>> Enable the SPL support for the SPI controller and SPI flash to allow
>> putting the SPL, the DT and U-Boot proper into there. This will let
>> a board boot without an SD card inserted.
>> The flash chip can be written with a version of the sunxi-fel tool.
>>
>> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
>
> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Reviewed-by: Jagan Teki <jagan@openedev.com>

Applied to u-boot-sunxi/master

thanks!
diff mbox

Patch

diff --git a/configs/orangepi_zero_defconfig b/configs/orangepi_zero_defconfig
index 8813927..abb3fcf 100644
--- a/configs/orangepi_zero_defconfig
+++ b/configs/orangepi_zero_defconfig
@@ -13,3 +13,5 @@  CONFIG_SPL=y
 # CONFIG_CMD_FPGA is not set
 CONFIG_SUN8I_EMAC=y
 CONFIG_USB_EHCI_HCD=y
+CONFIG_SPL_SPI_SUNXI=y
+CONFIG_SPL_SPI_FLASH_SUPPORT=y