[U-Boot] u-boot environment tool

2018-03-29 Thread Ran Shalit
Hello, Is there a tool to create u-boot environment from text and save into SPI NOR flash ? Thank you, Ran ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

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

2018-03-29 Thread Patrice Chotard
From: Christophe Kerello 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). One port of the phy is shared between the two USB controllers through a UTMI+ switch. Sign

Re: [U-Boot] [PATCH v3 1/5] i.MX6: Add proper CONFIG_SOC_ names for MX6 architectures

2018-03-29 Thread Jagan Teki
Hi Stefano, On Mon, Mar 26, 2018 at 6:09 PM, Stefano Babic wrote: > Hi Jagan, > > sorry, I see patch is already V3, I have missed the previous ones. Anyway: > > On 26/03/2018 14:16, Jagan Teki wrote: >> ARCH_MX6 -> ARCH_IMX6 >> MX6 -> SOC_IMX6 >> MX6D -> SOC_IMX6D >> MX6DL

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

2018-03-29 Thread Miquel Raynal
Hi Simon and Tom, On Fri, 23 Mar 2018 08:42:02 -0600, Simon Glass wrote: > Hi Miquel, > > On 21 March 2018 at 07:49, Tom Rini wrote: > > On Tue, Mar 20, 2018 at 03:51:22PM +0100, Miquel Raynal wrote: > >> Hi Tom, > >> > >> On Tue, 20 Mar 2018 10:04:55 -0400, Tom Rini wrote: > >> > >> > On

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

2018-03-29 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 compl

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

2018-03-29 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 v2 02/19] tpm: rename tpm_tis_infineon in tpm_tis_infineon_i2c

2018-03-29 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 v2 03/19] tpm: add support for TPMv2 SPI modules

2018-03-29 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 v2 09/19] tpm: add TPM2_Startup command support

2018-03-29 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 changed, 57 insertions(+), 13

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

2018-03-29 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(-) diff --git a/include/tpm.h b/i

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

2018-03-29 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 v2 08/19] tpm: handle different buffer sizes

2018-03-29 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 v2 06/19] tpm: add macros for TPMv2 commands

2018-03-29 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 v2 05/19] tpm: prepare support for TPMv2 commands

2018-03-29 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 Rayna

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

2018-03-29 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 + lib/tpm.c

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

2018-03-29 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 deletion(-) diff --git a/lib/tpm.c b

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

2018-03-29 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 ++ cmd/tpm_test.c | 4 ++-- include/tpm

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

2018-03-29 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 +++- 3 files changed, 71 ins

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

2018-03-29 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 + 3 files changed, 77 inserti

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

2018-03-29 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 +-- 3 files changed,

[U-Boot] [PATCH] kconfig: add CONFIG_CC_COVERAGE

2018-03-29 Thread Christian Gmeiner
Make it possible to use gcc code coverage analysis. Signed-off-by: Christian Gmeiner --- .gitignore | 4 Kconfig| 8 Makefile | 6 ++ 3 files changed, 18 insertions(+) diff --git a/.gitignore b/.gitignore index 29757aa51e..f1b801579c 100644 --- a/.gitignore +++ b/.gitign

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

2018-03-29 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 v2 04/19] tpm: fix indentation in command list before adding more

2018-03-29 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 d9b433582c..f456396d75 100644

[U-Boot] [PULL] Please pull from u-boot-rockchip

2018-03-29 Thread Dr. Philipp Tomsich
Tom, Here’s a PR for a few changes available on the rockchip-tree for integration into master. While these are mainly bug-fixes, the plan is to have another PR either just-in-time for rc1 or slightly after with some larger series that still need review and discussion. Thanks, Philipp. The foll

[U-Boot] [PATCH v2 19/19] test/py: add TPMv2.0 test suite

2018-03-29 Thread Miquel Raynal
Add tests for the TPMv2.0 commands. These commands need a physical TPM to run properly, there is no sandbox support yet. Signed-off-by: Miquel Raynal --- test/py/tests/test_tpm2.py | 254 + 1 file changed, 254 insertions(+) create mode 100644 test/py/

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

2018-03-29 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 +++

Re: [U-Boot] u-boot environment tool

2018-03-29 Thread Chris Packham
On Thu, Mar 29, 2018 at 8:19 PM, Ran Shalit wrote: > Hello, > > Is there a tool to create u-boot environment from text and save into > SPI NOR flash ? > You'll get some mileage out of tools/env. It's intended for use on a target so that you can access the target's own u-boot environment from a Li

Re: [U-Boot] u-boot environment tool

2018-03-29 Thread Ran Shalit
On Thu, Mar 29, 2018 at 10:57 AM, Chris Packham wrote: > On Thu, Mar 29, 2018 at 8:19 PM, Ran Shalit wrote: >> Hello, >> >> Is there a tool to create u-boot environment from text and save into >> SPI NOR flash ? >> > > You'll get some mileage out of tools/env. It's intended for use on a > target

