[U-Boot] [PATCH] mmc: Changed the datatype of the variable to handle 64-bit arch

2018-05-02 Thread Michal Simek
From: Vipul Kumar This patch changed the datatype of variable "start" from uint to ulong to work properly on 64-bit machines as well. Also the return type of get_timer() function is ulong. Signed-off-by: Vipul Kumar Signed-off-by: Michal Simek --- drivers/mmc/mmc.c | 4 ++-- drivers/mmc/sd

Re: [U-Boot] [PATCH v2 1/1] arm: Add support for Trenz TE0820 on Sundance EMC2-DP-V2

2018-05-02 Thread Michal Simek
On 2.5.2018 17:51, Vladimir Svoboda wrote: > Add support for Trenz TE0820 revision 2 MPSoC module. > The TE0820 is a System-On-Module (SOM). > This has been tested with a Sundance EMC2-DP-V2 Revision 1 carrier > board. > > The tested variant of the TE0820 is TE0820-02-03EG-1EA. > > Signed-off-by:

Re: [U-Boot] u-boot 2018 SPI SPL

2018-05-02 Thread Mehmet Ali İPİN
Dear Fabio Thank you very much for your helps. Yes, my end goal is to be able to boot from SPI flash, with SPL. We are preparing another PCB to check if we can boot from eMMC/SD. We received a service proposal from Otavio yesterday, evaluating it. But if exist, I wish to contact a person who is

Re: [U-Boot] [PATCH 2/2] spi: kirkwood: Full dm conversion

2018-05-02 Thread Simon Baatz
Hi Chris, On Wed, May 02, 2018 at 09:56:52PM +, Chris Packham wrote: > Hi All, > On Wed, May 2, 2018 at 10:53 PM Stefan Roese wrote: > > > Hi Simon, > > > On 01.05.2018 12:54, Simon Guinot wrote: > > > On Mon, Apr 30, 2018 at 11:28:28AM +0530, Jagan Teki wrote: > > >> On Fri, Apr 27, 2018 a

Re: [U-Boot] [PATCH v2 3/4] core: Add dev_{disable,enable}_by_path

2018-05-02 Thread Simon Glass
Hi Mario, On 27 April 2018 at 06:51, Mario Six wrote: > We cannot use device structures to disable devices, since getting > them with the API functions would bind and activate the device, which > would fail if the underlying device does not exist. > > Hence, add a function to disable devices by p

Re: [U-Boot] [PATCH v2 4/4] test: Add tests for dev_{enable, disable}_by_path

2018-05-02 Thread Simon Glass
On 27 April 2018 at 06:51, Mario Six wrote: > Add tests for the dev_{enable,disable}_by_path functions. > > Signed-off-by: Mario Six > > --- > > v1 -> v2: > New in v2 > > --- > test/dm/test-fdt.c | 27 +++ > 1 file changed, 27 insertions(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v2 3/5] regmap: Define regmap_{get,set}

2018-05-02 Thread Simon Glass
Hi Mario, On 27 April 2018 at 06:52, Mario Six wrote: > It would be convenient if one could use the regmap API in conjunction > with register maps defined as structs (i.e. structs that directly mirror > the memory layout of the registers in question). A similar approach was > planned with the reg

Re: [U-Boot] [PATCH v2] gdsys: drivers: Add gdsys_rxaui_ctrl driver

2018-05-02 Thread Simon Glass
On 27 April 2018 at 06:53, Mario Six wrote: > Add a driver for RXAUI control on IHS FPGAs. > > Signed-off-by: Mario Six > --- > > v1 -> v2: > * Switched to regmap usage (instead of fpgamap) > > --- > drivers/misc/Kconfig| 6 +++- > drivers/misc/Makefile | 1 + > drivers/m

Re: [U-Boot] [PATCH v3 25/25] tpm: allow Sandbox to run TPMv2.x commands

2018-05-02 Thread Simon Glass
Hi Miquel, On 2 May 2018 at 02:59, Miquel Raynal wrote: > Sandbx is run in userspace. What is done in baremetal applications like > U-Boot is using an address in memory which is supposedly free to load > and store data to it. The user interaction in U-Boot's shell works like > that and it is hard

Re: [U-Boot] [PATCH v2 2/5] regmap: Support reading from specific range

2018-05-02 Thread Simon Glass
Hi Mario, On 27 April 2018 at 06:52, Mario Six wrote: > > It is useful to be able to treat the different ranges of a regmap > separately to be able to use distinct offset for them, but this is > currently not implemented in the regmap API. > > To preserve backwards compatibility, add regmap_read_

Re: [U-Boot] [PATCH v3 20/25] test/py: add TPMv2.x test suite

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > 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 > --- > test/py/tests/test_tpm2.py | 234 > + > 1 file c

Re: [U-Boot] [PATCH v3 19/25] doc: device-tree-bindings: add ST33TPHF20 TPMv2.0 module info

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > Add ST33TPHF20 TPMv2.0 module bindings. > > Signed-off-by: Miquel Raynal > --- > doc/device-tree-bindings/tpm2/st33tphf20-spi.txt | 18 ++ > 1 file changed, 18 insertions(+) > create mode 100644 doc/device-tree-bindings/tpm2/st33tph

Re: [U-Boot] [PATCH v2 2/4] test: Add tests for DT-manipulation functions

