[U-Boot] [PATCH] ARM: kirkwood: add spi0 alias for dreamplug

2019-02-27 Thread Chris Packham
The conversion to DM_SPI managed to break accessing the environment on dreamplug. This is because the environment code relies on being to able to select the SPI device based on the sequence number. Add an alias so that the spi0 bus gets sequence number 0. Reported-by: Leigh Brown Signed-off-by: C

Re: [U-Boot] Commit "arm: kirkwood: configs: dreamplug: Convert to DM_SPI" breaks u-boot on Dreamplug

2019-02-27 Thread Chris Packham
Hi Leigh, On Thu, Feb 28, 2019 at 7:24 AM Leigh Brown wrote: > > Hello, > > Vagrant Cascadian asked for people to test the version of u-boot > packaged > for Debian Buster. I tested u-boot on my Dreamplug and found it was not > working correctly. I raised a bug for Debian[1] but I have also tes

[U-Boot] [PATCH 1/1] cmd: set CONFIG_SYS_HELP_CMD_WIDTH = 10

2019-02-27 Thread Heinrich Schuchardt
CONFIG_SYS_HELP_CMD_WIDTH is used to format the output of help without any arguments. CONFIG_SYS_HELP_CMD_WIDTH = 8 is too narrow to fit all our commands. Signed-off-by: Heinrich Schuchardt --- Tested on Travis CI https://travis-ci.org/xypron2/u-boot/builds/498902822 --- include/command.h | 2 +

Re: [U-Boot] [PATCH v2 5/5] cmd: run: add "-e" option to run an EFI application

2019-02-27 Thread Heinrich Schuchardt
On 2/28/19 6:06 AM, AKASHI Takahiro wrote: > On Thu, Feb 28, 2019 at 05:53:17AM +0100, Heinrich Schuchardt wrote: >> On 2/28/19 5:45 AM, AKASHI Takahiro wrote: >>> On Wed, Feb 27, 2019 at 08:10:36AM +0100, Heinrich Schuchardt wrote: On 2/27/19 7:37 AM, AKASHI Takahiro wrote: > On Wed, Feb

Re: [U-Boot] [PATCH v2 5/5] cmd: run: add "-e" option to run an EFI application

2019-02-27 Thread AKASHI Takahiro
On Thu, Feb 28, 2019 at 05:53:17AM +0100, Heinrich Schuchardt wrote: > On 2/28/19 5:45 AM, AKASHI Takahiro wrote: > > On Wed, Feb 27, 2019 at 08:10:36AM +0100, Heinrich Schuchardt wrote: > >> On 2/27/19 7:37 AM, AKASHI Takahiro wrote: > >>> On Wed, Feb 27, 2019 at 07:25:52AM +0100, Heinrich Schucha

Re: [U-Boot] [PATCH v2 5/5] cmd: run: add "-e" option to run an EFI application

2019-02-27 Thread Heinrich Schuchardt
On 2/28/19 5:45 AM, AKASHI Takahiro wrote: > On Wed, Feb 27, 2019 at 08:10:36AM +0100, Heinrich Schuchardt wrote: >> On 2/27/19 7:37 AM, AKASHI Takahiro wrote: >>> On Wed, Feb 27, 2019 at 07:25:52AM +0100, Heinrich Schuchardt wrote: On 2/27/19 7:12 AM, AKASHI Takahiro wrote: > On Tue, Feb

Re: [U-Boot] [PATCH v2 4/5] cmd: bootefi: run an EFI application of a specific load option

2019-02-27 Thread Heinrich Schuchardt
On 2/28/19 5:28 AM, AKASHI Takahiro wrote: > On Wed, Feb 27, 2019 at 08:33:17PM +0100, Heinrich Schuchardt wrote: >> On 2/27/19 7:47 AM, AKASHI Takahiro wrote: >>> On Wed, Feb 27, 2019 at 07:31:06AM +0100, Heinrich Schuchardt wrote: On 2/27/19 6:58 AM, AKASHI Takahiro wrote: > On Tue, Feb

Re: [U-Boot] [PATCH v2 5/5] cmd: run: add "-e" option to run an EFI application

2019-02-27 Thread AKASHI Takahiro
On Wed, Feb 27, 2019 at 08:10:36AM +0100, Heinrich Schuchardt wrote: > On 2/27/19 7:37 AM, AKASHI Takahiro wrote: > > On Wed, Feb 27, 2019 at 07:25:52AM +0100, Heinrich Schuchardt wrote: > >> On 2/27/19 7:12 AM, AKASHI Takahiro wrote: > >>> On Tue, Feb 26, 2019 at 08:20:10PM +0100, Heinrich Schucha

Re: [U-Boot] [PATCH v2 4/5] cmd: bootefi: run an EFI application of a specific load option

2019-02-27 Thread AKASHI Takahiro
On Wed, Feb 27, 2019 at 08:33:17PM +0100, Heinrich Schuchardt wrote: > On 2/27/19 7:47 AM, AKASHI Takahiro wrote: > > On Wed, Feb 27, 2019 at 07:31:06AM +0100, Heinrich Schuchardt wrote: > >> On 2/27/19 6:58 AM, AKASHI Takahiro wrote: > >>> On Tue, Feb 26, 2019 at 08:30:50PM +0100, Heinrich Schucha

Re: [U-Boot] [PATCH 2/2] imx8mq_evk/README: add missing firmware extract step

2019-02-27 Thread Baruch Siach
Hi Fabio, Stefano, On Thu, Feb 28 2019, Fabio Estevam wrote: > On Sun, Feb 24, 2019 at 3:21 PM Baruch Siach wrote: >> Signed-off-by: Baruch Siach >> --- >> board/freescale/imx8mq_evk/README | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/board/freescale/imx8mq_evk/README >> b/board

