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

2018-03-29 Thread Chen-Yu Tsai
Hi, On Tue, Mar 27, 2018 at 10:43 PM, Andre Przywara wrote: > Hi Maxime, > > thanks for the answer. > > On 27/03/18 15:30, Maxime Ripard wrote: >> Hi, >> >> On Sat, Mar 24, 2018 at 01:07:27AM +, André Przywara wrote: >>> On 23/03/18 18:14, Jagan Teki wrote: On Wed, Mar 14, 2018 at 7:27 A

[U-Boot] [PATCH] arm: imx: Add Winbond SPI-NOR support for Advantech DMS-BA16 board

2018-03-29 Thread Ken Lin
Windbond's been in the AVL list and need to enable the support Signed-off-by: Ken Lin --- configs/dms-ba16-1g_defconfig | 1 + configs/dms-ba16_defconfig| 1 + 2 files changed, 2 insertions(+) diff --git a/configs/dms-ba16-1g_defconfig b/configs/dms-ba16-1g_defconfig index 40b317093f..80089

[U-Boot] [PATCH] ARM: mx6: ddr: Add write leveling correction code

2018-03-29 Thread Marek Vasut
When the DDR calibration is enabled, a situation may happen that it will fail on a few select boards out of a whole production lot. In particular, after the first write leveling stage, the MPWLDECTRLx registers will contain a value 0x1nn , for nn usually being 0x7f or slightly lower. What this mea

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

2018-03-29 Thread Heinrich Schuchardt
On 03/30/2018 01:36 AM, Siarhei Siamashka wrote: > On Thu, 29 Mar 2018 23:33:50 +0200 > Heinrich Schuchardt wrote: > >> 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 arm

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

2018-03-29 Thread Siarhei Siamashka
On Thu, 29 Mar 2018 23:33:50 +0200 Heinrich Schuchardt wrote: > 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

Re: [U-Boot] [PATCH 1/3] pci: Don't use pci_indirect when DM is active

2018-03-29 Thread Simon Glass
+Bin On 28 March 2018 at 20:40, Mario Six wrote: > Declaration of indirect PCI bridges is not compatible with DM: Both > define PCI operations, but in different ways. Hence, don't use indirect > bridges if DM is active. > > Signed-off-by: Mario Six > --- > drivers/pci/pci_indirect.c | 2 +- > 1

Re: [U-Boot] [PATCH] gpio: uclass: Fix debug string

2018-03-29 Thread Simon Glass
On 28 March 2018 at 20:39, Mario Six wrote: > A debug string still has the old name of a function being called; update > it. > > Signed-off-by: Mario Six > --- > drivers/gpio/gpio-uclass.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

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

2018-03-29 Thread Simon Glass
Hi Mario, On 28 March 2018 at 20:37, 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 06/19] tpm: add macros for TPMv2 commands

2018-03-29 Thread Simon Glass
Hi Miquel, On 29 March 2018 at 15:43, Miquel Raynal wrote: > 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

Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-03-29 Thread Simon Glass
Hi Jagan, On 28 March 2018 at 02:04, Jagan Teki wrote: > On Mon, Sep 4, 2017 at 9:57 PM, wrote: >> Hi Tom, >> >> On 7 August 2017 at 09:39, Tom Rini wrote: >>> On Sat, Aug 05, 2017 at 03:45:53PM -0600, Simon Glass wrote: >>> The CONFIG_BLK conversion involves quite invasive changes in the

Re: [U-Boot] [PATCH 1/2] dm: pci: Check board information pointer in decode_regions()