2018-05-02 Thread Simon Glass
On 27 April 2018 at 06:51, Mario Six wrote: > Add tests for the ofnode_set_enabled, ofnode_write_string, and > ofnode_write_property functions. > > Signed-off-by: Mario Six > > --- > > v1 -> v2: > New in v2 > > --- > test/dm/test-fdt.c | 53 + >

Re: [U-Boot] [PATCH v3 23/25] sandbox: dts: add Sandbox TPMv2.x node

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > This node declares the presence of the Sandbox TPMv2.x emulated chip, > available for testing. > > Signed-off-by: Miquel Raynal > --- > arch/sandbox/dts/sandbox.dts | 4 > arch/sandbox/dts/sandbox64.dts | 4 > arch/sandbox/dts/test.dts

Re: [U-Boot] [PATCH v3 21/25] tpm: add a Sandbox TPMv2.x driver

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > 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 > --- > drivers/tpm/Kconfig| 11 +- > drivers/tpm/Makefile | 1 +

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

2018-05-02 Thread Simon Glass
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| 10 + > drivers/tpm/Makefile | 2 + > drivers/tpm/tpm2_tis_spi.c | 678 >

Re: [U-Boot] [PATCH v3 22/25] doc: device-tree-bindings: add Sandbox TPMv2.0 module info

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > Add Sandbox TPMv2.0 module bindings. > > Signed-off-by: Miquel Raynal > --- > doc/device-tree-bindings/tpm2/sandbox.txt | 11 +++ > 1 file changed, 11 insertions(+) > create mode 100644 doc/device-tree-bindings/tpm2/sandbox.txt Add to test

Re: [U-Boot] [PATCH v3 16/25] tpm: add PCR authentication commands support

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > 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

Re: [U-Boot] [PATCH v3 24/25] configs: add TPMv2.x support in Sandbox

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > Enable the Sandbox TPMv2 driver in all possible configurations. > > Signed-off-by: Miquel Raynal > --- > configs/sandbox64_defconfig| 1 + > configs/sandbox_defconfig | 1 + > configs/sandbox_flattree_defconfig | 1 + > configs/sand

Re: [U-Boot] [PATCH v3 18/25] tpm: add the possibility to reset the chip with a gpio

2018-05-02 Thread Simon Glass
Hi Miquel, On 2 May 2018 at 02:59, Miquel Raynal wrote: > 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 | 18 ++ >

Re: [U-Boot] [PATCH v3 14/25] tpm: add dictionary attack mitigation commands support

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > Add support for the TPM2_DictionaryAttackParameters and > TPM2_DictionaryAttackLockReset commands. > > Change the command file and the help accordingly. > > Signed-off-by: Miquel Raynal > --- > cmd/tpm-v2.c | 67 +

Re: [U-Boot] [PATCH v3 11/25] tpm: add TPM2_PCR_Extend command support

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > Add support for the TPM2_PCR_Extend command. > > Change the command file and the help accordingly. > > Signed-off-by: Miquel Raynal > --- > cmd/tpm-v2.c | 17 + > include/tpm-v2.h | 10 ++ > lib/tpm-v2.c | 38

Re: [U-Boot] [PATCH v3 15/25] tpm: add TPM2_HierarchyChangeAuth command support

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > Add support for the TPM2_HierarchyChangeAuth command. > > Change the command file and the help accordingly. > > Signed-off-by: Miquel Raynal > --- > cmd/tpm-v2.c | 59 > > include/tpm-v2.

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

2018-05-02 Thread Simon Glass
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-v2.c | 41 + > include/tpm-v2.h | 15 +

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

2018-05-02 Thread Simon Glass
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 | 27 +++ > include/tpm-v2.h | 11 +++ > lib/tpm-v

Re: [U-Boot] [PATCH v3 10/25] tpm: add TPM2_Clear command support

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > Add support for the TPM2_Clear command. > > Change the command file and the help accordingly. > > Signed-off-by: Miquel Raynal > --- > cmd/tpm-v2.c | 29 + > include/tpm-v2.h | 11 +++ > lib/tpm-v2.c | 35

Re: [U-Boot] [PATCH v3 09/25] tpm: add TPM2_SelfTest command support

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > Add support for the TPM2_Selftest command. > > Change the command file and the help accordingly. > > Signed-off-by: Miquel Raynal > --- > cmd/tpm-v2.c | 26 ++ > include/tpm-v2.h | 9 + > lib/tpm-v2.c | 12 ++

Re: [U-Boot] [PATCH v3 05/25] tpm: add macros to enhance TPM commands readability

2018-05-02 Thread Simon Glass
Hi Miquel, On 2 May 2018 at 02:59, Miquel Raynal wrote: > 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

Re: [U-Boot] [PATCH v3 08/25] tpm: add TPM2_Startup command support

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > Add support for the TPM2_Startup command. > > Change the command file and the help accordingly. > > Signed-off-by: Miquel Raynal > --- > cmd/tpm-v2.c | 26 ++ > include/tpm-v2.h | 9 + > lib/tpm-v2.c | 21 +++

Re: [U-Boot] [PATCH v3 07/25] tpm: report driver error code to upper layer

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > 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 > --- > lib/tpm-common.c | 3 ++- > 1 file changed, 2 insertions(+), 1