Re: [U-Boot] [PATCH 1/2] tools/imx8m_image.sh: remove bashism

2019-02-27 Thread Baruch Siach
Hi Fabio, On Thu, Feb 28 2019, Fabio Estevam wrote: > On Wed, Jan 2, 2019 at 4:59 AM Baruch Siach wrote: >> >> Use a single '=' to test string equality for compatibility with non-bash >> shells. Otherwise, if /bin/sh is dash, build fails: >> >> ./tools/imx8m_image.sh: 15: [: signed_hdmi_imx8m.bin

Re: [U-Boot] [PATCH v9 1/7] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2019-02-27 Thread Chee, Tien Fong
On Wed, 2019-02-27 at 10:13 +0100, Michal Simek wrote: > On 27. 02. 19 7:37, Chee, Tien Fong wrote: > > > > On Tue, 2019-02-26 at 07:58 -0800, Dalon L Westergreen wrote: > > > > > > On Tue, 2019-02-26 at 16:42 +0100, Michal Simek wrote: > > > > > > > > > > > > On 26. 02. 19 15:28, Chee, Tien Fo

Re: [U-Boot] Pull request: u-boot-riscv/master

2019-02-27 Thread Tom Rini
On Wed, Feb 27, 2019 at 01:39:44PM +0800, ub...@andestech.com wrote: > Hi Tom, > > Please pull some riscv updates: > > SiFive FU540 Support > > https://travis-ci.org/rickchen36/u-boot-riscv/builds/499037971 > > Thanks > Rick > > > The following changes since commit b3820ba997f004a376efc54466

Re: [U-Boot] [PATCH v1 2/2] x86: acpi: Add DMA descriptors for I2C1 on Intel Tangier

2019-02-27 Thread Bin Meng
On Tue, Feb 26, 2019 at 7:43 PM Andy Shevchenko wrote: > > Intel Tangier SoC has a general purpose DMA which can serve to speed up > communications on SPI and I2C serial buses. > > Provide DMA descriptors to utilize this capability in the future. > > Note, I2C6, which is available to user, has no

Re: [U-Boot] [PATCH v1 1/2] x86: acpi: Add DMA descriptors for SPI5 on Intel Tangier

2019-02-27 Thread Bin Meng
On Tue, Feb 26, 2019 at 7:43 PM Andy Shevchenko wrote: > > Intel Tangier SoC has a general purpose DMA which can serve to speed up > communications on SPI and I2C serial buses. > > Provide DMA descriptors to utilize this capability in the future. > > Signed-off-by: Andy Shevchenko > --- > arch/x

Re: [U-Boot] [PATCH v1 2/2] x86: edison: Add the rest of UARTs present on board

2019-02-27 Thread Bin Meng
Hi Andy, On Tue, Feb 26, 2019 at 7:21 PM Andy Shevchenko wrote: > > Intel Edison has three UART ports, i.e. > port 0 - Bluetooth > port 1 - auxiliary, available for general purpose use > port 2 - debugging, usually console output is here > > Enable all of them for future use. > > Signed-off-by

Re: [U-Boot] [PATCH v1 1/2] x86: edison: Use proper number of serial interface

2019-02-27 Thread Bin Meng
On Tue, Feb 26, 2019 at 7:21 PM Andy Shevchenko wrote: > > The console is actually serial #2. When we would like to enable other ports, > this would be not okay to mess up with the ordering. > > Thus, fix the number of default console interface to be 2. > > Signed-off-by: Andy Shevchenko > --- >

Re: [U-Boot] [PATCH v2 1/2] x86: TunnelCreek: switch P state to the highest freq

2019-02-27 Thread Bin Meng
Christian, I got some time to look at this old patch, and I see my last question remained unanswered. +Andy, Hi Andy, On Thu, May 24, 2018 at 12:00 PM Bin Meng wrote: > > Hi Christian, > > On Thu, Apr 12, 2018 at 4:07 PM, Christian Gmeiner > wrote: > > Fixes performance related issue when runn

Re: [U-Boot] [PATCH 1/2] tools/imx8m_image.sh: remove bashism

2019-02-27 Thread Fabio Estevam
Hi Baruch and Stefano, On Wed, Jan 2, 2019 at 4:59 AM Baruch Siach wrote: > > Use a single '=' to test string equality for compatibility with non-bash > shells. Otherwise, if /bin/sh is dash, build fails: > > ./tools/imx8m_image.sh: 15: [: signed_hdmi_imx8m.bin: unexpected operator > ./tools/imx8

Re: [U-Boot] [PATCH 2/2] imx8mq_evk/README: add missing firmware extract step

2019-02-27 Thread Fabio Estevam
Hi Baruch, On Sun, Feb 24, 2019 at 3:21 PM Baruch Siach wrote: > > Signed-off-by: Baruch Siach > --- > board/freescale/imx8mq_evk/README | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/board/freescale/imx8mq_evk/README > b/board/freescale/imx8mq_evk/README > index e1335293a08f..2529f7

Re: [U-Boot] [PATCH 1/2] imx8mq_evk/README: fix DDR training firmware path

2019-02-27 Thread Fabio Estevam
On Sun, Feb 24, 2019 at 3:22 PM Baruch Siach wrote: > > Remove a redundant directory level. > > Reported-by: Ofer Heifetz > Signed-off-by: Baruch Siach Tested-by: Fabio Estevam ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listin

Re: [U-Boot] [PATCH 2/3] ARM: rmobile: Add basic PSCI support for r8a7790 SoC

2019-02-27 Thread Oleksandr Tyshchenko
Hi, Marek sorry for possible format issue. ср, 27 февр. 2019 г., 23:02 Marek Vasut : > On 2/26/19 8:37 PM, Oleksandr wrote: > > > > Hi, Marek > > Hi, > > +} > + > +/* > + * Reset vector for secondary CPUs. > + * This will be mapped at address 0 by SB

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-27 Thread Marek Vasut
On 2/26/19 7:37 PM, Oleksandr wrote: > > Hi, Marek Hi, >>> 2. It should be new pm-r8a7791.c file which will don't have any CA7 related stuff (CPU cores, SCU, etc). >>> I'd like to have a generic pm-gen2.c file , which parses the DT and >>> figures the configuration out that way. We are

Re: [U-Boot] [PATCH 2/3] ARM: rmobile: Add basic PSCI support for r8a7790 SoC

2019-02-27 Thread Marek Vasut
On 2/26/19 8:37 PM, Oleksandr wrote: > > Hi, Marek Hi, +} + +/* + * Reset vector for secondary CPUs. + * This will be mapped at address 0 by SBAR register. + * We need _long_ jump to the physical address. + */ +asm("    .arm

Re: [U-Boot] [PATCH v2 4/5] cmd: bootefi: run an EFI application of a specific load option

2019-02-27 Thread Heinrich Schuchardt
On 2/27/19 7:47 AM, AKASHI Takahiro wrote: > On Wed, Feb 27, 2019 at 07:31:06AM +0100, Heinrich Schuchardt wrote: >> On 2/27/19 6:58 AM, AKASHI Takahiro wrote: >>> On Tue, Feb 26, 2019 at 08:30:50PM +0100, Heinrich Schuchardt wrote: On 1/15/19 3:54 AM, AKASHI Takahiro wrote: > With this pa

Re: [U-Boot] [PATCH] efi_loader: Fix serial console size detection

2019-02-27 Thread Heinrich Schuchardt
On 2/27/19 10:55 AM, Matthias Brugger wrote: > > > On 26/02/2019 17:58, Heinrich Schuchardt wrote: >> On 2/26/19 12:46 PM, matthias@kernel.org wrote: >>> From: Matthias Brugger >>> >>> Function term_read_reply tries to read from the serial console until >>> the end_char was read. This can ha

[U-Boot] [PATCH 1/1] configs: tinker-rk3288 disable CONFIG_SPL_I2C_SUPPORT

2019-02-27 Thread Heinrich Schuchardt
The SPL for the Tinker Board has to fit into 32 KiB. Currently this limit is exceeded. CONFIG_SPL_I2C_SUPPORT is not needed to move to main U-Boot. So let's disable it. Suggested-by: David Wu Signed-off-by: Heinrich Schuchardt --- This solves only one of the problems with the boards in v2019.04

[U-Boot] [PATCH v3 06/13] test/dm: clk: Add clk_get_by_index[_nodev] test

2019-02-27 Thread Jagan Teki
Add sample dm clk test for clk_get_by_index and clk_get_by_index_nodev functionality code. Cc: Stephen Warren Signed-off-by: Jagan Teki Reviewed-by: Simon Glass --- test/dm/clk.c | 21 + 1 file changed, 21 insertions(+) diff --git a/test/dm/clk.c b/test/dm/clk.c index 898c

[U-Boot] [PATCH v3 13/13] board: sunxi: gmac: Remove Ethernet clock and reset

2019-02-27 Thread Jagan Teki
Since Ethernet clock and reset is now handling via CLK and RESET frameworks via driver API's remove explicit ccm writes. Signed-off-by: Jagan Teki --- board/sunxi/gmac.c | 8 1 file changed, 8 deletions(-) diff --git a/board/sunxi/gmac.c b/board/sunxi/gmac.c index 826650c89b..d8fdf7728

[U-Boot] [PATCH v3 03/13] net: sun8i_emac: Retrieve GMAC clock via 'syscon' phandle

2019-02-27 Thread Jagan Teki
Unlike other Allwinner SoC's R40 GMAC clock control register is locate in CCU, but rest located via syscon itself. Since the phandle property for current code look for 'syscon' and it will grab the respective ccu or syscon base address based on DT property defined in respective SoC dtsi. So, use t

[U-Boot] [PATCH v3 12/13] net: sun8i_emac: Add EPHY CLK and RESET support

2019-02-27 Thread Jagan Teki
Add EPHY CLK and RESET support for sun8i_emac driver to enable EPHY TX clock and EPHY reset pins via CLK and RESET framework. Cc: Joe Hershberger Cc: Lothar Felten Signed-off-by: Jagan Teki --- drivers/net/sun8i_emac.c | 74 +++- 1 file changed, 57 insertion

[U-Boot] [PATCH v3 11/13] clk: sunxi: h3: Implement EPHY CLK and RESET

2019-02-27 Thread Jagan Teki
EPHY CLK and RESET is available in Allwinner H3 EMAC via mdio-mux node of internal PHY. Add the respetive clock and reset reg and bits. Cc: Joe Hershberger Signed-off-by: Jagan Teki --- drivers/clk/sunxi/clk_h3.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/sunxi/clk_h3.c

[U-Boot] [PATCH v3 09/13] clk: sunxi: Implement EMAC, GMAC clocks, resets

2019-02-27 Thread Jagan Teki
- Implement EMAC, GMAC clocks via ccu_clk_gate for all supported Allwinner SoCs. - Implement EMAC, GMAC resets via ccu_reset for all supported Allwinner SoCs. Cc: Joe Hershberger Signed-off-by: Jagan Teki --- drivers/clk/sunxi/clk_a31.c | 2 ++ drivers/clk/sunxi/clk_a64.c | 2 ++ drivers/

[U-Boot] [PATCH v3 10/13] net: sun8i_emac: Add CLK and RESET support

2019-02-27 Thread Jagan Teki
Add CLK and RESET support for sun8i_emac driver to enable TX clock and reset pins via CLK and RESET framework. Cc: Joe Hershberger Cc: Lothar Felten Signed-off-by: Jagan Teki --- drivers/net/sun8i_emac.c | 57 +--- 1 file changed, 42 insertions(+), 15 deleti

[U-Boot] [PATCH v3 07/13] reset: Get the RESET by index without device

2019-02-27 Thread Jagan Teki
Getting a RESET by index with device is not straight forward for some use-cases like handling clock operations for child node in parent driver. So we need to process the child node in parent probe via ofnode and process RESET operation for child without udevice but with ofnode. So add reset_get_by

[U-Boot] [PATCH v3 08/13] test/dm: reset: Add reset_get_by_index[_nodev] test

2019-02-27 Thread Jagan Teki
Add sample dm reset test for reset_get_by_index and reset_get_by_index_nodev functionality code. Cc: Stephen Warren Signed-off-by: Jagan Teki Reviewed-by: Simon Glass --- test/dm/reset.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/test/dm/reset.c b/test/dm/rese

[U-Boot] [PATCH v3 05/13] clk: Use clk_get_by_index_tail()

2019-02-27 Thread Jagan Teki
clk_get_by_index_tail() now handle common clk get by index code so use it from clk_get_by_indexed_prop(). Cc: Stephen Warren Cc: Simon Glass Signed-off-by: Jagan Teki --- Changes for v3: - use clk_get_by_index_tail() from clk_get_by_indexed_prop() drivers/clk/clk-uclass.c | 24 ++-

[U-Boot] [PATCH v3 04/13] clk: Get the CLK by index without device

2019-02-27 Thread Jagan Teki
Getting a CLK by index with device is not straight forward for some use-cases like handling clock operations for child node in parent driver. So we need to process the child node in parent probe via ofnode and process CLK operation for child without udevice but with ofnode. So add clk_get_by_index

[U-Boot] [PATCH v3 02/13] net: sunxi_emac: Add CLK support

2019-02-27 Thread Jagan Teki
Add CLk support for sunxi_emac to enable AHB_EMAC clock via CLK framework. Cc: Joe Hershberger Signed-off-by: Jagan Teki --- drivers/net/sunxi_emac.c | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_em

[U-Boot] [PATCH v3 01/13] clk: sunxi: Implement A10 EMAC clocks

2019-02-27 Thread Jagan Teki
Implement EMAC clocks via ccu_clk_gate for Allwinner A10 SoC. Which would eventually used in sunxi_emac.c driver. Signed-off-by: Jagan Teki --- drivers/clk/sunxi/clk_a10.c | 1 + drivers/clk/sunxi/clk_a10s.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/clk/sunxi/clk_a10.c b/dr

[U-Boot] [PATCH v3 00/13] net: Add Allwinner EMAC CLK, RESET support

2019-02-27 Thread Jagan Teki
This is v2 version for Allwinner EMAC CLK, RESET support, which was initially be a part of previous series[1]. Changes for v3: - rebase on master - collecet review tags from Simon - fixed the comment by Simon, keep clk_get_by_indexed_prop() and call clk_get_by_index_tail Changes for v2: - rebase

Re: [U-Boot] [PATCH v2] configs: dra7xx_evm: Remove ENV_IS_IN_FAT

2019-02-27 Thread Tom Rini
On Tue, Feb 26, 2019 at 10:45:44PM +0530, Faiz Abbas wrote: > With U-boot supporting environment in multiple places, enable only > ENV_IS_IN_EMMC > > Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH v3 1/1] configs: rk3288: Tinker Board SPL file must fit into 32 KiB

2019-02-27 Thread Tom Rini
On Wed, Feb 27, 2019 at 11:15:23AM +0100, Simon Goldschmidt wrote: > Tom, > > On Thu, Feb 14, 2019 at 10:20 AM Simon Goldschmidt > wrote: > > > > On Thu, Feb 14, 2019 at 7:26 AM Heinrich Schuchardt > > wrote: > > > > > > The SPL image for the Tinker Board has to fit into 32 KiB. This includes >

Re: [U-Boot] [PATCH v2 4/4] configs: ti_omap5_common: Add NAND environment settings

2019-02-27 Thread Tom Rini
On Wed, Feb 27, 2019 at 01:29:38PM +0530, Faiz Abbas wrote: > Now that NAND is supported on DRA71x include various NAND environment > settings > > Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___

[U-Boot] Commit "arm: kirkwood: configs: dreamplug: Convert to DM_SPI" breaks u-boot on Dreamplug

2019-02-27 Thread Leigh Brown
Hello, Vagrant Cascadian asked for people to test the version of u-boot packaged for Debian Buster. I tested u-boot on my Dreamplug and found it was not working correctly. I raised a bug for Debian[1] but I have also tested with the mainline version of u-boot and found the same issues. This

Re: [U-Boot] [PATCH 1/2] kbuild: make arch-dtbs target PHONY

2019-02-27 Thread Stephen Warren
On 2/26/19 7:36 PM, Masahiro Yamada wrote: On Wed, Feb 27, 2019 at 11:17 AM Masahiro Yamada wrote: On Wed, Feb 27, 2019 at 4:21 AM Stephen Warren wrote: From: Stephen Warren Without this, the arch-dtbs target only gets evaluated when building U-Boot the first time, not when re-building (i

[U-Boot] [PATCH] arm: arm64 32bit address relocation

2019-02-27 Thread Ibai Erkiaga
Current relocation code is limited to 21bit PC-relative addressing which might not be enough for bigger code sizes. The following patch increases the addressing to 32bit PC-relative. This feature is specially interesting if U-Boot is build without optimiation (-O0) as the text section is increased

[U-Boot] [PATCH 16/19] stm32mp1: basic boot: SPL enable access to GPIOZ bank

2019-02-27 Thread Patrick Delaunay
SPL need to set GPIOZ_SECCFGR = 0 to enable access to GPIOZ bank (open security). Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cpu.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c index 5d79bde..f39941e 100644 -

[U-Boot] [PATCH 08/19] stm32mp1: update bootcmd

2019-02-27 Thread Patrick Delaunay
Clearly separate bootcmd for stm32mp1 board (bootcmd_stm32mp) and preboot management. That solve issue for fastboot continue command. Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c| 1 + configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_trusted_defconfig |

[U-Boot] [PATCH 15/19] stm32mp1: align serial number on bootrom

2019-02-27 Thread Patrick Delaunay
Always use upper case for serial number. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c index 305ea6d..5d79bde 100644 --- a/arch/arm/mach-stm32mp/cpu.c

[U-Boot] [PATCH 18/19] stm32mp1: bsec: shadow all the upper OTP (no secure) during boot

2019-02-27 Thread Patrick Delaunay
Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/bsec.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-stm32mp/bsec.c b/arch/arm/mach-stm32mp/bsec.c index 8c5a299..9ed8d8c 100644 --- a/arch/arm/mach-stm32mp/bsec.c +++ b/arch/arm/ma

[U-Boot] [PATCH 17/19] stm32mp1: bsec: use device tree new compatible

2019-02-27 Thread Patrick Delaunay
Update bsec driver to use the device tree provided by Kernel. Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp157-u-boot.dtsi| 4 arch/arm/dts/stm32mp157c.dtsi | 7 +++ arch/arm/mach-stm32mp/bsec.c | 12 +--- arch/arm/mach-stm32mp/in

[U-Boot] [PATCH 19/19] stm32mp1: Replace OTP read by SHADOW read

2019-02-27 Thread Patrick Delaunay
Replace STM32_BSEC_OTP() by STM32_BSEC_SHADOW() to increase read performance. Signed-off-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm3

[U-Boot] [PATCH 12/19] stm32mp1: activated some configuration

2019-02-27 Thread Patrick Delaunay
Add configuration useful for test - FIT support - MEMTEST - DFU - CACHE - TIME - TIMER Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 6 ++ configs/stm32mp15_trusted_defconfig | 6 ++ include/configs/stm32mp1.h | 4 3 files changed, 16 insertions

[U-Boot] [PATCH 10/19] stm32mp1: support forced boot mode

2019-02-27 Thread Patrick Delaunay
The boot mode can be forced by key press or by TAMP register, requested in kernel by syscon-reboot-mode tamp: tamp@5c00a000 { compatible = "simple-bus", "syscon", "simple-mfd"; reg = <0x5c00a000 0x400>; reboot-mode { compatible = "syscon-reboot-mode";

[U-Boot] [PATCH 11/19] stm32mp1: update memory layout

2019-02-27 Thread Patrick Delaunay
Update the memory layout to be aligned with other platform and avoid overlap with 32MB Linux kernel (multiv7 image). + Kernel => 32MiB offset = 0xC200 and increase the bootm size to 32MiB + FDT => 64MiB offset = 0xc400 + SCRIPT => 65Mib offset = 0xc410 + PXESCRIPT => 66Mib o

[U-Boot] [PATCH 14/19] stm32mp1: add syscfg initialization

2019-02-27 Thread Patrick Delaunay
Initialize the system configuration for basic boot - update interconnect setting - disable pull-down for boot pin - enable High Speed Low Voltage Pad mode for SPI, SDMMC, ETH, QSPI - activate I/O compensation Done by SSBL = TF-A for trusted boot Signed-off-by: Patrick Delaunay --- board/st/stm

[U-Boot] [PATCH 09/19] stm32mp1: activate FASTBOOT on eMMC

2019-02-27 Thread Patrick Delaunay
activate Fastboot for eMMC on EV1 board (mmc1) $> sudo apt-get install android-tools-adb android-tools-fastboot $> fastboot -i 0x0483 getvar bootloader-version Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 7 ++- configs/stm32mp15_trusted_defconfig | 7 ++-

[U-Boot] [PATCH 06/19] stm32mp1: cosmetic: add comment on psci_migrate_info_type return value

2019-02-27 Thread Patrick Delaunay
Add explaination for the return value of psci_migrate_info_type: 2 = Trusted OS. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/psci.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-stm32mp/psci.c b/arch/arm/mach-stm32mp/psci.c index 6ed248

[U-Boot] [PATCH 13/19] stm32mp1: add some syscon drivers for syscfg and etpzc

2019-02-27 Thread Patrick Delaunay
Add SYSCON driver for syscfg and etpzc and reorder in alphabetics order Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp157c.dtsi | 2 +- arch/arm/mach-stm32mp/include/mach/stm32.h | 4 +++- arch/arm/mach-stm32mp/syscon.c | 9 + 3 files changed, 9 insert

[U-Boot] [PATCH 04/19] stm32mp1: spl: add spl_display_print

2019-02-27 Thread Patrick Delaunay
SPL displays the board model from device tree. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 1 + arch/arm/mach-stm32mp/spl.c | 17 + 2 files changed, 18 insertions(+) diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig index 3101

[U-Boot] [PATCH 07/19] stm32mp1: spl: hang with trace when DDR init failed

2019-02-27 Thread Patrick Delaunay
When DDR initialization failed, print error message and stop the SPL execution. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c index 501e077..a3b0d6

[U-Boot] [PATCH 05/19] stm32mp1: cosmetic cleanup Kconfig

2019-02-27 Thread Patrick Delaunay
Cosmetic cleanup in mach-stm32mp Kconfig - remove duplicated SPL_DRIVERS_MISC_SUPPORT - update help for TARGET_STM32MP1 - set value for NR_DRAM_BANKS - remove one comment as DEBUG_UART is deactivated by default - include board Kconfig at the end of the file Signed-off-by: Patrick Delaunay --- a

[U-Boot] [PATCH 00/19] stm32mp1: update of stm32mp arch and stm32mp1 board

2019-02-27 Thread Patrick Delaunay
Need to be apply after the previous serie: stm32mp1: add trusted boot with TF-A http://patchwork.ozlabs.org/project/uboot/list/?series=91422 It is a first alignment on the delivery v2018.11-stm32mp-r2 available on GITHUB https://github.com/STMicroelectronics/u-boot Patrick Delaunay (19):

[U-Boot] [PATCH 03/19] stm32mp1: update print_cpuinfo()

2019-02-27 Thread Patrick Delaunay
Display CPU part number and package information. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cpu.c| 102 +++-- arch/arm/mach-stm32mp/include/mach/sys_proto.h | 10 ++- 2 files changed, 104 insertions(+), 8 deletions(-) diff --git a/arch/ar

[U-Boot] [PATCH 02/19] stm32mp1: update boot mode management

2019-02-27 Thread Patrick Delaunay
- export the function get_bootmode() and reused it in spl code - manage uart instance by alias (prepare v4.19 binding) - solve issue on nand instance - restore console for uart boot Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cpu.c| 57 +

[U-Boot] [PATCH 01/19] stm32mp1: add runtime information in environment

2019-02-27 Thread Patrick Delaunay
Set board name with the first dts compatible found in DT code under CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG The result with DEVICE_TREE=stm32mp157c-ev1 is: STM32MP> env print board=stm32mp1 board_name=stm32mp157c-ev1 Signed-off-by: Patrick Delaunay --- arch/arm/Kconfig

Re: [U-Boot] Commit "ARM: CPU: arm926ejs: Consolidate cache routines to common file" breaks u-boot on Dreamplug

2019-02-27 Thread Adam Ford
On Wed, Feb 27, 2019 at 8:52 AM Leigh Brown wrote: > > Hi Adam, > > Thanks very much for your response. > > On 2019-02-27 12:50, Adam Ford wrote: > > On Wed, Feb 27, 2019 at 5:32 AM Leigh Brown > > wrote: > >> > >> Hello, > >> > >> Vagrant Cascadian asked for people to test the version of u-boot

Re: [U-Boot] [PATCH v3] dm: spi: Read default speed and mode values from DT

2019-02-27 Thread Patrick DELAUNAY
Hi Jagan, > From: Patrick DELAUNAY > Sent: mardi 19 février 2019 13:28 > Subject: RE: [PATCH v3] dm: spi: Read default speed and mode values from DT > > Hi Jagan, > > > From: Jagan Teki > > Sent: jeudi 14 février 2019 18:05 > > > > On Tue, Feb 12, 2019 at 7:14 PM Patrick DELAUNAY > > > > wrot

Re: [U-Boot] Commit "ARM: CPU: arm926ejs: Consolidate cache routines to common file" breaks u-boot on Dreamplug

2019-02-27 Thread Leigh Brown
Hi Adam, Thanks very much for your response. On 2019-02-27 12:50, Adam Ford wrote: On Wed, Feb 27, 2019 at 5:32 AM Leigh Brown wrote: Hello, Vagrant Cascadian asked for people to test the version of u-boot packaged for Debian Buster. I tested u-boot on my Dreamplug and found it was not wo

Re: [U-Boot] [PATCH 5/7] Convert CONFIG_SF_DEFAULT_* to Kconfig

2019-02-27 Thread Simon Goldschmidt
[reducing the CC list as gmail won't let me send otherwise] On 27.02.2019 15:20, Patrick Delaunay wrote: This converts the following to Kconfig: CONFIG_SF_DEFAULT_BUS CONFIG_SF_DEFAULT_CS CONFIG_SF_DEFAULT_MODE CONFIG_SF_DEFAULT_SPEED I use moveconfig script and then manual check on

[U-Boot] [PATCH v4] dm: spi: Read default speed and mode values from DT

2019-02-27 Thread Patrick Delaunay
This patch update the behavior introduced by commit 96907c0fe50a ("dm: spi: Read default speed and mode values from DT") In case of DT boot, don't read default speed and mode for SPI from CONFIG_* but instead read from DT node. This will make sure that boards with multiple SPI/QSPI controllers can

[U-Boot] [PATCH v4 0/1] Read default speed and mode values from DT

2019-02-27 Thread Patrick Delaunay
This patch-set finish the previous serie: http://patchwork.ozlabs.org/project/uboot/list/?series=76834 and also replace the serie: "Remove defines for SPI default speed and mode " http://patchwork.ozlabs.org/project/uboot/list/?series=80769&state=* This new version is a complete rework after sev

[U-Boot] [PATCH 7/7] Convert CONFIG_ENV_SPI_* to Kconfig

2019-02-27 Thread Patrick Delaunay
This converts the following to Kconfig: CONFIG_ENV_SPI_BUS CONFIG_ENV_SPI_CS CONFIG_ENV_SPI_MAX_HZ CONFIG_ENV_SPI_MODE Most of time these value are not needed, CONFIG_SF_DEFAULT with same value is used, so I introduced CONFIG_USE_ENV_SPI_* to force the associated value for the environment.

Re: [U-Boot] U-Boot Digest, Vol 129, Issue 63

2019-02-27 Thread Terrance Chiang
Currently switch is unable to boot pass Nintendo logo, will revert a nand backup to the first uboot error which includes and the files created from Uboot. The rest of the error after that are (after running different files like kip files are results of me trying to retrieve inital setup. Is it be

[U-Boot] [PATCH 0/7] Migrate SPI defines to Kconfig

2019-02-27 Thread Patrick Delaunay
This serie is a proposal to convert all SPI configuration settings in Kconfig : + parameters for SF command - CONFIG_SF_DEFAULT_BUS - CONFIG_SF_DEFAULT_CS - CONFIG_SF_DEFAULT_MODE - CONFIG_SF_DEFAULT_SPEED + parameters for SSPI command - CONFIG_DEFAULT_SPI_BUS - CONFIG_DEFAULT_SPI_MODE

[U-Boot] [PATCH v3 8/9] spi: sun4i: Driver cleanup

2019-02-27 Thread Jagan Teki
- drop unused macros. - use base instead of base_addr, for better code readability - move .probe and .ofdata_to_platdata functions in required places to add platdata support in future. - use sentinel sun4i_spi_ids. Signed-off-by: Jagan Teki --- drivers/spi/sun4i_spi.c | 190 +--

[U-Boot] [PATCH v3 9/9] spi: Rename sun4i_spi.c into spi-sunxi.c

2019-02-27 Thread Jagan Teki
Now the same SPI controller driver is reusable in all Allwinner SoC variants, so rename the existing sun4i_spi.c into spi-sunxi.c which eventually look like a common sunxi driver. Also update the function, variable, structure names in driver from sun4i into sunxi. Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH v3 6/9] spi: sun4i: Add CLK support

2019-02-27 Thread Jagan Teki
Add CLK support to enable AHB and MOD SPI clocks on sun4i_spi driver. Clock disablement could be done while releasing the bus transfer, but the existing code doesn't disable the clocks it only taken care of clock enablement globally in probe. So to make a proper clock handling, the clocks should

[U-Boot] [PATCH v3 3/9] spi: sun4i: Simplify reg writes using set/clrbits_le32

2019-02-27 Thread Jagan Teki
Update the existing register writes using setbits_le32 and clrbits_le32 in required places. Signed-off-by: Jagan Teki --- drivers/spi/sun4i_spi.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/spi/sun4i_spi.c b/drivers/spi/sun4i_spi.c index f5f

[U-Boot] [PATCH v3 7/9] spi: sun4: Add A31 spi controller support

2019-02-27 Thread Jagan Teki
The usual SPI transmission protocol in Allwinner A10 and A31 controllers share similar context with minimal changes in register offsets along with few additional register bits on A31. So, add A31 spi controller support in existing sun4i_spi with A31 specific register offsets and bits. Signed-off-

[U-Boot] [PATCH v3 5/9] spi: sun4i: Support fifo_depth via drvdata

2019-02-27 Thread Jagan Teki
Support fifo_depth via drvdata instead of macro definition, this would eventually reduce another macro definition for new SPI controller fifo depth support addition. Signed-off-by: Jagan Teki Reviewed-by: Andre Przywara --- drivers/spi/sun4i_spi.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[U-Boot] [PATCH v3 4/9] spi: sun4i: Access registers and bits via enum offsets

2019-02-27 Thread Jagan Teki
Allwinner support two different SPI controllers one for A10 and another for A31 with minimal changes in register offsets and respective register bits, but the logic for accessing the SPI master via SPI slave remains nearly similar. Add enum offsets for register set and register bits, so-that it ca

[U-Boot] [PATCH v3 2/9] clk: sunxi: Implement SPI clocks, resets

2019-02-27 Thread Jagan Teki
- Implement SPI AHB, MOD clocks via ccu_clk_gate for all supported Allwinner SoCs - Implement SPI resets via ccu_reset for all supported Allwinner SoCs. Signed-off-by: Jagan Teki Reviewed-by: Andre Przywara --- drivers/clk/sunxi/clk_a10.c | 10 ++ drivers/clk/sunxi/clk_a10s.c | 7

[U-Boot] [PATCH v3 1/9] spi: sun4i: Poll for rxfifo to be filled up

2019-02-27 Thread Jagan Teki
To drain rx fifo the fifo need to poll for how much data has been filled up in rx fifo. To achieve this, the current code is using wait_for_bit logic on control register with exchange burst mode mask, which is not a proper way of waiting for fifo filled up. So, add code for polling rxfifo to be f

[U-Boot] [PATCH v3 0/9] spi: Add Allwinner A31 SPI driver

2019-02-27 Thread Jagan Teki
This series add support for Allwinner A31 SPI controller driver. Fixed and improved conde when compared to previous series[1] Changes for v3: - update commit message for "poll rxfifo" patch - change SPI_CS argument as SPI_CS(priv, cs) - keep 'unsigned long' for register set, since using u16 encou

[U-Boot] [PATCH 6/7] Convert CONFIG_DEFAULT_SPI_* to Kconfig

2019-02-27 Thread Patrick Delaunay
This converts the following to Kconfig: CONFIG_DEFAULT_SPI_BUS CONFIG_DEFAULT_SPI_MODE Signed-off-by: Patrick Delaunay --- cmd/Kconfig | 12 +++- cmd/spi.c| 7 --- configs/bg0900_defconfig

[U-Boot] [PATCH 1/7] bcm7445: move some configuration in defconfig file

2019-02-27 Thread Patrick Delaunay
Move some configurations in defconfig file - CONFIG_DM_SPI (removed by syncing defconfigs ) - CONFIG_CMD_SF - CONFIG_CMD_SPI - CONFIG_CMD_SF_TEST This allow correct dependency handling in Kconfig. Signed-off-by: Patrick Delaunay --- configs/bcm7445_defconfig | 3 +++ include/configs/bcm7445.h

[U-Boot] [PATCH 2/7] controlcenterdc: move some configuration in defconfig file

2019-02-27 Thread Patrick Delaunay
Move some configurations in defconfig file - CONFIG_CMD_I2C - CONFIG_CMD_SPI This allow correct dependency handling in Kconfig. Signed-off-by: Patrick Delaunay --- configs/controlcenterdc_defconfig | 2 ++ include/configs/controlcenterdc.h | 6 -- 2 files changed, 2 insertions(+), 6 deleti

[U-Boot] [PATCH 3/7] exynos: replace CONFIG_ENV_SPI_BASE by CONFIG_SYS_SPI_BASE

2019-02-27 Thread Patrick Delaunay
Replace CONFIG_ENV_SPI_BASE by the better CONFIG_SYS_SPI_BASE (it is not the location for environment but the location for U-Boot) and, as it is the only platform with use this define, remove it from whitelist. Signed-off-by: Patrick Delaunay --- arch/arm/mach-exynos/spl_boot.c | 2 +- incl

[U-Boot] [PATCH 4/7] tqma6s_wru4_mmc: manage board_spi_cs_gpio correctly

2019-02-27 Thread Patrick Delaunay
Define the function board_spi_cs_gpio only when needed, only called in drivers/spi/mxc_spi.c. That avoid compilation issue for tqma6s_wru4_mmc_defconfig when CONFIG_SF_DEFAULT_BUS and CONFIG_SF_DEFAULT_CS are not defined (CMD_SF not defined) after migration in KConfig. Signed-off-by: Patrick Delau

Re: [U-Boot] Commit "ARM: CPU: arm926ejs: Consolidate cache routines to common file" breaks u-boot on Dreamplug

2019-02-27 Thread Adam Ford
On Wed, Feb 27, 2019 at 5:32 AM Leigh Brown wrote: > > Hello, > > Vagrant Cascadian asked for people to test the version of u-boot > packaged > for Debian Buster. I tested u-boot on my Dreamplug and found it was not > working correctly. I raised a bug for Debian[1] but I have also tested > with

[U-Boot] Commit "ARM: CPU: arm926ejs: Consolidate cache routines to common file" breaks u-boot on Dreamplug

2019-02-27 Thread Leigh Brown
Hello, Vagrant Cascadian asked for people to test the version of u-boot packaged for Debian Buster. I tested u-boot on my Dreamplug and found it was not working correctly. I raised a bug for Debian[1] but I have also tested with the mainline version of u-boot and found the same issues. The f

[U-Boot] [PATCH v2] fs: fat: fix reading non-cluster-aligned root directory

2019-02-27 Thread Anssi Hannula
A FAT12/FAT16 root directory location is specified by a sector offset and it might not start at a cluster boundary. It also resides before the data area (before cluster 2). However, the current code assumes that the root directory is located at a beginning of a cluster, causing no files to be foun

[U-Boot] SDCRARD boot on Intel Arria10 SOCDK

2019-02-27 Thread Marcel Gielen [Celestia-STS]
We are trying to setup the Arria10 SOCDK (DK-SOC-10AS066S-A) to boot form SDCARD in RAW mode. We are under the impression this has never been used before. Kconfig sets SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to 0x200 for ARCH_SOCFPGA, which is correct for the Cyclone-V, but not anymore for Arria-10

Re: [U-Boot] [PATCH v3 1/1] configs: rk3288: Tinker Board SPL file must fit into 32 KiB

2019-02-27 Thread Simon Goldschmidt
Tom, On Thu, Feb 14, 2019 at 10:20 AM Simon Goldschmidt wrote: > > On Thu, Feb 14, 2019 at 7:26 AM Heinrich Schuchardt > wrote: > > > > The SPL image for the Tinker Board has to fit into 32 KiB. This includes > > up to 2 KiB for the file header. > > > > A new configuration variable CONFIG_SPL_W

Re: [U-Boot] [PATCH] efi_loader: Fix serial console size detection

2019-02-27 Thread Matthias Brugger
On 26/02/2019 17:58, Heinrich Schuchardt wrote: > On 2/26/19 12:46 PM, matthias@kernel.org wrote: >> From: Matthias Brugger >> >> Function term_read_reply tries to read from the serial console until >> the end_char was read. This can hang forever if we are, for some reason, >> not be able to

Re: [U-Boot] [PATCH v9 1/7] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2019-02-27 Thread Michal Simek
On 27. 02. 19 7:37, Chee, Tien Fong wrote: > On Tue, 2019-02-26 at 07:58 -0800, Dalon L Westergreen wrote: >> On Tue, 2019-02-26 at 16:42 +0100, Michal Simek wrote: >>> >>> On 26. 02. 19 15:28, Chee, Tien Fong wrote: On Tue, 2019-02-26 at 15:06 +0100, Michal Simek wrote: > > On 19

Re: [U-Boot] [PATCH v9 2/7] ARM: socfpga: Add default FPGA bitstream fitImage for Arria10 SoCDK

2019-02-27 Thread Michal Simek
On 27. 02. 19 7:10, Chee, Tien Fong wrote: > On Tue, 2019-02-26 at 16:43 +0100, Michal Simek wrote: >> On 26. 02. 19 15:30, Chee, Tien Fong wrote: >>> >>> On Tue, 2019-02-26 at 15:07 +0100, Michal Simek wrote: On 19. 02. 19 4:47, tien.fong.c...@intel.com wrote: > > > From: Tie