Re: [U-Boot] [PATCH 00/18] Introduce SPI TPM v2.0 support

2018-03-08 Thread Miquel Raynal
Hi Tom, On Thu, 8 Mar 2018 12:20:30 -0500, Tom Rini wrote: > On Thu, Mar 08, 2018 at 04:40:03PM +0100, Miquel Raynal wrote: > > > Current U-Boot supports TPM v1.2 specification. The new specification > > (v2.0) is not backward compatible and renames/introduces several > >

Re: [U-Boot] [PATCH] arm: Disable the strict alignment of data on armv7

2018-03-08 Thread Michal Simek
Hi Wolfgang, On 8.3.2018 23:52, Wolfgang Denk wrote: > Dear Michal, > > In message > <029f7f8f6d89cc77c92e04223a7402376e050f56.1520433579.git.michal.si...@xilinx.com> > you wrote: >> From: Nitin Jain >> >> This patch is used for disable the strict alignment of data >>

[U-Boot] [PATCH 3/3] ARM: dts: stratix10: Add base dtsi and devkit dts

2018-03-08 Thread Dinh Nguyen
From the Linux v4.16-rc4, add the base dtsi and devkit dts files for the Stratix10 SoCFPGA platform. Signed-off-by: Dinh Nguyen --- arch/arm/dts/Makefile| 1 + arch/arm/dts/socfpga_stratix10.dtsi | 381 +++

[U-Boot] [PATCH 2/3] ARM64: stratix10: add reset manager includes

2018-03-08 Thread Dinh Nguyen
Pulled from linux v4.16-rc4. Signed-off-by: Dinh Nguyen --- include/dt-bindings/reset/altr,rst-mgr-s10.h | 97 1 file changed, 97 insertions(+) create mode 100644 include/dt-bindings/reset/altr,rst-mgr-s10.h diff --git

[U-Boot] [PATCH 1/3] arm: socfpga: stratix10: Add base address map for Statix10 SoC

2018-03-08 Thread Dinh Nguyen
From: Chin Liang See Add the base address map for Statix10 SoC Signed-off-by: Chin Liang See Signed-off-by: Dinh Nguyen --- v2: removed addresses that can be part of the fdt ---

[U-Boot] [PATCH 0/3] ARM: stratix10: initial small patchset

2018-03-08 Thread Dinh Nguyen
Hi, This is a very small initial patchset for the SoCFPGA Stratix10 platform. This patchset adds a few core address defines that are not obtainable from DT, pulls in from Linux the base DTS files, and the reset manager bindings. The DTB is able to compile with this patchset. Instead of dropping

Re: [U-Boot] [PATCH] armv8: ls1043ardb_sdcard: delete CONFIG_SPL_FSL_LS_PPA

2018-03-08 Thread York Sun
On 03/08/2018 06:30 PM, ying.zhang22...@nxp.com wrote: > From: Zhang Ying-22455 > > Signed-off-by: Zhang Ying-22455 > --- I know why you do this. But not everyone knows. If you don't add commit message, I will add whatever I see it fit. York

Re: [U-Boot] [PATCH 1/1] wandboard: remove superfluous include

2018-03-08 Thread Fabio Estevam
On Thu, Mar 8, 2018 at 7:00 PM, Heinrich Schuchardt wrote: > No definition provided by input.h is used in the board file. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Fabio Estevam

Re: [U-Boot] [PATCH] imximage: Check the IVT offset in the correct location

2018-03-08 Thread Fabio Estevam
On Thu, Mar 8, 2018 at 7:24 PM, Fabio Estevam wrote: > Hi Troy, > > On Thu, Mar 8, 2018 at 7:03 PM, Troy Kisky > wrote: > >> Did you test that an image without BOOT_FROM still gets an error message ? > > Good point! It is not properly detecting

Re: [U-Boot] [PATCH v5 02/15] dma: add channels support

2018-03-08 Thread Grygorii Strashko
Hi Álvaro, On 03/05/2018 02:05 PM, Álvaro Fernández Rojas wrote: > This adds channels support for dma controllers that have multiple channels > which can transfer data to/from different devices (enet, usb...). > > Signed-off-by: Álvaro Fernández Rojas > Reviewed-by: Simon