Re: [U-Boot] [PATCH 3/4] clk: add Amlogic meson clock driver

2018-03-29 Thread Neil Armstrong
Hi Beniamino, On 03/12/2017 10:17, Beniamino Galvani wrote: > Introduce a basic clock driver for Amlogic Meson SoCs which supports > enabling/disabling clock gates and getting their frequency. > > Signed-off-by: Beniamino Galvani > --- > arch/arm/mach-meson/Kconfig | 2 + > drivers/clk/Makefi

Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-03-29 Thread Jagan Teki
Hi Andre, On Wed, Mar 14, 2018 at 7:26 AM, Andre Przywara wrote: > A minor update to the v3 version sent earlier this month. > I reworked patch 09 to drop the direct MMC environment for 32-bit Allwinner > boards as well and keep the current MMC offset. > For now I also dropped the two patches cha

Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-03-29 Thread Maxime Ripard
On Thu, Mar 29, 2018 at 02:21:24PM +0530, Jagan Teki wrote: > Hi Andre, > > On Wed, Mar 14, 2018 at 7:26 AM, Andre Przywara > wrote: > > A minor update to the v3 version sent earlier this month. > > I reworked patch 09 to drop the direct MMC environment for 32-bit Allwinner > > boards as well an

Re: [U-Boot] [PATCH v4 13/19] sunxi: DT: A64: update board .dts files from Linux

2018-03-29 Thread Maxime Ripard
On Wed, Mar 28, 2018 at 11:29:10PM +0530, Jagan Teki wrote: > On Wed, Mar 28, 2018 at 4:45 PM, Maxime Ripard > wrote: > > On Wed, Mar 28, 2018 at 03:22:20PM +0530, Jagan Teki wrote: > >> >> May it's good option to look at v3 changes, since DM_MMC Migration > >> >> expires in coming release, dt cha

Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-03-29 Thread Andre Przywara
Hi, On 29/03/18 09:51, Jagan Teki wrote: > Hi Andre, > > On Wed, Mar 14, 2018 at 7:26 AM, Andre Przywara > wrote: >> A minor update to the v3 version sent earlier this month. >> I reworked patch 09 to drop the direct MMC environment for 32-bit Allwinner >> boards as well and keep the current MM

Re: [U-Boot] [PATCH v4 13/19] sunxi: DT: A64: update board .dts files from Linux

2018-03-29 Thread Jagan Teki
On Thu, Mar 29, 2018 at 2:37 PM, Maxime Ripard wrote: > On Wed, Mar 28, 2018 at 11:29:10PM +0530, Jagan Teki wrote: >> On Wed, Mar 28, 2018 at 4:45 PM, Maxime Ripard >> wrote: >> > On Wed, Mar 28, 2018 at 03:22:20PM +0530, Jagan Teki wrote: >> >> >> May it's good option to look at v3 changes, sin

Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-03-29 Thread Maxime Ripard
Hi, Replying to one part of the mail only, since I agree with everything else. On Thu, Mar 29, 2018 at 10:19:22AM +0100, Andre Przywara wrote: > > What I'm trying to say is we should anyway sync to Linux bindings and > > dts files, but that could be like step-by-step based on the relevant > > dri

Re: [U-Boot] [PATCH v2 5/6] sunxi: add code for recalculating the DRAM size in U-Boot

2018-03-29 Thread Maxime Ripard
On Wed, Mar 28, 2018 at 07:31:51PM +0800, Icenowy Zheng wrote: > 于 2018年3月28日 GMT+08:00 下午7:28:07, Maxime Ripard > 写到: > >On Mon, Mar 26, 2018 at 03:11:04PM +0800, Icenowy Zheng wrote: > >> > >> > >> 于 2018年3月26日 GMT+08:00 下午3:06:33, Maxime Ripard > > 写到: > >> >On Fri, Mar 23, 2018 at 05:41:43P

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

2018-03-29 Thread Reinhard Pfau
Hi, Am 2018-03-29 09:43, schrieb 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 --- The TPM 1.2 spec calls th

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

2018-03-29 Thread Miquel Raynal
Hi Reinhard, On Thu, 29 Mar 2018 11:44:28 +0200, Reinhard Pfau wrote: > Hi, > > Am 2018-03-29 09:43, schrieb Miquel Raynal: > > The function currently called _extend() actually does what the > > specification defines as a _pcr_event(). Rename the function > > accordingly before implementing the

Re: [U-Boot] [PATCH v1 13/19] arm64: mvebu_armada_37xx: Use Armada 37xx pinctrl driver by default