2018-03-29 Thread Simon Glass
On 27 March 2018 at 15:46, Bin Meng wrote: > PCI enumeration may happen very early on an x86 board. The board > information pointer should have been checked in decode_regions() > as its space may not be allocated yet. > > With this commit, Intel Galileo board boots again. > > Fixes: 664758c ("pci:

Re: [U-Boot] [PATCH] watchdog: Fix Kconfig alignment for WDT_SANDBOX

2018-03-29 Thread Simon Glass
On 28 March 2018 at 18:57, Michal Simek wrote: > Fix Kconfig alignment which should be . > > Signed-off-by: Michal Simek > --- > > drivers/watchdog/Kconfig | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > Reviewed-by: Simon Glass ___ U

Re: [U-Boot] [PATCH 1/3] core: Add function to get device for ofnode

2018-03-29 Thread Simon Glass
Hi Mario, On 28 March 2018 at 20:37, Mario Six wrote: > It's sometimes useful to get the device associated with a given ofnode. > Implement a function to implement this lookup operation. Where would you use this? Can you not use phandles to find the device? Or uclass_get_device_by_ofnode() ? >

Re: [U-Boot] [PATCH 2/3] core: Add functions to set properties in live-tree

2018-03-29 Thread Simon Glass
Hi Mario, On 28 March 2018 at 20:37, Mario Six wrote: > Implement a set of functions to manipulate properties in a live device > tree: > > * ofnode_set_property() to set generic properties of a node > * ofnode_write_string() to set string properties of a node > * ofnode_enable() to enable a node

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

2018-03-29 Thread Simon Glass
Hi Miquel, On 29 March 2018 at 15:43, 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.c | 29 ++--- > cmd/tpm_test.c | 6 +++--- > include/tpm.h |

Re: [U-Boot] [PATCH 1/3] drivers: Add OSD uclass

2018-03-29 Thread Simon Glass
Hi Mario, On 28 March 2018 at 20:39, Mario Six wrote: > Some devices offer a text-based OSD (on-screen display) that can be > programmatically controlled (i.e. text displayed on). > > Add a uclass to support such devices. > > Signed-off-by: Mario Six > --- > drivers/video/Kconfig|

Re: [U-Boot] [PATCH v2 09/19] tpm: add TPM2_Startup command support

2018-03-29 Thread Simon Glass
Hi Miquel, On 29 March 2018 at 15:43, 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.c | 9 +++-- > include/tpm.h | 26 +- > lib/tpm.c |

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

2018-03-29 Thread Simon Glass
Hi Miquel, On 29 March 2018 at 15:44, 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, howeve

Re: [U-Boot] [PATCH 3/3] cmd: Add osd commands

2018-03-29 Thread Simon Glass
Hi Mario, On 28 March 2018 at 20:39, Mario Six wrote: > Add command to query information from and write text to IHS OSDs. > > Signed-off-by: Mario Six > --- > cmd/Kconfig | 16 +++ > cmd/Makefile | 1 + > cmd/osd.c| 366 > +++ > 3

Re: [U-Boot] [PATCH 2/2] dm: pci: Avoid setting a PCI region that has 0 size

2018-03-29 Thread Simon Glass
On 27 March 2018 at 15:46, Bin Meng wrote: > It makes no sense to set a PCI region that has 0 size. > > Signed-off-by: Bin Meng > --- > > drivers/pci/pci-uclass.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass _

Re: [U-Boot] [PATCH] cmd: Add command for calculating binary operations

2018-03-29 Thread Simon Glass
Hi Mario, On 28 March 2018 at 20:39, Mario Six wrote: > This patch adds a command that enables the calculation of bit operations > (AND, OR, XOR) on binary data from the command line. Memory locations as > well as the contents of environment variables are eligible as sources > and destination of

Re: [U-Boot] [PATCH 2/3] video_osd: Add ihs_video_out driver

2018-03-29 Thread Simon Glass
Hi Mario, On 28 March 2018 at 20:39, Mario Six wrote: > Add a driver for IHS OSDs on IHS FPGAs. > > Signed-off-by: Mario Six > --- > drivers/misc/Kconfig | 6 +- > drivers/video/Kconfig | 7 ++ > drivers/video/Makefile| 1 + > drivers/video/ihs_video_out.c | 277

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

2018-03-29 Thread Simon Glass
On 29 March 2018 at 15:43, Miquel Raynal wrote: > 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 ch

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

2018-03-29 Thread Simon Glass
Hi Miquel, On 29 March 2018 at 15:39, Miquel Raynal wrote: > 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, >> >> >>

Re: [U-Boot] [PATCH v2 05/19] tpm: prepare support for TPMv2 commands

2018-03-29 Thread Simon Glass
Hi Miquel, On 29 March 2018 at 15:43, Miquel Raynal wrote: > 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

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

2018-03-29 Thread Simon Glass
Hi Miquel, On 29 March 2018 at 15:43, Miquel Raynal wrote: > 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 + >

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

2018-03-29 Thread Simon Glass
Hi Miquel, On 29 March 2018 at 15:43, Miquel Raynal wrote: > 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 fil

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

2018-03-29 Thread Simon Glass
On 29 March 2018 at 15:43, Miquel Raynal wrote: > 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

Re: [U-Boot] [PATCH v2 08/19] tpm: handle different buffer sizes

2018-03-29 Thread Simon Glass
On 29 March 2018 at 15:43, Miquel Raynal wrote: > 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/t

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

2018-03-29 Thread Simon Glass
On 29 March 2018 at 20:56, Neil Armstrong wrote: > 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. >

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

2018-03-29 Thread Simon Glass
On 29 March 2018 at 15:43, Miquel Raynal wrote: > 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(-) > Review

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

2018-03-29 Thread Simon Glass
Hi Neil, On 29 March 2018 at 16:42, Neil Armstrong wrote: > 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

Re: [U-Boot] [PATCH v2 02/19] tpm: rename tpm_tis_infineon in tpm_tis_infineon_i2c

2018-03-29 Thread Simon Glass
On 29 March 2018 at 15:43, Miquel Raynal wrote: > 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 > ---

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

2018-03-29 Thread Simon Glass
Hi, On 29 March 2018 at 18:52, 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 TSC timer dr

[U-Boot] [PATCH 0/4] efi_loader: fixes for loaded image protocol

2018-03-29 Thread Heinrich Schuchardt
This patch series fixes various bugs in the handling of loaded images. Heinrich Schuchardt (4): efi_loader: used efi_uintn_t for LoadImage efi_loader: correctly set ImageBase for loaded image efi_loader: ImageSize must be multiple of SectionAlignment efi_loader: correct types for EFI_LOADE

[U-Boot] [PATCH 4/4] efi_loader: correct types for EFI_LOADED_IMAGE_PROTOCOL

2018-03-29 Thread Heinrich Schuchardt
We should not use void * but specific types for * device_handle * file_path Signed-off-by: Heinrich Schuchardt --- include/efi_api.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/efi_api.h b/include/efi_api.h index f138fc90ec..833ef8b4a6 100644 --- a/include/efi

[U-Boot] [PATCH 2/4] efi_loader: correctly set ImageBase for loaded image

2018-03-29 Thread Heinrich Schuchardt
In the EFI_LOADED_IMAGE_PROTOCOL ImageBase and ImageSize should reflect where the loaded image can be found in memory. If we do a relocation this is the relocated location and size. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_image_loader.c | 7 ++- 1 file changed, 2 insertions

[U-Boot] [PATCH 3/4] efi_loader: ImageSize must be multiple of SectionAlignment

2018-03-29 Thread Heinrich Schuchardt
According to the Portable Executable and Common Object File Format Specification the image size must be a multiple of the alignment of sections. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_image_loader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/efi_loader/efi_image

[U-Boot] [PATCH 1/4] efi_loader: used efi_uintn_t for LoadImage

2018-03-29 Thread Heinrich Schuchardt
We generally use efi_uintn_t where the UEFI spec uses UINTN. Signed-off-by: Heinrich Schuchardt --- include/efi_api.h | 2 +- lib/efi_loader/efi_boottime.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/efi_api.h b/include/efi_api.h index 28de93a132.

[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

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 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

[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 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 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

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

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 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 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 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 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 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 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 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 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 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 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 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 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 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/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 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 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 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 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] [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] [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] [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] [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 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 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] 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 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

[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

[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 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 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] 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

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

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: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 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 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 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 >> +

[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] 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

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 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 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(+)

[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

[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 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

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] 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

[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

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

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

  1   2   >