Re: [U-Boot] [PATCH] arm: socfpga: fix CONFIG_SPL_MAX_SIZE (less than SRAM)

2018-05-15 Thread Simon Goldschmidt
On 14.05.2018 23:03, Marek Vasut wrote: On 05/14/2018 11:02 PM, Simon Goldschmidt wrote: The boot ROMs of the socfpga platform limit the size of the SPL to copy to less than the available SRAM. (See "Intel SoC FPGA Embedded Development Suite User Guide") According to this document, Cyclone V

Re: [U-Boot] [PATCH] ARM: socfpga: Put stack at the end of SRAM

2018-05-15 Thread Simon Goldschmidt
On 14.05.2018 22:43, Marek Vasut wrote: On 05/14/2018 09:43 PM, Simon Goldschmidt wrote: On 14.05.2018 17:51, Stefan Roese wrote: On 14.05.2018 11:06, Marek Vasut wrote: On 05/14/2018 11:01 AM, Simon Goldschmidt wrote: On 14.05.2018 10:17, Marek Vasut wrote: On 05/14/2018 10:03 AM, Sim

Re: [U-Boot] [PATCH v3 12/25] tpm: add TPM2_PCR_Read command support

2018-05-15 Thread Miquel Raynal
Hi Simon, On Wed, 2 May 2018 20:32:10 -0600, Simon Glass wrote: > Hi Miquel, > > On 2 May 2018 at 02:59, Miquel Raynal wrote: > > Add support for the TPM2_PCR_Read command. > > > > Change the command file and the help accordingly. > > > > Signed-off-by: Miquel Raynal > > --- > > cmd/tpm-v2.c

Re: [U-Boot] [PATCH 1/4] i2c: rcar_i2c: Remove the driver

2018-05-15 Thread Heiko Schocher
Hello Marek, Am 12.05.2018 um 23:15 schrieb Marek Vasut: Remove the rcar_i2c driver, since it's no longer used by any board and will be superseded by a DM and DT capable variant. Signed-off-by: Marek Vasut Cc: Heiko Schocher Cc: Nobuhiro Iwamatsu --- drivers/i2c/Makefile | 1 - driver

Re: [U-Boot] [PATCH V2 2/4] i2c: rcar_i2c: Add DM and DT capable I2C driver

2018-05-15 Thread Heiko Schocher
Hello Marek, Am 12.05.2018 um 23:15 schrieb Marek Vasut: Add derivative of the rcar_i2c driver which is capable of probing itself from DM and uses DT. Signed-off-by: Marek Vasut Cc: Heiko Schocher Cc: Nobuhiro Iwamatsu --- drivers/i2c/Kconfig| 6 + drivers/i2c/Makefile | 1 + d

Re: [U-Boot] [PATCH v3 13/25] tpm: add TPM2_GetCapability command support

2018-05-15 Thread Miquel Raynal
Hi Simon, On Wed, 2 May 2018 20:32:13 -0600, Simon Glass wrote: > Hi Miquel, > > On 2 May 2018 at 02:59, Miquel Raynal wrote: > > Add support for the TPM2_GetCapability command. > > > > Change the command file and the help accordingly. > > > > Signed-off-by: Miquel Raynal > > --- > > cmd/tpm