Re: [U-Boot] [PATCH v10 4/4] common: Generic firmware loader for file system

2018-03-08 Thread Wolfgang Denk
Dear Tien Fong, In message <1520485397.10181.12.ca...@intel.com> you wrote: > > > This looks fine as a concept but I am not keen on the implementation. > > > This patchset has been going through many rounds and a lot of time > spending in review, and it is already working and being tested. I

Re: [U-Boot] [PATCH] arm: Disable the strict alignment of data on armv7

2018-03-08 Thread Wolfgang Denk
Dear Michal, In message <029f7f8f6d89cc77c92e04223a7402376e050f56.1520433579.git.michal.si...@xilinx.com> you wrote: > From: Nitin Jain > > This patch is used for disable the strict alignment of data > to avoid the memory alignment issues. Can you please add some

Re: [U-Boot] [PATCH] imximage: Check the IVT offset in the correct location

2018-03-08 Thread Fabio Estevam
Hi Troy, On Thu, Mar 8, 2018 at 7:03 PM, Troy Kisky wrote: > Did you test that an image without BOOT_FROM still gets an error message ? Good point! It is not properly detecting such case. Will need to rework the patch, thanks.

Re: [U-Boot] [PATCH 2/2] usb: kbd: implement special keys

2018-03-08 Thread Heinrich Schuchardt
On 03/08/2018 09:30 PM, Simon Glass wrote: > Hi Heinrich, > > input.c uses PS/2 scan codes at present. However these are somewhat > internal. You should see docs in input.h > > I am not sure of the best approach, but one would be to convert USB > scan codes to PS/2 codes. > > Regards, > Simon >

Re: [U-Boot] [PATCH] imximage: Check the IVT offset in the correct location

2018-03-08 Thread Troy Kisky
On 3/8/2018 12:53 PM, Breno Matheus Lima wrote: > Hi Fabio, > > 2018-03-08 17:40 GMT-03:00 Fabio Estevam : >> From: Fabio Estevam >> >> Sometimes imximage throws the following error: >> >> CFGSboard/freescale/vf610twr/imximage.cfg.cfgtmp >> CFGS

[U-Boot] [PATCH 1/1] wandboard: remove superfluous include

2018-03-08 Thread Heinrich Schuchardt
No definition provided by input.h is used in the board file. Signed-off-by: Heinrich Schuchardt --- board/wandboard/wandboard.c | 1 - 1 file changed, 1 deletion(-) diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c index 1e7c11e670..b7c6c6cb18 100644

[U-Boot] [PATCH 1/1] yaffs2: iterator variable cannot be NULL

2018-03-08 Thread Heinrich Schuchardt
The iterator of list_for_each() is never NULL. Identified with coccinelle. Signed-off-by: Heinrich Schuchardt --- fs/yaffs2/yaffs_guts.c | 4 ++-- fs/yaffs2/yaffsfs.c| 9 +++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/fs/yaffs2/yaffs_guts.c

Re: [U-Boot] [PATCH] arm: socfpga: gen5: Enabling cache and TLB maintenance broadcast

2018-03-08 Thread Dinh Nguyen
On 03/08/2018 08:01 AM, See, Chin Liang wrote: > On Thu, 2018-03-01 at 17:17 +0100, Marek Vasut wrote: >> On 02/28/2018 06:12 AM, chin.liang@intel.com wrote: >>> >>> From: Chin Liang See >>> >>> Enabling cache and TLB maintenance broadcast through ACTLR as >>>

Re: [U-Boot] [PATCH] imximage: Check the IVT offset in the correct location

2018-03-08 Thread Stefano Babic
On 08/03/2018 21:53, Breno Matheus Lima wrote: > Hi Fabio, > > 2018-03-08 17:40 GMT-03:00 Fabio Estevam : >> From: Fabio Estevam >> >> Sometimes imximage throws the following error: >> >> CFGSboard/freescale/vf610twr/imximage.cfg.cfgtmp >>

Re: [U-Boot] [PATCH v10 4/4] common: Generic firmware loader for file system

2018-03-08 Thread Simon Glass
Hi, On 7 March 2018 at 22:03, Chee, Tien Fong wrote: > On Tue, 2018-03-06 at 10:51 -0700, Simon Glass wrote: >> Hi, >> >> On 5 March 2018 at 02:43, wrote: >> > >> > From: Tien Fong Chee >> > >> > This is file system

