Re: [U-Boot] [PATCH 1/4] mips: Add basic MediaTek MT7620/88 support

2018-08-11 Thread Daniel Schwierzeck
On 09.08.2018 16:22, Stefan Roese wrote: > diff --git a/arch/mips/mach-mt7620/cpu.c b/arch/mips/mach-mt7620/cpu.c > new file mode 100644 > index 00..0b22956499 > --- /dev/null > +++ b/arch/mips/mach-mt7620/cpu.c > @@ -0,0 +1,66 @@ > +//

Re: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-08-11 Thread Marek Vasut
On 08/11/2018 09:26 PM, Simon Goldschmidt wrote: > On Fri, Aug 10, 2018 at 10:32 PM Marek Vasut wrote: >> >> On 08/10/2018 10:11 PM, Simon Goldschmidt wrote: >>> On 10.08.2018 15:15, Marek Vasut wrote: On 08/10/2018 02:56 PM, Simon Goldschmidt wrote: > On 09.08.2018 23:57, Marek Vasut

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-11 Thread Adam Ford
On Sat, Aug 11, 2018, 1:24 PM Jagan Teki wrote: > On Sat, Aug 11, 2018 at 6:12 PM, Adam Ford wrote: > > On Fri, Aug 10, 2018 at 2:58 PM Adam Ford wrote: > >> > >> On Fri, Aug 10, 2018 at 7:42 AM Jagan Teki > wrote: > >> > > >> > On Fri, Aug 10, 2018 at 3:50 PM, Adam Ford > wrote: > >> > > On

Re: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-08-11 Thread Simon Goldschmidt
On Fri, Aug 10, 2018 at 10:32 PM Marek Vasut wrote: > > On 08/10/2018 10:11 PM, Simon Goldschmidt wrote: > > On 10.08.2018 15:15, Marek Vasut wrote: > >> On 08/10/2018 02:56 PM, Simon Goldschmidt wrote: > >>> On 09.08.2018 23:57, Marek Vasut wrote: > On 08/09/2018 09:17 PM, Simon Goldschmidt

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-11 Thread Jagan Teki
On Sat, Aug 11, 2018 at 6:12 PM, Adam Ford wrote: > On Fri, Aug 10, 2018 at 2:58 PM Adam Ford wrote: >> >> On Fri, Aug 10, 2018 at 7:42 AM Jagan Teki >> wrote: >> > >> > On Fri, Aug 10, 2018 at 3:50 PM, Adam Ford wrote: >> > > On Fri, Aug 10, 2018 at 12:14 AM Jagan Teki >> > > wrote: >> >

[U-Boot] Pull request: u-boot-staging

2018-08-11 Thread Anatolij Gustschin
Hi Tom, The following changes since commit a032e0a6aed208977f48e78d2cc497b91543beaf: travis: give every job a name (2018-08-10 13:50:30 -0400) are available in the git repository at: git://git.denx.de/u-boot-staging.git ag...@denx.de for you to fetch changes up to

[U-Boot] Please pull u-boot-video/master

2018-08-11 Thread Anatolij Gustschin
Hi Tom, The following changes since commit f05ebbf47a9dc863ff4bb084649ecb34d728b5f2: bcm968380gerg: Add MAINTAINERS file (2018-08-09 11:48:39 -0400) are available in the git repository at: git://git.denx.de/u-boot-video.git master for you to fetch changes up to

Re: [U-Boot] [PATCH v2] spi: Add SPI driver for MT76xx SoCs

2018-08-11 Thread Daniel Schwierzeck
On 10.08.2018 08:56, Stefan Roese wrote: > This patch adds the SPI driver for the MediaTek MT7688 SoC (and > derivates). Its been tested on the LinkIt Smart 7688 and the Gardena > Smart Gateway with and SPI NOR on CS0 and on the Gardena Smart > Gateway additionally with an SPI NAND on CS1. > >

Re: [U-Boot] [PATCH 1/3] pinctrl: bcm6838: add pinctrl support

2018-08-11 Thread Daniel Schwierzeck
On 10.08.2018 19:06, Philippe Reynes wrote: > Add pinctrl support for broadcom bcm6838 SoC. > > Signed-off-by: Philippe Reynes > --- > .../pinctrl/bcm6838-pinctrl.txt| 35 + > drivers/pinctrl/broadcom/Kconfig | 8 ++ >

