[U-Boot] [PATCH v3 1/2] distro_bootcmd: add spi flash boot command

2019-08-01 Thread Oskari Lemmela
Add a boot command to distro boot to support load FIT image from SPI flash. Tested with Pine A64-LTS board to load kernel and dtb. Signed-off-by: Oskari Lemmela --- Kconfig | 32 include/config_distro_bootcmd.h | 16 2

[U-Boot] [PATCH v3 2/2] sunxi: enable distro spi boot command

2019-08-01 Thread Oskari Lemmela
Signed-off-by: Oskari Lemmela --- include/configs/sunxi-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 7be94ee7d1..cb7b68cf72 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h

[U-Boot] [PATCH v3 0/2] sunxi: add spi flash bootcmd

2019-08-01 Thread Oskari Lemmela
Changes since v2: - Rebase to current master - Added more information to Kconfig help text Changes since v1: - Move bootcmd to config_distro_bootcmd - Add Kconfig options to enable and configure it Oskari Lemmela (2): distro_bootcmd: add spi flash boot command sunxi: enable distro spi

[U-Boot] [PATCH v2 3/3] arm: dts: sunxi: add spi0 alias

2019-08-01 Thread Oskari Lemmela
spi aliases are needed for spi flash devices. Signed-off-by: Oskari Lemmela --- arch/arm/dts/sunxi-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dtsi index fdd4c80aa4..b6e075f785 100644 --- a/arch/arm/dts/sunxi-u

[U-Boot] [PATCH v2 2/3] sunxi: Pine64-LTS: enable environment in spi flash

2019-08-01 Thread Oskari Lemmela
enable config options for spi flash device and environment in spi flash. Signed-off-by: Oskari Lemmela --- configs/pine64-lts_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/pine64-lts_defconfig b/configs/pine64-lts_defconfig index 0da6b70ea8..34c38cf1fd 100644

[U-Boot] [PATCH v2 1/3] env: add support to sunxi save env to spi flash

2019-08-01 Thread Oskari Lemmela
CONFIG_ENV_SECT_SIZE value is defined via Kconfig. Signed-off-by: Oskari Lemmela Reviewed-by: Paul Kocialkowski --- env/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/env/Kconfig b/env/Kconfig index 74db2f38cc..083de650ce 100644 --- a/env/Kconfig +++ b/env

[U-Boot] [PATCH v2 0/3] env: add support to sunxi save env to spi

2019-08-01 Thread Oskari Lemmela
Changes since v1: - Rebase to current master - Added patches for testing with pine64-lts board Oskari Lemmela (3): env: add support to sunxi save env to spi flash sunxi: Pine64-LTS: enable environment in spi flash arm: dts: sunxi: add spi0 alias arch/arm/dts/sunxi-u-boot.dtsi | 1

[U-Boot] [PATCH] env: add support to sunxi save env to spi

2019-03-17 Thread Oskari Lemmela
CONFIG_ENV_SECT_SIZE value is defined via Kconfig. Signed-off-by: Oskari Lemmela --- env/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/env/Kconfig b/env/Kconfig index c22cbbdadc..e1070187f2 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -456,9 +456,9 @@ config

[U-Boot] [PATCH] arm: timer: sunxi: fix a64 spurious timeout issues

2019-03-17 Thread Oskari Lemmela
Fixes spurious timeouts which have been seen during testing SPI_SUNXI driver. The false timeouts disappear when number of bits reduced to 10 in workaround. The false timeouts are caused by timer backward jumps. Signed-off-by: Oskari Lemmela --- arch/arm/cpu/armv8/generic_timer.c | 2 +- 1 file

[U-Boot] [PATCH v2 1/2] distro_bootcmd: add spi flash boot command

2019-01-30 Thread Oskari Lemmela
Add a boot command to distro boot to support load FIT image from SPI flash. Signed-off-by: Oskari Lemmela --- Kconfig | 29 + include/config_distro_bootcmd.h | 16 2 files changed, 45 insertions(+) diff --git a/Kconfig b

[U-Boot] [PATCH v2 2/2] sunxi: enable distro spi boot command

2019-01-30 Thread Oskari Lemmela
Signed-off-by: Oskari Lemmela --- include/configs/sunxi-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index ed0cfc24f5..967f3e1f08 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h

[U-Boot] [PATCH v2 0/2] sunxi: add spi flash bootcmd

2019-01-30 Thread Oskari Lemmela
Patches enable booting FIT image from SPI flash device. Changes since v1: - Move bootcmd to config_distro_bootcmd - Add Kconfig options to enable and configure it Oskari Lemmela (2): distro_bootcmd: add spi flash boot command sunxi: enable distro spi boot command Kconfig

[U-Boot] [RFC PATCH 1/1] spi: Kconfig: change dependency order

2019-01-30 Thread Oskari Lemmela
SPI Kconfig logic is changed to reverse dependencies. Dependencies are not needed to be defined in the defconfig. Signed-off-by: Oskari Lemmela --- drivers/mtd/spi/Kconfig | 28 -- drivers/spi/Kconfig | 63 - 2 files changed, 75

[U-Boot] [RFC PATCH 0/1] SPI flash dependency rework

2019-01-30 Thread Oskari Lemmela
Currently TARGET_* and ARCH_* selects multiple spi related CONFIG options. If dependency order of spi related CONFIG options is reverse, they are selected as dependencies when needed. Oskari Lemmela (1): spi: Kconfig: change dependency order drivers/mtd/spi/Kconfig | 28

[U-Boot] [PATCH] sunxi: add spi flash bootcmd

2019-01-05 Thread Oskari Lemmela
Enable SPI bootcmd if CONFIG_DM_SPI_FLASH is defined. Signed-off-by: Oskari Lemmela --- include/configs/sunxi-common.h | 16 1 file changed, 16 insertions(+) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 9819d9980c..b2443ef678 100644

[U-Boot] [PATCH 0/2] sunxi sun6i SPI support

2019-01-05 Thread Oskari Lemmela
this kind of issues. Oskari Lemmela (2): arm: sunxi: allwinner spi driver sun6i support arm: timer: sunxi: fix spurious timeout issues arch/arm/cpu/armv8/generic_timer.c| 2 +- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 1 + arch/arm/include/asm/arch-sunxi/clock_sun9i.h

[U-Boot] [PATCH] env: check defines if config env is in spi flash

2019-01-05 Thread Oskari Lemmela
Check config environment defines if CONFIG_ENV_IS_IN_SPI_FLASH is defined Signed-off-by: Oskari Lemmela --- include/environment.h | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/include/environment.h b/include/environment.h index 7da1291d5b

[U-Boot] [PATCH 1/2] arm: sunxi: allwinner spi driver sun6i support

2019-01-05 Thread Oskari Lemmela
Minimal changes to support sun6i based Allwinner SOCs Changes are based to SPL driver arch/arm/mach-sunxi/spl_spi_sunxi.c Signed-off-by: Oskari Lemmela --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 1 + arch/arm/include/asm/arch-sunxi/clock_sun9i.h | 1 + drivers/spi/Kconfig

[U-Boot] [PATCH 2/2] arm: timer: sunxi: fix spurious timeout issues

2019-01-05 Thread Oskari Lemmela
Fixes spurious timeouts which have seen during testing SPI driver. Timeouts disappear when number of bits are reduced to 10. Timer tiny backward jumps causes spurious timeouts. Signed-off-by: Oskari Lemmela --- arch/arm/cpu/armv8/generic_timer.c | 2 +- 1 file changed, 1 insertion(+), 1