Re: [U-Boot] [PATCH] dm: core: make fixed-clock dt scan live dt compatible

2018-03-08 Thread Simon Glass
Hi Andy. On 28 February 2018 at 23:08, Andy Yan wrote: > dm_scan_fdt_node can't work when live dt is active, > we should use dm_scan_fdt_live instead. > > Signed-off-by: Andy Yan > --- > > drivers/core/root.c | 16 +++- > 1 file

[U-Boot] [PATCH v4 1/1] efi: Correct header order in efi_memory

2018-03-08 Thread Heinrich Schuchardt
From: Simon Glass The headers are not in the correct order. Fix this. Also drop libfdt_env.h since it is not needed. Signed-off-by: Simon Glass Rebased Reviewed-by: Heinrich Schuchardt --- v4 rebased (linux/libfdt_env.h instead

Re: [U-Boot] [PATCH] imximage: Check the IVT offset in the correct location

2018-03-08 Thread Breno Matheus Lima
Hi Fabio, 2018-03-08 17:40 GMT-03:00 Fabio Estevam : > From: Fabio Estevam > > Sometimes imximage throws the following error: > > CFGSboard/freescale/vf610twr/imximage.cfg.cfgtmp > CFGSboard/freescale/vf610twr/imximage.cfg.cfgtmp > MKIMAGE

[U-Boot] [PATCH] imximage: Check the IVT offset in the correct location

2018-03-08 Thread Fabio Estevam
From: Fabio Estevam Sometimes imximage throws the following error: CFGSboard/freescale/vf610twr/imximage.cfg.cfgtmp CFGSboard/freescale/vf610twr/imximage.cfg.cfgtmp MKIMAGE u-boot-dtb.imx Error: No BOOT_FROM tag in

Re: [U-Boot] [RFC] ns16550: Add support for AUX regs usage on some ARC SoCs

2018-03-08 Thread Simon Glass
Hi Alexey. On 2 March 2018 at 14:51, Alexey Brodkin wrote: > > Hi Simon, > > On Thu, 2018-02-22 at 10:29 -0700, Simon Glass wrote: > > Hi Alexey, > > > > On 22 February 2018 at 09:23, Alexey Brodkin > > wrote: > > > Hi Simon, > > > > > >

Re: [U-Boot] [PATCH v5 07/15] phy: add support for internal phys

2018-03-08 Thread Joe Hershberger
On Thu, Mar 8, 2018 at 1:38 PM, Álvaro Fernández Rojas wrote: > Hi Joe, > > El 07/03/2018 a las 21:28, Joe Hershberger escribió: >> >> On Mon, Mar 5, 2018 at 2:05 PM, Álvaro Fernández Rojas >> wrote: >>> >>> Signed-off-by: Álvaro Fernández Rojas

[U-Boot] [DISCUSSION] Trying to use u-boot 2016.05 with xen 4.4 for jacinto j6 evm board

2018-03-08 Thread moin anjnawala
Hi, I am not able to enable Xen in u-boot 2016.05 for Jacinto 6 board. I am using dra7xx_evm_defconfig and enabled CONFIG_XEN_VIRT_EN. Basically, this config selects CONFIG_CPU_V7_HAS_NONSEC and CPU_V7_HAS_VIRTUAL and CONFIG_ARMv7_PSCI. When I try to build u-boot.I get following build errors:

Re: [U-Boot] [PATCH 0/2] Add atomic write to fw_setenv for environments on filesystems

2018-03-08 Thread Heinrich Schuchardt
On 03/08/2018 12:52 PM, Alex Kiernan wrote: For environments stored on filesystems where you can't have a redundant configuration, rather than just over-writing the existing environment in fw_setenv, do the tradtional create temporary file, rename, sync, sync directory dance to achieve ACID

[U-Boot] [PATCH v2 1/1] scripts/coccinelle: add some more coccinelle tests

2018-03-08 Thread Heinrich Schuchardt
kmerr: verify that malloc and calloc are followed by a check to verify that we are not out of memory. badzero: Compare pointer-typed values to NULL rather than 0 Both checks are copied from the Linux kernel archive. Signed-off-by: Heinrich Schuchardt --- v2 Add SPDX

Re: [U-Boot] [PATCH v5 08/15] net: add support for bcm6348-enet

2018-03-08 Thread Álvaro Fernández Rojas
Hi Joe, El 07/03/2018 a las 22:46, Joe Hershberger escribió: On Mon, Mar 5, 2018 at 2:05 PM, Álvaro Fernández Rojas wrote: Signed-off-by: Álvaro Fernández Rojas --- v5: Receive as much packets as possible from bcm6348-eth and cache them in

Re: [U-Boot] [PATCH v5 02/15] dma: add channels support

2018-03-08 Thread Álvaro Fernández Rojas
Hi Joe, El 07/03/2018 a las 22:27, Joe Hershberger escribió: On Mon, Mar 5, 2018 at 2:05 PM, Álvaro Fernández Rojas wrote: This adds channels support for dma controllers that have multiple channels which can transfer data to/from different devices (enet, usb...).

Re: [U-Boot] [PATCH v5 07/15] phy: add support for internal phys

2018-03-08 Thread Álvaro Fernández Rojas
Hi Joe, El 07/03/2018 a las 21:28, Joe Hershberger escribió: On Mon, Mar 5, 2018 at 2:05 PM, Álvaro Fernández Rojas wrote: Signed-off-by: Álvaro Fernández Rojas --- v5: no changes v4: no changes v3: no changes v2: no changes include/phy.h | 2

Re: [U-Boot] No BOOT_FROM tag build error

2018-03-08 Thread Fabio Estevam
Hi Stefano, On Thu, Mar 8, 2018 at 2:40 PM, Stefano Babic wrote: > Confirmed - even with patch, running in a loop: > > make mrproper;make vf610twr_defconfig; make -j8 > > I can trigger the error. In most cases it works. It looks to me that > mkimake is called before

Re: [U-Boot] [PATCH v8 2/3] Adding TCP

2018-03-08 Thread Joe Hershberger
Hi Duncan, The subject should be "net: Add TCP". Subjects should be completing the sentence, "This patch is intended to _." It should also be prefixed by the a tag for what area of the project it is touching. On Wed, Mar 7, 2018 at 10:43 PM, wrote: > From: Duncan Hare

Re: [U-Boot] [PATCH v8 1/3] Adding TCP and wget into u-boot

2018-03-08 Thread Joe Hershberger
Hi Duncan, Still some issues, but getting closer to parsable. The subject of this should be something like, "net: Adjust UDP implementation to prepare for TCP support" On Wed, Mar 7, 2018 at 10:43 PM, wrote: > From: Duncan Hare > >> > I think

Re: [U-Boot] No BOOT_FROM tag build error

2018-03-08 Thread Stefano Babic
On 08/03/2018 18:20, Fabio Estevam wrote: > Hi Stefano, > > On Thu, Mar 8, 2018 at 2:00 PM, Stefano Babic wrote: > >> Anyway, I) have just done what the error is saying: >> >> diff --git a/board/freescale/vf610twr/imximage.cfg >> b/board/freescale/vf610twr/imximage.cfg >> index