[U-Boot] [PATCH 13/15] test: tests for utf_to_lower() utf_to_upper().

2018-08-11 Thread Heinrich Schuchardt
Provide unit tests for utf_to_lower() utf_to_upper(). Signed-off-by: Heinrich Schuchardt --- test/unicode_ut.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/test/unicode_ut.c b/test/unicode_ut.c index 8e8c4d189e..ae14fb0eff 100644 ---

[U-Boot] [PATCH 11/15] efi_loader: capitalization table

2018-08-11 Thread Heinrich Schuchardt
This patch provides a define to initialize a table that maps lower to capital letters for Unicode code point 0x - 0x. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS |1 + include/capitalization.h | 1909 ++ 2 files changed, 1910

[U-Boot] [PATCH 10/15] lib: charset: remove obsolete functions

2018-08-11 Thread Heinrich Schuchardt
Remove functions: - utf8_to_utf16() - utf16_strcpy() - utf16_strdup() Signed-off-by: Heinrich Schuchardt --- include/charset.h | 23 -- lib/charset.c | 79 --- 2 files changed, 102 deletions(-) diff --git a/include/charset.h

[U-Boot] [PATCH 09/15] efi_loader: buffer size for load options

2018-08-11 Thread Heinrich Schuchardt
The number of bytes in an utf-8 string is an upper limit for the number of words in the equivalent utf-16 string. In so far the inumbant coding works correctly. For non-ASCII characters the utf-16 string is shorter. With the patch only the necessary buffer size is allocated for the load options.

[U-Boot] [PATCH 04/15] test: unit tests for Unicode functions

2018-08-11 Thread Heinrich Schuchardt
Provide unit tests for Unicode functions. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS | 1 + include/test/suites.h | 3 +- test/Kconfig | 8 + test/Makefile | 1 + test/cmd_ut.c | 14 +- test/unicode_ut.c | 470

[U-Boot] [PATCH 12/15] lib: charset: upper/lower case conversion

2018-08-11 Thread Heinrich Schuchardt
Provide functions for upper and lower case conversion. Signed-off-by: Heinrich Schuchardt --- include/charset.h | 16 lib/charset.c | 41 + 2 files changed, 57 insertions(+) diff --git a/include/charset.h b/include/charset.h index

[U-Boot] [PATCH 08/15] efi_loader: don't use unlimited stack as buffer

2018-08-11 Thread Heinrich Schuchardt
The length of a string printed to the console by the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is not limited by the UEFI spec. Hence should not allocate a buffer for it on the stack. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_console.c | 20 +--- 1 file changed, 13

[U-Boot] [PATCH 15/15] efi_selftest: EFI_UNICODE_COLLATION_PROTOCOL

2018-08-11 Thread Heinrich Schuchardt
Provide a unit test for the EFI_UNICODE_COLLATION_PROTOCOL. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Makefile | 1 + .../efi_selftest_unicode_collation.c | 257 ++ 2 files changed, 258 insertions(+) create mode 100644

[U-Boot] [PATCH 14/15] efi_loader: EFI_UNICODE_COLLATION_PROTOCOL

2018-08-11 Thread Heinrich Schuchardt
The patch implements the EFI_UNICODE_COLLATION_PROTOCOL. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS| 2 + include/cp1250.h | 40 + include/cp437.h| 40 + include/efi_api.h | 21

[U-Boot] [PATCH 05/15] lib: vsprintf: correct printing of Unicode strings

2018-08-11 Thread Heinrich Schuchardt
The width and precision of the printf() function refer to the number of characters not to the number of bytes printed. Signed-off-by: Heinrich Schuchardt --- lib/vsprintf.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/lib/vsprintf.c

[U-Boot] [PATCH 02/15] efi_loader: rename utf16_strlen, utf16_strnlen

2018-08-11 Thread Heinrich Schuchardt
The function names utf16_strlen() and utf16_strnlen() are misnomers. The functions do not count utf-16 characters but non-zero words. So let's rename them to u16_strlen and u16_strnlen(). In utf16_dup() avoid assignment in if clause. Signed-off-by: Heinrich Schuchardt --- include/charset.h

[U-Boot] [PATCH 07/15] efi_loader: remove limit on variable length