2018-03-29 Thread Stefan Roese
Hi Marek, (Ken, please keep the list always on Cc) On 27.03.2018 04:12, Ken Ma wrote: Thanks a lot for your greak work on a37xx bug fixes. For your patch of “arm64: mvebu_armada_37xx: Use Armada 37xx pinctrl driver by default

Re: [U-Boot] [PATCH] timer: Add High Precision Event Timers (HPET) support

2018-03-29 Thread Andy Shevchenko
On Wed, 2018-03-28 at 17:58 -0700, Ivan Gorinov wrote: > Adding HPET as an alternative timer for x86 (default is TSC). > HPET main counter has constant clock frequency, calibration is not > required. > This change also makes TSC timer driver optional on x86 platforms. > If X86_TSC is disabled, earl

Re: [U-Boot] [PATCH v2 5/6] sunxi: add code for recalculating the DRAM size in U-Boot

2018-03-29 Thread Andre Przywara
Hi, On 29/03/18 10:37, Maxime Ripard wrote: > On Wed, Mar 28, 2018 at 07:31:51PM +0800, Icenowy Zheng wrote: >> 于 2018年3月28日 GMT+08:00 下午7:28:07, Maxime Ripard >> 写到: >>> On Mon, Mar 26, 2018 at 03:11:04PM +0800, Icenowy Zheng wrote: 于 2018年3月26日 GMT+08:00 下午3:06:33, Maxime Ripard

[U-Boot] [PATCH u-boot] reset: Add Amlogic Meson Reset Controller

2018-03-29 Thread Neil Armstrong
The Amlogic Meson SoCs embeds up to 256 reset lines, add the corresponding driver. Signed-off-by: Neil Armstrong --- drivers/reset/Kconfig | 8 drivers/reset/Makefile | 1 + drivers/reset/reset-meson.c | 90 + 3 files changed, 99 inse

[U-Boot] [PATCH] serial: meson: Update compatible with new Linux bindings

2018-03-29 Thread Neil Armstrong
The Amlogic Meson SoCs serial bindings were not written when serial support was pushed into Linux and U-Boot. A clean bindings document has been merged into Linux tree to correctly handle the multiple clocks feeding the serial peripheral. This update the U-Boot serial_meson driver with the new comp

Re: [U-Boot] [PATCH 1/1] sunxi: mmc: Fix phase delays

2018-03-29 Thread Maxime Ripard
On Tue, Mar 27, 2018 at 04:57:23PM +0300, Stefan Mavrodiev wrote: > U-boot driver for sunxi-mmc uses PLL6, unlike linux kernel where > PLL5 is used, with clock rates respectively 600MHz and 768MHz. > Thus there are different phase degree steps - 24 for the kernel and > 30 for u-boot. > > In the ke

[U-Boot] [PATCH u-boot 0/3] Add USB Support for Amlogic Meson GXL SoCs

2018-03-29 Thread Neil Armstrong
This patchset adds support for USB for the Amlogic Meson GXL SoCs following the work done for Linux by Martin Blumenstingl at [1] [2] [3]. The support consist of : - A port of dwc3-of-simple from Linux to U-boot - A change to support more than 2 PHYs in the DWC3 DM driver - An USB2 PHY Driver a