Re: [U-Boot] [PATCH v3 04/25] tpm: prepare support for TPMv2.x commands

2018-05-02 Thread Simon Glass
Hi Miquel, On 2 May 2018 at 02:59, Miquel Raynal wrote: > 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 > --- > cmd/Makefi

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

2018-05-02 Thread Simon Glass
Hi Miquel, On 2 May 2018 at 02:59, Miquel Raynal wrote: > There are no changes in this commit unless: > 1/ a new organization of the code as follow. > 2/ some *very* basic checkpatch.pl corrections that polluated my reports >like s/uint_t/u/, blank spaces and non-aligned parameters on >pa

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

2018-05-02 Thread Simon Glass
Hi Igor, On 25 April 2018 at 07:18, Igor Opaniuk wrote: > Enable a "avb" command to execute Android Verified > Boot 2.0 operations. It includes such subcommands: > avb init - initialize avb2 subsystem > avb read_rb - read rollback index > avb write_rb - write rollback index > avb is_unloc

Re: [U-Boot] [PATCH 1/2] p1022ds: Change Timur's email address

2018-05-02 Thread Timur Tabi
On 05/02/2018 06:12 PM, Fabio Estevam wrote: ti...@freescale.com is not a valid email for quite some time, so change it to Timur's updated email. Signed-off-by: Fabio Estevam Acked-by: Timur Tabi ___ U-Boot mailing list U-Boot@lists.denx.de https:/

Re: [U-Boot] [PATCH] stdio_dev.h: Drop the video section as it is unused

2018-05-02 Thread Tom Rini
On Thu, May 03, 2018 at 12:38:34AM +0100, Peter Robinson wrote: > On Wed, May 2, 2018 at 11:09 PM, Tom Rini wrote: > > With tighter build flags the fact that this header referenced > > uchar/ushort without including what typedefs it causes warnings. Rather > > than add another include here, drop

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