2018-08-11 Thread Heinrich Schuchardt
The EFI spec does not provide a length limit for variables. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_variable.c | 52 --- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/lib/efi_loader/efi_variable.c

[U-Boot] [PATCH 06/15] test: test printing Unicode

2018-08-11 Thread Heinrich Schuchardt
Test printing of Unicode strings Signed-off-by: Heinrich Schuchardt --- test/unicode_ut.c | 37 + 1 file changed, 37 insertions(+) diff --git a/test/unicode_ut.c b/test/unicode_ut.c index 29316606c4..8e8c4d189e 100644 --- a/test/unicode_ut.c +++

[U-Boot] [PATCH 03/15] lib: charset: utility functions for Unicode

2018-08-11 Thread Heinrich Schuchardt
utf8_get() - get next UTF-8 code point from buffer utf8_put() - write UTF-8 code point to buffer utf8_utf16_strnlen() - length of a utf-8 string after conversion to utf-16 utf8_utf16_strncpy() - copy a utf-8 string to utf-16 utf16_get() - get next UTF-16 code point from buffer utf16_put() - write

[U-Boot] [PATCH 00/15] efi_loader: EFI_UNICODE_COLLATION_PROTOCOL

2018-08-11 Thread Heinrich Schuchardt
This patchset implements the EFI_UNICODE_COLLATION_PROTOCOL and provides unit tests. Additionally some errors when handling Unicode strings are fixed. * possible stack overflow * incorrect handling of precision attribute in printf() * incorrect limit on variable length Some old Unicode functions

[U-Boot] [PATCH 01/15] lib: build charset.o only if needed

2018-08-11 Thread Heinrich Schuchardt
charset.o is only needed for the EFI subsystem Signed-off-by: Heinrich Schuchardt --- lib/Makefile | 5 - lib/vsprintf.c | 12 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index 5f583aed37..2fd32798a0 100644 --- a/lib/Makefile

[U-Boot] [PATCH] ARM: configs: Add da850evm_nand to boot from NAND

2018-08-11 Thread Adam Ford
The DA850-EVM supports booting from NAND when used with the UI expander board. da850evm_nand will create an ais file that can be burned to NAND and booted while storing the env in NAND along with some partitions tables for storing kernel, dtb and rootfs in NAND. Signed-off-by: Adam Ford diff

Re: [U-Boot] [PATCH v3 1/8] drivers: Add AXI uclass

2018-08-11 Thread Anatolij Gustschin
Hi Mario, On Thu, 9 Aug 2018 14:51:16 +0200 Mario Six mario@gdsys.cc wrote: > Add a uclass for AXI (Advanced eXtensible Interface) busses, and a > driver for the gdsys IHS AXI bus on IHS FPGAs. > > Signed-off-by: Mario Six > Reviewed-by: Simon Glass > > --- > > v2 -> v3: > * Fixed the

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-11 Thread Simon Goldschmidt
Adam Ford schrieb am Sa., 11. Aug. 2018, 14:42: > On Fri, Aug 10, 2018 at 2:58 PM Adam Ford wrote: > > > > On Fri, Aug 10, 2018 at 7:42 AM Jagan Teki > wrote: > > > > > > On Fri, Aug 10, 2018 at 3:50 PM, Adam Ford wrote: > > > > On Fri, Aug 10, 2018 at 12:14 AM Jagan Teki < >

[U-Boot] [PATCH 1/1] fs: fix typo 'dumm'