Re: [U-Boot] [PATCH v7 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

2018-05-15 Thread Jun Nie
2018-05-07 15:33 GMT+08:00 Jagan Teki : > This series rework of previous version where it removes legacy > usb phy handling and added phy driver on generic-phy framework. > > Current implementation phy driver is unable to get pinctrl, clock > and reset details from DT since the dm code on these wil

Re: [U-Boot] [PATCH v3 17/25] tpm: add support for TPMv2.x SPI modules

2018-05-15 Thread Miquel Raynal
Hi Simon, On Wed, 2 May 2018 20:32:32 -0600, Simon Glass wrote: > Hi Miquel, > > On 2 May 2018 at 02:59, Miquel Raynal wrote: > > Add the tpm2_tis_spi driver that should support any TPMv2 compliant > > (SPI) module. > > > > Signed-off-by: Miquel Raynal > > --- > > drivers/tpm/Kconfig

Re: [U-Boot] [PATCH v3 03/25] tpm: disociate TPMv1.x specific and generic code

2018-05-15 Thread Miquel Raynal
Hi Tom, On Mon, 14 May 2018 15:43:07 -0400, Tom Rini wrote: > On Mon, May 14, 2018 at 08:01:57PM +0200, Miquel Raynal wrote: > > Hi Simon, > > > > On Wed, 2 May 2018 20:31:48 -0600, Simon Glass wrote: > > > > > Hi Miquel, > > > > > > On 2 May 2018 at 02:59, Miquel Raynal wrote: > > > >

Re: [U-Boot] [PATCH] arm: socfpga: fix CONFIG_SPL_MAX_SIZE (less than SRAM)

2018-05-15 Thread Marek Vasut
On 05/15/2018 09:14 AM, Simon Goldschmidt wrote: > > > On 14.05.2018 23:03, Marek Vasut wrote: >> On 05/14/2018 11:02 PM, Simon Goldschmidt wrote: >>> The boot ROMs of the socfpga platform limit the size of the >>> SPL to copy to less than the available SRAM. >>> (See "Intel SoC FPGA Embedded Dev

Re: [U-Boot] [PATCH] ARM: socfpga: Put stack at the end of SRAM

2018-05-15 Thread Marek Vasut
On 05/15/2018 09:26 AM, Simon Goldschmidt wrote: > > > On 14.05.2018 22:43, Marek Vasut wrote: >> On 05/14/2018 09:43 PM, Simon Goldschmidt wrote: >>> >>> >>> On 14.05.2018 17:51, Stefan Roese wrote: On 14.05.2018 11:06, Marek Vasut wrote: > On 05/14/2018 11:01 AM, Simon Goldschmidt wrot

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

2018-05-15 Thread Anatolij Gustschin
Hi Tom, The following changes since commit db6b0281eca0dc4a1a40d9ef52d543b09979a1bf: Merge branch 'master' of git://git.denx.de/u-boot-rockchip (2018-05-14 18:13:59 -0400) are available in the git repository at: git://git.denx.de/u-boot-video.git master for you to fetch changes up to 3ece

[U-Boot] [PATCH v4 00/32] Introduce TPMv2.0 support

2018-05-15 Thread Miquel Raynal
Current U-Boot supports TPM v1.2 specification. The new specification (v2.0) is not backward compatible and renames/introduces several functions. This series introduces the support for TPMv2.x chips. First, some cleaning is done in TPM-related code. Then, the code is split in two categories: gener

[U-Boot] [PATCH v4 01/32] tpm: remove redundant blank line

2018-05-15 Thread Miquel Raynal
Fix following checkpatch.pl issue in TPM-related code: CHECK: Please don't use multiple blank lines Signed-off-by: Miquel Raynal --- lib/tpm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/tpm.c b/lib/tpm.c index c8bf06178f..0d8cdf9651 100644 --- a/lib/tpm.c +++ b/lib/tpm.c @@ -821

[U-Boot] [PATCH v4 02/32] tpm: remove extra spaces between a function and its opening bracket

2018-05-15 Thread Miquel Raynal
Fix following checkpatch.pl issue in TPM-related code: WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by: Miquel Raynal --- lib/tpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tpm.c b/lib/tpm.c index 0d8cdf9651..58b0

[U-Boot] [PATCH v4 04/32] tpm: align arguments with open parenthesis

2018-05-15 Thread Miquel Raynal
Fix following checkpatch.pl issue in TPM-related code: CHECK: Alignment should match open parenthesis Signed-off-by: Miquel Raynal --- cmd/tpm.c | 120 ++ lib/tpm.c | 100 ++- 2 files

[U-Boot] [PATCH v4 06/32] tpm: fix spelling

2018-05-15 Thread Miquel Raynal
Fix following checkpatch.pl issues in TPM-related code: CHECK: '' may be misspelled - perhaps ''? Signed-off-by: Miquel Raynal --- include/tpm.h | 8 lib/tpm.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/tpm.h b/include/tpm.h index 241597d879.

[U-Boot] [PATCH v4 03/32] tpm: substitute deprecated uint_t types with their u equivalent

2018-05-15 Thread Miquel Raynal
Fix following checkpatch.pl issues in TPM-related code: CHECK: Prefer kernel type 'u8' over 'uint8_t' CHECK: Prefer kernel type 'u16' over 'uint16_t' CHECK: Prefer kernel type 'u32' over 'uint32_t' Signed-off-by: Miquel Raynal --- cmd/tpm.c | 86 - include/tpm.h

[U-Boot] [PATCH v4 07/32] tpm: add extra blank lines between declarations and code

2018-05-15 Thread Miquel Raynal
Fix following checkpatch.pl issue in TPM-related code: WARNING: Missing a blank line after declarations Signed-off-by: Miquel Raynal --- lib/tpm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/tpm.c b/lib/tpm.c index cc76a46e78..e8ebbbe6cd 100644 --- a/lib/tpm.c +++ b/lib/tpm.c

[U-Boot] [PATCH v4 05/32] tpm: use the BIT() macro where applicable

2018-05-15 Thread Miquel Raynal
Fix following checkpatch.pl issue in TPM-related code: CHECK: Prefer using the BIT macro Signed-off-by: Miquel Raynal --- include/tpm.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/tpm.h b/include/tpm.h index 62117f6cc2..241597d879 100644 --- a/

[U-Boot] [PATCH v4 09/32] tpm: prepare introduction of TPMv2.x support in Kconfig

2018-05-15 Thread Miquel Raynal
Because both major revisions are not compatible at all, let's make them mutually exclusive in Kconfig. This way we will be sure, when using a command or a library function that it is supported by the right revision. Current drivers are currently prefixed by "tpm_", we will prefix TPMv2.x files by

[U-Boot] [PATCH v4 08/32] tpm: add Revision ID field in the chip structure

2018-05-15 Thread Miquel Raynal
TPM are shipped with a few read-only register from which we can retrieve for instance: - vendor ID - product ID - revision ID Product and vendor ID share the same register and are already referenced in the tpm_chip structure. Add the revision ID entry which is missing. Signed-off-by: Miquel Rayna

[U-Boot] [PATCH v4 11/32] tpm: add missing parameter in private data structure description

2018-05-15 Thread Miquel Raynal
Both parameters 'duration_ms' and 'retry_time_ms' of the tpm_chip_priv structure are documented is the comment above the declaration but 'buf' was forgotten. Add the missing description. Signed-off-by: Miquel Raynal --- include/tpm-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/inc

[U-Boot] [PATCH v4 10/32] tpm: disociate TPMv1.x specific and generic code

2018-05-15 Thread Miquel Raynal
There are no changes in this commit but a new organization of the code as follow. * cmd/ directory: > move existing code from cmd/tpm.c in cmd/tpm-common.c > move specific code in cmd/tpm-v1.c > create a specific header file with generic definitions for commands o

[U-Boot] [PATCH v4 12/32] tpm: prepare support for TPMv2.x commands

2018-05-15 Thread Miquel Raynal
Choice between v1 and v2 compliant functions is done with the configuration. Create the various files that will receive TPMv2-only code on the same scheme as for the TPMv1 code. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- cmd/Makefile | 1 + cmd/tpm-v2.c

[U-Boot] [PATCH v4 13/32] tpm: add macros to enhance TPM commands readability

2018-05-15 Thread Miquel Raynal
TPM commands are much easier to read/write with these macros that will transform words or integers into byte strings. This way, there is no need to call pack_byte_string() while all variable length in a command are known (and at must 4 bytes, which is a lot of them). Signed-off-by: Miquel Raynal

[U-Boot] [PATCH v4 19/32] tpm: add TPM2_PCR_Extend command support

2018-05-15 Thread Miquel Raynal
Add support for the TPM2_PCR_Extend command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- cmd/tpm-v2.c | 37 + include/tpm-v2.h | 10 ++ lib/tpm-v2.c | 38

[U-Boot] [PATCH v4 22/32] tpm: add dictionary attack mitigation commands support

2018-05-15 Thread Miquel Raynal
Add support for the TPM2_DictionaryAttackParameters and TPM2_DictionaryAttackLockReset commands. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- cmd/tpm-v2.c | 67 + include/tpm-v2.h | 2

[U-Boot] [PATCH v4 16/32] tpm: add TPM2_Startup command support

2018-05-15 Thread Miquel Raynal
Add support for the TPM2_Startup command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- cmd/tpm-v2.c | 26 ++ include/tpm-v2.h | 9 + lib/tpm-v2.c | 21 + 3 files changed,

[U-Boot] [PATCH v4 20/32] tpm: add TPM2_PCR_Read command support

2018-05-15 Thread Miquel Raynal
Add support for the TPM2_PCR_Read command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- cmd/tpm-v2.c | 43 +++ include/tpm-v2.h | 13 + lib/tpm-v2.c | 42 +

[U-Boot] [PATCH v4 23/32] tpm: add TPM2_HierarchyChangeAuth command support

2018-05-15 Thread Miquel Raynal
Add support for the TPM2_HierarchyChangeAuth command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- cmd/tpm-v2.c | 59 include/tpm-v2.h | 14 ++ lib/tpm-v2.c

[U-Boot] [PATCH v4 17/32] tpm: add TPM2_SelfTest command support

2018-05-15 Thread Miquel Raynal
Add support for the TPM2_Selftest command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- cmd/tpm-v2.c | 26 ++ include/tpm-v2.h | 9 + lib/tpm-v2.c | 12 3 files changed, 47 inse

[U-Boot] [PATCH v4 27/32] doc: device-tree-bindings: add TIS TPMv2.0 SPI module info

2018-05-15 Thread Miquel Raynal
Add TIS TPMv2.0 SPI module bindings. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- doc/device-tree-bindings/tpm2/tis-tpm2-spi.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 doc/device-tree-bindings/tpm2/tis-tpm2-spi.txt diff --git a/doc/device-tre

[U-Boot] [PATCH v4 14/32] tpm: add possible traces to analyze buffers returned by the TPM

2018-05-15 Thread Miquel Raynal
When debugging, it is welcome to get more information about what the TPM returns. Add the possibility to print the packets received to show their exact content. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- lib/tpm-common.c | 10 +- 1 file changed, 9 insertions(+), 1 deletio

[U-Boot] [PATCH v4 30/32] doc: device-tree-bindings: add Sandbox TPMv2.0 module info

2018-05-15 Thread Miquel Raynal
Add Sandbox TPMv2.0 module bindings. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- doc/device-tree-bindings/tpm2/sandbox.txt | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 doc/device-tree-bindings/tpm2/sandbox.txt diff --git a/doc/device-tree-bindings/tpm2/s

[U-Boot] [PATCH v4 15/32] tpm: report driver error code to upper layer

2018-05-15 Thread Miquel Raynal
Instead of returning a generic 'library' error, report back the actual error code so it can be displayed to the user by the regular error path. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- lib/tpm-common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tp

[U-Boot] [PATCH v4 21/32] tpm: add TPM2_GetCapability command support

2018-05-15 Thread Miquel Raynal
Add support for the TPM2_GetCapability command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- cmd/tpm-v2.c | 45 + include/tpm-v2.h | 14 ++ lib/tpm-v2.c | 33 +

[U-Boot] [PATCH v4 18/32] tpm: add TPM2_Clear command support

2018-05-15 Thread Miquel Raynal
Add support for the TPM2_Clear command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- cmd/tpm-v2.c | 29 + include/tpm-v2.h | 11 +++ lib/tpm-v2.c | 35 +++

[U-Boot] [PATCH v4 24/32] tpm: add PCR authentication commands support

2018-05-15 Thread Miquel Raynal
Add support for the TPM2_PCR_SetAuthPolicy and TPM2_PCR_SetAuthValue commands. Change the command file and the help accordingly. Note: These commands could not be tested because the TPMs available do not support them, however they could be useful for someone else. The user is warned by the comman

[U-Boot] [PATCH v4 28/32] test/py: add TPMv2.x test suite

2018-05-15 Thread Miquel Raynal
Add tests for the TPMv2.x commands. These commands may run both on a physical TPM and with the sandbox driver. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- test/py/tests/test_tpm2.py | 234 + 1 file changed, 234 insertions(+) create mode

[U-Boot] [PATCH v4 29/32] tpm: add a Sandbox TPMv2.x driver

2018-05-15 Thread Miquel Raynal
This driver can emulate all the basic functionalities of a TPMv2.x chip and should behave like them during regular testing. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- drivers/tpm/Kconfig| 11 +- drivers/tpm/Makefile | 1 + drivers/tpm/tpm2_tis_sandbox.c |

[U-Boot] [PATCH v4 32/32] configs: add TPMv2.x support in Sandbox

2018-05-15 Thread Miquel Raynal
Enable the Sandbox TPMv2 driver in all possible configurations. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- configs/sandbox64_defconfig| 1 + configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 + configs/sandbox_noblk_defconfig| 1 + confi

[U-Boot] [PATCH v4 31/32] sandbox: dts: add Sandbox TPMv2.x node

2018-05-15 Thread Miquel Raynal
This node declares the presence of the Sandbox TPMv2.x emulated chip, available for testing. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass --- arch/sandbox/dts/sandbox.dts | 4 arch/sandbox/dts/sandbox64.dts | 4 arch/sandbox/dts/test.dts | 4 3 files changed, 12 i

[U-Boot] [PATCH v4 26/32] tpm: add the possibility to reset the chip with a gpio

2018-05-15 Thread Miquel Raynal
On some designs, the reset line could not be connected to the SoC reset line, in this case, request the GPIO and ensure the chip gets reset. Signed-off-by: Miquel Raynal --- drivers/tpm/tpm2_tis_spi.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/tpm/tpm2_tis_spi

[U-Boot] [PATCH v4 25/32] tpm: add support for TPMv2.x SPI modules

2018-05-15 Thread Miquel Raynal
Add the tpm2_tis_spi driver that should support any TPMv2 compliant (SPI) module. Signed-off-by: Miquel Raynal --- drivers/tpm/Kconfig| 10 + drivers/tpm/Makefile | 2 + drivers/tpm/tpm2_tis_spi.c | 664 + 3 files changed, 676 insertio

[U-Boot] [RESEND][PATCH] cmd: nvedit: add whitelist option for env import

2018-05-15 Thread Quentin Schulz
While the `env export` can take as parameters variables to be exported, `env import` does not have such a mechanism of variable selection. Let's add a `-w` option that asks `env import` to look for the `whitelisted_vars` env variable for a space-separated list of variables that are whitelisted. E

Re: [U-Boot] [PATCH] arm: socfpga: fix CONFIG_SPL_MAX_SIZE (less than SRAM)

2018-05-15 Thread Simon Goldschmidt
On 15.05.2018 11:14, Marek Vasut wrote: On 05/15/2018 09:14 AM, Simon Goldschmidt wrote: On 14.05.2018 23:03, Marek Vasut wrote: On 05/14/2018 11:02 PM, Simon Goldschmidt wrote: The boot ROMs of the socfpga platform limit the size of the SPL to copy to less than the available SRAM. (See "I

Re: [U-Boot] [PATCH] arm: socfpga: fix CONFIG_SPL_MAX_SIZE (less than SRAM)

2018-05-15 Thread Marek Vasut
On 05/15/2018 12:21 PM, Simon Goldschmidt wrote: > > > On 15.05.2018 11:14, Marek Vasut wrote: >> On 05/15/2018 09:14 AM, Simon Goldschmidt wrote: >>> >>> >>> On 14.05.2018 23:03, Marek Vasut wrote: On 05/14/2018 11:02 PM, Simon Goldschmidt wrote: > The boot ROMs of the socfpga platform

Re: [U-Boot] [PATCH] arm: socfpga: fix CONFIG_SPL_MAX_SIZE (less than SRAM)

2018-05-15 Thread Simon Goldschmidt
On 15.05.2018 12:30, Marek Vasut wrote: On 05/15/2018 12:21 PM, Simon Goldschmidt wrote: On 15.05.2018 11:14, Marek Vasut wrote: On 05/15/2018 09:14 AM, Simon Goldschmidt wrote: On 14.05.2018 23:03, Marek Vasut wrote: On 05/14/2018 11:02 PM, Simon Goldschmidt wrote: The boot ROMs of th

Re: [U-Boot] [PATCH] arm: socfpga: fix CONFIG_SPL_MAX_SIZE (less than SRAM)

2018-05-15 Thread Marek Vasut
On 05/15/2018 12:37 PM, Simon Goldschmidt wrote: > > > On 15.05.2018 12:30, Marek Vasut wrote: >> On 05/15/2018 12:21 PM, Simon Goldschmidt wrote: >>> >>> >>> On 15.05.2018 11:14, Marek Vasut wrote: On 05/15/2018 09:14 AM, Simon Goldschmidt wrote: > > > On 14.05.2018 23:03, Marek

Re: [U-Boot] [PATCH 09/12] ARM: kirkwood: Add device-tree for nsa310s

2018-05-15 Thread Stefan Roese
Hi Chris, On 10.05.2018 02:51, Chris Packham wrote: On Thu, May 10, 2018 at 6:27 AM bodhi bodhi wrote: Hi Chris, What we have in Linux mainline is Zyxel NSA310 (Marvell 88f6281). The Zyxel NSA310S (Marvell 88f6702) is actually a different box, which has not been mainlined yet. By the wa

Re: [U-Boot] [U-Boot,1/2] net: mvgbe: remove CONFIG_DOVE

2018-05-15 Thread Tom Rini
On Thu, May 03, 2018 at 11:00:34PM +1200, Chris Packham wrote: > Nothing defines CONFIG_DOVE so remove the code that uses it. > > Signed-off-by: Chris Packham > Reviewed-by: Stefan Roese > Acked-by: Joe Hershberger Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP si

Re: [U-Boot] [U-Boot,2/2] net: add Kconfig for MVGBE

2018-05-15 Thread Tom Rini
On Thu, May 03, 2018 at 11:00:35PM +1200, Chris Packham wrote: > Add Kconfig for MVGBE and update boards to select this. > > Signed-off-by: Chris Packham > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! But please note that this seems to have disabled MVGBE on edminiv2 and I'm su

Re: [U-Boot] mmc: sdhci: Check that ops are defined

2018-05-15 Thread Tom Rini
On Mon, May 14, 2018 at 03:02:30PM +0300, Ramon Fried wrote: > The check is necessary to avoid NULL pointer dereference. > > Signed-off-by: Ramon Fried > Reviewed-by: Michal Simek Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2, 2/2] net: bootp: Fix compile error processing ntpserver option

2018-05-15 Thread Tom Rini
On Thu, May 03, 2018 at 08:19:03PM +1200, Chris Packham wrote: > When the following configuration is set > > # CONFIG_CMD_DHCP is not set > CONFIG_CMD_BOOTP=y > CONFIG_BOOTP_NTPSERVER=y > > The following compile error is observed > > error: used struct type value where scalar is require

Re: [U-Boot] [U-Boot, v2, 1/2] net: Add Kconfig option for BOOTP_NTPSERVER

2018-05-15 Thread Tom Rini
On Thu, May 03, 2018 at 08:19:02PM +1200, Chris Packham wrote: > Add a Kconfig option for BOOTP_NTPSERVER to enable the DHCP/BOOTP option > to configure the sntp server address. > > Signed-off-by: Chris Packham > Acked-by: Joe Hershberger Applied to u-boot/master, thanks! -- Tom signature.

[U-Boot] How to update Uart0 from default Uart1

2018-05-15 Thread Mohan
Hi, I am using tower board with arm vf6 controller i need to change default Uart1 for debuging to Uart0 can anyone suggest what changes i need to make for changing the Uart. -- Sent from: http://u-boot.10912.n7.nabble.com/ ___ U-Boot mailing list U-Boo

Re: [U-Boot] treewide: Move CONFIG_PHY_MARVELL to Kconfig

2018-05-15 Thread Tom Rini
On Fri, Apr 27, 2018 at 02:52:21PM +0200, Mario Six wrote: > The CONFIG_PHY_MARVELL has already been migrated to Kconfig (some boards > already had it in their Kconfig), but had not been moved for older > boards. > > Move it to the defconfigs for all boards. > > Signed-off-by: Mario Six > Acked

Re: [U-Boot] [PATCH v7 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

2018-05-15 Thread Jagan Teki
Hi Marek, On Tue, May 15, 2018 at 2:16 PM, Jun Nie wrote: > 2018-05-07 15:33 GMT+08:00 Jagan Teki : >> This series rework of previous version where it removes legacy >> usb phy handling and added phy driver on generic-phy framework. >> >> Current implementation phy driver is unable to get pinctrl

Re: [U-Boot] [PATCH v2] phy: add support for STM32 usb phy controller

2018-05-15 Thread Patrice CHOTARD
Hi Marek On 04/27/2018 11:18 AM, Marek Vasut wrote: > On 04/27/2018 11:01 AM, Patrice Chotard wrote: >> This patch adds phy tranceiver driver for STM32 USB PHY >> Controller (usbphyc) that provides dual port High-Speed >> phy for OTG (single port) and EHCI/OHCI host controller >> (two ports). > >

Re: [U-Boot] [PATCH v2 4/6] scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987

2018-05-15 Thread Eugeniu Rosca
Hi Simon, On Mon, May 14, 2018 at 01:52:09PM -0600, Simon Glass wrote: > Hi, > > On 13 May 2018 at 16:45, Eugeniu Rosca wrote: > > Hi Simon, > > > > On Mon, May 14, 2018 at 08:00:40AM +1000, Simon Glass wrote: > >> Hi, > >> > >> Can you please check that this does not adversely impact code size?

[U-Boot] [PATCH v3 00/11] pmic: sandbox: Add support for MC34709 PMIC

2018-05-15 Thread Lukasz Majewski
Adding this device required some changes into the PMIC uclass. Most notable one was the support for 3 bytes r/w operations. Moreover, emulation and tests for this device has been added to sandbox. Travis-CI: https://travis-ci.org/lmajewski/u-boot-dfu/builds/378678458 Changes in v3: - None - None

[U-Boot] [PATCH v3 01/11] pmic: fsl: Provide some more definitions for MC34708 PMIC

2018-05-15 Thread Lukasz Majewski
This commit adds some more defines for MC34708 PMIC. Signed-off-by: Lukasz Majewski --- Changes in v3: - None Changes in v2: - None include/fsl_pmic.h | 40 1 file changed, 40 insertions(+) diff --git a/include/fsl_pmic.h b/include/fsl_pmic.h index 6

[U-Boot] [PATCH v3 03/11] pmic: Add support for setting transmission length in uclass private data

2018-05-15 Thread Lukasz Majewski
The struct uc_pmic_priv's trans_len field stores the number of types to be transmitted per PMIC transfer. Signed-off-by: Lukasz Majewski Reviewed-by: Simon Glass --- Changes in v3: - Rename dm_pmic_info to uc_pmic_priv Changes in v2: - New patch drivers/power/pmic/pmic-uclass.c | 10 +++

[U-Boot] [PATCH v3 02/11] pmic: fsl: Define number of bytes sent at once by MC34708 PMIC

2018-05-15 Thread Lukasz Majewski
This patch adds definition of the number of bytes sent at once by the MC34708 PMIC. Signed-off-by: Lukasz Majewski Reviewed-by: Simon Glass --- Changes in v3: - None Changes in v2: - None include/fsl_pmic.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/fsl_pmic.h b/include/fsl

[U-Boot] [PATCH v3 09/11] sandbox: Enable MC34708 PMIC support

2018-05-15 Thread Lukasz Majewski
This MC34708 PMIC is somewhat special - it used single transfers (R/W) with 3 bytes size - up till now U-Boot's PMICs only used 1 byte. Signed-off-by: Lukasz Majewski Reviewed-by: Simon Glass --- Changes in v3: - Enable MC34708 PMIC support in sandbox_{flattree|spl}_defconfig Changes in v2: -

[U-Boot] [PATCH v3 11/11] sandbox: tests: Add tests for mc34708 PMIC device

2018-05-15 Thread Lukasz Majewski
Following tests has been added for mc34708 device: - get_test for mc34708 PMIC - Check if proper number of registers is read - Check if default (emulated via i2c device) value is properly read - Check if value write/read operation is correct - Perform tests to check if pmic_clrsetbits() is working

[U-Boot] [PATCH v3 05/11] pmic: dm: Add support for MC34708 for PMIC DM

2018-05-15 Thread Lukasz Majewski
This patch adds support for MC34708 PMIC, to be used with driver model (DM). Signed-off-by: Lukasz Majewski --- Changes in v3: - Rename dm_pmic_info with uc_pmic_priv - Sort alphabetically includes - Add comment regarding MC34708 byte ordering Changes in v2: - Support for uclass private data w

[U-Boot] [PATCH v3 10/11] sandbox: tests: Exclude common test code (pmic_get) in test/dm/pmic.c

2018-05-15 Thread Lukasz Majewski
The common code can be excluded to be reused by tests for other PMIC. Signed-off-by: Lukasz Majewski Reviewed-by: Simon Glass --- Changes in v3: - None Changes in v2: - New patch test/dm/pmic.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/dm/pmic.c

[U-Boot] [PATCH v3 04/11] pmic: dm: Rewrite pmic_reg_{read|write|clrsetbits} to support 3 bytes transmissions

2018-05-15 Thread Lukasz Majewski
This commit provides support for transmissions larger than 1 byte for PMIC devices used with DM (e.g. MC34708 from NXP). Signed-off-by: Lukasz Majewski Reviewed-by: Simon Glass --- Changes in v3: - Rename dm_pmic_info -> uc_pmic_priv - Replace printf() -> debug() - Use priv->trans_len instead

[U-Boot] [PATCH v3 07/11] sandbox: Rewrite i2c_pmic_emul.c to support PMIC with 3 bytes transmission

2018-05-15 Thread Lukasz Majewski
This change enables support for MC34708 PMIC in sandbox. Now we can emulate the I2C transfers larger than 1 byte. Notable changes for this driver: - From now on the register number is not equal to index in the buffer, which emulates the PMIC registers - The PMIC register's pool is now dynamica

[U-Boot] [PATCH v3 08/11] sandbox: Enable support for MC34708 PMIC in DTS

2018-05-15 Thread Lukasz Majewski
This commit also provides the default values of the emulated MC34708 PMIC internal registers content. Signed-off-by: Lukasz Majewski Reviewed-by: Simon Glass --- Changes in v3: - Fix DTS property style to compy with Device Tree specification as suggested by Fabio. Changes in v2: - New patch

[U-Boot] [PATCH v3 06/11] pmic: Rewrite the pmic command to not only work with single byte transmission

2018-05-15 Thread Lukasz Majewski
Up till now it was only possible to use 'pmic' command with a single byte transmission. The pmic_read|write functions has been replaced with ones, which don't need the transmission length as a parameter. Due to that it is possible now to read data from PMICs transmitting more data than 1 byte at o

[U-Boot] [mips, usb xhci] Question / advice needed: cacheable adresses as a device output buffers?

2018-05-15 Thread Yuri Frolov
Is it possible to use *cached* addresses as device's output buffer? E.g, is it a correct thing, to read an uImage from USB pen to cacheable addresses in order to boot from these cached area? U-Boot 2014.10-00051-g8cb056b-dirty / SDK (May 15 2018 - 17:11:35) CPU: MIPS32 P5600 @ 1200 MHz (Rev

[U-Boot] [PATCH] arm64: timer: Create timer_get_bootus for bootstage support

2018-05-15 Thread Michal Simek
Implement timer_get_boot_us() based on available functions to support bootstage command. Signed-off-by: Michal Simek --- arch/arm/cpu/armv8/generic_timer.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/cpu/armv8/generic_timer.c b/arch/arm/cpu/armv8/generic_timer.c index 3

[U-Boot] [PATCH v4 02/14] fastboot: Switch dependencies on FASTBOOT to USB_FUNCTION_FASTBOOT

2018-05-15 Thread Alex Kiernan
Anyone who wants FASTBOOT before this series wants USB_FUNCTION_FASTBOOT. Split USB_FUNCTION_FASTBOOT from FASTBOOT so they retain their existing behaviour. Signed-off-by: Alex Kiernan Reviewed-by: Joe Hershberger --- Changes in v4: None Changes in v3: - move Kconfig changes to previous patch

[U-Boot] [PATCH v4 03/14] fastboot: Refactor fastboot_okay/fail to take response

2018-05-15 Thread Alex Kiernan
Add the response string as a parameter to fastboot_okay/fail, instead of modifying a global, to match the contract expected by the AOSP U-Boot code. Signed-off-by: Alex Kiernan Reviewed-by: Joe Hershberger --- Changes in v4: None Changes in v3: - refactor for changes in master Changes in v2: N

[U-Boot] [PATCH v4 04/14] fastboot: Extract fastboot_okay/fail to fb_common.c

2018-05-15 Thread Alex Kiernan
Add drivers/fastboot/fb_common.c, where fastboot_okay/fail are implemented so we can call them from a non-USB implementation. Introduce fastboot_response which takes varargs parameters so we can use it to generate formatted response strings. Refactor fastboot_okay/fail to use it. Signed-off-by: A

[U-Boot] [PATCH v4 05/14] fastboot: Correct dependencies in FASTBOOT_FLASH

2018-05-15 Thread Alex Kiernan
Ensure that when selecting FASTBOOT_FLASH you end up with a buildable configuration. Prior to this you could select NAND without MTDPARTS and end up with an image which (surprisingly) excluded NAND. Also fix dependencies on FASTBOOT_GPT_NAME/FASTBOOT_MBR_NAME which require you have EFI_PARTITION/D

[U-Boot] [PATCH v4 06/14] fastboot: Add missing newlines

2018-05-15 Thread Alex Kiernan
Add newlines so we format our output correctly. Signed-off-by: Alex Kiernan Acked-by: Joe Hershberger Reviewed-by: Jocelyn Bohr --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/fastboot/fb_mmc.c | 28 ++-- 1 file changed, 14 insertions(+), 14 de

[U-Boot] [PATCH v4 10/14] fastboot: Extract common definitions from USB fastboot

2018-05-15 Thread Alex Kiernan
Move FASTBOOT_VERSION to include/fastboot.h so when we merge the UDP code we only have one definition. Signed-off-by: Alex Kiernan --- Changes in v4: - leave strcmp_l1() in USB fastboot as we don't need it in UDP path Changes in v3: - new Changes in v2: None drivers/usb/gadget/f_fastboot.c |

[U-Boot] [PATCH v4 07/14] fastboot: Remove FIXME for CONFIG_FASTBOOT_...NAME

2018-05-15 Thread Alex Kiernan
CONFIG_FASTBOOT_GPT_NAME and CONFIG_FASTBOOT_MBR_NAME are always defined by Kconfig if you're compiling this code, so remove these redundant defaults. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: - new Changes in v2: None drivers/fastboot/fb_mmc

[U-Boot] [PATCH v4 08/14] fastboot: Fix parameter types in _fb_nand_write

2018-05-15 Thread Alex Kiernan
Compiling on a 64 bit target the arguments to _fb_nand_write are incompatible: drivers/fastboot/fb_nand.c: In function ‘_fb_nand_write’: drivers/fastboot/fb_nand.c:101:42: warning: passing argument 3 of ‘nand_write_skip_bad’ from incompatible pointer type [-Wincompatible-pointer-types] r

[U-Boot] [PATCH v4 11/14] ti: fastboot: Move weak overrides to board files

2018-05-15 Thread Alex Kiernan
Overriding fastboot_set_reboot_flag() in arch/arm/mach-omap2/boot-common.c leaves it applying all boards that derive from this, not just the ones which have support for Android bootloader flow. Move the weak function override to the relevant board files. Signed-off-by: Alex Kiernan Reviewed-by: S

[U-Boot] [PATCH v4 09/14] fastboot: Rename fb_set_reboot_flag to fastboot_set_reboot_flag

2018-05-15 Thread Alex Kiernan
Rename fb_set_reboot_flag to fastboot_set_reboot_flag so it matches all other fastboot code in the global name space. Fix the guards around them so that they're dependent on FASTBOOT, not just USB_FUNCTION_FASTBOOT. Move the weak implementation of fastboot_set_reboot_flag to fb_common.c so we can

[U-Boot] [PATCH v4 12/14] fs: Add fs_get_type_name to return current filesystem name

2018-05-15 Thread Alex Kiernan
Add fs_get_type_name so we can get the current filesystem type. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass --- Changes in v4: - add docbook comments Changes in v3: - new Changes in v2: None fs/fs.c | 13 + include/fs.h | 10 ++ 2 files changed, 23 insertio

[U-Boot] [PATCH v4 14/14] net: fastboot: Merge AOSP UDP fastboot

2018-05-15 Thread Alex Kiernan
Merge UDP fastboot support from AOSP: https://android.googlesource.com/platform/external/u-boot/+/android-o-mr1-iot-preview-8 Signed-off-by: Alex Kiernan Signed-off-by: Alex Deymo Signed-off-by: Jocelyn Bohr Reviewed-by: Simon Glass --- Changes in v4: - guard fb_getvar/fb_command with UDP

[U-Boot] [PATCH v4 00/14] Add fastboot UDP support

2018-05-15 Thread Alex Kiernan
This series merges the fastboot UDP support from AOSP into mainline U-Boot. Changes in UDP behaviour from the AOSP code, so it follows the existing USB behaviour: - 'boot' now follows the USB code and does 'bootm CONFIG_FASTBOOT_BUF_ADDR'. I've added 'fastboot_bootcmd' which if set overrides t

[U-Boot] [PATCH v4 01/14] fastboot: Move fastboot to drivers/fastboot

2018-05-15 Thread Alex Kiernan
Separate CMD_FASTBOOT from FASTBOOT and move code and configuration to drivers/fastboot. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: - move imply ANDROID_BOOT_IMAGE, CMD_FASTBOOT to FASTBOOT from USB_FUNCTION_FASTBOOT - add depend on USB_FUNCTIO

[U-Boot] [PATCH] stm32f429-disco: ram: Adds stm32f429-disco fixes for HardFault at booting

2018-05-15 Thread Radoslaw Pietrzyk
- adds reading FMC swap setting from DTB to SDRAM driver - sets FMC swap for stm32f429-disco board - changes ram start address to 0x9000 Signed-off-by: Radoslaw Pietrzyk --- arch/arm/dts/stm32f429-disco-u-boot.dtsi | 2 ++ drivers/ram/stm32_sdram.c| 37 +-

[U-Boot] [PATCH v4 13/14] mmc: Separate "mmc swrite" from fastboot

2018-05-15 Thread Alex Kiernan
Introduce CONFIG_IMAGE_SPARSE and CONFIG_CMD_MMC_SWRITE so the "mmc swrite" command is separated from the fastboot code. Move image-sparse from common to lib so it's clear it's library code. Signed-off-by: Alex Kiernan --- Changes in v4: - new Changes in v3: None Changes in v2: None cmd/Kcon

Re: [U-Boot] [PATCH 0/8] Initial integration of AVB2.0

2018-05-15 Thread Eugeniu Rosca
On Sun, May 06, 2018 at 01:31:18PM +0200, Eugeniu Rosca wrote: > Hello Igor, Alex, Kever, > > I wonder if it would be possible to keep the internal libavb headers in > lib/libavb (similar to how it's done by NXP in [4]), since this would > allow not rewriting the original include paths for such he

Re: [U-Boot] [PATCH 4/8] cmd: avb2.0: avb command for performing verification

2018-05-15 Thread Igor Opaniuk
Hi Simon, I've dug into DriverModel documentation and even created a PoC for existing avb commands. The problem is that (maybe I missed out some key concepts) I'm still not sure if it makes sense to follow it driver mode in the context of AVB 2.0 feature and what kind of extra devices can be used

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

2018-05-15 Thread Tom Rini
On Tue, May 15, 2018 at 11:50:08AM +0200, Anatolij Gustschin wrote: > Hi Tom, > > The following changes since commit db6b0281eca0dc4a1a40d9ef52d543b09979a1bf: > > Merge branch 'master' of git://git.denx.de/u-boot-rockchip (2018-05-14 > 18:13:59 -0400) > > are available in the git repository

Re: [U-Boot] ARM: mvebu: a38x: Add missing SPDX license identfier

2018-05-15 Thread Tom Rini
On Tue, May 15, 2018 at 01:31:11PM +1200, Chris Packham wrote: > mv_ddr_build_message.c is generated in Marvell's standalone mv_ddr code. > When imported into u-boot we need to add the appropriate SPDX tag and > re-format it slightly. > > Signed-off-by: Chris Packham Applied to u-boot/master, t

Re: [U-Boot] [PATCH v4 03/32] tpm: substitute deprecated uint_t types with their u equivalent

2018-05-15 Thread Tom Rini
On Tue, May 15, 2018 at 11:56:59AM +0200, Miquel Raynal wrote: > Fix following checkpatch.pl issues in TPM-related code: > > CHECK: Prefer kernel type 'u8' over 'uint8_t' > CHECK: Prefer kernel type 'u16' over 'uint16_t' > CHECK: Prefer kernel type 'u32' over 'uint32_t' > > Signed-of

Re: [U-Boot] [PATCH v4 04/32] tpm: align arguments with open parenthesis

2018-05-15 Thread Tom Rini
On Tue, May 15, 2018 at 11:57:00AM +0200, Miquel Raynal wrote: > Fix following checkpatch.pl issue in TPM-related code: > > CHECK: Alignment should match open parenthesis > > Signed-off-by: Miquel Raynal Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PATCH] image: fit: Allow booting Aarch64 from arm

2018-05-15 Thread Tom Rini
On Tue, May 15, 2018 at 08:15:31AM +0200, Michal Simek wrote: > On 14.5.2018 23:33, Ramon Fried wrote: > > Snapdragon bootloader needs to jump from 32bit to 64bit > > Allow booting in these cases when CONFIG_AARCH32_SUPPORT_ARM64 is defined. > > > > Signed-off-by: Ramon Fried > > --- > > common/

Re: [U-Boot] [PATCH v4 01/32] tpm: remove redundant blank line

2018-05-15 Thread Tom Rini
On Tue, May 15, 2018 at 11:56:57AM +0200, Miquel Raynal wrote: > Fix following checkpatch.pl issue in TPM-related code: > > CHECK: Please don't use multiple blank lines > > Signed-off-by: Miquel Raynal Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [PATCH v4 07/32] tpm: add extra blank lines between declarations and code

2018-05-15 Thread Tom Rini
On Tue, May 15, 2018 at 11:57:03AM +0200, Miquel Raynal wrote: > Fix following checkpatch.pl issue in TPM-related code: > > WARNING: Missing a blank line after declarations > > Signed-off-by: Miquel Raynal Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature _

  1   2   3   >