Re: [U-Boot] [PATCH] tools/mkimage: Use proper output parameter in dtc-system call

2018-03-08 Thread Tom Rini
On Thu, Mar 08, 2018 at 09:00:13AM +0100, Stefan Theil wrote: > The system call used by mkimage to run dtc redirects stdout to a > temporary file. This can cause problems on Windows (with a MinGW > cross-compiled version). Using the "-o" dtc parameter avoids > this problem. > > Signed-off-by:

Re: [U-Boot] No BOOT_FROM tag build error

2018-03-08 Thread Fabio Estevam
Hi Stefano, On Thu, Mar 8, 2018 at 2:00 PM, Stefano Babic wrote: > Anyway, I) have just done what the error is saying: > > diff --git a/board/freescale/vf610twr/imximage.cfg > b/board/freescale/vf610twr/imximage.cfg > index 70157ed..9ff4890 100644 > ---

Re: [U-Boot] [PATCH 00/18] Introduce SPI TPM v2.0 support

2018-03-08 Thread Tom Rini
On Thu, Mar 08, 2018 at 04:40:03PM +0100, Miquel Raynal wrote: > 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 a new SPI driver following the TPM v2.0 >

Re: [U-Boot] [PATCH 2/2] tools: env: Implement atomic replace for filesystem

