Re: [U-Boot] [PATCH v5 00/19] efi_loader: non-volatile variables support

2019-10-25 Thread Wolfgang Denk
Dear Takahiro, In message <20191023065332.ge10...@linaro.org> you wrote: > > This is my second ping. > Could you please take time to review this patch? Sorry, I'm afraid I will not find the time to review any such monster patch series any time soon. I hope Joe (added to Cc:) has more resources a

Re: [U-Boot] [PATCH v5 01/15] video: bmp: check resolutions of panel/bitmap

2019-10-25 Thread Patrice CHOTARD
Hi Heinrich On 10/24/19 10:43 PM, Heinrich Schuchardt wrote: > On 10/24/19 4:05 PM, Patrice CHOTARD wrote: >> Hi Heinrich, all >> >> On 10/7/19 7:34 PM, Heinrich Schuchardt wrote: >>> On 10/7/19 3:29 PM, Yannick Fertré wrote: If the size of the bitmap is bigger than the size of the panel

Re: [U-Boot] [PATCH 11/12] rockchip: add px30 architecture core

2019-10-25 Thread Heiko Stübner
Hi Kever, Am Freitag, 25. Oktober 2019, 04:49:54 CEST schrieb Kever Yang: > On 2019/10/25 上午7:28, Heiko Stuebner wrote: > > From: Kever Yang > > > > Add core architecture code to support the px30 soc. > > This includes a separate tpl board file due to very limited > > sram size as well as a non-d

Re: [U-Boot] [PATCH v5 01/15] video: bmp: check resolutions of panel/bitmap

2019-10-25 Thread Yannick FERTRE
Hello Heinrich, Sorry for the delay. This match is not superfluous. On the STM32F746 board, a bitmap larger than the panel resolution is embedded. Without this patch, the board does not boot. I propose to send an additional patch that checks the coordinates. Best regards -- Yannick Fertré M

Re: [U-Boot] [PATCH v5 00/19] efi_loader: non-volatile variables support

2019-10-25 Thread AKASHI Takahiro
Hi Wolfgang, On Fri, Oct 25, 2019 at 09:06:44AM +0200, Wolfgang Denk wrote: > Dear Takahiro, > > In message <20191023065332.ge10...@linaro.org> you wrote: > > > > This is my second ping. > > Could you please take time to review this patch? > > Sorry, I'm afraid I will not find the time to review

[U-Boot] [PATCH 1/1] dwc3-generic: Don't fail probe if clk/reset entries are absent

