[U-Boot] [PATCH] arm: armv7m: clean up armv7m unified code compilation

2018-08-31 Thread Vikas Manocha
unified syntax should be selected by config ARM_ASM_UNIFIED Signed-off-by: Vikas Manocha --- arch/arm/include/asm/armv7m.h | 5 - arch/arm/lib/crt0.S | 4 +--- arch/arm/lib/relocate.S | 1 + arch/arm/lib/vectors_m.S | 2 +- 4 files changed, 3 insertions(+), 9 deletions(-

[U-Boot] [PATCH] arm: armv7m: remove un-necessary If then instruction

2018-08-31 Thread Vikas Manocha
With gas option -mimplicit-it=always, IT block is inserted by the assembler for thumb2. Signed-off-by: Vikas Manocha --- arch/arm/lib/crt0.S | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S index 0decce2..d7ff9f0 100644 --- a/arch/arm/lib/crt0.S +++

[U-Boot] [PATCH] arm: stm32: Remove redundant thumb build selection

2018-08-31 Thread Vikas Manocha
All armv7m arch builds are thumb & SYS_THUMB_BUILD is already selected by CPU_ARMV7M. Signed-off-by: Vikas Manocha --- arch/arm/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 8a23c76..b711605 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconf

Re: [U-Boot] Make kmalloc'ed memory really DMA-safe

2018-08-31 Thread Tom Rini
On Fri, Aug 24, 2018 at 07:30:15PM +0900, Masahiro Yamada wrote: > In Linux, the memory returned by kmalloc() is DMA-capable. > However, it is not true in U-Boot. > > At a glance, kmalloc() in U-Boot returns address aligned with > ARCH_DMA_MINALIGN. However, it never pads the allocated memory. >

Re: [U-Boot] spl: Kconfig: Fix typo in 'Upgrade'

2018-08-31 Thread Tom Rini
On Fri, Aug 31, 2018 at 10:02:28AM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > Correct the spelling of 'Upgrade'. > > Signed-off-by: Fabio Estevam Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-

Re: [U-Boot] [U-Boot, 1/1] test: fix typo in cmd_ut_category() description

2018-08-31 Thread Tom Rini
On Mon, Aug 27, 2018 at 10:04:10PM +0200, Heinrich Schuchardt wrote: > argc = 1: all tests are run > argc > 1: only argv[1] is run > > So we need argc >= 1. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description

Re: [U-Boot] [U-Boot, 1/1] hisilicon: hikey: Update instructions based on latest source

2018-08-31 Thread Tom Rini
On Wed, Aug 29, 2018 at 10:07:36AM +0530, Manivannan Sadhasivam wrote: > Update the HiKey board instructions based on the latest source > available. These instructions are derived from the ATF platform doc. > While updating the instructions, some comments on ATF issue has been > removed since it i

[U-Boot] [PATCH v2 13/17] efi_loader: capitalization table

2018-08-31 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 --- v2 add shorter tables for code pages 437 and 1250 --- MAINTAINERS |1 + include/capitalization.h | 2028 ++

[U-Boot] [PATCH v2 01/17] vsprintf.c: use #if CONFIG_IS_ENABLED(EFI_LOADER)

2018-08-31 Thread Heinrich Schuchardt
Using CONFIG_IS_ENABLED(EFI_LOADER) allows to simply the #if statements. Suggested-by: Alexander Graf Signed-off-by: Heinrich Schuchardt --- v2: new patch --- lib/vsprintf.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index

[U-Boot] [PATCH v2 12/17] lib: charset: remove obsolete functions

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

[U-Boot] [PATCH v2 16/17] efi_loader: EFI_UNICODE_COLLATION_PROTOCOL

2018-08-31 Thread Heinrich Schuchardt
The patch implements the EFI_UNICODE_COLLATION_PROTOCOL. Signed-off-by: Heinrich Schuchardt --- v2: add more comments --- MAINTAINERS| 2 + include/cp1250.h | 40 +++ include/cp437.h| 40 +++ include/efi_api.h

[U-Boot] [PATCH 14/17] lib: charset: upper/lower case conversion

2018-08-31 Thread Heinrich Schuchardt
Provide functions for upper and lower case conversion. Signed-off-by: Heinrich Schuchardt --- v2: add configuration switch EFI_UNICODE_CAPITALIZATION --- include/charset.h | 16 ++ lib/charset.c | 47 ++ lib/efi_loader/Kco

[U-Boot] [PATCH v2 11/17] efi_loader: buffer size for load options

2018-08-31 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. S

[U-Boot] [PATCH v2 06/17] test: unit tests for Unicode functions

2018-08-31 Thread Heinrich Schuchardt
Provide unit tests for Unicode functions. Signed-off-by: Heinrich Schuchardt --- v2: test handling of illegal Unicode sequences use ut_assert*() functions from test framework --- MAINTAINERS | 1 + include/test/suites.h | 3 +- lib/Makefile | 4 +- test/K

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

2018-08-31 Thread Heinrich Schuchardt
Provide unit tests for utf_to_lower() utf_to_upper(). Signed-off-by: Heinrich Schuchardt --- v2: use ut_assert*() for testing --- test/unicode_ut.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/test/unicode_ut.c b/test/unicode_ut.c index d0dbd7985a..

[U-Boot] [PATCH v2 05/17] lib: charset: utility functions for Unicode

2018-08-31 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

[U-Boot] [PATCH v2 17/17] efi_selftest: EFI_UNICODE_COLLATION_PROTOCOL

2018-08-31 Thread Heinrich Schuchardt
Provide a unit test for the EFI_UNICODE_COLLATION_PROTOCOL. Signed-off-by: Heinrich Schuchardt --- v2: avoid lines over 80 characters --- lib/efi_selftest/Makefile | 1 + .../efi_selftest_unicode_collation.c | 260 ++ 2 files changed, 261 in

[U-Boot] [PATCH v2 04/17] efi_loader: rename utf16_strlen, utf16_strnlen

2018-08-31 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 --- v2 add more com

[U-Boot] [PATCH v2 10/17] efi_loader: don't use unlimited stack as buffer

2018-08-31 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 --- v2 no change --- lib/efi_loader/efi_console.c | 20 +--- 1

[U-Boot] [PATCH v2 07/17] lib: vsprintf: correct printing of Unicode strings

2018-08-31 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 --- v2: use library function utf16_utf8_strncpy() for string16() --- lib/vsprintf.c | 13 - 1 file changed, 4 insertions(+

[U-Boot] [PATCH v2 09/17] efi_loader: remove limit on variable length

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

[U-Boot] [PATCH v2 02/17] test: print_ut.c use #if CONFIG_IS_ENABLED(EFI_LOADER)

2018-08-31 Thread Heinrich Schuchardt
Using CONFIG_IS_ENABLED(EFI_LOADER) allows to simply the #if statements. Suggested-by: Alexander Graf Signed-off-by: Heinrich Schuchardt --- v2 new patch --- test/print_ut.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/print_ut.c b/test/print_ut.c index

[U-Boot] [PATCH v2 08/17] test: test printing Unicode

2018-08-31 Thread Heinrich Schuchardt
Test printing of Unicode strings Signed-off-by: Heinrich Schuchardt --- v2 use ut_assert*() functions for testing test handling of illegal Unicode sequences --- test/unicode_ut.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/test

[U-Boot] [PATCH v2 00/17][RESENT] efi_loader: EFI_UNICODE_COLLATION_PROTOCOL

2018-08-31 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 v2 03/17] lib: build charset.o only if needed

2018-08-31 Thread Heinrich Schuchardt
charset.o is only needed for the EFI subsystem Signed-off-by: Heinrich Schuchardt --- v2 use CONFIG_IS_ENABLED(EFI_LOADER) instead of defined(CONFIG_EFI_LOADER) && !defined(CONFIG_SPL_BUILD) --- lib/Makefile | 5 - lib/vsprintf.c | 12 2 files changed, 12 inse

Re: [U-Boot] [PULL] Please pull u-boot-imx

2018-08-31 Thread Stefano Babic
On 31/08/2018 15:07, Tom Rini wrote: > On Fri, Aug 31, 2018 at 03:04:31PM +0200, Stefano Babic wrote: >> Hi Tom, >> >> please pull from u-boot-imx, thanks ! >> >> The following changes since commit 11ed312896c5f5814064c5d45dcb2f53dc121437: >> >> configs: am57xx: change default board name to beagl

Re: [U-Boot] [PULL] Please pull u-boot-imx

2018-08-31 Thread Otavio Salvador
On Fri, Aug 31, 2018 at 4:21 PM Stefano Babic wrote: > On 31/08/2018 20:53, Otavio Salvador wrote: > > On Fri, Aug 31, 2018 at 10:08 AM Tom Rini wrote: > >> On Fri, Aug 31, 2018 at 03:04:31PM +0200, Stefano Babic wrote: > >>> please pull from u-boot-imx, thanks ! > > > > We sent few patches for P

Re: [U-Boot] [PULL] Please pull u-boot-imx

2018-08-31 Thread Stefano Babic
Hi Otavio, On 31/08/2018 20:53, Otavio Salvador wrote: > Hello Stefano, > > On Fri, Aug 31, 2018 at 10:08 AM Tom Rini wrote: >> On Fri, Aug 31, 2018 at 03:04:31PM +0200, Stefano Babic wrote: >>> please pull from u-boot-imx, thanks ! > > We sent few patches for PICO and we'd like to get them mer

Re: [U-Boot] [PULL] Please pull u-boot-imx

2018-08-31 Thread Otavio Salvador
Hello Stefano, On Fri, Aug 31, 2018 at 10:08 AM Tom Rini wrote: > On Fri, Aug 31, 2018 at 03:04:31PM +0200, Stefano Babic wrote: > > please pull from u-boot-imx, thanks ! We sent few patches for PICO and we'd like to get them merged for next release if possible. Is it possible for you to review

Re: [U-Boot] [PATCH v3 2/3] efi_loader: ARM: run EFI payloads non-secure

2018-08-31 Thread Mark Kettenis
> From: Heinrich Schuchardt > Date: Fri, 31 Aug 2018 19:37:25 +0200 > > On 06/14/2018 12:41 AM, Mark Kettenis wrote: > > If desired (and possible) switch into HYP mode or non-secure SVC mode > > before calling the entry point of an EFI application. This allows > > U-Boot to provide a usable PSCI

Re: [U-Boot] [PATCH v3 2/3] efi_loader: ARM: run EFI payloads non-secure

2018-08-31 Thread Heinrich Schuchardt
On 06/14/2018 12:41 AM, Mark Kettenis wrote: > If desired (and possible) switch into HYP mode or non-secure SVC mode > before calling the entry point of an EFI application. This allows > U-Boot to provide a usable PSCI implementation and makes it possible > to boot kernels into hypervisor mode usi

Re: [U-Boot] u-boot release and feature set

2018-08-31 Thread Tom Rini
On Fri, Aug 31, 2018 at 04:45:41PM +, York Sun wrote: > On 08/31/2018 09:30 AM, Tom Rini wrote: > > On Fri, Aug 31, 2018 at 03:59:59PM +, York Sun wrote: > >> On 08/31/2018 08:49 AM, Tom Rini wrote: > >>> I really would appreciate the level of detail Linus' tree gets in signed > >>> commit

Re: [U-Boot] u-boot release and feature set

2018-08-31 Thread York Sun
On 08/31/2018 09:30 AM, Tom Rini wrote: > On Fri, Aug 31, 2018 at 03:59:59PM +, York Sun wrote: >> On 08/31/2018 08:49 AM, Tom Rini wrote: >>> I really would appreciate the level of detail Linus' tree gets in signed >>> commit messages being in the U-Boot tree too. No, it's not perfect and >>>

Re: [U-Boot] u-boot release and feature set

2018-08-31 Thread Tom Rini
On Fri, Aug 31, 2018 at 03:59:59PM +, York Sun wrote: > On 08/31/2018 08:49 AM, Tom Rini wrote: > > I really would appreciate the level of detail Linus' tree gets in signed > > commit messages being in the U-Boot tree too. No, it's not perfect and > > it does need someone to make it more diges

Re: [U-Boot] u-boot release and feature set

2018-08-31 Thread York Sun
On 08/31/2018 08:49 AM, Tom Rini wrote: > I really would appreciate the level of detail Linus' tree gets in signed > commit messages being in the U-Boot tree too. No, it's not perfect and > it does need someone to make it more digestible, but it's a good > starting point. And the people that do s

[U-Boot] [PATCH] dm: Update README.txt to clarify device tree usage

2018-08-31 Thread Tom Rini
In the section about Device Trees add a paragraph at the end that clarifies how we decide of a tree is valid or not. We say that all bindings must either be in the specification (link provided) or in our device-tree-bindings directory. We say that most of these come from the Linux Kernel and as s

Re: [U-Boot] u-boot release and feature set

2018-08-31 Thread Tom Rini
On Fri, Aug 31, 2018 at 03:46:29PM +, York Sun wrote: > On 08/28/2018 08:11 PM, Prabhakar Kushwaha wrote: > > Thanks Tom for responding, > > > >> -Original Message- > >> From: Tom Rini > >> Sent: Wednesday, August 29, 2018 7:28 AM > >> To: Prabhakar Kushwaha > >> Cc: u-boot@lists.den

Re: [U-Boot] u-boot release and feature set

2018-08-31 Thread York Sun
On 08/28/2018 08:11 PM, Prabhakar Kushwaha wrote: > Thanks Tom for responding, > >> -Original Message- >> From: Tom Rini >> Sent: Wednesday, August 29, 2018 7:28 AM >> To: Prabhakar Kushwaha >> Cc: u-boot@lists.denx.de >> Subject: Re: [U-Boot] u-boot release and feature set >> >> On Tue,

[U-Boot] [PATCH v7 07/13] mtd: uclass: add a generic 'mtdparts' parser

2018-08-31 Thread Miquel Raynal
The current parser is very specific to U-Boot mtdparts implementation. It does not use MTD structures like mtd_info and mtd_partition. Copy and adapt the current parser in drivers/mtd/mtd-uclass.c (to not break the current use of mtdparts.c itself) and write some kind of a wrapper around the curren

[U-Boot] [PATCH v7 04/13] cmd: mtdparts: accept spi-nand devices

2018-08-31 Thread Miquel Raynal
Let spi-nand devices be recognized by mtdparts. This is superfluous but a full mtdparts rework would be very time-consuming. Signed-off-by: Miquel Raynal Acked-by: Jagan Teki Reviewed-by: Boris Brezillon --- cmd/mtdparts.c | 13 - include/jffs2/load_kernel.h | 7 +

[U-Boot] [PATCH v7 12/13] cmd: ubi: clean the partition handling

2018-08-31 Thread Miquel Raynal
UBI should not mess with MTD partitions, now that the partitions are handled in a clean way, clean the ubi command and avoid using this uneeded extra-glue to reference the devices. Signed-off-by: Miquel Raynal --- cmd/Kconfig | 2 ++ cmd/ubi.c | 100 +++---

[U-Boot] [PATCH v7 10/13] cmd: mtd: add 'mtd' command

2018-08-31 Thread Miquel Raynal
There should not be a 'nand' command, a 'sf' command and certainly not a new 'spi-nand' command. Write a 'mtd' command instead to manage all MTD devices/partitions at once. This should be the preferred way to access any MTD device. Signed-off-by: Miquel Raynal Acked-by: Jagan Teki --- cmd/Kconf

[U-Boot] [PATCH v7 11/13] cmd: mtdparts: try to probe the MTD devices as a fallback

2018-08-31 Thread Miquel Raynal
Current implementation of mtdparts command errors out if the desired MTD device is not found. Fallback to the new probe function in this case before erroring out. This will the save the user the need to call something like 'mtd list' before mtdparts. Signed-off-by: Miquel Raynal Acked-by: Jagan

[U-Boot] [PATCH v7 05/13] cmd: mtdparts: remove mandatory 'mtdparts=' prefix

2018-08-31 Thread Miquel Raynal
All U-Boot users must define the mtdparts environment variable with: setenv mtdparts mtdparts=... While this may ease the partition declaration job to be passed to Linux, this is a pure software limitation and forcing this prefix is a complete non-sense. Let the user to declare manually the mtdpar

[U-Boot] [PATCH v7 09/13] mtd: mtdpart: implement proper partition handling

2018-08-31 Thread Miquel Raynal
Instead of collecting partitions in a flat list, create a hierarchy within the mtd_info structure: use a partitions list to keep track of the partitions of an MTD device (which might be itself a partition of another MTD device), a pointer to the parent device (NULL when the MTD device is the root o

[U-Boot] [PATCH v7 08/13] mtd: uclass: search for an equivalent MTD name with the mtdids

2018-08-31 Thread Miquel Raynal
Using an MTD device (resp. partition) name in mtdparts is simple and straightforward. However, for a long time already, another name was given in mtdparts to indicate a device (resp. partition) so the "mtdids" environment variable was created to do the match. Let's create a function that, from an

[U-Boot] [PATCH v7 06/13] mtd: uclass: add probe function

2018-08-31 Thread Miquel Raynal
The user might want to trigger the probe of any MTD device, export these functions so they can be called from a command source file. Signed-off-by: Miquel Raynal Acked-by: Jagan Teki --- drivers/mtd/mtd-uclass.c | 16 include/mtd.h| 2 ++ 2 files changed, 18 insert

[U-Boot] [PATCH v7 13/13] cmd: mtdparts: describe as legacy

2018-08-31 Thread Miquel Raynal
The 'mtdparts' command is not needed anymore. While the environment variable is still valid (and useful), the command has been replaced by 'mtd' which is much more close to the MTD stack and do not add its own specific glue. The 'mtdids' variable, only used by the 'mtdparts' command is also useless

[U-Boot] [PATCH v7 02/13] lib: strto: fix metric suffix parsing in strtoul[l]

2018-08-31 Thread Miquel Raynal
While 1kB or 1kiB will be parsed correctly, 1k will return the right amount, but the metric suffix will not be escaped once the char pointer updated. Fix this situation by simplifying the move of the endp pointer. Signed-off-by: Miquel Raynal --- lib/strto.c | 22 ++ 1 file c

[U-Boot] [PATCH v7 01/13] lib: strto: parse all lowercase metric prefixes in ustrtoul[l]

2018-08-31 Thread Miquel Raynal
Both ustrtoul and ustrtoull interpret 1k but not 1m or 1g. Even if the SI symbols for Mega and Giga are 'M' and 'G', certain entries of eg. mtdparts also use (wrongly) the metric prefix 'm' and 'g'. I do not see how parsing lowercase prefixes could break anything, so parse them like their uppercas

[U-Boot] [PATCH v7 03/13] mtd: Kconfig: remove MTD_PARTITIONS duplicated symbol

2018-08-31 Thread Miquel Raynal
MTD_PARTITIONS is declared twice. Remove the redundant entry with no help associated. Signed-off-by: Miquel Raynal --- drivers/mtd/Kconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index d98457e223..9341d518f3 100644 --- a/drivers/mtd/Kconfig

[U-Boot] [PATCH v7 00/13] Cleaner MTD devices management

2018-08-31 Thread Miquel Raynal
The introduction of the SPI-NAND framework and, more widely, the support of non parallel-NOR, parallel-NAND and SPI-NOR has shown that extending U-Boot MTD devices/partitions handling was not straightforward at all. While this first series [1] is a great step forward, it is not actually usable due

[U-Boot] [PATCH v2 3/3] arm: spear: fix enabling of SSP2 clock

2018-08-31 Thread Quentin Schulz
The SSP2 clock is at bit 6 in the register, so the value is 0x40 unlike the current 0x70 which enables the clock of UART2, SSP1 and SSP2. Signed-off-by: Quentin Schulz --- added in v2 @Stefan: I think you'd want to test the FPGA on x600 again as it's using this constant. Having worked on a syst

[U-Boot] [PATCH v2 1/3] spi: add support for ARM PL022 SPI controller

2018-08-31 Thread Quentin Schulz
This adds support for the ARM PL022 SPI controller for the standard variant (0x00041022) which has a 16bit wide and 8 locations deep TX/RX FIFO. A few parts were borrowed from the Linux kernel driver. Cc: Armando Visconti Cc: Vipin Kumar Signed-off-by: Quentin Schulz --- v2: - move header f

[U-Boot] [PATCH v2 2/3] arm: spear: enable SSP1, 2 and 3 clocks when SPI controller driver is built

2018-08-31 Thread Quentin Schulz
SPI controllers SSP1, 2 and 3 require to enable their respective clocks. Let's enable them only when the SPI controller driver is built. Signed-off-by: Quentin Schulz --- v2: - define and use constants for enabling SSP1/2/3 clocks when the controller is built arch/arm/cpu/arm926ejs/spear/c

[U-Boot] [PATCH] arm: spear: enable GPIO3 and 4 clocks when the GPIO controller driver is built

2018-08-31 Thread Quentin Schulz
There are multiple GPIOs that can be used with the same driver depending on the CONFIG_GPIO_BASE defined in the controller driver. GPIO3 and 4 require a clock to be enabled so let's enable them when the driver is built. Signed-off-by: Quentin Schulz --- arch/arm/cpu/arm926ejs/spear/cpu.c

Re: [U-Boot] [PULL] Please pull u-boot-imx

2018-08-31 Thread Tom Rini
On Fri, Aug 31, 2018 at 03:04:31PM +0200, Stefano Babic wrote: > Hi Tom, > > please pull from u-boot-imx, thanks ! > > The following changes since commit 11ed312896c5f5814064c5d45dcb2f53dc121437: > > configs: am57xx: change default board name to beagle_x15 (2018-08-26 > 12:26:16 -0400) > > ar

[U-Boot] [PULL] Please pull u-boot-imx

2018-08-31 Thread Stefano Babic
Hi Tom, please pull from u-boot-imx, thanks ! The following changes since commit 11ed312896c5f5814064c5d45dcb2f53dc121437: configs: am57xx: change default board name to beagle_x15 (2018-08-26 12:26:16 -0400) are available in the Git repository at: git://www.denx.de/git/u-boot-imx.git maste

[U-Boot] [PATCH] spl: Kconfig: Fix typo in 'Upgrade'

2018-08-31 Thread Fabio Estevam
From: Fabio Estevam Correct the spelling of 'Upgrade'. Signed-off-by: Fabio Estevam --- common/spl/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index b44b741..2e79d7d 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kco

[U-Boot] [PATCH] wandboard: README: Include the mx6qp variant in the list

2018-08-31 Thread Fabio Estevam
From: Fabio Estevam The mx6qp Wandboard variant is also supported, so add it to the list. Signed-off-by: Fabio Estevam --- board/wandboard/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/wandboard/README b/board/wandboard/README index 6345416..e5170bc 100644 --

Re: [U-Boot] [PATCH 0/2] Add Rock960 board support

2018-08-31 Thread Manivannan Sadhasivam
On Fri, Aug 31, 2018 at 09:27:25AM -0300, Ezequiel Garcia wrote: > On 31 August 2018 at 09:24, Manivannan Sadhasivam > wrote: > > On Fri, Aug 31, 2018 at 09:08:08AM -0300, Ezequiel Garcia wrote: > >> On 31 August 2018 at 07:56, Peter Robinson wrote: > >> >> On Thu, Aug 30, 2018 at 12:44:00AM -030

Re: [U-Boot] [PATCH 0/2] Add Rock960 board support

2018-08-31 Thread Ezequiel Garcia
On 31 August 2018 at 09:24, Manivannan Sadhasivam wrote: > On Fri, Aug 31, 2018 at 09:08:08AM -0300, Ezequiel Garcia wrote: >> On 31 August 2018 at 07:56, Peter Robinson wrote: >> >> On Thu, Aug 30, 2018 at 12:44:00AM -0300, Ezequiel Garcia wrote: >> >> > On 30 August 2018 at 00:00, Manivannan Sa

Re: [U-Boot] [Resend] [U-Boot, v4, 7/7] net: gmac_rockchip: Add handeling for RGMII_ID/RXID/TXID

2018-08-31 Thread David.Wu
Resend it for Undelivered Mail. 在 2018/8/31 19:54, David.Wu 写道: Hi Janine, This patch looks good. Thank you for adding rgmii-id/rxid/txid. Reviewed-by: David Wu 在 2018/8/28 14:25, Janine Hagemann 写道: Using PHY internal delays in combination with the phy-mode rgmii-id/rxid/txid was not possib

Re: [U-Boot] [PATCH 0/2] Add Rock960 board support

2018-08-31 Thread Manivannan Sadhasivam
On Fri, Aug 31, 2018 at 09:08:08AM -0300, Ezequiel Garcia wrote: > On 31 August 2018 at 07:56, Peter Robinson wrote: > >> On Thu, Aug 30, 2018 at 12:44:00AM -0300, Ezequiel Garcia wrote: > >> > On 30 August 2018 at 00:00, Manivannan Sadhasivam > >> > wrote: > >> > > Hi Ezequiel, > >> > > > >> > >

Re: [U-Boot] [PATCH v2 14/15] tee: optee: support AVB trusted application

2018-08-31 Thread Jens Wiklander
Hi Simon, On Wed, Aug 29, 2018 at 06:29:09PM -0600, Simon Glass wrote: > Hi Jens, > > On 23 August 2018 at 04:43, Jens Wiklander wrote: > > Adds configuration option OPTEE_TA_AVB and a header file describing the > > interface to the AVB trusted application provided by OP-TEE. > > What is AVB? C

Re: [U-Boot] [PATCH 0/2] Add Rock960 board support

2018-08-31 Thread Ezequiel Garcia
On 31 August 2018 at 07:56, Peter Robinson wrote: >> On Thu, Aug 30, 2018 at 12:44:00AM -0300, Ezequiel Garcia wrote: >> > On 30 August 2018 at 00:00, Manivannan Sadhasivam >> > wrote: >> > > Hi Ezequiel, >> > > >> > > On Wed, Aug 29, 2018 at 03:11:17AM -0300, Ezequiel Garcia wrote: >> > >> Hi Ma

[U-Boot] [PATCH 3/4] ARM: bootscript: Fix the nfsargs and addip in K+P's tpcboot.cmd

2018-08-31 Thread Lukasz Majewski
The quotes around ${bootargs} were missing as we elaborate those variables twice - once when we "setenv" the command and secondly when we "run" it. Without quotes we have just empty string in the second call. Moreover there is an issue with line breaks - as the original commands got truncated. Si

[U-Boot] [PATCH 4/4] ARM: bootscript: For nfsargs only use rootpath (and remove not needed serverip)

2018-08-31 Thread Lukasz Majewski
The serverip part is provided from DHCP server with 'option root-path "192.168.3.1:/srv/tftp/rootfs";' parameter in dhcpd.conf Signed-off-by: Lukasz Majewski --- board/k+p/bootscripts/tpcboot.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/k+p/bootscripts/tpcboot.c

[U-Boot] [PATCH 2/4] ARM: bootscript: Replace tftpboot with dhcp when downloading kernel

2018-08-31 Thread Lukasz Majewski
The 'dhcp' command is more versatile as it allows working with the DHCP server to obtain serverip, ipaddress and other network parameters. The configuration necessary to obtain the serverip (dhcpd.conf): option option-150 code 150 = ip-address; and in the subnet definition: option option-150

[U-Boot] [PATCH 1/4] ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd

2018-08-31 Thread Lukasz Majewski
The 'rootpath' can be provided by DHCP server. Removing this line prevents from overwriting it. To do that on the DHCP server side (isc-dhcp-server) modify dhcpd.conf and add 'option root-path "192.168.X.Y:/srv/tftp/rootfs";' Signed-off-by: Lukasz Majewski --- board/k+p/bootscripts/tpcboot.cmd

Re: [U-Boot] [U-Boot, v4, 6/7] net: gmac_rockchip: Fix a register write in rk3328_gmac_set_to_rgmii

2018-08-31 Thread David.Wu
Hi Janine, Thank you for the fix. 在 2018/8/28 14:25, Janine Hagemann 写道: We have to use RK3328_RXCLK_DLY_ENA_GMAC_ENABLE instead of RK3328_RXCLK_DLY_ENA_GMAC_MASK in rk3328_gmac_set_to_rgmii() to enable the RX delay. The MASK was used in a wrong way. Signed-off-by: Janine Hagemann Reviewed-by:

Re: [U-Boot] [U-Boot, v4, 7/7] net: gmac_rockchip: Add handeling for RGMII_ID/RXID/TXID

2018-08-31 Thread David.Wu
Hi Janine, This patch looks good. Thank you for adding rgmii-id/rxid/txid. Reviewed-by: David Wu 在 2018/8/28 14:25, Janine Hagemann 写道: Using PHY internal delays in combination with the phy-mode rgmii-id/rxid/txid was not possible. Only rgmii was supported. Now we can disable rockchip's gmac

Re: [U-Boot] [PATCH 0/2] Add Rock960 board support

2018-08-31 Thread Peter Robinson
> On Thu, Aug 30, 2018 at 12:44:00AM -0300, Ezequiel Garcia wrote: > > On 30 August 2018 at 00:00, Manivannan Sadhasivam > > wrote: > > > Hi Ezequiel, > > > > > > On Wed, Aug 29, 2018 at 03:11:17AM -0300, Ezequiel Garcia wrote: > > >> Hi Manivannan, > > >> > > >> On 21 August 2018 at 14:09, Maniva

[U-Boot] [PATCH] mmc: dw_mmc: set host_caps mmc modes to equivalent buswidth and lower

2018-08-31 Thread Jan Havran
dwmci_setup_cfg was clearing all modes except the mode equivalent to required bus width. Moreover, for buswidth = 1 was set the 4-bit mode. This sets host caps to all modes from 1-bit up to required mode. Signed-off-by: Jan Havran --- drivers/mmc/dw_mmc.c | 10 ++ 1 file changed, 6 inse

Re: [U-Boot] [PATCH v3 27/58] fastboot: sunxi: Update fastboot mmc default device

2018-08-31 Thread Maxime Ripard
On Mon, Aug 27, 2018 at 02:50:32PM +0530, Jagan Teki wrote: > On Wed, Aug 22, 2018 at 10:13 PM, Maxime Ripard > wrote: > > On Tue, Aug 21, 2018 at 10:27:38PM +0530, Jagan Teki wrote: > >> On Mon, Aug 20, 2018 at 5:14 PM, Maxime Ripard > >> wrote: > >> > On Sun, Aug 19, 2018 at 07:26:44PM +0530, J

[U-Boot] [PATCH] imx: missing CONFIG_MII in mx7dsabresd_qspi_defconfig

2018-08-31 Thread Stefano Babic
CONFIG_CMD_MII is set without CONFIG_MII, build is broken. Signed-off-by: Stefano Babic --- configs/mx7dsabresd_qspi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx7dsabresd_qspi_defconfig b/configs/mx7dsabresd_qspi_defconfig index a79880482f..53894e66f1 100644 --- a/co

Re: [U-Boot] [PATCH 0/2] Add Rock960 board support

2018-08-31 Thread Manivannan Sadhasivam
On Thu, Aug 30, 2018 at 12:44:00AM -0300, Ezequiel Garcia wrote: > On 30 August 2018 at 00:00, Manivannan Sadhasivam > wrote: > > Hi Ezequiel, > > > > On Wed, Aug 29, 2018 at 03:11:17AM -0300, Ezequiel Garcia wrote: > >> Hi Manivannan, > >> > >> On 21 August 2018 at 14:09, Manivannan Sadhasivam >

Re: [U-Boot] [RFC 1/3] test/py: convert fs-test.sh to pytest

2018-08-31 Thread Alexander Graf
> Am 31.08.2018 um 09:31 schrieb AKASHI Takahiro : > >> On Wed, Aug 29, 2018 at 11:36:51PM +0200, Heinrich Schuchardt wrote: >>> On 08/23/2018 09:25 AM, AKASHI Takahiro wrote: >>> In this commit, the same set of test cases as in test/fs/fs-test.sh >>> is provided using pytest framework. >>> Actu

Re: [U-Boot] [PATCH v2 11/15] configs: sandbox: enable CONFIG_TEE (TEE uclass)

2018-08-31 Thread Jens Wiklander
On Wed, Aug 29, 2018 at 06:29:02PM -0600, Simon Glass wrote: > On 23 August 2018 at 04:43, Jens Wiklander wrote: > > Signed-off-by: Jens Wiklander > > --- > > configs/sandbox64_defconfig| 1 + > > configs/sandbox_defconfig | 1 + > > configs/sandbox_flattree_defconfig | 1 + > >

Re: [U-Boot] [PATCH v2 10/15] sandbox: dt: add sandbox_tee node

2018-08-31 Thread Jens Wiklander
On Wed, Aug 29, 2018 at 06:28:59PM -0600, Simon Glass wrote: > On 23 August 2018 at 04:43, Jens Wiklander wrote: > > Adds a sandbox_tee node to enable the sandbox tee driver in all the > > sandbox dts files. > > > > Signed-off-by: Jens Wiklander > > --- > > arch/sandbox/dts/sandbox.dts | 4 +++

Re: [U-Boot] [PATCH v2 08/15] Documentation: tee uclass and op-tee driver

2018-08-31 Thread Jens Wiklander
Hi Simon, On Wed, Aug 29, 2018 at 06:28:54PM -0600, Simon Glass wrote: > Hi Jens, > > On 23 August 2018 at 04:43, Jens Wiklander wrote: > > Signed-off-by: Jens Wiklander > > --- > > doc/README.tee | 112 + > > 1 file changed, 112 insertions(+) >

Re: [U-Boot] [RFC 1/3] test/py: convert fs-test.sh to pytest

2018-08-31 Thread AKASHI Takahiro
On Wed, Aug 29, 2018 at 11:36:51PM +0200, Heinrich Schuchardt wrote: > On 08/23/2018 09:25 AM, AKASHI Takahiro wrote: > > In this commit, the same set of test cases as in test/fs/fs-test.sh > > is provided using pytest framework. > > Actually, fs-test.sh provides three variants:"sb" (sb command), "

Re: [U-Boot] [RFC 1/3] test/py: convert fs-test.sh to pytest

2018-08-31 Thread AKASHI Takahiro
Hi Tuomas, Thank you for interesting pointers. On Thu, Aug 30, 2018 at 01:56:41PM +0300, Tuomas Tynkkynen wrote: > Hi Heinrich, Takahiro > > On 08/30/2018 01:26 PM, AKASHI Takahiro wrote: > >On Thu, Aug 30, 2018 at 12:01:32PM +0200, Heinrich Schuchardt wrote: > >>On 08/30/2018 08:52 AM, AKASHI T

Re: [U-Boot] [PATCH v2 07/15] tee: add OP-TEE driver

2018-08-31 Thread Jens Wiklander
On Wed, Aug 29, 2018 at 06:28:51PM -0600, Simon Glass wrote: > Hi Jens, > > On 23 August 2018 at 04:43, Jens Wiklander wrote: > > Adds a OP-TEE driver. > > > > * Targets ARM and ARM64 > > * Supports using any u-boot memory as shared memory > > U-Boot > > Please use this consistent. Sorry, it s