2018-08-11 Thread Heinrich Schuchardt
%s/dumm /dummy / Signed-off-by: Heinrich Schuchardt --- fs/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs.c b/fs/fs.c index 33808d549e..cb68e81cd3 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -112,7 +112,7 @@ struct fstype_info { * Is it legal to pass NULL as

Re: [U-Boot] [PATCH v3] drivers: spi: migrate cf_spi to DM

2018-08-11 Thread Angelo Dureghello
Hi Jagan, On Tue, Aug 07, 2018 at 10:53:28AM +0530, Jagan Teki wrote: > On Fri, Jun 29, 2018 at 1:18 AM, Angelo Dureghello wrote: > > Hi Jagan, > > > > On Wed, Jun 27, 2018 at 02:54:42PM +0530, Jagan Teki wrote: > >> On Wed, Jun 27, 2018 at 2:27 PM, Angelo Dureghello wrote: > >> > Hi Jagan, >

Re: [U-Boot] [PATCH 03/17] fs: fat: make directory iterator global for write use

2018-08-11 Thread Heinrich Schuchardt
On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > Directory iterator was introduced in major re-work of read operation by > Rob. We want to use it for write operation extensively as well. > This patch makes relevant functions, as well as iterator defition, visible > outside of fat.c. > >

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-11 Thread Adam Ford
On Fri, Aug 10, 2018 at 2:58 PM Adam Ford wrote: > > On Fri, Aug 10, 2018 at 7:42 AM Jagan Teki wrote: > > > > On Fri, Aug 10, 2018 at 3:50 PM, Adam Ford wrote: > > > On Fri, Aug 10, 2018 at 12:14 AM Jagan Teki > > > wrote: > > >> > > >> On Wed, Aug 8, 2018 at 6:47 PM, Adam Ford wrote: > >

[U-Boot] [PATCH] ARM: da8xxevm: README: Add NOR booting instructions

2018-08-11 Thread Adam Ford
The da850evm with its UI expander board can boot XIP boot from NOR flash. This adds the instructions to the readme. file. Signed-off-by: Adam Ford diff --git a/board/davinci/da8xxevm/README.da850 b/board/davinci/da8xxevm/README.da850 index 519267e2f0..f24e8b5342 100644 ---

[U-Boot] [UBOOT PATCH 2/2] dm: core: Scan "/firmware" node by default

2018-08-11 Thread Rajan Vaja
All Linux firmware drivers are put under "/firmware" node and it has support to populate "/firmware" node by default. u-boot and Linux can share same DTB. In this case, driver probe for devices under "/firmware" will not be invoked as "/firmware" does not have its own "compatible" property. This

Re: [U-Boot] [PATCH v4 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-11 Thread Lukasz Majewski
Hi Jean-Jacques, > This series implements 2 fixes to be able to use USB Ethernet gadget > with the dwc3 driver. > It also adds new commands to bind/unbind a device to/from a driver and > update the 'dm tree' command to make it easier to use those new > commands. The bind/unbind commands can be

[U-Boot] [UBOOT PATCH 1/2] dm: core: Move "/clock" node scan into function

2018-08-11 Thread Rajan Vaja
Create separate function for scanning node by path and move "/clock" node scan code into that function. This will be usable if scanning of more node is required. Signed-off-by: Rajan Vaja --- drivers/core/root.c | 33 ++--- 1 file changed, 18 insertions(+), 15

[U-Boot] [UBOOT PATCH 0/2] dm: core: Scan "/firmware" node by default

2018-08-11 Thread Rajan Vaja
All Linux firmware drivers are put under "/firmware" node and it has support to populate "/firmware" node by default. u-boot and Linux can share same DTB. In this case, driver probe for devices under "/firmware" will not be invoked as "/firmware" does not have its own "compatible" property. This

Re: [U-Boot] BUG num banks 8 exceeds hardcoded limit 4

2018-08-11 Thread Lukasz Majewski
Hi Anand, > Hi Lukasz / Minkyu, > > Today I wanted to test the latest u-boot on my Odroid-XU4 > and I landed onto this bug and it failed to boot up. > > include/configs/odroid.h:#define CONFIG_NR_DRAM_BANKS 8 > include/configs/odroid_xu3.h:#define CONFIG_NR_DRAM_BANKS 8 > > seem to the

Re: [U-Boot] [PATCH 1/1] efi_selftest: correct block device unit test

2018-08-11 Thread Heinrich Schuchardt
On 07/22/2018 08:06 AM, Heinrich Schuchardt wrote: > The UEFI specification mandates that the create flag is only used in > conjunction with both the read and the write flag. > > Signed-off-by: Heinrich Schuchardt Hello Alex, please, add this patch to your v2018.09-rc2 pull request. Best

Re: [U-Boot] Converting to SPL_OF_CONTROL

2018-08-11 Thread Alex Kiernan
On Wed, Aug 1, 2018 at 11:41 AM Alex Kiernan wrote: > > I've long been trying to convert our board (AM3352) to all DM, after > knocking out lots of problems, I've run into one I can't seem to > configure my way around, when I enable SPL_OF_CONTROL. > > We have MMC2 as our boot device, with no