2018-03-08 Thread Stefano Babic
Hi alex, On 08/03/2018 12:52, Alex Kiernan wrote: > If the U-Boot environment is stored in a regular file and redundant > operation isn't set, then write to a temporary file and perform an > atomic rename. > Even if it is not explicitely set (IMHO it should), this code can be used as library

Re: [U-Boot] No BOOT_FROM tag build error

2018-03-08 Thread Stefano Babic
Hi Fabio, On 08/03/2018 17:49, Fabio Estevam wrote: > Hi, > > My colleague Breno reported an issue with vf610twr_defconfig in U-Boot > mainline. > > Sometimes it fails like this: > > CAT u-boot-dtb.bin > COPYu-boot.dtb > COPYu-boot.bin > CFGS

[U-Boot] No BOOT_FROM tag build error

2018-03-08 Thread Fabio Estevam
Hi, My colleague Breno reported an issue with vf610twr_defconfig in U-Boot mainline. Sometimes it fails like this: CAT u-boot-dtb.bin COPYu-boot.dtb COPYu-boot.bin CFGSboard/freescale/vf610twr/imximage.cfg.cfgtmp CFGSboard/freescale/vf610twr/imximage.cfg.cfgtmp

[U-Boot] [PATCH 13/18] tpm: add TPM2_PCR_Extend command support

2018-03-08 Thread Miquel Raynal
Add support for the TPM2_PCR_Extend command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal --- cmd/tpm.c | 18 ++ include/tpm.h | 18 ++ lib/tpm.c | 41 +

[U-Boot] [PATCH 10/18] tpm: add TPM2_SelfTest command support

2018-03-08 Thread Miquel Raynal
Add support for the TPM2_Selftest command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal --- include/tpm.h | 9 +++-- lib/tpm.c | 36 2 files changed, 35 insertions(+), 10 deletions(-)

[U-Boot] [PATCH 17/18] tpm: add TPM2_HierarchyChangeAuth command support

2018-03-08 Thread Miquel Raynal
Add support for the TPM2_HierarchyChangeAuth command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal --- cmd/tpm.c | 34 ++ include/tpm.h | 14 ++ lib/tpm.c | 47

[U-Boot] [PATCH 05/18] tpm: prepare support for TPMv2 commands

2018-03-08 Thread Miquel Raynal
Later choice between v1 and v2 compliant functions will be handled by a global value in lib/tpm.c that will be accessible through set/get accessors from lib/cmd.c. This global value is set during the initialization phase if the TPM2 handle is given to the init command. Signed-off-by: Miquel

[U-Boot] [PATCH 09/18] tpm: add TPM2_Startup command support

2018-03-08 Thread Miquel Raynal
Add support for the TPM2_Startup command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal --- cmd/tpm.c | 9 +++-- include/tpm.h | 26 +- lib/tpm.c | 35 +-- 3 files

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

2018-03-08 Thread Miquel Raynal
Add support for the TPM2_Clear command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal --- cmd/tpm.c | 29 ++--- cmd/tpm_test.c | 6 +++--- include/tpm.h | 21 + lib/tpm.c | 42

[U-Boot] [PATCH 15/18] tpm: add TPM2_GetCapability command support

2018-03-08 Thread Miquel Raynal
Add support for the TPM2_GetCapability command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal --- cmd/tpm.c | 31 --- include/tpm.h | 14 +++--- lib/tpm.c | 39

[U-Boot] [PATCH 18/18] tpm: add PCR authentication commands support

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

[U-Boot] [PATCH 08/18] tpm: handle different buffer sizes

2018-03-08 Thread Miquel Raynal
Usual buffer sizes for TPMv1 and TPMv2 are different. Change TPMv1 buffer size definition for that and declare another size for TPMv2 buffers. Signed-off-by: Miquel Raynal --- cmd/tpm.c | 5 +++-- include/tpm.h | 2 ++ lib/tpm.c | 60

[U-Boot] [PATCH 16/18] tpm: add dictionary attack mitigation commands support