2019-10-25 Thread Vignesh Raghavendra
Some boards don't populate clk/reset entries as these are are optional as per binding documentation. Therefore, don't fail driver probe if clk/reset entries are absent in DT. This fixes fastboot failures seen due to enabling of CONFIG_CLK on AM57xx Fixes: e8e683d33b0c ("board: ti: am57xx-idk: Con

Re: [U-Boot] [PATCH 1/1] dwc3-generic: Don't fail probe if clk/reset entries are absent

2019-10-25 Thread Tero Kristo
On 25/10/2019 11:18, Vignesh Raghavendra wrote: Some boards don't populate clk/reset entries as these are are optional as per binding documentation. Therefore, don't fail driver probe if clk/reset entries are absent in DT. This fixes fastboot failures seen due to enabling of CONFIG_CLK on AM57xx

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

2019-10-25 Thread Jagan Teki
Hi Tom, Please pull this PR. Summary: - SPL_SPI_FLASH_MTD (Frieder) - SPI NOR IDs' fixes, additions (Vignesh) - cs_info change (Bin) - Enable sunxi spi (Jagan) Travis-CI: https://travis-ci.org/openedev/u-boot-amarula/builds/602483415 Thanks, Jagan. The following changes since commit 17fd9915a4

Re: [U-Boot] [PATCH v5 19/19] arm: socfpga: agilex: Enable Agilex SoC build

2019-10-25 Thread Ley Foon Tan
On Wed, Oct 23, 2019 at 2:42 AM Simon Goldschmidt wrote: > > Am 11.10.2019 um 11:52 schrieb Ley Foon Tan: > > Add build support for Agilex SoC. > > > > Signed-off-by: Ley Foon Tan > > Reviewed-by: Simon Goldschmidt > > This does not apply any more, you'll need to rebase it (Marek has > changed m

Re: [U-Boot] [PATCH v5 19/19] arm: socfpga: agilex: Enable Agilex SoC build

2019-10-25 Thread Ley Foon Tan
On Tue, Oct 22, 2019 at 3:02 PM Simon Goldschmidt wrote: > > On Fri, Oct 11, 2019 at 11:53 AM Ley Foon Tan wrote: > > > > Add build support for Agilex SoC. > > > > Signed-off-by: Ley Foon Tan > > Reviewed-by: Simon Goldschmidt > > > > --- > > v5: > > - Enable NCORE_CACHE > > > > v3: > > - Disab

Re: [U-Boot] [PATCH v5 14/19] ddr: altera: Restructure Stratix 10 SDRAM driver

2019-10-25 Thread Ley Foon Tan
On Wed, Oct 23, 2019 at 2:41 AM Simon Goldschmidt wrote: > > Am 11.10.2019 um 11:52 schrieb Ley Foon Tan: > > Restructure Stratix 10 SDRAM driver. Move common code to separate > > file, in preparation to support SDRAM driver for Agilex. > > > > Signed-off-by: Ley Foon Tan > > > > --- > > v3: > >

Re: [U-Boot] [PATCH v5 08/19] arm: socfpga: Fix CLKMGR_INTOSC_HZ to 400MHz

2019-10-25 Thread Ley Foon Tan
On Wed, Oct 23, 2019 at 2:31 AM Simon Goldschmidt wrote: > > Am 11.10.2019 um 11:52 schrieb Ley Foon Tan: > > CLKMGR_INTOSC_HZ should be 400MHz, instead of 460MHz. > > Having this in a separate patch is clearly better. > > > > > Signed-off-by: Ley Foon Tan > > --- > > arch/arm/mach-socfpga/incl

[U-Boot] [PULL] u-boot-atmel-2020.01-b

2019-10-25 Thread Eugen.Hristev
Hi Tom, Please pull tag u-boot-atmel-2020.01-b , the second set of features and fixes for the 2020.01 cycle. This feature set includes my work on a new tiny flexcom driver and eeprom mac retrieval for the sam9x60-ek board. Thanks ! Eugen The following changes since commit 680023c5fab6b1777c0

Re: [U-Boot] [PATCH v5 24/26] cmd: nand/sf: isolate legacy code

2019-10-25 Thread Jagan Teki
On Thu, Oct 3, 2019 at 11:21 PM Miquel Raynal wrote: > > The 'sf' command is not supposed to rely on the MTD stack, but both > 'sf' and 'nand' commands use helpers located in mtd_uboot.c. Despite > their location, these functions do not depend at all on the MTD > stack. > > This file (drivers/mtd/

Re: [U-Boot] [PATCH v4 2/4] arm: socfpga: Convert reset manager from struct to defines

2019-10-25 Thread Ley Foon Tan
On Wed, Oct 23, 2019 at 2:11 AM Simon Goldschmidt wrote: > > Am 10.10.2019 um 09:37 schrieb Ley Foon Tan: > > Convert reset manager for Gen5, Arria 10 and Stratix 10 from struct > > to defines. > > > > Change to get reset manager base address from DT node instead of using > > #define. > > > > Sign

Re: [U-Boot] [PATCH 1/2] spi: nxp_fspi: new driver for the FlexSPI controller

2019-10-25 Thread Jagan Teki
+ Vignesh On Mon, Oct 21, 2019 at 10:23 PM Michael Walle wrote: > > This is a port of the kernel's spi-nxp-fspi driver. It uses the new > spi-mem interface and does not expose the more generic spi-xfer > interface. The source was taken from the v5.3-rc3 tag. > > The port was straightforward: > -

Re: [U-Boot] [PATCH v5 07/19] arm: socfpga: Move Stratix10 and Agilex clock manager common code

2019-10-25 Thread Ley Foon Tan
On Wed, Oct 23, 2019 at 2:29 AM Simon Goldschmidt wrote: > > Am 11.10.2019 um 11:52 schrieb Ley Foon Tan: > > Move Stratix10 and Agilex clock manager common code to new header file. > > > > Signed-off-by: Ley Foon Tan > > > > --- > > v5: > > - Revert CLKMGR_INTOSC_HZ to 460MHz. > > --- > > .../

Re: [U-Boot] [PATCH v5 00/26]MTD defconfigs/Kconfigs/Makefiles heavy cleanup

2019-10-25 Thread Jagan Teki
On Thu, Oct 3, 2019 at 11:20 PM Miquel Raynal wrote: > > Hello, > > A year ago, while working on SPI-NAND support in U-Boot, I discovered > when modifying Makefiles a confusing organization where: > * Sub-directories/files are compiled from the root Makefile > * Commands are at the root of everyth

[U-Boot] [PATCH] video: bmp: check coordinates of bitmap

2019-10-25 Thread Yannick Fertré
If the coordinates are bigger than the size of the panel then errors appear when calculating axis alignment and the copy of bitmap is done outside of framebuffer. Signed-off-by: Yannick Fertré --- drivers/video/video_bmp.c | 13 + 1 file changed, 13 insertions(+) diff --git a/driver

Re: [U-Boot] [PATCH v5 24/26] cmd: nand/sf: isolate legacy code

2019-10-25 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Fri, 25 Oct 2019 14:44:38 +0530: > On Thu, Oct 3, 2019 at 11:21 PM Miquel Raynal > wrote: > > > > The 'sf' command is not supposed to rely on the MTD stack, but both > > 'sf' and 'nand' commands use helpers located in mtd_uboot.c. Despite > > their location, these

Re: [U-Boot] [PATCH v5 12/19] drivers: Enable cache driver build in SPL

2019-10-25 Thread Ley Foon Tan
On Wed, Oct 23, 2019 at 2:34 AM Simon Goldschmidt wrote: > > Am 11.10.2019 um 11:52 schrieb Ley Foon Tan: > > Enable cache driver build in SPL. > > > > Signed-off-by: Ley Foon Tan > > --- > > drivers/Makefile | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/Makefile b/dri

Re: [U-Boot] [PATCH v5 24/26] cmd: nand/sf: isolate legacy code

2019-10-25 Thread Jagan Teki
Hi Miquel, On Fri, Oct 25, 2019 at 2:55 PM Miquel Raynal wrote: > > Hi Jagan, > > Jagan Teki wrote on Fri, 25 Oct 2019 > 14:44:38 +0530: > > > On Thu, Oct 3, 2019 at 11:21 PM Miquel Raynal > > wrote: > > > > > > The 'sf' command is not supposed to rely on the MTD stack, but both > > > 'sf' and

Re: [U-Boot] [PATCH] video: bmp: check coordinates of bitmap

2019-10-25 Thread Heinrich Schuchardt
On 10/25/19 11:21 AM, Yannick Fertré wrote: > If the coordinates are bigger than the size of > the panel then errors appear when calculating axis alignment > and the copy of bitmap is done outside of framebuffer. > > Signed-off-by: Yannick Fertré > --- > drivers/video/video_bmp.c | 13 +++

Re: [U-Boot] [PATCH v5 01/15] video: bmp: check resolutions of panel/bitmap

2019-10-25 Thread Heinrich Schuchardt
On 10/25/19 9:43 AM, Patrice CHOTARD wrote: > Hi Heinrich > > On 10/24/19 10:43 PM, Heinrich Schuchardt wrote: >> On 10/24/19 4:05 PM, Patrice CHOTARD wrote: >>> Hi Heinrich, all >>> >>> On 10/7/19 7:34 PM, Heinrich Schuchardt wrote: On 10/7/19 3:29 PM, Yannick Fertré wrote: > If the size

Re: [U-Boot] [PATCH v1 4/4] test: Add tests for the multiplexer framework

2019-10-25 Thread Jean-Jacques Hiblot
Hi Tom, On 25/10/2019 01:45, Tom Rini wrote: On Wed, Oct 02, 2019 at 02:47:49PM +0200, Jean-Jacques Hiblot wrote: Provide tests to check the behavior of the multiplexer framework. The test uses a mmio-based multiplexer. Signed-off-by: Jean-Jacques Hiblot These tests don't pass (with all of

Re: [U-Boot] [PATCH v5 24/26] cmd: nand/sf: isolate legacy code

2019-10-25 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Fri, 25 Oct 2019 14:57:36 +0530: > Hi Miquel, > > On Fri, Oct 25, 2019 at 2:55 PM Miquel Raynal > wrote: > > > > Hi Jagan, > > > > Jagan Teki wrote on Fri, 25 Oct 2019 > > 14:44:38 +0530: > > > > > On Thu, Oct 3, 2019 at 11:21 PM Miquel Raynal > > > wrote:

Re: [U-Boot] [PATCH v4 2/4] arm: socfpga: Convert reset manager from struct to defines

2019-10-25 Thread Simon Goldschmidt
On Fri, Oct 25, 2019 at 11:17 AM Ley Foon Tan wrote: > > On Wed, Oct 23, 2019 at 2:11 AM Simon Goldschmidt > wrote: > > > > Am 10.10.2019 um 09:37 schrieb Ley Foon Tan: > > > Convert reset manager for Gen5, Arria 10 and Stratix 10 from struct > > > to defines. > > > > > > Change to get reset mana

Re: [U-Boot] [PATCH 4/5] dm: regmap: Fix mask in regmap_update_bits()

2019-10-25 Thread Jean-Jacques Hiblot
On 12/10/2019 00:16, Simon Glass wrote: This function assumes that the 'val' parameter has no masked bits set. This is not defined by the function prototype though. Fix the function to mask the value and update the documentation. Signed-off-by: Simon Glass --- drivers/core/regmap.c | 2 +-

Re: [U-Boot] [PATCH v5 24/26] cmd: nand/sf: isolate legacy code

2019-10-25 Thread Jagan Teki
On Fri, Oct 25, 2019 at 3:06 PM Miquel Raynal wrote: > > Hi Jagan, > > Jagan Teki wrote on Fri, 25 Oct 2019 > 14:57:36 +0530: > > > Hi Miquel, > > > > On Fri, Oct 25, 2019 at 2:55 PM Miquel Raynal > > wrote: > > > > > > Hi Jagan, > > > > > > Jagan Teki wrote on Fri, 25 Oct 2019 > > > 14:44:38

[U-Boot] [PATCH V4 5/6] net: fec_mxc: support i.MX8M with CLK_CCF

2019-10-25 Thread Peng Fan
Add more clks for fec_mxc according to Linux Kernel 5.4.0-rc1 drivers/net/ethernet/freescale/fec_main.c. Since i.MX8MQ not support CLK_CCF, so add a check to restrict the code only effect when CONFIG_IMX8M and CONFIG_CLK_CCF both defined. Reviewed-by: Frieder Schrempf Signed-off-by: Peng Fan --

[U-Boot] [PATCH v2 00/17] import x509/pkcs7 parsers from linux

2019-10-25 Thread AKASHI Takahiro
# This patch set should be merged first prior to my rsa extension patch # due to some dependency. I plan to send out a new version of rsa # extension next week. Asn1 parsers of x509 certificates and pkcs7 messages are required to implement image authentication and variable authentication as part o

[U-Boot] [PATCH v2 04/17] lib: add mktime64() for linux compatibility

2019-10-25 Thread AKASHI Takahiro
This function will be used in lib/crypto/x509_cert_parser.c, which will also be imported from linux code in a later commit. Signed-off-by: AKASHI Takahiro --- include/linux/time.h | 10 ++ lib/date.c | 20 2 files changed, 30 insertions(+) diff --git a/in

[U-Boot] [PATCH v2 03/17] rtc: move date.c from drivers/rtc/ to lib/

2019-10-25 Thread AKASHI Takahiro
In the next commit, rtc_mktime(), for compatibility with linux, will be implemented using rtc_mktime(), which is no longer drivers/rtc specific. So move this file under lib/. Signed-off-by: AKASHI Takahiro --- cmd/Kconfig | 1 + drivers/rtc/Kconfig | 1 + drivers/rtc/Make

[U-Boot] [PATCH v2 01/17] linux_compat: move kmemdup() from ubifs.c to linux_compat.c

2019-10-25 Thread AKASHI Takahiro
linux_compat.c is the best place for kmemdup(), which is currenly used only in ubifs.c, but will also be used when other kernel files (in my case, lib/crypto/x509_cert_parser.c and pkcs7_parser.c) will be imported. So just move it. Signed-off-by: AKASHI Takahiro --- fs/ubifs/ubifs.c | 19 +

[U-Boot] [PATCH v2 06/17] linux/time.h: include vsprintf.h

2019-10-25 Thread AKASHI Takahiro
Without this commit, time.h possibly causes a build error as asctime_r() uses sprintf(). Signed-off-by: AKASHI Takahiro --- include/linux/time.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/time.h b/include/linux/time.h index dc9344a6d97b..702dd276aea5 100644 --- a/include/l

[U-Boot] [PATCH v2 02/17] rtc.h: add struct udevice declaration

2019-10-25 Thread AKASHI Takahiro
Without this change, including rtc.h solely will cause a build error. Signed-off-by: AKASHI Takahiro --- include/rtc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/rtc.h b/include/rtc.h index 7386d52db1d7..8aabfc1162a4 100644 --- a/include/rtc.h +++ b/include/rtc.h @@ -18,6 +18,

[U-Boot] [PATCH v2 07/17] cmd: add asn1_compiler

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: asn1.h without changes asn1_ber_bytecode.h without changes asn1_decoder.h without changes asn1_compiler.c without changes This host command will be used to create a ASN1 parser, for example, for pkcs7 messages or x509 certificates. More specifically, it will ge

[U-Boot] [PATCH v2 05/17] include: kernel.h: include printk.h

2019-10-25 Thread AKASHI Takahiro
Adding "printk.h" will help improve portability from linux kernel code (in my case, lib/asn1_decoder.c and others) where printf and pr_* variant functions are used. Signed-off-by: AKASHI Takahiro --- include/linux/kernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inclu

[U-Boot] [PATCH v2 08/17] Makefile: add build script for asn1 parsers

2019-10-25 Thread AKASHI Takahiro
This rule will be used to build x509 and pkcs7 parsers. Signed-off-by: AKASHI Takahiro --- Makefile | 1 + scripts/Makefile.build | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 54da5cd51cea..66ef4503e606 100644 --- a/Makefile +++ b

[U-Boot] [PATCH v2 10/17] doc: add README for asn1 compiler and decoder

2019-10-25 Thread AKASHI Takahiro
This document gives a brief description about ASN1 compiler as well as ASN1 decoder. Signed-off-by: AKASHI Takahiro --- doc/README.asn1 | 40 1 file changed, 40 insertions(+) create mode 100644 doc/README.asn1 diff --git a/doc/README.asn1 b/doc/README.a

[U-Boot] [PATCH v2 13/17] lib: crypto: add rsa public key parser

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: rsapubkey.asn1 without changes rsa.h without changes rsa_helper.c with changes marked as __UBOOT__ Signed-off-by: AKASHI Takahiro --- include/crypto/internal/rsa.h | 57 ++ lib/crypto/Kconfig| 11 ++ lib/crypto/Makefile | 11 ++ l

Re: [U-Boot] [PATCH 1/1] dwc3-generic: Don't fail probe if clk/reset entries are absent

2019-10-25 Thread Sam Protsenko
Hi Vignesh, On Fri, Oct 25, 2019 at 11:17 AM Vignesh Raghavendra wrote: > > Some boards don't populate clk/reset entries as these are are optional > as per binding documentation. Therefore, don't fail driver probe if > clk/reset entries are absent in DT. > > This fixes fastboot failures seen due

[U-Boot] [PATCH v2 12/17] lib: crypto: add public key utility

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: asymmetric-type.h with changes marked as __UBOOT__ asymmetric_type.c with changes marked as __UBOOT__ public_key.h with changes marked as __UBOOT__ public_key.c with changes marked as __UBOOT__ Signed-off-by: AKASHI Takahiro --- include/crypto/public_key.h

[U-Boot] [PATCH v2 09/17] lib: add asn1 decoder

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: lib/asn1_decoder.c with changes marked as __UBOOT__ Signed-off-by: AKASHI Takahiro --- lib/Kconfig| 5 + lib/Makefile | 1 + lib/asn1_decoder.c | 527 + 3 files changed, 533 insertions(+) create mode

[U-Boot] [PATCH v2 16/17] test: add lib specific Kconfig

2019-10-25 Thread AKASHI Takahiro
Adding new unit tests for library routines will make test/Kconfig messy. So just create a Kconfig file under lib. Signed-off-by: AKASHI Takahiro --- test/Kconfig | 8 +--- test/lib/Kconfig | 7 +++ 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 test/lib/Kconfig

[U-Boot] [PATCH v2 11/17] lib: add oid registry utility

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: build_OID_registry without changes oid_registry.h without changes oid_registry.c with changes marked as __UBOOT__ Signed-off-by: AKASHI Takahiro --- include/linux/oid_registry.h | 117 lib/Kconfig | 5 + lib/Makefile

[U-Boot] [PATCH v2 15/17] lib: crypto: add pkcs7 message parser

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: pkcs7.asn1 without changes pkcs7.h with changes marked as __UBOOT__ pkcs7_parser.h without changes pkcs7_parser.c with changes marked as __UBOOT__ Signed-off-by: AKASHI Takahiro --- include/crypto/pkcs7.h| 47 +++ lib/crypto/Kconfig| 10 + lib/c

[U-Boot] [PATCH v2 14/17] lib: crypto: add x509 parser

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: x509.asn1 without changes x509_akid.asn1 without changes x509_parser.h without changes x509_cert_parser.c with changes marked as __UBOOT__ x509_public_key.c with changes marked as __UBOOT__ Signed-off-by: AKASHI Takahiro --- lib/Kconfig |

[U-Boot] [PATCH 1/6] arm: rockchip: Add RK3308 SOC support

2019-10-25 Thread Andy Yan
RK3308 is a quad Cortex A35 based SOC with rich audio interfaces(I2S/PCM/TDM/PDM/SPDIF/VAD/HDMI ARC), which designed for intelligent voice interaction and audio input/output processing. Signed-off-by: Andy Yan --- arch/arm/include/asm/arch-rk3308/boot0.h | 11 + arch/arm/include/asm/arch

[U-Boot] [PATCH 3/6] arm: dts: rockchip: Add dts for rk3308 evb

2019-10-25 Thread Andy Yan
Add dts for rk3308 evb, sync from the linux kernel upstream list [0]. [0]https://patchwork.kernel.org/patch/11201555/ Signed-off-by: Andy Yan --- arch/arm/dts/Makefile |3 + arch/arm/dts/rk3308-evb-u-boot.dtsi | 17 + arch/arm/dts/rk3308-evb.dts | 230 arch/ar

[U-Boot] [PATCH 0/6] Add support for RK3308 SOC

2019-10-25 Thread Andy Yan
RK3308 is a quad Cortex A35 based SOC with rich audio interfaces(I2S/PCM/TDM/PDM/SPDIF/VAD/HDMI ARC), which designed for intelligent voice interaction and audio input/output processing. This path set add basic support for it, test with a emmc board. More boards support such as Firefly ROC-RK3308

Re: [U-Boot] [PATCH 1/1] dwc3-generic: Don't fail probe if clk/reset entries are absent

2019-10-25 Thread Sam Protsenko
+ Praneeth On Fri, Oct 25, 2019 at 1:08 PM Sam Protsenko wrote: > > Hi Vignesh, > > On Fri, Oct 25, 2019 at 11:17 AM Vignesh Raghavendra wrote: > > > > Some boards don't populate clk/reset entries as these are are optional > > as per binding documentation. Therefore, don't fail driver probe if >

[U-Boot] [PATCH 1/1] blk: set log2blksz in blk_create_device()

2019-10-25 Thread Heinrich Schuchardt
The ext4 file system requires log2blksz to be set. So when setting the block size on the block descriptor we should fill this field too. This fixes a problem with EFI block devices providing ext4 partitions, cf. https://lists.denx.de/pipermail/u-boot/2019-October/387702.html. Signed-off-by: Heinr

[U-Boot] [PATCH v2 17/17] test: add asn1 unit test

2019-10-25 Thread AKASHI Takahiro
This test will exercise asn1 compiler as well as asn1 decoder functions via various parsers. Signed-off-by: AKASHI Takahiro --- test/lib/Kconfig | 18 ++- test/lib/Makefile | 2 + test/lib/asn1.c | 392 ++ 3 files changed, 411 insertions(+), 1 de

[U-Boot] [PATCH 2/6] rockchip: clk: Add clk driver for rk3308

2019-10-25 Thread Andy Yan
From: Finley Xiao Add clk controller driver for RK3308 SOC. Signed-off-by: Andy Yan --- drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk_rk3308.c | 1078 include/dt-bindings/clock/rk3308-cru.h | 387 + 3 files changed, 1466 inser

[U-Boot] [PATCH 4/6] board: rockchip: Add rk3308 evb support

2019-10-25 Thread Andy Yan
Add support for rk3308 evaluation board. Signed-off-by: Andy Yan --- arch/arm/mach-rockchip/rk3308/Kconfig | 8 +++ board/rockchip/evb_rk3308/Kconfig | 15 + board/rockchip/evb_rk3308/MAINTAINERS | 6 ++ board/rockchip/evb_rk3308/Makefile | 7 +++ board/rockchip/evb_rk3308/evb

[U-Boot] [PATCH 5/6] rockchip: rk3308: Add sdram driver

2019-10-25 Thread Andy Yan
A dm based dram driver for rk3308 u-boot to get capacity. Signed-off-by: Andy Yan --- drivers/ram/rockchip/Makefile | 1 + drivers/ram/rockchip/sdram_rk3308.c | 55 + 2 files changed, 56 insertions(+) create mode 100644 drivers/ram/rockchip/sdram_rk3308.c di

[U-Boot] [PATCH 6/6] rockchip: mkimage: add support for RK3308

2019-10-25 Thread Andy Yan
Usage: (1) tools/mkimage -n rk3308 -T rksd -d tpl/u-boot-tpl.bin idbloader.img (2) cat spl/u-boot-spl.bin >> idbloader.img (3) upgrade_tool wl 0x40 idbloader.img Note: When use a ddr binary from rkbin as tpl, use it replace u-boot-tpl.bin in (1) Signed-off-by: Andy Yan --- tools/rkcommon

[U-Boot] [PULL] u-boot-usb/master

2019-10-25 Thread Marek Vasut
The following changes since commit 680023c5fab6b1777c0c6f2e76e5d2effb7903a0: Merge tag 'u-boot-stm32-2019-10-23' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm (2019-10-23 14:04:02 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetc

Re: [U-Boot] [PATCH] usb: composite: add BOS descriptor support to composite framework

2019-10-25 Thread Roger Quadros
On 24/10/2019 18:44, Jean-Jacques Hiblot wrote: + Vignesh and Roger On 24/10/2019 13:22, Michal Simek wrote: po 14. 10. 2019 v 14:52 odesílatel Michal Simek napsal: From: T Karthik Reddy To add usb-3.0 support to peripheral device add BOS & SS capability descriptors to gadget composite fr

[U-Boot] RK3399 NanoPI-M4 boot issues

2019-10-25 Thread robert
I'm trying to build a linux from source on a RK3399 nanopi-m4. I did the below steps:   *###  Download and compile ARM-TF ### *$ git clone https://github.com/ARM-software/arm-trusted-firmware.git $ make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 bl31   *### Download and complie U-Boot ### *$ cd .

Re: [U-Boot] [PATCH 01/14] net: eth-uclass: eth_get_dev based on SEQ_ALIAS instead of probe order

2019-10-25 Thread Tom Rini
On Tue, Aug 06, 2019 at 04:08:31PM +0530, Keerthy wrote: > In case of multiple eth interfaces currently eth_get_dev > fetches the device based on the probe order which can be > random hence try with the alias. > > Signed-off-by: Keerthy > --- > net/eth-uclass.c | 4 ++-- > 1 file changed, 2 ins

[U-Boot] [PATCH] Makefile: fix dependency for imx targets

2019-10-25 Thread Heiko Schocher
imx targets are defined in arch/arm/mach-imx/Makefile. Some of them are dependent on targets defined in main Makefile. For the Makefile in arch/arm/mach-imx this targets must be finished before the imx targets are build, if not you get for example the error: make -f /home/hs/abb/mainlining/u-boot/

Re: [U-Boot] [PATCH] sunxi: set PIO voltage to hardware-detected value on startup on H6

2019-10-25 Thread Ondřej Jirman
Hi, On Wed, Apr 24, 2019 at 01:44:12PM +0800, Icenowy Zheng wrote: > The Allwinner H6 SoC has a register to set the PIO banks' voltage. When > it mismatches the real voltage supplied to the VCC to the PIO supply, > the PIO will work improperly. > > The PIO controller also has a register that cont

Re: [U-Boot] [PATCH v5 00/19] efi_loader: non-volatile variables support

2019-10-25 Thread Wolfgang Denk
Dear Takahiro, In message <20191025075645.gj10...@linaro.org> you wrote: > > I won't and cannot make replies on every comment that you gave me > below because we are very different at some basic points and > other comments are just details. Can you please at least comment on the size impact? How

Re: [U-Boot] [PATCH 3/3] board: tbs2910: Convert eth to driver model

2019-10-25 Thread Fabio Estevam
Hi Soeren, On Tue, Oct 15, 2019 at 11:11 AM Soeren Moch wrote: > The build system still complaints about missing DM_VIDEO conversion for > this board. Are there any examples available, where i.MX6Q boards with > HDMI output are converted to DM_VIDEO? Yes, please check wandboard for an example.

[U-Boot] [PATCH v2] spl: fix SPI config dependencies

2019-10-25 Thread Simon Goldschmidt
As SPL_SPI_FLASH_SUPPORT cannot work without SPL_SPI_SUPPORT, fix dependencies to prevent enabling SPI flash support without basic SPI support. Signed-off-by: Simon Goldschmidt --- Changes in v2: - move SYS_SPI_U_BOOT_OFFS out of the SPL_SPI_FLASH_SUPPORT guard since that broke sunxi SPL (whic

Re: [U-Boot] Cavium/Marvell Octeon Support

2019-10-25 Thread Daniel Schwierzeck
Hi Aaron, Am 23.10.19 um 05:50 schrieb Aaron Williams: > Hi all, > > I have been tasked with porting our Octeon U-Boot to the latest U-Boot > and merging it upstream. This will involve a very significant amount of > code that generally will not be compatible with other MIPS processors > due to ou

Re: [U-Boot] [PATCH 1/1] dwc3-generic: Don't fail probe if clk/reset entries are absent

2019-10-25 Thread Marek Vasut
On 10/25/19 10:18 AM, Vignesh Raghavendra wrote: > Some boards don't populate clk/reset entries as these are are optional > as per binding documentation. Therefore, don't fail driver probe if > clk/reset entries are absent in DT. > > This fixes fastboot failures seen due to enabling of CONFIG_CLK

Re: [U-Boot] [PATCH v2 16/17] test: add lib specific Kconfig

2019-10-25 Thread Tom Rini
On Fri, Oct 25, 2019 at 07:07:48PM +0900, AKASHI Takahiro wrote: > Adding new unit tests for library routines will make test/Kconfig > messy. So just create a Kconfig file under lib. > > Signed-off-by: AKASHI Takahiro > --- > test/Kconfig | 8 +--- > test/lib/Kconfig | 7 +++ > 2 fil

Re: [U-Boot] [RESEND PATCH v2 12/13] davinci: omapl138-lcdk: enable driver-model in SPL

2019-10-25 Thread Bartosz Golaszewski
czw., 26 wrz 2019 o 01:21 Faiz Abbas napisał(a): > > Hi, > > On 29/07/19 12:28 PM, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Enable CONFIG_SPL_DM and enable the driver model for serial by defining > > an appropriate device in the board file for da850-lcdk. > > > > This brea

Re: [U-Boot] [PATCH] Makefile: fix dependency for imx targets

2019-10-25 Thread Tom Rini
On Fri, Oct 25, 2019 at 02:46:54PM +0200, Heiko Schocher wrote: > imx targets are defined in arch/arm/mach-imx/Makefile. > Some of them are dependent on targets defined in main > Makefile. For the Makefile in arch/arm/mach-imx this > targets must be finished before the imx targets are > build, if

Re: [U-Boot] [PATCH 01/14] net: eth-uclass: eth_get_dev based on SEQ_ALIAS instead of probe order

2019-10-25 Thread keerthy
On 10/25/2019 5:35 PM, Tom Rini wrote: On Tue, Aug 06, 2019 at 04:08:31PM +0530, Keerthy wrote: In case of multiple eth interfaces currently eth_get_dev fetches the device based on the probe order which can be random hence try with the alias. Signed-off-by: Keerthy --- net/eth-uclass.c |

Re: [U-Boot] [RESEND PATCH v2 12/13] davinci: omapl138-lcdk: enable driver-model in SPL

2019-10-25 Thread Rizvi, Mohammad Faiz Abbas
Hi Barotz, On 10/25/2019 9:40 PM, Bartosz Golaszewski wrote: > czw., 26 wrz 2019 o 01:21 Faiz Abbas napisał(a): >> >> Hi, >> >> On 29/07/19 12:28 PM, Bartosz Golaszewski wrote: >>> From: Bartosz Golaszewski >>> >>> Enable CONFIG_SPL_DM and enable the driver model for serial by defining >>> an ap

[U-Boot] [PATCH] usb: ehci: add ehci max xfer size ehci config entry

2019-10-25 Thread Gilles DOFFE
Some USB sticks cannot handle SIZE_MAX bytes (65535) blocks transfer, leading to 'EHCI timed out on TD' errors. As it is hardly predictable, this commit adds a configuration option to easily reduce this EHCI max transfer size. The default value is 65535 which corresponds to size_t max value (SIZE_M

Re: [U-Boot] [PATCH] usb: composite: add BOS descriptor support to composite framework

2019-10-25 Thread T Karthik Reddy
Hi Vignesh, > -Original Message- > From: Vignesh Raghavendra > Sent: Friday, October 25, 2019 10:13 AM > To: Michal Simek ; u-boot@lists.denx.de; git > > Cc: Marek Vasut ; T Karthik Reddy > Subject: Re: [U-Boot] [PATCH] usb: composite: add BOS descriptor support to > composite framework

Re: [U-Boot] [PATCH v2 01/17] linux_compat: move kmemdup() from ubifs.c to linux_compat.c

2019-10-25 Thread Heinrich Schuchardt
On 10/25/19 12:07 PM, AKASHI Takahiro wrote: > linux_compat.c is the best place for kmemdup(), which is currenly used > only in ubifs.c, but will also be used when other kernel files > (in my case, lib/crypto/x509_cert_parser.c and pkcs7_parser.c) will be > imported. So just move it. > > Signed-off

Re: [U-Boot] [PATCH v5 24/26] cmd: nand/sf: isolate legacy code

2019-10-25 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Fri, 25 Oct 2019 15:16:38 +0530: > On Fri, Oct 25, 2019 at 3:06 PM Miquel Raynal > wrote: > > > > Hi Jagan, > > > > Jagan Teki wrote on Fri, 25 Oct 2019 > > 14:57:36 +0530: > > > > > Hi Miquel, > > > > > > On Fri, Oct 25, 2019 at 2:55 PM Miquel Raynal > > > w

[U-Boot] [PATCH v6 3/3] mtd: Makefile: deep cleanup

2019-10-25 Thread Miquel Raynal
Move MTD-related lines out of the root Makefile. Put them in their respective directories. Enclose some of these new lines to skip them when building the SPL. MTD core files and some MTD device drivers are compiled in a mtd.o object and included in the final object only if MTD support is required (

[U-Boot] [PATCH v6 0/3] End of the MTD makefile cleanup

2019-10-25 Thread Miquel Raynal
As rightfully pointed by Jagan, I should have dropped the dependency of cmd/sf.c and cmd/nand.c on mtd_uboot.c in patch 24/26 of the "MTD defconfigs/Kconfigs/Makefiles heavy cleanup" v5 series. Instead of sending the 40 patches again, here are only the last three patches with: * patch 1 (24/26) be

[U-Boot] [PATCH v6 2/3] cmd: make MTD commands depend on MTD

2019-10-25 Thread Miquel Raynal
Defconfigs have been fixed, now we can add proper dependencies in Kconfig. SPI FLASH is still not dependent on MTD (deeper rework needed). Signed-off-by: Miquel Raynal --- cmd/Kconfig | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 3

[U-Boot] [PATCH v6 1/3] cmd: nand/sf: isolate legacy code

2019-10-25 Thread Miquel Raynal
The 'sf' command is not supposed to rely on the MTD stack, but both 'sf' and 'nand' commands use helpers located in mtd_uboot.c. Despite their location, these functions do not depend at all on the MTD stack. This file (drivers/mtd/mtd_uboot.c) is only compiled if CONFIG_MTD is selected, which is i

Re: [U-Boot] [PATCH v2 07/41] board: ge: bx50v3: use imx wdt

2019-10-25 Thread Robert Beckett
On Wed, 2019-10-23 at 17:33 -0300, Fabio Estevam wrote: > On Wed, Oct 23, 2019 at 3:22 PM Robert Beckett > wrote: > > Enable DM imx WDT > > Enable SYSRESET_WATCHDOG to maintain WDT based reset ability > > > > Signed-off-by: Robert Beckett > > --- > > arch/arm/dts/imx6q-bx50v3.dts | 4 > >

Re: [U-Boot] [PATCH v2 14/41] board: ge: mx53ppd: use DM I2C

2019-10-25 Thread Robert Beckett
On Thu, 2019-10-24 at 09:21 -0300, Fabio Estevam wrote: > Hi Robert, > > On Wed, Oct 23, 2019 at 3:22 PM Robert Beckett > wrote: > > > + > > +&gpio1 { > > + u-boot,dm-pre-reloc; > > For these specific U-Boot properties it is recommended to place them > inside a specifc u-boot.dtsi file. >

Re: [U-Boot] [PATCH v2 36/41] serial: mxc: add imx53 and imx21 compatible string

2019-10-25 Thread Robert Beckett
On Wed, 2019-10-23 at 15:38 -0300, Fabio Estevam wrote: > On Wed, Oct 23, 2019 at 3:36 PM Robert Beckett > wrote: > > Add compatible string for imx53 and imx21. > > > > Signed-off-by: Robert Beckett > > --- > > drivers/serial/serial_mxc.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > dif

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

2019-10-25 Thread Tom Rini
On Fri, Oct 25, 2019 at 02:08:12PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > Summary: > - SPL_SPI_FLASH_MTD (Frieder) > - SPI NOR IDs' fixes, additions (Vignesh) > - cs_info change (Bin) > - Enable sunxi spi (Jagan) > > Travis-CI: > https://travis-ci.org/openedev/u-boot-am

Re: [U-Boot] [PATCH v2 36/41] serial: mxc: add imx53 and imx21 compatible string

2019-10-25 Thread Robert Beckett
On Thu, 2019-10-24 at 09:38 +0200, Lukasz Majewski wrote: > Hi Robert, > > > Add compatible string for imx53 and imx21. > > > > Signed-off-by: Robert Beckett > > --- > > drivers/serial/serial_mxc.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/serial/serial_mxc.c > >

Re: [U-Boot] [PATCH v2 00/41] convert GE boards to DM

2019-10-25 Thread Robert Beckett
On Thu, 2019-10-24 at 14:00 -0300, Fabio Estevam wrote: > On Wed, Oct 23, 2019 at 3:23 PM Robert Beckett > wrote: > > This patch series converts GE boards to use DM features. > > Most of the patches are GE board specific to modify the board code > > to > > use the DM drivers, or modify the device

Re: [U-Boot] [PATCH v6 1/1] cmd: env: extend "env [set|print] -e" to manage UEFI variables

2019-10-25 Thread Heinrich Schuchardt
On 10/24/19 8:17 AM, AKASHI Takahiro wrote: > With this patch, when setting UEFI variable with "env set -e" command, > we will be able to > - specify vendor guid with "-guid guid", > - specify variable attributes, BOOTSERVICE_ACCESS, RUNTIME_ACCESS, > respectively with "-bs" and "-rt", > - appen

Re: [U-Boot] [PATCH v1 2/3] lib: rsa: generate additional parameters for public key

2019-10-25 Thread Tom Rini
On Thu, Oct 24, 2019 at 03:36:07PM -0600, Simon Glass wrote: > Hi, > > On Tue, 22 Oct 2019 at 23:23, AKASHI Takahiro > wrote: > > > > On Mon, Oct 21, 2019 at 06:17:03PM -0600, Simon Glass wrote: > > > Hi Takahiro, > > > > > > On Tue, 8 Oct 2019 at 23:27, AKASHI Takahiro > > > wrote: > > > > > >

Re: [U-Boot] [PATCH v1 2/3] lib: rsa: generate additional parameters for public key

2019-10-25 Thread Simon Glass
Hi, On Fri, 25 Oct 2019 at 12:27, Tom Rini wrote: > > On Thu, Oct 24, 2019 at 03:36:07PM -0600, Simon Glass wrote: > > Hi, > > > > On Tue, 22 Oct 2019 at 23:23, AKASHI Takahiro > > wrote: > > > > > > On Mon, Oct 21, 2019 at 06:17:03PM -0600, Simon Glass wrote: > > > > Hi Takahiro, > > > > > > >

[U-Boot] [PATCH] dlmalloc: calloc: fix zeroing early allocations

2019-10-25 Thread Simon Goldschmidt
When full malloc is enabled and SYS_MALLOC_F is also enabled, the simple pre-reloc heap is used before relocation. In this case, calloc() uses the MALLOC_ZERO macro to zero out the allocated memory. However, since this macro is specially crafted for the dlmalloc implementation, it does not always w

Re: [U-Boot] [PATCH v2 36/41] serial: mxc: add imx53 and imx21 compatible string

2019-10-25 Thread Lukasz Majewski
Hi Robert, > On Thu, 2019-10-24 at 09:38 +0200, Lukasz Majewski wrote: > > Hi Robert, > > > > > Add compatible string for imx53 and imx21. > > > > > > Signed-off-by: Robert Beckett > > > --- > > > drivers/serial/serial_mxc.c | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --g

Re: [U-Boot] [PATCH v2] spl: fix SPI config dependencies

2019-10-25 Thread Lukasz Majewski
On Fri, 25 Oct 2019 16:22:09 +0200 Simon Goldschmidt wrote: > As SPL_SPI_FLASH_SUPPORT cannot work without SPL_SPI_SUPPORT, fix > dependencies to prevent enabling SPI flash support without basic SPI > support. > > Signed-off-by: Simon Goldschmidt > --- > > Changes in v2: > - move SYS_SPI_U_BOO

[U-Boot] [PULL] u-boot-mips

2019-10-25 Thread Daniel Schwierzeck
Hi Tom, please pull MIPS updates for 2020.01. Gitlab: https://gitlab.denx.de/u-boot/custodians/u-boot-mips/pipelines/1101 Travis CI: https://travis-ci.org/danielschwierzeck/u-boot/builds/602882075 The following changes since commit 17fd9915a4c639381804ed28274fa136ae3b0bee: Merge branch '2019

Re: [U-Boot] [GIT PULL] Xilinx patches for v2020.01 part 2

2019-10-25 Thread Tom Rini
On Fri, Oct 25, 2019 at 08:57:47AM +0200, Michal Simek wrote: > Hi Tom, > > this is the second pull request because I found a lot of stuff missing > in mainline. > I have also included one minor dtbo clean up because I have started to > use it to support different modules. And also very important

Re: [U-Boot] [PATCH 2/3] cmd: booti: Store OS start and end info in images structure

2019-10-25 Thread Tom Rini
On Mon, Oct 07, 2019 at 01:52:16PM +0530, Lokesh Vutla wrote: > Store the start and end of the OS image that is loaded in images > structure. > > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PULL] u-boot-atmel-2020.01-b

2019-10-25 Thread Tom Rini
On Fri, Oct 25, 2019 at 08:58:56AM +, eugen.hris...@microchip.com wrote: > Hi Tom, > > Please pull tag u-boot-atmel-2020.01-b , the second set of features and > fixes for the 2020.01 cycle. > > This feature set includes my work on a new tiny flexcom driver and > eeprom mac retrieval for th

Re: [U-Boot] [PATCH 3/3] ram: k3-am654: Do not rely on default values for certain DDR register

2019-10-25 Thread Tom Rini
On Mon, Oct 07, 2019 at 02:04:27PM +0530, Lokesh Vutla wrote: > From: James Doublesin > > Added the following registers to the DDR configuration: > - ACIOCR0, > - ACIOCR3, > - V2H_CTL_REG, > - DX8SLxDQSCTL. > > Modified enable_dqs_pd and disable_dqs_pd to only touch the associated > bit fields

Re: [U-Boot] [PULL] u-boot-usb/master

2019-10-25 Thread Tom Rini
On Fri, Oct 25, 2019 at 01:19:04PM +0200, Marek Vasut wrote: > The following changes since commit 680023c5fab6b1777c0c6f2e76e5d2effb7903a0: > > Merge tag 'u-boot-stm32-2019-10-23' of > https://gitlab.denx.de/u-boot/custodians/u-boot-stm (2019-10-23 14:04:02 > -0400) > > are available in the Gi

  1   2   >