[U-Boot] [PATCH u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-03-29 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- drivers/usb/host/Kconfig | 7 ++ drivers/usb/host/Makefile | 1 + drivers/usb/host/dwc3-of-simple.c | 187 ++ 3 files changed, 195 insertions(+) create mode 100644 drivers/usb/host/dwc3-of-simple.c diff -

[U-Boot] [PATCH u-boot 3/3] phy: Add Amlogic Meson USB2 & USB3 Generic PHY drivers

2018-03-29 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile | 1 + drivers/phy/meson-gxl-usb2.c | 238 +++ drivers/phy/meson-gxl-usb3.c | 201 4 files changed, 448 insertions(+

[U-Boot] [PATCH u-boot 2/3] usb: host: dwc3: Add support for multiple PHYs

2018-03-29 Thread Neil Armstrong
DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support for a generic number of PHYs and adapt the code to handle a generic number of PHYs. Signed-off-by: Neil Armstrong --- drivers/usb/host/xhci-dwc3.c | 105 --- 1 file changed, 58 inse

Re: [U-Boot] [PATCH u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-03-29 Thread Marek Vasut
On 03/29/2018 03:42 PM, Neil Armstrong wrote: > Signed-off-by: Neil Armstrong > --- > drivers/usb/host/Kconfig | 7 ++ > drivers/usb/host/Makefile | 1 + > drivers/usb/host/dwc3-of-simple.c | 187 > ++ > 3 files changed, 195 insertions(+)

Re: [U-Boot] [PATCH u-boot 3/3] phy: Add Amlogic Meson USB2 & USB3 Generic PHY drivers

2018-03-29 Thread Marek Vasut
On 03/29/2018 03:42 PM, Neil Armstrong wrote: > Signed-off-by: Neil Armstrong > --- > drivers/phy/Kconfig | 8 ++ > drivers/phy/Makefile | 1 + > drivers/phy/meson-gxl-usb2.c | 238 > +++ > drivers/phy/meson-gxl-usb3.c | 201 ++

Re: [U-Boot] [PATCH u-boot 2/3] usb: host: dwc3: Add support for multiple PHYs

2018-03-29 Thread Marek Vasut
On 03/29/2018 03:42 PM, Neil Armstrong wrote: > DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support > for a generic number of PHYs and adapt the code to handle a generic > number of PHYs. > > Signed-off-by: Neil Armstrong > --- > drivers/usb/host/xhci-dwc3.c | 105 > +

Re: [U-Boot] [PATCH] sunxi: improve throughput in the sunxi_mmc driver

2018-03-29 Thread Mylène Josserand
Hello, On Wed, 21 Mar 2018 12:18:58 +0100 Maxime Ripard wrote: > From: Philipp Tomsich > > Throughput tests have shown the sunxi_mmc driver to take over 10s to > read 10MB from a fast eMMC device due to excessive delays in polling > loops. > > This commit restructures the main polling loops t

[U-Boot] MPC8548 U boot

2018-03-29 Thread Yiğit YAŞAR
Hi All, I working on Uboot for the MPC8548, and I using your git repo -I built the Uboot with* ppc_85xx- *toolchain, -The Entry Point Address of elf file is *0xfffa*, - My Memory map is ; 0x_ | 256MB | 0x0FFF_ | DDR SDRAM 0x5000_ | 64MB | 0x53FF_ | PCI 1 Prefe

Re: [U-Boot] [PATCH u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-03-29 Thread Neil Armstrong
On 29/03/2018 15:52, Marek Vasut wrote: > On 03/29/2018 03:42 PM, Neil Armstrong wrote: >> Signed-off-by: Neil Armstrong >> --- >> drivers/usb/host/Kconfig | 7 ++ >> drivers/usb/host/Makefile | 1 + >> drivers/usb/host/dwc3-of-simple.c | 187 >> +

Re: [U-Boot] [PATCH u-boot 2/3] usb: host: dwc3: Add support for multiple PHYs

2018-03-29 Thread Neil Armstrong
On 29/03/2018 15:53, Marek Vasut wrote: > On 03/29/2018 03:42 PM, Neil Armstrong wrote: >> DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support >> for a generic number of PHYs and adapt the code to handle a generic >> number of PHYs. >> >> Signed-off-by: Neil Armstrong >> ---

Re: [U-Boot] [PATCH u-boot 3/3] phy: Add Amlogic Meson USB2 & USB3 Generic PHY drivers

2018-03-29 Thread Neil Armstrong
On 29/03/2018 15:54, Marek Vasut wrote: > On 03/29/2018 03:42 PM, Neil Armstrong wrote: >> Signed-off-by: Neil Armstrong >> --- >> drivers/phy/Kconfig | 8 ++ >> drivers/phy/Makefile | 1 + >> drivers/phy/meson-gxl-usb2.c | 238 >> +++

Re: [U-Boot] [PATCH u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-03-29 Thread Marek Vasut
On 03/29/2018 04:23 PM, Neil Armstrong wrote: > On 29/03/2018 15:52, Marek Vasut wrote: >> On 03/29/2018 03:42 PM, Neil Armstrong wrote: >>> Signed-off-by: Neil Armstrong >>> --- >>> drivers/usb/host/Kconfig | 7 ++ >>> drivers/usb/host/Makefile | 1 + >>> drivers/usb/host/dw

Re: [U-Boot] [PATCH u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-03-29 Thread Neil Armstrong
On 29/03/2018 16:24, Marek Vasut wrote: > On 03/29/2018 04:23 PM, Neil Armstrong wrote: >> On 29/03/2018 15:52, Marek Vasut wrote: >>> On 03/29/2018 03:42 PM, Neil Armstrong wrote: Signed-off-by: Neil Armstrong --- drivers/usb/host/Kconfig | 7 ++ drivers/usb/host/M

Re: [U-Boot] [PATCH u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-03-29 Thread Marek Vasut
On 03/29/2018 04:27 PM, Neil Armstrong wrote: > On 29/03/2018 16:24, Marek Vasut wrote: >> On 03/29/2018 04:23 PM, Neil Armstrong wrote: >>> On 29/03/2018 15:52, Marek Vasut wrote: On 03/29/2018 03:42 PM, Neil Armstrong wrote: > Signed-off-by: Neil Armstrong > --- > drivers/usb/h

[U-Boot] [PATCH] x86: Update the io.h file to use {out|in}_{be|le}X macros

2018-03-29 Thread Lukasz Majewski
The commit 3f70a6f57734 ("x86: Add clr/setbits functions") introduced the {read|write}_ macros to manipulate data. Those macros are not used by any code in the u-boot project (despite the io.h itself). Other architectures use io.h with {in|out}_* macros. This commit brings some unification across

[U-Boot] [PATCH v1 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

2018-03-29 Thread Alex Kiernan
This converts CONFIG_DRIVER_TI_CPSW to Kconfig Signed-off-by: Alex Kiernan --- drivers/net/Kconfig| 8 include/configs/am335x_shc.h | 1 - include/configs/am43xx_evm.h | 1 - include/configs/am57xx_evm.h | 1 - include/configs/bur_am335

[U-Boot] [PATCH v1 2/5] ti: am335x: Fix bootargs when building without NET

2018-03-29 Thread Alex Kiernan
If DHCP/PXE commands are disabled then the compilation fails due to bootargs attempting to use them: include/config_distro_bootcmd.h:319:2: error: expected ‘}’ before ‘BOOT_TARGET_DEVICES_references_PXE_without_CONFIG_CMD_DHCP_or_PXE’ Ensure that if the command aren't enabled, we don't try and

[U-Boot] [PATCH v1 3/5] usb: gadget: USB_ETHER requires network support

2018-03-29 Thread Alex Kiernan
In order to compile the USB Ethernet gadget support we require that NET is enabled, add that dependency here. Signed-off-by: Alex Kiernan --- drivers/usb/gadget/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 6825e6b..26b

[U-Boot] [PATCH v1 5/5] net: Avoid build fail on am335x when NET is disabled

2018-03-29 Thread Alex Kiernan
Commit f411b5cca48f ("board: am335x: Always set eth/eth1addr environment variable") adds support for Ethernet in Linux, but not U-Boot. Ensure that we can do this even when U-Boot is compiled without network support. Signed-off-by: Alex Kiernan --- cmd/nvedit.c | 30 +++

[U-Boot] [PATCH v1 4/5] ti: am335x: Fix build when networking is disabled

2018-03-29 Thread Alex Kiernan
When compiling without CONFIG_CLOCK_SYNTHESIZER (which is implied by CONFIG_DRIVER_TI_CPSW for am335x_evm), exclude the network setup for AM335x-ICEv2 to avoid link time failures: board/ti/am335x/board.c:683: undefined reference to `setup_clock_synthesizer' Signed-off-by: Alex Kiernan --- bo

Re: [U-Boot] [PATCH 1/2] drivers: i2c: mxc: Update SYS_I2C_MXC_I2C support in Kconfig

2018-03-29 Thread Stefano Babic
On 13/03/2018 11:11, Sriram Dash wrote: > > >> From: Sriram Dash >> Subject: [PATCH 1/2] drivers: i2c: mxc: Update SYS_I2C_MXC_I2C support in >> Kconfig >> >> NXP layerscape platforms like ls1088a, ls2088a uses MXC I2C Controller. >> -Remove dependency of MX6 for the same. >> >> Update related c

Re: [U-Boot] [PATCH] imx: fix CAAM base for i.MX6UL

2018-03-29 Thread Stefano Babic
On 11/01/2018 15:14, Anatolij Gustschin wrote: > HW accelerated "hash sha256 ..." command doesn't work on i.MX6UL, we get > "CAAM was not setup properly or it is faulty" error message. > > This is due to wrong CAAM base 0x0210, on i.MX6UL the CAAM base > address is 0x0214. Fix it. > > Not

Re: [U-Boot] [PATCH v1 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

2018-03-29 Thread Joe Hershberger
On Thu, Mar 29, 2018 at 10:17 AM, Alex Kiernan wrote: > This converts CONFIG_DRIVER_TI_CPSW to Kconfig > > Signed-off-by: Alex Kiernan Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v1 2/5] ti: am335x: Fix bootargs when building without NET

2018-03-29 Thread Joe Hershberger
On Thu, Mar 29, 2018 at 10:17 AM, Alex Kiernan wrote: > If DHCP/PXE commands are disabled then the compilation fails due to > bootargs attempting to use them: > > include/config_distro_bootcmd.h:319:2: error: expected ‘}’ before > ‘BOOT_TARGET_DEVICES_references_PXE_without_CONFIG_CMD_DHCP_or_P

Re: [U-Boot] [PATCH v1 3/5] usb: gadget: USB_ETHER requires network support

2018-03-29 Thread Joe Hershberger
On Thu, Mar 29, 2018 at 10:17 AM, Alex Kiernan wrote: > In order to compile the USB Ethernet gadget support we require that NET > is enabled, add that dependency here. > > Signed-off-by: Alex Kiernan Acked-by: Joe Hershberger ___ U-Boot mailing list U

Re: [U-Boot] [PATCH v1 5/5] net: Avoid build fail on am335x when NET is disabled

2018-03-29 Thread Joe Hershberger
On Thu, Mar 29, 2018 at 10:17 AM, Alex Kiernan wrote: > Commit f411b5cca48f ("board: am335x: Always set eth/eth1addr environment > variable") adds support for Ethernet in Linux, but not U-Boot. > > Ensure that we can do this even when U-Boot is compiled without > network support. Please improve t

Re: [U-Boot] [PATCHv1] board: ge: bx50v3: enable backlight on demand

2018-03-29 Thread Stefano Babic
On 09/03/2018 15:41, Sebastian Reichel wrote: > From: Ian Ray > > Enable display backlight only if a message needs to be displayed. > The kernel re-initializes the backlight, which results in some > unwanted artifacts. > > Signed-off-by: Ian Ray > Signed-off-by: Sebastian Reichel > --- > boar

Re: [U-Boot] [PATCHv1] board: ge: ppd: Fix environment variable location

2018-03-29 Thread Stefano Babic
On 15/02/2018 11:41, Sebastian Reichel wrote: > From: Nandor Han > > This fixes environment variable location to avoid overlapping with > U-Boot itself. Also more space for environment variables has been > reserved to prevent future issues. > > Signed-off-by: Nandor Han > Signed-off-by: Sebasti

Re: [U-Boot] [PATCH 1/2] ARM: dts: imx6ul: add wdog3

2018-03-29 Thread Stefano Babic
Hi Jörg, On 25/02/2018 18:12, Jörg Krause wrote: > The i.MX6UL has a WDOG3 located at start address 0x021E in the > AIPS-2 memory region [1]. > > [1] i.MX 6UltraLite Applications Processor Reference Manual, Rev. 1, > 04/2016, Table-2-3 AIPS-2 memory map, p. 166 > > Signed-off-by: Jörg Kr

Re: [U-Boot] [PATCH 2/2] ARM: dts: imx6ull: add wdog3

2018-03-29 Thread Stefano Babic
On 25/02/2018 18:12, Jörg Krause wrote: > The i.MX6ULL has a WDOG3 located at start address 0x021E in the > AIPS-2 memory region [1]. > > [1] i.MX 6ULL Applications Processor Reference Manual, Rev. 1, 11/2017, > Table 2-3. AIPS-2 memory map, p. 178 > > Signed-off-by: Jörg Krause > --- >

Re: [U-Boot] [PATCH 2/2] Makefile: Build firmware-ivt image type for HAB verification also for mx7

2018-03-29 Thread Stefano Babic
On 28/02/2018 08:51, Eran Matityahu wrote: > Create u-boot-ivt.img and u-boot-ivt.img.log when building U-Boot > with SPL and Secure Boot enabled for imx7 (like it is done for imx6). > > See commit d21bd69b6e95ca7824941e7f527871cd5c63c7f7 for more info. > > Signed-off-by: Eran Matityahu > --- >

Re: [U-Boot] [PATCH 1/2] mx7_common: Fix SPL compilation with secure boot support enabled

2018-03-29 Thread Stefano Babic
On 28/02/2018 08:51, Eran Matityahu wrote: > The SPL MISC driver support must be enabled, so that the driver can use OTP > fuse > to check if HAB is enabled. > > Signed-off-by: Eran Matityahu > --- > include/configs/mx7_common.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/inclu

Re: [U-Boot] [PATCH 1/2] imx7: Add src_base structure define macro

2018-03-29 Thread Stefano Babic
On 06/03/2018 15:37, Eran Matityahu wrote: > Add src_base structure global define macro, similarly to imx6 > > Signed-off-by: Eran Matityahu > --- > arch/arm/include/asm/arch-mx7/imx-regs.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/include/asm/arch-mx7/imx-regs.h > b/

Re: [U-Boot] [PATCH 2/2] imx7: spl: Check for Serial Downloader in spl_boot_device

2018-03-29 Thread Stefano Babic
On 06/03/2018 15:38, Eran Matityahu wrote: > Similarly to imx6, before reading the boot device, first check > bmode to see if the serial downloader has been selected > explicitly, then check whether the serial downloader has been > activated due to unbootable primary boot devices (e.g. empty eMMC).

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

2018-03-29 Thread Stefano Babic
On 09/03/2018 00:56, Fabio Estevam wrote: > 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 > Applied to u-boot-imx, thanks ! Best regards, St

Re: [U-Boot] [PATCH v1 1/2] imx: board: Add support for the K+P's kp_imx6q_tpc board

2018-03-29 Thread Stefano Babic
Hi Lukasz, On 14/03/2018 11:07, Lukasz Majewski wrote: > This commit provides support for Kieback & Peter GmbH IMX6Q based > TPC board. > Maybe you can add the U-Boot output (as done by other boards) to make clear which peripherals are available. > Signed-off-by: Lukasz Majewski > > --- > >

Re: [U-Boot] [PATCH v1 2/2] boot: script: The boot.scr file for K+P's boards

2018-03-29 Thread Stefano Babic
On 14/03/2018 11:07, Lukasz Majewski wrote: > By using this file one can avoid cluttering .h file with u-boot > HUSH commands necessary for booting target device. > > With such approach the commands are stored only in one place and can be > reused if needed. > > Signed-off-by: Lukasz Majewski >

Re: [U-Boot] [PATCH 0/9] net: Clean up the menus and dependencies among commands and options

2018-03-29 Thread Duncan Hare
From: Joe Hershberger To: u-boot@lists.denx.de Cc: Heinrich ; Michal Simek ; Simon Glass ; Duncan Hare ; Tom Rini ; Maxime Ripard ; Joe Hershberger Sent: Wednesday, March 28, 2018 1:53 PM Subject: [PATCH 0/9] net: Clean up the menus and dependencies among commands and options There

Re: [U-Boot] [PATCH 1/9] net: Make CMD_NET a menuconfig

2018-03-29 Thread Duncan Hare
From: Joe Hershberger To: u-boot@lists.denx.de Cc: Heinrich ; Michal Simek ; Simon Glass ; Duncan Hare ; Tom Rini ; Maxime Ripard ; Joe Hershberger Sent: Wednesday, March 28, 2018 1:53 PM Subject: [PATCH 1/9] net: Make CMD_NET a menuconfig Previously, CMD_NET was an alias for 2 comma

Re: [U-Boot] [PATCH v1 5/5] net: Avoid build fail on am335x when NET is disabled

2018-03-29 Thread Alex Kiernan
On Thu, Mar 29, 2018 at 4:53 PM, Joe Hershberger wrote: > On Thu, Mar 29, 2018 at 10:17 AM, Alex Kiernan wrote: >> Commit f411b5cca48f ("board: am335x: Always set eth/eth1addr environment >> variable") adds support for Ethernet in Linux, but not U-Boot. >> >> Ensure that we can do this even when

Re: [U-Boot] [PATCH 9/9] Revert "Kconfig: cmd: Make networking command dependent on NET"

2018-03-29 Thread Duncan Hare
From: Joe Hershberger To: u-boot@lists.denx.de Cc: Heinrich ; Michal Simek ; Simon Glass ; Duncan Hare ; Tom Rini ; Maxime Ripard ; Joe Hershberger Sent: Wednesday, March 28, 2018 1:53 PM Subject: [PATCH 9/9] Revert "Kconfig: cmd: Make networking command dependent on NET" This rever

Re: [U-Boot] [PATCH 8/9] net: Make core net code depend on NET instead of CMD_NET

2018-03-29 Thread Duncan Hare
From: Joe Hershberger To: u-boot@lists.denx.de Cc: Heinrich ; Michal Simek ; Simon Glass ; Duncan Hare ; Tom Rini ; Maxime Ripard ; Joe Hershberger Sent: Wednesday, March 28, 2018 1:53 PM Subject: [PATCH 8/9] net: Make core net code depend on NET instead of CMD_NET No commands are ne

Re: [U-Boot] [PATCH 7/9] net: Make the BOOTP options default

2018-03-29 Thread Duncan Hare
From: Joe Hershberger To: u-boot@lists.denx.de Cc: Heinrich ; Michal Simek ; Simon Glass ; Duncan Hare ; Tom Rini ; Maxime Ripard ; Joe Hershberger Sent: Wednesday, March 28, 2018 1:53 PM Subject: [PATCH 7/9] net: Make the BOOTP options default The BOOTP options used to be and should

Re: [U-Boot] [PATCH 6/9] net: Improve BOOTP PXE config option

2018-03-29 Thread Duncan Hare
From: Joe Hershberger To: u-boot@lists.denx.de Cc: Heinrich ; Michal Simek ; Simon Glass ; Duncan Hare ; Tom Rini ; Maxime Ripard ; Joe Hershberger Sent: Wednesday, March 28, 2018 1:53 PM Subject: [PATCH 6/9] net: Improve BOOTP PXE config option Improve the documentation and correct

Re: [U-Boot] [PATCH 5/9] net: Add the BOOTP_DNS2 option to Kconfig

2018-03-29 Thread Duncan Hare
From: Joe Hershberger To: u-boot@lists.denx.de Cc: Heinrich ; Michal Simek ; Simon Glass ; Duncan Hare ; Tom Rini ; Maxime Ripard ; Joe Hershberger Sent: Wednesday, March 28, 2018 1:53 PM Subject: [PATCH 5/9] net: Add the BOOTP_DNS2 option to Kconfig Commit 3b3ea2c56ec4bc5 ("Kconfig:

Re: [U-Boot] [PATCH v1 1/2] imx: board: Add support for the K+P's kp_imx6q_tpc board

2018-03-29 Thread Lukasz Majewski
Hi Stefano, > Hi Lukasz, > > On 14/03/2018 11:07, Lukasz Majewski wrote: > > This commit provides support for Kieback & Peter GmbH IMX6Q based > > TPC board. > > > > Maybe you can add the U-Boot output (as done by other boards) to make > clear which peripherals are available. Ok. > > > Sig

Re: [U-Boot] [PATCH 3/9] net: Move the DHCP command below the BOOTP command

2018-03-29 Thread Duncan Hare
From: Joe Hershberger To: u-boot@lists.denx.de Cc: Heinrich ; Michal Simek ; Simon Glass ; Duncan Hare ; Tom Rini ; Maxime Ripard ; Joe Hershberger Sent: Wednesday, March 28, 2018 1:53 PM Subject: [PATCH 3/9] net: Move the DHCP command below the BOOTP command Move DHCP to directly fo

Re: [U-Boot] [PATCH] arm: stm32mp1: add PSCI support

2018-03-29 Thread Patrick DELAUNAY
Hi Mark, > -Original Message- > From: Mark Rutland [mailto:mark.rutl...@arm.com] > > Hi, > > On Tue, Mar 20, 2018 at 01:59:03PM +0100, Patrick Delaunay wrote: > > Add minimal PSCI support for Linux. > > > > Signed-off-by: Patrick Delaunay > > > +int __secure psci_features(unsigned in

[U-Boot] [PATCH v1 0/5] Build AM335x when CONFIG_NET isn't defined

2018-03-29 Thread Alex Kiernan
Attempting to build AM335x without CONFIG_NET defined fails in assorted ways. This series fixes up those failures. Alex Kiernan (5): Migrate CONFIG_DRIVER_TI_CPSW to Kconfig ti: am335x: Fix bootargs when building without NET usb: gadget: USB_ETHER requires network support ti: am335x: Fix

[U-Boot] [PATCH 1/1] arm: armv7: enable unaligned access

2018-03-29 Thread Heinrich Schuchardt
We use the command bootefi to run UEFI executables like GRUB and iPXE. The UEFI spec requires that unaligned access is enabled if the CPU supports it. This is true for armv7. So we should not set bit 1 of the system control register, the alignment bit. Without this patch iPXE snp.efi cannot be ex

[U-Boot] [PATCH 1/2] efi_loader: new functions to print loaded image information

2018-03-29 Thread Heinrich Schuchardt
Introduce functions to print information about loaded images. If we want to analyze an exception in an EFI image we need the offset between the PC and the start of the loaded image. With efi_print_image_info() we can print the necessary information for a single image, e.g. UEFI image start 0x7fd

[U-Boot] [PATCH 2/2] arm: print information about loaded UEFI images

2018-03-29 Thread Heinrich Schuchardt
If an exception occurs in a UEFI loaded image we need the start address of the image to determine the relocation offset. This patch adds the necessary lines after the registers in the crash dump. A possible output would be: UEFI image start 0x7fdb4000, size 0xa7b60 pc offset 0x72ca /\snp.efi Wit

[U-Boot] [PATCH 0/2] efi_loader: print information about loaded UEFI images

2018-03-29 Thread Heinrich Schuchardt
If an exception occurs in a UEFI loaded image we need the start address of the image to determine the relocation offset. This patch series adds the necessary lines after the registers in the crash dump. A possible output would be: UEFI image start 0x7fdb4000, size 0xa7b60 pc offset 0x72ca /\snp.e

Re: [U-Boot] [PATCH] timer: Add High Precision Event Timers (HPET) support

2018-03-29 Thread Ivan Gorinov
On Thu, Mar 29, 2018 at 01:52:10PM +0300, Andy Shevchenko wrote: > On Wed, 2018-03-28 at 17:58 -0700, Ivan Gorinov wrote: > > Adding HPET as an alternative timer for x86 (default is TSC). > > HPET main counter has constant clock frequency, calibration is not > > required. > > This change also makes

[U-Boot] [PATCH v2] timer: add High Precision Event Timers (HPET) support

2018-03-29 Thread Ivan Gorinov
Adding HPET as an alternative timer for x86 (default is TSC). HPET counter has constant frequency and does not need calibration. This change also makes TSC timer driver optional on x86. If X86_TSC is disabled, early timer functions are provided by HPET. Signed-off-by: Ivan Gorinov --- arch/Kconf

  1   2   >