2018-03-08 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 --- cmd/tpm.c | 69 + include/tpm.h | 26

[U-Boot] [PATCH 03/18] tpm: add support for TPMv2 SPI modules

2018-03-08 Thread Miquel Raynal
Add the tpm_tis_spi driver that should support any TPMv2 compliant (SPI) module. Signed-off-by: Miquel Raynal --- drivers/tpm/Kconfig | 9 + drivers/tpm/Makefile | 1 + drivers/tpm/tpm_tis.h | 3 + drivers/tpm/tpm_tis_spi.c | 656

[U-Boot] [PATCH 12/18] tpm: rename the _extend() function to be _pcr_event()

2018-03-08 Thread Miquel Raynal
The function currently called _extend() actually does what the specification defines as a _pcr_event(). Rename the function accordingly before implementing the actual _extend() command. Signed-off-by: Miquel Raynal --- cmd/tpm.c | 18 ++

[U-Boot] [PATCH 14/18] tpm: add TPM2_PCR_Read command support

2018-03-08 Thread Miquel Raynal
Add support for the TPM2_PCR_Read command. Change the command file and the help accordingly. Signed-off-by: Miquel Raynal --- cmd/tpm.c | 23 ++- include/tpm.h | 4 ++-- lib/tpm.c | 56

[U-Boot] [PATCH 07/18] tpm: add possible traces to analyze buffers returned by the TPM

2018-03-08 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 --- lib/tpm.c | 12 +++- 1 file changed, 11 insertions(+), 1

[U-Boot] [PATCH 04/18] tpm: fix indentation in command list before adding more

2018-03-08 Thread Miquel Raynal
Prepare the addition of more commands by first indenting correctly the current list. Signed-off-by: Miquel Raynal --- cmd/tpm.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/cmd/tpm.c b/cmd/tpm.c index

[U-Boot] [PATCH 06/18] tpm: add macros for TPMv2 commands

2018-03-08 Thread Miquel Raynal
TPM commands are much easier to handle with these macros that will transform words or integers into byte string. 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 02/18] tpm: rename tpm_tis_infineon in tpm_tis_infineon_i2c

2018-03-08 Thread Miquel Raynal
As the chips driven by tpm_tis_infineon.c are only I2C chips, rename the driver with the _i2c suffix to prepare the venue of its _spi cousin. Also change the driver name in the U_BOOT_DRIVER structure. Signed-off-by: Miquel Raynal --- drivers/tpm/Kconfig

[U-Boot] [PATCH 01/18] tpm: add Revision ID field in the chip structure

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

[U-Boot] [PATCH 00/18] Introduce SPI TPM v2.0 support

2018-03-08 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 a new SPI driver following the TPM v2.0 specification. It has been tested on a ST TPM but should be usable with others v2.0

Re: [U-Boot] [PATCH 1/2] tools: env: Refactor write path of flash_io()

2018-03-08 Thread Stefano Babic
On 08/03/2018 12:52, Alex Kiernan wrote: > Extract write path of flash_io() into a separate function. This patch > should be a functional no-op. > > Signed-off-by: Alex Kiernan > --- > > tools/env/fw_env.c | 98 > +- >

Re: [U-Boot] [PATCH] arm: socfpga: gen5: Enabling cache and TLB maintenance broadcast

2018-03-08 Thread See, Chin Liang
On Thu, 2018-03-01 at 17:17 +0100, Marek Vasut wrote: > On 02/28/2018 06:12 AM, chin.liang@intel.com wrote: > > > > From: Chin Liang See > > > > Enabling cache and TLB maintenance broadcast through ACTLR as > > required > > by Linux. > This needs far more

[U-Boot] [PATCH 1/2] tools: env: Refactor write path of flash_io()

2018-03-08 Thread Alex Kiernan
Extract write path of flash_io() into a separate function. This patch should be a functional no-op. Signed-off-by: Alex Kiernan --- tools/env/fw_env.c | 98 +- 1 file changed, 53 insertions(+), 45 deletions(-) diff

[U-Boot] [PATCH 2/2] tools: env: Implement atomic replace for filesystem