2018-05-02 Thread Joe Hershberger
On Fri, Apr 27, 2018 at 4:55 AM, 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 required > if (

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

2018-05-02 Thread Joe Hershberger
On Fri, Apr 27, 2018 at 4:55 AM, Chris Packham wrote: > Add a Kconfig option for BOOTP_NTPSERVER to enable the DHCP/BOOTP option > to configure the sntp server address. Please also remove it from scripts/config_whitelist.txt Also, there is one board with it enabled: include/configs/devkit8000.h:

Re: [U-Boot] [PATCH 2/2] [RFC]new command: wol - enable command

2018-05-02 Thread Joe Hershberger
On Mon, Apr 23, 2018 at 12:47 PM, Lothar Felten wrote: > This patch enables the WoL command > > Signed-off-by: Lothar Felten > --- > cmd/Kconfig | 5 + > cmd/net.c | 14 ++ > include/net.h | 3 ++- > net/Makefile | 1 + > net/net.c | 19 +++ > 5 file

Re: [U-Boot] [PATCH 1/2] [RFC]new command: wol - Wake on LAN

2018-05-02 Thread Joe Hershberger
Hi Lothar, I generally like this. Thanks! Please use the "net: " prefix to the subject of your patches. Also follow http://www.denx.de/wiki/U-Boot/Patches - Commit message conventions " Use the imperative tense in your summary line (e.g., "Add support for X" rather than "Adds support for X"). In

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

2018-05-02 Thread Marek Vasut
The following changes since commit b25f8e2112b1582ce6386e846800a31bab688e50: Merge git://git.denx.de/u-boot-imx (2018-04-30 07:14:05 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to 48cdfa2f8177dbdfc77c365c0f3f918ceadbe484

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

2018-05-02 Thread Marek Vasut
The following changes since commit ec1754f091c3c06d76592a3f9fecf6184f27e4c9: Prepare v2018.05-rc3 (2018-05-01 09:09:31 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to 74c8cb02a4a7d20961a58ff8763ee32045becccb: ARM: rmobi

[U-Boot] [PATCH] efi_loader: correctly apply relocations from the .reloc section

2018-05-02 Thread Ivan Gorinov
Instead of difference between preferred and actual image base, the actual base is added to the fields specified in the .reloc section. Use ImageBase from PE optional header to compute the delta, exit early if the image is loaded at the preferred address. Signed-off-by: Ivan Gorinov --- lib/efi_

Re: [U-Boot] [PATCH] stdio_dev.h: Drop the video section as it is unused

2018-05-02 Thread Peter Robinson
On Wed, May 2, 2018 at 11:09 PM, Tom Rini wrote: > With tighter build flags the fact that this header referenced > uchar/ushort without including what typedefs it causes warnings. Rather > than add another include here, drop the section in question as it is > unused. This doesn't completely fix

Re: [U-Boot] u-boot Marvell ethernet switch development

2018-05-02 Thread Chris Packham
Hi Dennis, On Thu, May 3, 2018 at 3:21 AM Dennis Jacobs < dennis.jaco...@prodrive-technologies.com> wrote: > Dear U-boot mailing list, > Its the first time I make use of this U-boot mailing list. I am here for a problem I am having recently with u-boot which is part of my graduation project. We

[U-Boot] [PATCH 2/2] board/freescale: Remove invalid fsl email addresses

2018-05-02 Thread Fabio Estevam
From: Fabio Estevam These fsl email addresses are no longer valid and they do not have a correspondent nxp.com entry. Remove all invalid fsl email addresses and mark the boards as orphan. Signed-off-by: Fabio Estevam --- board/freescale/ls2080aqds/MAINTAINERS | 4 ++-- board/freescale/ls2080

[U-Boot] [PATCH 1/2] p1022ds: Change Timur's email address

2018-05-02 Thread Fabio Estevam
From: Fabio Estevam ti...@freescale.com is not a valid email for quite some time, so change it to Timur's updated email. Signed-off-by: Fabio Estevam --- board/freescale/p1022ds/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/p1022ds/MAINTAINERS

Re: [U-Boot] [PATCH] board: ti: am43: Fix DCDC3 voltage for epos-evm

2018-05-02 Thread Tom Rini
On Wed, May 02, 2018 at 03:06:31PM +0530, Keerthy wrote: > A common voltage of 1.35V was being programmed for all am43 board > versions. EPOS-EVM Needs 1.20V for LPDDR2. > > Fixes: fc69d472621b5 (“board: ti: AM43XX: Add ddr voltage rail configuration”) > Reported-by: James Doublesin > Signed-off

Re: [U-Boot] [GIT PULL] Please pull u-boot-mmc master

2018-05-02 Thread Tom Rini
On Wed, May 02, 2018 at 11:03:20AM +0900, Jaehoon Chung wrote: > Dear Tom, > > Could you pull these patches to u-boot/master? > There are the fixing patches. > Other mmc patches are applied to u-boot-mmc/next branch. I will send the PR > about them at next. > If there is a problem, let me know,

Re: [U-Boot] [PATCH v2] MAINTAINERS: Switch nxp.com domain

2018-05-02 Thread Tom Rini
On Tue, May 01, 2018 at 03:54:39PM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > freescale.com domain is no longer reachable, so switch the > maintainers' emails to nxp.com domain instead. > > Signed-off-by: Fabio Estevam Applied to u-boot/master, thanks! -- Tom signature.asc Desc

[U-Boot] [PATCH] stdio_dev.h: Drop the video section as it is unused

2018-05-02 Thread Tom Rini
With tighter build flags the fact that this header referenced uchar/ushort without including what typedefs it causes warnings. Rather than add another include here, drop the section in question as it is unused. Reported-by: Peter Robinson Signed-off-by: Tom Rini --- include/stdio_dev.h | 18 --

Re: [U-Boot] [PATCH 2/2] spi: kirkwood: Full dm conversion

2018-05-02 Thread Chris Packham
Hi All, On Wed, May 2, 2018 at 10:53 PM Stefan Roese wrote: > Hi Simon, > On 01.05.2018 12:54, Simon Guinot wrote: > > On Mon, Apr 30, 2018 at 11:28:28AM +0530, Jagan Teki wrote: > >> On Fri, Apr 27, 2018 at 2:21 PM, Simon Guinot < simon.gui...@sequanux.org> wrote: > >>> On Thu, Apr 26, 2018 at

Re: [U-Boot] [PATCH] Kconfig: Add dependency on HASH to verified boot

2018-05-02 Thread Joe Hershberger
On Wed, May 2, 2018 at 5:07 AM, Kelvin Cheung wrote: > Building with verified boot support requires hash, add that > dependency here. Otherwise the following build error will come out > without crc command. > > LD u-boot > lib/built-in.o: In function `hash_calculate': > lib/rsa/rsa-chec

Re: [U-Boot] [PATCH v3 5/5] configs: Bananapi_M2_Ultra: enable gigabit on the Bananapi

2018-05-02 Thread Joe Hershberger
On Mon, Apr 23, 2018 at 9:57 AM, Lothar Felten wrote: > Enable the gigabit ethernet for the Bananapi M2 Ultra board. > Tested on BananaPi M2 Berry (R40), custom board (V40) > > Signed-off-by: Lothar Felten Reviewed-by: Joe Hershberger ___ U-Boot maili

Re: [U-Boot] [PATCH v3 4/5] sunxi: R40: add gigabit ethernet devicetree node

2018-05-02 Thread Joe Hershberger
On Mon, Apr 23, 2018 at 9:57 AM, Lothar Felten wrote: > Add a device tree node for the Allwinner R40/V40 GMAC gigabit > ethernet interface. > The R40 SoC does not use the syscon register for GMAC settings. > > Signed-off-by: Lothar Felten Reviewed-by: Joe Hershberger ___

Re: [U-Boot] [PATCH v3 2/5] net: sun8i-emac: support R40 GMAC

2018-05-02 Thread Joe Hershberger
On Mon, Apr 23, 2018 at 9:57 AM, Lothar Felten wrote: > Add support for the GMAC found in the Allwinner R40/V40 SoC. > > The R40 GMAC interface is not controlled by the syscon register but > has a separate configuration register in the CCU. > The clock gate and reset bits are in a different regist

Re: [U-Boot] [PATCH v3 02/25] tpm: prepare introduction of TPMv2.x support in Kconfig

2018-05-02 Thread Simon Glass
On 2 May 2018 at 02:59, Miquel Raynal wrote: > > 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 cur

Re: [U-Boot] [PATCH v4] arm64: Add SMC and HVC commands

2018-05-02 Thread Simon Glass
Hi, On 2 May 2018 at 01:54, Michalis Pappas wrote: > On 04/25/2018 03:54 PM, Michalis Pappas wrote: >> >> On 04/13/2018 10:40 AM, Michalis Pappas wrote: >>> >>> This patch adds smc and hvc commands, that allow issuing Secure Monitor >>> Calls and Hypervisor Calls conforming to the ARM SMC Calling

Re: [U-Boot] [RFC] Exporting defaul environment

2018-05-02 Thread Simon Glass
Hi Stefano, On 2 May 2018 at 02:48, Stefano Babic wrote: > > Hi, > > I am thinking about how it is possible to export in a clean way the > default environment from u-boot. The general use case happens when the > environment must be changed from user space (via fw_setenv or whatever) > and no envi

Re: [U-Boot] [PATCH v3 1/5] sunxi: R40: add gigabit ethernet clocks

2018-05-02 Thread Joe Hershberger
On Mon, Apr 23, 2018 at 9:57 AM, Lothar Felten wrote: > Add clock control entries for the gigabit interface of the Allwinner > R40/V40 CPU > > Signed-off-by: Lothar Felten You dropped Maxime's Acks when you sent the v3. You need to include any acks or reviews you already got in the new version u

Re: [U-Boot] [PATCH 8/8] doc: avb2.0: add README about AVB2.0 integration

2018-05-02 Thread Sam Protsenko
On 25 April 2018 at 16:18, Igor Opaniuk wrote: > Contains: > 1. Overview of Android Verified Boot 2.0 > 2. Description of avb subset of commands > 3. Examples of errors when boot/vendor/system/vbmeta partitions > are tampered > 4. Examples of enabling AVB2.0 on your setup > > Signed-off-by: Igor O

Re: [U-Boot] [v2] net/phy/cortina: Add support for CS4223 PHY

2018-05-02 Thread Joe Hershberger
On Wed, May 2, 2018 at 6:23 AM, Vicentiu Galanopulo wrote: > Add support for Cortina CS4223 10G PHY > - As per the CS4223 specs, an EEPROM module is > connected to the PHY. At startup the PHY reads > the firmware line and tries to load the firmware > into the internal memory. > - T

Re: [U-Boot] [PATCH 6/8] am57xx_hs: avb2.0: add support of AVB 2.0

2018-05-02 Thread Sam Protsenko
On 25 April 2018 at 16:18, Igor Opaniuk wrote: > 1. Add vbmeta partition info to android partition layout for am57xx SoC > 2. Add support of AVB 2.0 (including avb subset of commands) for am57xx HS > > Signed-off-by: Igor Opaniuk > --- > configs/am57xx_hs_evm_defconfig | 3 +++ > include/config

Re: [U-Boot] [PATCH 5/8] avb2.0: add boot states and dm-verity support

2018-05-02 Thread Sam Protsenko
On 25 April 2018 at 16:18, Igor Opaniuk wrote: > 1. Add initial support of boot states mode (red, green, yellow) > 2. Add functions for enforcing dm-verity configurations > > Signed-off-by: Igor Opaniuk > --- > cmd/avb.c| 17 ++- > common/avb_verify.c | 140 > +

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

2018-05-02 Thread Sam Protsenko
On 25 April 2018 at 16:18, Igor Opaniuk wrote: > Enable a "avb" command to execute Android Verified > Boot 2.0 operations. It includes such subcommands: > avb init - initialize avb2 subsystem > avb read_rb - read rollback index > avb write_rb - write rollback index > avb is_unlocked - chec

Re: [U-Boot] u-boot 2018 SPI SPL

2018-05-02 Thread Fabio Estevam
Hi Mehmet, On Mon, Apr 30, 2018 at 3:24 AM, Mehmet Ali İPİN wrote: > Dear Fabio, > > Windows 10 tried but could not load the device driver of our eMMC (micron > tech MTFC4GLDDQ). Then > > I programmed SPL and u-boot.img into eMMC with u-boot commands; even SPI > flash based SPL see the MMC1(eMM

[U-Boot] [PATCH v2 1/1] arm: Add support for Trenz TE0820 on Sundance EMC2-DP-V2

2018-05-02 Thread Vladimir Svoboda
Add support for Trenz TE0820 revision 2 MPSoC module. The TE0820 is a System-On-Module (SOM). This has been tested with a Sundance EMC2-DP-V2 Revision 1 carrier board. The tested variant of the TE0820 is TE0820-02-03EG-1EA. Signed-off-by: Vladimir Svoboda --- Changes in v2: - Renamed a lot from

[U-Boot] [PATCH v2 0/1] Support for Trenz TE0820 on Sundance EMC2-DP-V2

2018-05-02 Thread Vladimir Svoboda
I updated the patch according to the review of Michal Simek. I understand the concern about the maintenance of the support, so I added people from Sundance and Trenz to this patch serie. If any one of you wants to take over the integration of the patch, feel free to do so. Changes in v2: - Renamed

Re: [U-Boot] [PATCH 0/2] video: dw_hdmi: fix HSYNC and VSYNC polarity settings

2018-05-02 Thread Jernej Škrabec
Hi, Dne sreda, 02. maj 2018 ob 16:47:07 CEST je Vasily Khoruzhick napisal(a): > On Wed, May 2, 2018 at 4:01 AM, Anatolij Gustschin wrote: > > Hi, > > > > On Sat, 28 Apr 2018 14:57:27 -0700 > > > > Vasily Khoruzhick anars...@gmail.com wrote: > >> Previous attempt to fix HSYNC and VSYNC polarity

Re: [U-Boot] [PATCH 0/2] video: dw_hdmi: fix HSYNC and VSYNC polarity settings

2018-05-02 Thread Vasily Khoruzhick
On Wed, May 2, 2018 at 4:01 AM, Anatolij Gustschin wrote: > Hi, > > On Sat, 28 Apr 2018 14:57:27 -0700 > Vasily Khoruzhick anars...@gmail.com wrote: > >> Previous attempt to fix HSYNC and VSYNC polarity settings for dw_hdmi >> was wrong - actual root cause wasn't in sunxi dw_hdmi glue code, but in

Re: [U-Boot] [PATCH] bootm.c: Correct the flush_len used in bootm_load_os()

2018-05-02 Thread Simon Glass
On 1 May 2018 at 10:32, Tom Rini wrote: > In do_bootm_states when doing BOOTM_STATE_LOADOS we use load_end > uninitialized and Coverity notes this now. This however leads down > another interesting path. We pass this pointer to bootm_load_os and > that in turn uses this uninitialized value immed

Re: [U-Boot] [PATCH v3 2/2] sunxi: binman: Add U-Boot binary size check

2018-05-02 Thread Måns Rullgård
Maxime Ripard writes: > 1;5201;0c > On Wed, May 02, 2018 at 10:34:49AM +0100, Måns Rullgård wrote: >> Siarhei Siamashka writes: >> >> > On Tue, 01 May 2018 18:25:06 +0100 >> > Måns Rullgård wrote: >> > >> >> Maxime Ripard writes: >> >> >> >> > The U-Boot binary may trip over its actual alloc

Re: [U-Boot] [PATCH v3 3/7] bootcount: Add function wrappers to handle bootcount increment and error checking

2018-05-02 Thread Lukasz Majewski
Hi Tom, > On Wed, May 02, 2018 at 09:08:11AM +0200, Lukasz Majewski wrote: > > > Those two functions can be used to provide easy bootcount > > management. > > > > Signed-off-by: Lukasz Majewski > [snip] > > > +#if defined CONFIG_SPL_BOOTCOUNT_LIMIT || defined > > CONFIG_BOOTCOUNT_LIMIT + > >

[U-Boot] [PATCH v5 5/7] bootcount: spl: Extend SPL to support bootcount incrementation

2018-05-02 Thread Lukasz Majewski
This patch adds support for incrementation of the bootcount in SPL. Such feature is necessary when we do want to use this feature with 'falcon' boot mode (which loads OS directly in SPL). Signed-off-by: Lukasz Majewski Reviewed-by: Stefan Roese Reviewed-by: Tom Rini --- Changes in v5: - None

[U-Boot] [PATCH v5 6/7] bootcount: display5: spl: Extend DISPLAY5 board SPL to support bootcount checking

2018-05-02 Thread Lukasz Majewski
This patch is necessary for providing basic bootcount checking in the case of using "falcon" boot mode in that board. It forces u-boot proper boot, when we exceed the number of errors. Signed-off-by: Lukasz Majewski Reviewed-by: Stefan Roese --- Changes in v5: - None Changes in v4: - Use glo

[U-Boot] [PATCH v5 7/7] bootcount: display5: config: Enable boot count feature in the display5 board

2018-05-02 Thread Lukasz Majewski
The boot count is enabled in both SPL and proper u-boot. Signed-off-by: Lukasz Majewski Reviewed-by: Stefan Roese --- Changes in v5: - None Changes in v4: - None Changes in v3: - None Changes in v2: - None configs/display5_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/

[U-Boot] [PATCH v5 4/7] bootcount: Rewrite autoboot to use wrapper functions from bootcount.h

2018-05-02 Thread Lukasz Majewski
The code has been refactored to use common wrappers from bootcount.h header. Signed-off-by: Lukasz Majewski Reviewed-by: Stefan Roese Reviewed-by: Tom Rini --- Changes in v5: - None Changes in v4: - Use global data pointer (gd_t *) instead of bootcount specific enum Changes in v3: - New pat

[U-Boot] [PATCH v5 2/7] bootcount: Add include guards into bootcount.h file

2018-05-02 Thread Lukasz Majewski
This patch adds missing include guards for bootcount.h file. Signed-off-by: Lukasz Majewski Reviewed-by: Stefan Roese Reviewed-by: Tom Rini --- Changes in v5: - None Changes in v4: - None Changes in v3: - None Changes in v2: - New patch include/bootcount.h | 3 +++ 1 file changed, 3 inse

[U-Boot] [PATCH v5 3/7] bootcount: Add function wrappers to handle bootcount increment and error checking

2018-05-02 Thread Lukasz Majewski
Those two functions can be used to provide easy bootcount management. Signed-off-by: Lukasz Majewski Reviewed-by: Tom Rini Reviewed-by: Stefan Roese --- Changes in v5: - Provide parenthesis for #if defined(FOO) && ... Changes in v4: - Remove enum bootcount_context and replace it with checkin

[U-Boot] [PATCH v5 1/7] bootcount: spl: Enable bootcount support in SPL

2018-05-02 Thread Lukasz Majewski
New, SPL related config option - CONFIG_SPL_BOOTCOUNT_LIMIT has been added to allow drivers/bootcount code re-usage in SPL. This code is necessary to use and setup bootcount in SPL in the case of falcon boot mode. Signed-off-by: Lukasz Majewski Reviewed-by: Stefan Roese Reviewed-by: Tom Rini

[U-Boot] [PATCH v5 0/7] Provide SPL support for bootcount (in the case of using falcon boot mode)

2018-05-02 Thread Lukasz Majewski
This patch series provides support for controlling bootcount limits in SPL. Moreover, the common code has been identified and reused in the common/autoboot.c file. It also enables this feature on display5 board to present usage patterns. This patch has been applied on top of u-boot/master: SHA1 :

Re: [U-Boot] Uboot Hangs when Initrd size increses

2018-05-02 Thread Clément Péron
Got same issue recently and sent the explanation : https://lists.denx.de/pipermail/u-boot/2018-February/321060.html You can try to enable early_printk and confirm if it's the same issue, Regards, Clément Le lun. 30 avr. 2018 à 16:15, josh phelps a écrit : > Hello All, > Im booting Linux on arm6

Re: [U-Boot] [PATCH v3 2/2] sunxi: binman: Add U-Boot binary size check

2018-05-02 Thread Maxime Ripard
1;5201;0c On Wed, May 02, 2018 at 10:34:49AM +0100, Måns Rullgård wrote: > Siarhei Siamashka writes: > > > On Tue, 01 May 2018 18:25:06 +0100 > > Måns Rullgård wrote: > > > >> Maxime Ripard writes: > >> > >> > The U-Boot binary may trip over its actual allocated size in the storage. > >> > In

Re: [U-Boot] [PATCH v3 1/2] pwm: sunxi: add support for PWM found on Allwinner A64

2018-05-02 Thread Anatolij Gustschin
Hi, On Wed, 2 May 2018 11:24:36 +0200 Maxime Ripard maxime.rip...@bootlin.com wrote: > Hi, > > On Sat, Apr 28, 2018 at 02:05:14PM -0700, Vasily Khoruzhick wrote: > > +static const struct udevice_id sunxi_pwm_ids[] = { > > + { .compatible = "allwinner,sun50i-a64-pwm" }, > > + { } > > +}; > >

Re: [U-Boot] [PATCH v2 1/7] i.MX6: board: Add BTicino i.MX6DL Mamoj initial support

2018-05-02 Thread Jagan Teki
Hi Stefano, On Thu, Apr 26, 2018 at 1:16 PM, Stefano Babic wrote: > On 26/04/2018 09:33, Jagan Teki wrote: >> On Thu, Apr 26, 2018 at 12:47 PM, Stefano Babic wrote: >>> Hi Jagan, >>> [snip] + +static int mx6dl_dcd_table[] = { + 0x020e0774, 0x000C, /* MX6_IOM_GRP_DDR_TYP

Re: [U-Boot] [PATCH 2/2] mmc: sunxi: run calibration on A64

2018-05-02 Thread Maxime Ripard
On Sat, Apr 28, 2018 at 02:16:28PM -0700, Vasily Khoruzhick wrote: > Along with using new mode it fixes eMMC instability on Pinebook > > Signed-off-by: Vasily Khoruzhick > --- > arch/arm/include/asm/arch-sunxi/mmc.h | 6 +- > drivers/mmc/sunxi_mmc.c | 6 ++ > 2 files change

Re: [U-Boot] [PATCH 1/2] sunxi-mmc: use new mode on A64

2018-05-02 Thread Maxime Ripard
Hi, On Sat, Apr 28, 2018 at 02:16:27PM -0700, Vasily Khoruzhick wrote: > That is necessary for using automatic calibration on A64 eMMC. > > Signed-off-by: Vasily khoruzhick > --- > arch/arm/mach-sunxi/Kconfig | 1 + > drivers/mmc/sunxi_mmc.c | 4 > 2 files changed, 5 insertions(+) > >

Re: [U-Boot] [PATCH] add common.h include to stdio_dev.h

2018-05-02 Thread Peter Robinson
On Wed, May 2, 2018 at 12:24 PM, Tom Rini wrote: > On Wed, May 02, 2018 at 10:59:12AM +0100, Peter Robinson wrote: > >> stdio_dev.h references uchar which is defined in common.h and causes build >> failures on toolchains which have tightened build flags such as Fedora 28. >> This >> was causing b

[U-Boot] [v2] net/phy/cortina: Add support for CS4223 PHY

2018-05-02 Thread Vicentiu Galanopulo
Add support for Cortina CS4223 10G PHY - As per the CS4223 specs, an EEPROM module is connected to the PHY. At startup the PHY reads the firmware line and tries to load the firmware into the internal memory. - This driver reads the EEPROM status and checks if firmware has been l

Re: [U-Boot] [PATCH] add common.h include to stdio_dev.h

2018-05-02 Thread Tom Rini
On Wed, May 02, 2018 at 10:59:12AM +0100, Peter Robinson wrote: > stdio_dev.h references uchar which is defined in common.h and causes build > failures on toolchains which have tightened build flags such as Fedora 28. > This > was causing build failures on devices such as Xilinx zynqmp targets wh

Re: [U-Boot] [PATCH v3 3/7] bootcount: Add function wrappers to handle bootcount increment and error checking

2018-05-02 Thread Tom Rini
On Wed, May 02, 2018 at 09:08:11AM +0200, Lukasz Majewski wrote: > Those two functions can be used to provide easy bootcount management. > > Signed-off-by: Lukasz Majewski [snip] > +#if defined CONFIG_SPL_BOOTCOUNT_LIMIT || defined CONFIG_BOOTCOUNT_LIMIT > + > #if !defined(CONFIG_SYS_BOOTCOUNT

Re: [U-Boot] [PATCH 0/2] video: dw_hdmi: fix HSYNC and VSYNC polarity settings

2018-05-02 Thread Anatolij Gustschin
Hi, On Sat, 28 Apr 2018 14:57:27 -0700 Vasily Khoruzhick anars...@gmail.com wrote: > Previous attempt to fix HSYNC and VSYNC polarity settings for dw_hdmi > was wrong - actual root cause wasn't in sunxi dw_hdmi glue code, but in > dw_hdmi driver itself. This series reverts previous attempt to fix

Re: [U-Boot] [PATCH] arm: Add support for Trenz TE0820 (zynqmp)

2018-05-02 Thread Michal Simek
Hi, On 2.5.2018 11:06, Vladimir Svoboda wrote: > Thanks for the review, > > On 02/05/18 10:00, Michal Simek wrote: >> Hi, + Trenz support. >> >> On 30.4.2018 16:10, Vladimir Svoboda wrote: >>> Add support for Trenz TE0820 revision 2 MPSoC module. >>> >>> Signed-off-by: Vladimir Svoboda >> I can'

Re: [U-Boot] [PATCH 2/2] spi: kirkwood: Full dm conversion

2018-05-02 Thread Stefan Roese
Hi Simon, On 01.05.2018 12:54, Simon Guinot wrote: On Mon, Apr 30, 2018 at 11:28:28AM +0530, Jagan Teki wrote: On Fri, Apr 27, 2018 at 2:21 PM, Simon Guinot wrote: On Thu, Apr 26, 2018 at 11:30:00AM +0530, Jagan Teki wrote: On Thu, Mar 15, 2018 at 5:03 PM, Jagan Teki wrote: kirkwood now su

Re: [U-Boot] Make cmd_get_data_size() a dependency of setexpr

2018-05-02 Thread qlb1234
Hi Tom, I added the sign-off-by line. Regards, Wesley From bf3d846d800ac45714b8c2f9a15964e9df650bc2 Mon Sep 17 00:00:00 2001 From: Wesley Chan Date: Wed, 2 May 2018 16:24:40 +0800 Subject: [PATCH] setexpr: This commit broke it: 6f62d7. Solution: Make cmd_get_data_size() a dependency of setexpr.

Re: [U-Boot] [PATCH] arm: Add support for Trenz TE0820 (zynqmp)

2018-05-02 Thread Vladimir Svoboda
Thanks for the review, On 02/05/18 10:00, Michal Simek wrote: Hi, + Trenz support. On 30.4.2018 16:10, Vladimir Svoboda wrote: Add support for Trenz TE0820 revision 2 MPSoC module. Signed-off-by: Vladimir Svoboda I can't see your name in git log that's why I expect this is maybe your the fi

Re: [U-Boot] [RFC PATCH v2 00/20] Add fastboot UDP support

2018-05-02 Thread Alex Kiernan
On Wed, May 2, 2018 at 7:34 AM Jocelyn Bohr wrote: > Hi Alex, > I think this approach looks really good so far, and will make maintaining both > implementations easier going forward. I haven't looked at every change here > yet, but when going through the patches should I add a "Reviewed-by:" lin

[U-Boot] [PATCH] Kconfig: Add dependency on HASH to verified boot

2018-05-02 Thread Kelvin Cheung
Building with verified boot support requires hash, add that dependency here. Otherwise the following build error will come out without crc command. LD u-boot lib/built-in.o: In function `hash_calculate': lib/rsa/rsa-checksum.c:29: undefined reference to `hash_progressive_lookup_algo' ..

Re: [U-Boot] [U-Boot,RFC] rockchip: asus c201 support

2018-05-02 Thread Marty E. Plummer
So, regarding my old patchset. Thanks to the generous support of Simon, I have been able to use a google servo board to obtain an output log of my boot failure. Whereas Simon got the following: U-Boot SPL 2017.11-rc2-00017-g6cda208-dirty (Oct 19 2017 - 17:20:26) Trying to boot from SPI U-Boot 20

Re: [U-Boot] [RFC PATCH v2 00/20] Add fastboot UDP support

2018-05-02 Thread Jocelyn Bohr
Hi Alex, I think this approach looks really good so far, and will make maintaining both implementations easier going forward. I haven't looked at every change here yet, but when going through the patches should I add a "Reviewed-by:" line if the change looks good to me? Thanks, Jocelyn On Mon, A

[U-Boot] [PATCH] add common.h include to stdio_dev.h

2018-05-02 Thread Peter Robinson
stdio_dev.h references uchar which is defined in common.h and causes build failures on toolchains which have tightened build flags such as Fedora 28. This was causing build failures on devices such as Xilinx zynqmp targets which include stdio_dev.h via FPGA drivers. Signed-off-by: Peter Robinson

  1   2   >