2018-03-08 Thread Alex Kiernan
If the U-Boot environment is stored in a regular file and redundant operation isn't set, then write to a temporary file and perform an atomic rename. Signed-off-by: Alex Kiernan --- tools/env/fw_env.c | 81 -- 1 file

[U-Boot] [PATCH 0/2] Add atomic write to fw_setenv for environments on filesystems

2018-03-08 Thread Alex Kiernan
For environments stored on filesystems where you can't have a redundant configuration, rather than just over-writing the existing environment in fw_setenv, do the tradtional create temporary file, rename, sync, sync directory dance to achieve ACID semantics when writing through fw_setenv. Note

[U-Boot] [PATCH] tools/mkimage: Use proper output parameter in dtc-system call

2018-03-08 Thread Stefan Theil
The system call used by mkimage to run dtc redirects stdout to a temporary file. This can cause problems on Windows (with a MinGW cross-compiled version). Using the "-o" dtc parameter avoids this problem. Signed-off-by: Stefan Theil --- tools/fit_image.c | 6 +++---

Re: [U-Boot] [PATCH] dm: mmc: socfpga: call dwmci_probe()

2018-03-08 Thread Patrick Brünn
>From: Jaehoon Chung [mailto:jh80.ch...@samsung.com] >Sent: Donnerstag, 8. März 2018 04:57 >On 03/08/2018 12:12 PM, Marek Vasut wrote: >> On 03/08/2018 03:17 AM, Jaehoon Chung wrote: >>> On 03/06/2018 05:07 PM, linux-kernel-...@beckhoff.com wrote: From: Patrick Bruenn

Re: [U-Boot] [PATCH v2 2/2] bcm283x_pl011: Flush RX queue after setting baud rate

2018-03-08 Thread Peter Robinson
On Wed, Mar 7, 2018 at 9:08 PM, Alexander Graf wrote: > After the UART was initialized, we may still have bogus data in the > RX queue if it was enabled with incorrect pin muxing before. > > So let's flush the RX queue whenever we initialize baud rates. > > This fixes a regression

Re: [U-Boot] [PATCH v2 1/2] serial_bcm283x_mu: Flush RX queue after setting baud rate

2018-03-08 Thread Peter Robinson
On Wed, Mar 7, 2018 at 9:08 PM, Alexander Graf wrote: > After the UART was initialized, we may still have bogus data in the > RX queue if it was enabled with incorrect pin muxing before. > > So let's flush the RX queue whenever we initialize baud rates. > > This fixes a regression

[U-Boot] [PATCH v4 10/13] armv8: fsl-lsch2: add pfe macros and update ccsr_scfg structure

2018-03-08 Thread Calvin Johnson
SoC specific PFE macros are defined and structure ccsr_scfg is updated with members defined for PFE. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi Acked-by: Joe Hershberger --- Changes in v4: None

[U-Boot] [PATCH v4 09/13] board: freescale: ls1012a2g5rdb: enable network support on ls1012a2g5rdb

2018-03-08 Thread Calvin Johnson
This patch enables ethernet support for ls1012a2g5rdb. Signed-off-by: Calvin Johnson Signed-off-by: Bhaskar Upadhaya Acked-by: Joe Hershberger --- Changes in v4: None Changes in v3: -Update Kconfig -Update header file

[U-Boot] [PATCH v4 08/13] board: freescale: ls1012ardb: enable network support on ls1012ardb

2018-03-08 Thread Calvin Johnson
This patch enables ethernet support for ls1012ardb. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi Acked-by: Joe Hershberger --- Changes in v4: -Compile pfe driver conditionally with CONFIG_FSL_PFE

[U-Boot] [PATCH v4 12/13] armv8: layerscape: csu: enable ns access to PFE registers

2018-03-08 Thread Calvin Johnson
Enable all types of non-secure access to PFE block registers. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi Acked-by: Joe Hershberger --- Changes in v4: None Changes in v3: None Changes in v2:

[U-Boot] [PATCH v4 13/13] configs: ls1012a: add pfe configuration for LS1012A

2018-03-08 Thread Calvin Johnson
Add configurations for PFE. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi Acked-by: Joe Hershberger --- Changes in v4: -Fix typo "ppfe stop" Changes in v3: -Move PFE macros to Kconfig -Remove unused

[U-Boot] [PATCH v4 11/13] armv8: fsl-lsch2: configure pfe's DDR and HDBUS interfaces and ECC

2018-03-08 Thread Calvin Johnson
1. Set AWCACHE0 attribute of PFE DDR and HDBUS master interfaces to bufferable. 2. Set RD/WR QoS for PFE DDR and HDBUS AXI master interfaces. 3. Disable ECC detection for PFE. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi

[U-Boot] [PATCH v4 07/13] board: freescale: ls1012afrdm: enable network support on ls1012afrdm

2018-03-08 Thread Calvin Johnson
This patch enables ethernet support for ls1012afrdm. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi Acked-by: Joe Hershberger --- Changes in v4: -Compile pfe driver conditionally with CONFIG_FSL_PFE

[U-Boot] [PATCH v4 04/13] drivers: net: pfe_eth: provide pfe commands

2018-03-08 Thread Calvin Johnson
pfe_command provides command line support for several features that support pfe, like starting or stopping the pfe, checking the health of the processor engines and checking status of different units inside pfe. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu

[U-Boot] [PATCH v4 06/13] board: freescale: ls1012aqds: enable network support on ls1012aqds

2018-03-08 Thread Calvin Johnson
This patch enables ethernet support for ls1012aqds. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi Acked-by: Joe Hershberger --- Changes in v4: -Compile pfe driver conditionally with CONFIG_FSL_PFE

[U-Boot] [PATCH v4 05/13] drivers: net: pfe_eth: LS1012A PFE headers

2018-03-08 Thread Calvin Johnson
Contains all the pfe header files. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi Acked-by: Joe Hershberger --- Changes in v4: None Changes in v3: -Move pfe_eth header files to include/net/pfe_eth

[U-Boot] [PATCH v4 02/13] armv8: fsl-layerscape: Add support of GPIO structure

2018-03-08 Thread Calvin Johnson
From: Prabhakar Kushwaha Layerscape Gen2 SoC supports GPIO registers to control GPIO signals. Adding support of GPIO structure to access GPIO registers. Signed-off-by: Pratiyush Srivastava Signed-off-by: Prabhakar Kushwaha

[U-Boot] [PATCH v4 03/13] drivers: net: pfe_eth: LS1012A PFE driver introduction

2018-03-08 Thread Calvin Johnson
This patch adds PFE driver to U-Boot Following are the main driver files:- pfe_hw.c: provides low level helper functions to initialize PFE internal processor engines and other hardware blocks pfe_driver.c: provides initialization functions and packet send and receive functions pfe_eth.c: provides

[U-Boot] [PATCH v4 01/13] drivers: net: phy: Fix aquantia compilation with DM

2018-03-08 Thread Calvin Johnson
With CONFIG_DM_ETH enabled, aquantia driver compilation fails with below error. This patch fixes the issue by including dm.h. drivers/net/phy/aquantia.c: In function ‘aquantia_startup’: drivers/net/phy/aquantia.c:73:21: error: dereferencing pointer to incomplete type ‘struct udevice’

[U-Boot] [PATCH v4 00/13] LS1012A PFE driver patch series

2018-03-08 Thread Calvin Johnson
This patch series introduces U-Boot support for NXP's LS1012A Packet Forwarding Engine (pfe_eth). LS1012A uses hardware packet forwarding engine to provide high performance Ethernet interfaces. The device includes two Ethernet ports. Changes in v4: -Compile pfe driver conditionally with

[U-Boot] [PATCH] arm64: zynqmp: Add support for verifying secure images

2018-03-08 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch adds new command "zynqmp" to handle zynqmp specific commands like "zynqmp secure". This secure command is used for verifying zynqmp specific secure images. The secure image can either be authenticated or encrypted or

Re: [U-Boot] [PATCH v2 00/10] splash screen on the stm32f769 disco board

2018-03-08 Thread Patrice CHOTARD
Hi Vikas +Benjamin On 03/06/2018 08:44 PM, Vikas Manocha wrote: > Hi Patrice/Yannick, > > On 03/05/2018 11:50 PM, Patrice CHOTARD wrote: >>> There seems to be a dependency on patch for >>> include/dt-bindings/mfd/stm32f7-rcc.h >>> adding some new macros. Is it also submitted to the list? >>