[U-Boot] [PATCH v2 07/18] elf: Clean up the ELF header file

2018-04-11 Thread Bin Meng
Fix various style violations in elf.h - use correct comment format if the comment fits in just one line - remove the ending period for the one-line comment - use tab for the indention instead of space - put the opening brace at the same line of a typedef/union - remove in a 'typedef struct' for

[U-Boot] [PATCH v2 10/18] bios: vesa: Guard setting vesa mode with CONFIG_FRAMEBUFFER_SET_VESA_MODE

2018-04-11 Thread Bin Meng
If CONFIG_FRAMEBUFFER_SET_VESA_MODE is not set, don't switch graphics card to VESA mode. This applies to both native mode and emulator mode of running the VGA BIOS. Signed-off-by: Bin Meng --- Changes in v2: None arch/x86/lib/bios.c | 4

[U-Boot] [PATCH v2 15/18] bootvx: Refactor the bootline copy codes a little bit

2018-04-11 Thread Bin Meng
There is a small duplication in do_bootvx() that does the bootline copy. Refactor this a little bit to make it simpler. Signed-off-by: Bin Meng --- Changes in v2: None cmd/elf.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/cmd/elf.c

[U-Boot] [PATCH v2 13/18] pci: video: Only print out when everything is OK

2018-04-11 Thread Bin Meng
If video initialization fails, the "Video:" output message will be mixed with the next console log. Change to print out such message only when everything is OK, which improves the boot log readability. Signed-off-by: Bin Meng --- Changes in v2: None drivers/pci/pci_rom.c |

[U-Boot] [PATCH v2 09/18] elf: Add a very simple ELF64 loader

2018-04-11 Thread Bin Meng
This adds a very simple ELF64 loader via program headers, similar to load_elf_image_phdr() that we already have. Signed-off-by: Bin Meng --- Changes in v2: - update the ELF32 and ELF64 loader comments cmd/elf.c | 44 +++- 1 file

[U-Boot] [PATCH v2 06/18] x86: Rename e820entry to e820_entry

2018-04-11 Thread Bin Meng
This changes 'struct e820entry' to 'struct e820_entry' to conform with the coding style. Signed-off-by: Bin Meng --- Changes in v2: None arch/x86/cpu/coreboot/sdram.c| 2 +- arch/x86/cpu/qemu/e820.c | 2 +- arch/x86/cpu/tangier/sdram.c | 4 ++--

[U-Boot] [PATCH v2 11/18] video: vesa: Change default FRAMEBUFFER_VESA_MODE

2018-04-11 Thread Bin Meng
This changes the default FRAMEBUFFER_VESA_MODE to use 32-bit pixel format for better VxWorks compatibility. Signed-off-by: Bin Meng --- Changes in v2: None drivers/video/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/Kconfig

[U-Boot] [PATCH v2 05/18] x86: Use 'unsigned int' in install_e820_map() functions

2018-04-11 Thread Bin Meng
This fixes the following checkpatch warning: warning: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Bin Meng --- Changes in v2: None arch/x86/cpu/coreboot/sdram.c | 7 --- arch/x86/cpu/qemu/e820.c | 3 ++- arch/x86/cpu/tangier/sdram.c | 6

[U-Boot] [PATCH v2 17/18] bootvx: x86: Assign bootaddr based on kernel memory base

2018-04-11 Thread Bin Meng
On VxWorks x86 its bootline address is at a pre-defined offset @ 0x1200. If 'bootaddr' is not passed via environment variable, we assign its value based on the kernel memory base address. Signed-off-by: Bin Meng --- Changes in v2: None cmd/elf.c | 91

[U-Boot] [PATCH v2 18/18] doc: vxworks: Update x86 specific instructions

2018-04-11 Thread Bin Meng
This updates the doc of booting VxWorks, like loading an x64 kernel, and how to make VxWorks graphics console driver work. Signed-off-by: Bin Meng --- Changes in v2: - update the graphics console driver information doc/README.vxworks | 21 +++-- 1 file

[U-Boot] [PATCH v2 14/18] bootvx: x86: Make VxWorks EFI console driver happy

2018-04-11 Thread Bin Meng
When booting from EFI BIOS, VxWorks bootloader stores the EFI GOP framebuffer info at a pre-defined offset @ 0x6100. When VxWorks kernel boots up, its EFI console driver tries to find such a block and if the signature matches, the framebuffer information will be used to initialize the driver.

[U-Boot] [PATCH v2 01/18] doc: vxworks: Minor update for clarity

2018-04-11 Thread Bin Meng
This corrects a typo and updates several places for clarity. Signed-off-by: Bin Meng Reviewed-by: Christian Gmeiner --- Changes in v2: None doc/README.vxworks | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH v2 08/18] elf: Add ELF64 related structure defines

2018-04-11 Thread Bin Meng
This adds ELF header, program header and section header structure defines for the 64-bit ELF image. Signed-off-by: Bin Meng --- Changes in v2: None include/elf.h | 43 +++ 1 file changed, 43 insertions(+) diff --git a/include/elf.h

[U-Boot] [PATCH v2 04/18] vxworks: x86: Rename e820info to e820_info

2018-04-11 Thread Bin Meng
This changes 'struct e820info' to 'struct e820_info' to conform with the coding style. Signed-off-by: Bin Meng --- Changes in v2: None cmd/elf.c | 6 +++--- include/vxworks.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/elf.c

[U-Boot] [PATCH v2 16/18] bootvx: Exit if bootline address is not specified

2018-04-11 Thread Bin Meng
Exit the 'bootvx' command if bootline address is not specified. Signed-off-by: Bin Meng --- Changes in v2: None cmd/elf.c | 109 ++ 1 file changed, 53 insertions(+), 56 deletions(-) diff --git a/cmd/elf.c

[U-Boot] [PATCH v2 12/18] x86: Change default FRAMEBUFFER_VESA_MODE of some boards

2018-04-11 Thread Bin Meng
This changes some boards' default FRAMEBUFFER_VESA_MODE to use 32-bit pixel format for better VxWorks compatibility. Signed-off-by: Bin Meng --- Changes in v2: None configs/bayleybay_defconfig | 2 +- configs/minnowmax_defconfig | 2 +-

[U-Boot] [PATCH v2 03/18] bootvx: x86: Explicitly clear the bootloader image size

2018-04-11 Thread Bin Meng
VxWorks bootloader stores its size at a pre-defined offset @ 0x5004. Later when VxWorks kernel boots up and system memory information is retrieved from the E820 table, the bootloader size will be subtracted from the total system memory size to calculate the size of available memory for the OS.

[U-Boot] [PATCH v2 02/18] bootvx: x86: Prepare e820 related stuff from the given kernel memory base address

2018-04-11 Thread Bin Meng
At present two environment variables 'e820data'/'e820info' are required to boot a VxWorks x86 kernel, but this is superfluous. The offset of these two tables are actually at a fixed offset from the kernel memory base address and we can provide the kernel memory base address to U-Boot via only one

[U-Boot] [PATCH v2 00/18] bootvx: Various enhancements to booting VxWorks x86 kernels

2018-04-11 Thread Bin Meng
This introduces various enhancements to booting VxWorks x86 kernels. It also cleans up the 'bootvx' x86 path a little bit. Test was performed on MinnowMax, with VxWorks 7 generic x86/x64 images, with VGA text mode and EFI graphics mode console drivers. This series is available at

Re: [U-Boot] [PATCH 03/12] libfdt: Safer access to strings section

2018-04-11 Thread David Gibson
On Tue, Apr 10, 2018 at 10:42:45AM -0400, Simon Glass wrote: > +U-Boot, Tom, Masahiro > > Hi David, > > On 10 April 2018 at 01:22, David Gibson wrote: > > On Wed, Apr 04, 2018 at 01:21:10AM +0800, Simon Glass wrote: > >> Hi David, > >> > >> On 3 April 2018 at 23:02,

Re: [U-Boot] chiliSOM: USB bug

2018-04-11 Thread sdrb
Hi Marcin, Marcin Niestroj wrote: Hi Witold, On 11.04.2018 08:18, sdrb wrote: Hi, I use Grinn's chiliSOM and very old U-boot 2014.07 on it. Unfortunately the newest u-boot doesn't run SPL properly - so I'm forced to use 2014.07 version. What are your problems exactly with SPL? What

Re: [U-Boot] [PATCH 03/12] libfdt: Safer access to strings section

2018-04-11 Thread David Gibson
On Tue, Apr 10, 2018 at 06:36:06PM -0400, Tom Rini wrote: > On Tue, Apr 10, 2018 at 10:42:45AM -0400, Simon Glass wrote: > > +U-Boot, Tom, Masahiro > > > > Hi David, > > > > On 10 April 2018 at 01:22, David Gibson wrote: > > > On Wed, Apr 04, 2018 at 01:21:10AM

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

2018-04-11 Thread Masahiro Yamada
2018-04-12 12:28 GMT+09:00 Marek Vasut : > The following changes since commit > d79dfd4519c3f357a2523acfeb26eca6f59eae4d: > > > > > > spl: ram: Add TPL Kconfig symbols (2018-04-11 13:22:06 -0400) > > > > > > are available in the Git repository at: > >

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

2018-04-11 Thread Marek Vasut
The following changes since commit c4446b1d6c96de406972690083e2884bf69bce5c: Merge git://git.denx.de/u-boot-ubi (2018-04-11 10:05:41 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to

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

2018-04-11 Thread Marek Vasut
The following changes since commit d79dfd4519c3f357a2523acfeb26eca6f59eae4d: spl: ram: Add TPL Kconfig symbols (2018-04-11 13:22:06 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to

Re: [U-Boot] [RFC PATCH 03/13] arm: move SYS_ARCH_TIMER to KConfig

2018-04-11 Thread Tuomas Tynkkynen
Hi, On Thu, 30 Nov 2017 01:25:01 + Andre Przywara wrote: > SYS_ARCH_TIMER guards the usage of the ARM Generic Timer (aka arch > timer) in U-Boot. > At the moment it is mandatory for ARMv8 and used by two ARMv7 boards. > Add a proper Kconfig symbol to express this

[U-Boot] [PATCH 2/2] arm: move SYS_ARCH_TIMER to KConfig

2018-04-11 Thread Tuomas Tynkkynen
From: Andre Przywara SYS_ARCH_TIMER guards the usage of the ARM Generic Timer (aka arch timer) in U-Boot. At the moment it is mandatory for ARMv8 and used by a few ARMv7 boards. Add a proper Kconfig symbol to express this dependency properly, allowing certain board

[U-Boot] [PATCH 1/2] ARM: qemu-arm: Dynamically determine timer frequency

2018-04-11 Thread Tuomas Tynkkynen
After commit 46fc679ede5f69 ("arm: timer: get frequency for arch timer armv7 in cp15 cntfrq") the ARM architected timer driver knows how to determine the timer frequency at runtime by reading the CNTFRQ register, so we don't need to hardcode the timer frequency anymore. Signed-off-by: Tuomas

[U-Boot] RSA Signed images/configs issue

2018-04-11 Thread John Schmoller
Hello all, I've been playing around with signed FIT images and I found some unexpected behavior. I was hoping to get some input on whether this behaves as expected or whether there's an issue that needs resolving. I have a board where I am attempting to sign both the config and image nodes of

[U-Boot] [PATCH] ARM: rmobile: Set maximum kernel size to 64 MiB on Gen3

2018-04-11 Thread Marek Vasut
The Gen3 kernel images are often above 8 MiB, increase the maximum kernel size to 64 MiB to future-proof it, just like many other ARM64 boards do. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- include/configs/rcar-gen3-common.h | 1 +

Re: [U-Boot] spl: ram: Convert to CONFIG_IS_ENABLED

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 05:03:28PM +0200, Marek Vasut wrote: > This patch is a preparation for adding TPL support for RAM loading. > CONFIG_IS_ENABLED allows for proper handling of the U-Boot/SPL/TPL > differences in config symbol names. > > Signed-off-by: Marek Vasut

Re: [U-Boot] spl: ram: Add TPL Kconfig symbols

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 05:03:45PM +0200, Marek Vasut wrote: > Add TPL config symbols for RAM loading matching the SPL ones. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] serial: Fix Makefile during SPL and TPL build

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 04:06:22PM +0200, Marek Vasut wrote: > This patch fixes a situation where CONFIG_DM_SERIAL is enabled for > regular U-Boot and SPL, but not for TPL. In that case, the build > will try to include serial-uclass into the TPL nonetheless, because > CONFIG_DM_SERIAL is set. >

Re: [U-Boot] tpl: spi: Add CONFIG_TPL_SPI_LOAD to Kconfig

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 04:05:46PM +0200, Marek Vasut wrote: > Add Kconfig entry for CONFIG_TPL_SPI_LOAD symbol to match the SPL one. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] tpl: ymodem: Add CONFIG_TPL_YMODEM_SUPPORT to Kconfig

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 04:06:11PM +0200, Marek Vasut wrote: > Add Kconfig entry for CONFIG_TPL_YMODEM_SUPPORT symbol to match the SPL one. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] ARM: Fix Makefile during SPL and TPL build

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 04:06:36PM +0200, Marek Vasut wrote: > The tiny variants of memset and memcpy implementations can be > built for TPL as well, check whether a TPL build is in progress > and avoid including the default variants. > > Signed-off-by: Marek Vasut

Re: [U-Boot] spl: spi: Move CONFIG_SPL_SPI_LOAD to Kconfig

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 04:05:27PM +0200, Marek Vasut wrote: > Add Kconfig entry for CONFIG_SPL_SPI_LOAD symbol and move all > configurations using it to Kconfig. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks!

Re: [U-Boot] [PATCH] arm: mach-omap2: Enlarge SYS_MALLOC_F_LEN

2018-04-11 Thread Tom Rini
On Wed, Apr 11, 2018 at 09:26:40PM +0200, Sjoerd Simons wrote: > Since commit 8e14ba7bd524 ("gpio: omap_gpio: Add DM_FLAG_PRE_RELOC > flag") omap GPIO gets bound before relocation. Unfortunately due to > this, on at least the beaglebone black, the pre-relocation memory pool > gets exhausted

[U-Boot] [PATCH] arm: mach-omap2: Enlarge SYS_MALLOC_F_LEN

2018-04-11 Thread Sjoerd Simons
Since commit 8e14ba7bd524 ("gpio: omap_gpio: Add DM_FLAG_PRE_RELOC flag") omap GPIO gets bound before relocation. Unfortunately due to this, on at least the beaglebone black, the pre-relocation memory pool gets exhausted before probing the serial port. This then causes u-boot to panic as

[U-Boot] [PATCH] configs: am335x_boneblack: add example debug uart configuration

2018-04-11 Thread Sjoerd Simons
To make it simpler to enable the debug uart on boneblack add debug uart configuration as an example in the defconfig but with CONFIG_DEBUG_UART disabled. Which allows a user to simple enable it when needing easily without figuring out the right values for memory base/clock and shift.

Re: [U-Boot] [PATCH v2 2/2] dm: i2c: implement gpio-based I2C deblock

2018-04-11 Thread Heiko Schocher
Hello Alexander, Am 27.03.2018 um 16:52 schrieb Alexander Kochetkov: The commit implement a gpio-based software deblocking. The code extract I2C pins description from device tree, switch pins to GPIO mode, toggle SCL until slave release SDA, send I2C stop and switch I2C pins back to I2C mode.

Re: [U-Boot] [PATCH 3/3] i2c: fsl: Add option to get clock from DT

2018-04-11 Thread Heiko Schocher
Hello Mario, Am 28.03.2018 um 14:37 schrieb Mario Six: Add an option to get the clock speed from the device tree, hence adding compatibility with DM clock drivers. Signed-off-by: Mario Six --- drivers/i2c/fsl_i2c.c | 8 +++- 1 file changed, 7 insertions(+), 1

Re: [U-Boot] [PATCH v2 1/2] dm: i2c: dts: Add gpios and pinctrl device tree properties

2018-04-11 Thread Heiko Schocher
Hello Alexander, Am 27.03.2018 um 16:52 schrieb Alexander Kochetkov: The commit describe usage of gpios and pinctrl device tree properties in order to enable gpio-based software deblocking. Signed-off-by: Alexander Kochetkov --- doc/device-tree-bindings/i2c/i2c.txt |

Re: [U-Boot] [PATCH 2/3] i2c: fsl: Use dev_read_addr

2018-04-11 Thread Heiko Schocher
Hello Mario, Am 28.03.2018 um 14:37 schrieb Mario Six: Since bus translations are now fully supported, use a plain "dev_read_addr" to get the device address from the device tree. Signed-off-by: Mario Six --- drivers/i2c/fsl_i2c.c | 5 + 1 file changed, 1

Re: [U-Boot] [PATCH 1/3] i2c: ihs_i2c: Use new fpgamap interface

2018-04-11 Thread Heiko Schocher
Hello Mario, Am 28.03.2018 um 14:37 schrieb Mario Six: The fpgamap interface has been switched to a "single function + data size" interface. Reflect this change in the IHS I2C driver. Signed-off-by: Mario Six --- drivers/i2c/ihs_i2c.c | 45

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

2018-04-11 Thread Jean-Jacques Hiblot
On 11/04/2018 17:08, Neil Armstrong wrote: This is a port of the dwc3-of-simple driver from Linux to enable/deassert clock and resets of a simple DWC3 Controller HW glue. Signed-off-by: Neil Armstrong --- drivers/usb/host/Kconfig | 7 +++

Re: [U-Boot] chiliSOM: USB bug

2018-04-11 Thread Marcin Niestroj
Hi Witold, On 11.04.2018 08:18, sdrb wrote: Hi, I use Grinn's chiliSOM and very old U-boot 2014.07 on it. Unfortunately the newest u-boot doesn't run SPL properly - so I'm forced to use 2014.07 version. What are your problems exactly with SPL? What version of chiliSOM does you board have?

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Fabio Estevam
On Wed, Apr 11, 2018 at 12:52 PM, Guillaume Gardet wrote: > So, how to handle dtb filenames? Update with wrong soc definition ? Or drop > this patch and define a FDTFILE for each flavor? You can take a look at how we handle this for wandboard, cuboxi, sabresd, for

[U-Boot] [PATCH v3 4/5] mtd: nand: mxs_nand: report correct ECC parameters

2018-04-11 Thread Stefan Agner
From: Stefan Agner Report correct ECC parameters back to the stack. Do not report bytes as we have it not immeaditly available and the Linux version also does not report it. It seems to have no aversive effect. Signed-off-by: Stefan Agner ---

[U-Boot] [PATCH v3 5/5] mtd: nand: mxs_nand: add minimal ECC support

2018-04-11 Thread Stefan Agner
From: Stefan Agner Add support for minimum ECC strength supported by the NAND chip. This aligns with the behavior when using the fsl,use-minimum-ecc device tree property in Linux. Signed-off-by: Stefan Agner --- Changes in v3: None Changes

[U-Boot] [PATCH v3 2/5] mtd: nand: mxs_nand: allow to enable BBT support

2018-04-11 Thread Stefan Agner
From: Stefan Agner Add config option which allows to enable on flash bad block table support. This has the same effect as when using the device tree property "nand-on-flash-bbt" in Linux. Signed-off-by: Stefan Agner --- Changes in v3: None

[U-Boot] [PATCH v3 3/5] mtd: nand: mxs_nand: use structure for BCH geometry

2018-04-11 Thread Stefan Agner
From: Stefan Agner Calculate BCH geometry at start and store the information in a structure. This avoids recalculation on every page access and allows to calculate ECC relevant information in one place. This patch does not change ECC layout or driver behavior in any

[U-Boot] [PATCH v3 1/5] mtd: nand: mxs_nand: use self init

2018-04-11 Thread Stefan Agner
From: Stefan Agner Instead of completing initialization via scan_bbt callback use NAND self init to initialize the GPMI (MXS) NAND controller. Suggested-by: Scott Wood Signed-off-by: Stefan Agner --- Changes in v3: - Fix

[U-Boot] [PATCH v3 0/5] mtd: nand: mxs_nand: improve ECC support

2018-04-11 Thread Stefan Agner
From: Stefan Agner This patchset reworks the drivers ECC calculation to align more with the Linux driver gpmi-nand.c. It aims to implements minimal ECC support as supported by the NAND chip. This is the rebased version after moving MXS NAND to Kconfig. -- Stefan

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Guillaume Gardet
Le 11/04/2018 à 17:46, Gary Bisson a écrit : Hi Guillaume, On Wed, Apr 11, 2018 at 12:38:48PM +0200, Guillaume GARDET wrote: Signed-off-by: Guillaume GARDET Cc: Troy Kisky Cc: Stefano Babic Cc: Fabio Estevam

Re: [U-Boot] [PATCH v2 u-boot 1/2] reset: Add get/assert/deassert/release for bulk of reset signals

2018-04-11 Thread Jean-Jacques Hiblot
Hi Neil, while trying to test your patches on dwc3, I ran into a compilation issue. On 03/04/2018 11:40, Neil Armstrong wrote: This patch adds a "bulk" API to the reset API in order to get/deassert/ assert/release a group of reset signals associated with a device. This bulk API will avoid

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Gary Bisson
Hi Guillaume, On Wed, Apr 11, 2018 at 12:38:48PM +0200, Guillaume GARDET wrote: > Signed-off-by: Guillaume GARDET > Cc: Troy Kisky > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: Gary Bisson

[U-Boot] [PATCH u-boot 2/2] pinctrl: meson: Update pinmux with new Linux bindings

2018-04-11 Thread Neil Armstrong
The pinctrl bindings has changed for Amlogic Meson SoCs since Linux 4.13, update the pinctrl driver to take this in account. Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 12 ++-- drivers/pinctrl/meson/pinctrl-meson-gxl.c | 14

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Fabio Estevam
On Wed, Apr 11, 2018 at 11:41 AM, Guillaume Gardet wrote: > This is for efi fdtfile fallback definition for default distro config for > nitrogen6x board. > Is it ok for you? Yes, this is the explanation that I was looking for :-) Please send a new version with this

[U-Boot] [PATCH u-boot 1/2] ARM64: meson: Sync DT and Bindings with Linux 4.16

2018-04-11 Thread Neil Armstrong
Synchronize the Linux Device Tree for Amlogic Meson GX boards from Linux 4.16.0. Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-gx.dtsi| 87 ++- arch/arm/dts/meson-gxbb-odroidc2.dts | 56 --

[U-Boot] [PATCH u-boot 0/2] ARM64: meson: Sync DT and Bindings with Linux 4.16

2018-04-11 Thread Neil Armstrong
Synchronize the Amlogic Meson GX Device Tree and bindings with Linux 4.16 to beneficiate with the new DT nodes. The pinctrl bindings has changed since 4.13, so the pinctrl driver must be updated with the changes. Neil Armstrong (2): ARM64: meson: Sync DT and Bindings with Linux 4.16 pinctrl:

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

2018-04-11 Thread Marek Vasut
On 04/11/2018 05:07 PM, Neil Armstrong wrote: > 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

[U-Boot] [PATCH] fit: skip signature verification if board request

2018-04-11 Thread Jun Nie
It may be unnecessary to check signature on unlocked board. Get the hint from platform specific code to support secure boot and non-secure boot with the same binary, so that boot is not blocked if board is not locked and has no key for signature verification. Signed-off-by: Jun Nie

[U-Boot] [PATCH v2 u-boot] ARM: meson: rename GXBB to GX

2018-04-11 Thread Neil Armstrong
Taking into account the Amlogic Family name starts with GX, including the GXBB, GXL and GXM SoCs. Signed-off-by: Neil Armstrong --- Changes since v1: - Resent as single patch since cpuinfo needs further work - Aligned the defines in gx.h

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

2018-04-11 Thread Neil Armstrong
The Amlogic Meson GXL and GXM (simple variant) embeds up to 3 USB2 PHYs and an USB3 PHY. This patch adds drivers for these for the standard generic PHY interface and supports the power-on/off calls and set the Host mode by default. They are based on the excellent work from Martin Blumenstingl

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

2018-04-11 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

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

2018-04-11 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 | 113

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

2018-04-11 Thread Neil Armstrong
This is a port of the dwc3-of-simple driver from Linux to enable/deassert clock and resets of a simple DWC3 Controller HW glue. Signed-off-by: Neil Armstrong --- drivers/usb/host/Kconfig | 7 +++ drivers/usb/host/Makefile | 1 +

[U-Boot] [PATCH] clk: clk_stm32f: Use PLLSAIP as USB 48MHz clock

2018-04-11 Thread Patrice Chotard
On all STM32F4 and F7 SoCs family (except STM32F429), PLLSAI output P can be used as 48MHz clock source for USB and SDMMC. Signed-off-by: Patrice Chotard Tested By: Bruno Herrera --- drivers/clk/clk_stm32f.c | 36

[U-Boot] [RFC PATCH] imx: add writebcb command

2018-04-11 Thread Stefan Agner
From: Stefan Agner Add writebcb command which creates a NAND Boot Configuration Block (BCB) at the beginning of the active flash device. The BCB stores the information for the SoC internal boot ROM where the application with a valid IVT header can be found on the NAND

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

2018-04-11 Thread Marek Vasut
On 04/11/2018 04:53 PM, Neil Armstrong wrote: > Hi Marek, > > On 11/04/2018 16:37, Marek Vasut wrote: >> On 04/11/2018 04:29 PM, Neil Armstrong wrote: >>> This is a port of the dwc3-of-simple driver from Linux to enable/deassert >>> clock and resets of a simple DWC3 Controller HW glue. >>> >>>

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

2018-04-11 Thread Neil Armstrong
Hi Marek, On 11/04/2018 16:37, Marek Vasut wrote: > On 04/11/2018 04:29 PM, Neil Armstrong wrote: >> This is a port of the dwc3-of-simple driver from Linux to enable/deassert >> clock and resets of a simple DWC3 Controller HW glue. >> >> Signed-off-by: Neil Armstrong >

[U-Boot] uboot support to Allwinner bananapi zero

2018-04-11 Thread Jun Nie
Hi Icenowy & Jagan, I see bananapi zero patch was posted and discussed in [1], but without further follow up. Maybe we can decide which name is more maintainable first, bananapi-*, Bananapi-* or Sinovoip_BPI_*. And add all new boards with following the rule. Which one do you prefer? If possible,

Re: [U-Boot] arm: socfpga: unable to boot cyclone5 devkit or SocKit

2018-04-11 Thread Dinh Nguyen
On Wed, Apr 11, 2018 at 7:55 AM, Alexander Graf wrote: > On 04/11/2018 02:37 PM, Marek Vasut wrote: >> >> On 04/11/2018 02:26 PM, Tom Rini wrote: >>> >>> On Wed, Apr 11, 2018 at 10:12:42AM +0200, Marek Vasut wrote: On 04/11/2018 04:52 AM, Dinh Nguyen wrote: [...]

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

2018-04-11 Thread Marek Vasut
On 04/11/2018 04:29 PM, Neil Armstrong wrote: > This is a port of the dwc3-of-simple driver from Linux to enable/deassert > clock and resets of a simple DWC3 Controller HW glue. > > Signed-off-by: Neil Armstrong Looks good, except can we reduce the number of ifdefs, ie.

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Guillaume Gardet
Hi, Le 11/04/2018 à 16:23, Fabio Estevam a écrit : Hi Guillaume, On Wed, Apr 11, 2018 at 7:38 AM, Guillaume GARDET wrote: Please explain in the commit log why this is needed. Thanks This is for efi fdtfile fallback definition for default distro config for

Re: [U-Boot] [PATCH 1/1] mmc: avoid division by zero in meson_mmc_config_clock - Please, consider for v2018.05-rc2

2018-04-11 Thread Neil Armstrong
Hi Jaehoon, On 10/04/2018 18:01, Heinrich Schuchardt wrote: > On 03/24/2018 03:57 PM, Heinrich Schuchardt wrote: >> On 03/18/2018 01:03 AM, Vagrant Cascadian wrote: >>> On 2018-03-17, Heinrich Schuchardt wrote: The Odroid C2 fails to read from mmc with U-Boot v2018.03. The change avoids

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

2018-04-11 Thread Neil Armstrong
The Amlogic Meson GXL and GXM (simple variant) embeds up to 3 USB2 PHYs and an USB3 PHY. This patch adds drivers for these for the standard generic PHY interface and supports the power-on/off calls and set the Host mode by default. They are based on the excellent work from Martin Blumenstingl

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

2018-04-11 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 | 113

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

2018-04-11 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

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

2018-04-11 Thread Neil Armstrong
This is a port of the dwc3-of-simple driver from Linux to enable/deassert clock and resets of a simple DWC3 Controller HW glue. Signed-off-by: Neil Armstrong --- drivers/usb/host/Kconfig | 7 +++ drivers/usb/host/Makefile | 1 +

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Fabio Estevam
Hi Guillaume, On Wed, Apr 11, 2018 at 7:38 AM, Guillaume GARDET wrote: Please explain in the commit log why this is needed. Thanks > Signed-off-by: Guillaume GARDET > Cc: Troy Kisky > Cc: Stefano Babic

[U-Boot] chiliSOM: USB bug

2018-04-11 Thread sdrb
Hi, I use Grinn's chiliSOM and very old U-boot 2014.07 on it. Unfortunately the newest u-boot doesn't run SPL properly - so I'm forced to use 2014.07 version. I noticed that there is some problem with USB maintenance. As far as I know the chiliSOM is TI AM335x compatible system so it uses

[U-Boot] [PATCH] arm: zynq: Make ENV_SIZE and ENV_OFFSET optional via board file

2018-04-11 Thread Michal Simek
Boards have an option to rewrite variable locations in their own board files. This is necessary for qspi and nand configurations where boot image can be bigger then 896k(current limit). Signed-off-by: Michal Simek --- include/configs/zynq-common.h | 8 ++-- 1 file

[U-Boot] [PATCH] arm: zynq: Enable setup board name for different boards

2018-04-11 Thread Michal Simek
There is no need to use zynq name as SYS_BOARD for all boards. The patch is adding an option to change it. Signed-off-by: Michal Simek --- arch/arm/mach-zynq/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-zynq/Kconfig

[U-Boot] [PATCH] arm: zynq: Wire automatic ddr detection for Zynq and ZynqMP case

2018-04-11 Thread Michal Simek
When static memory configuration is used U-Boot has capability to detect memory size in setup range. Enable this feature for static configuration. Signed-off-by: Michal Simek --- board/xilinx/zynq/board.c| 3 ++- board/xilinx/zynqmp/zynqmp.c | 3 ++- 2 files

Re: [U-Boot] [U-Boot, v2, u-boot, 1/2] clk: Add get/enable/disable/release for a bulk of clocks

2018-04-11 Thread Tom Rini
On Tue, Apr 03, 2018 at 11:44:18AM +0200, Neil Armstrong wrote: > This patch adds a "bulk" API to the clock API in order to get/enable/disable > /release a group of clocks associated with a device. > > This bulk API will avoid adding a copy of the same code to manage > a group of clocks in

Re: [U-Boot] log: Add units to code-size stats in README.log

2018-04-11 Thread Tom Rini
On Mon, Apr 02, 2018 at 02:42:53AM -0600, Simon Glass wrote: > Without the units these numbers are confusing. Add a comment about the > unit being 'bytes' and mention 'buildman' as the source. > > Suggested-by: Lukasz Majewski > Signed-off-by: Simon Glass

Re: [U-Boot] [U-Boot, v2, u-boot, 2/2] clk: add sandbox test for bulk API

2018-04-11 Thread Tom Rini
On Tue, Apr 03, 2018 at 11:44:19AM +0200, Neil Armstrong wrote: > This patch adds the bulk clock API tests for the sandbox test suite. > > It's very similar to the main test but only uses the _bulk() API and > checks if the clocks are correctly enabled/disabled. > > Signed-off-by: Neil

Re: [U-Boot] [U-Boot, 1/1] checkpatch.pl: update from Linux kernel v4.16

2018-04-11 Thread Tom Rini
On Wed, Apr 04, 2018 at 03:39:20PM +0200, Heinrich Schuchardt wrote: > Update scripts/checkpatch.pl from upstream. > > One of the many corrections is not creating an error for cover-letters. > > Reintroduce U-Boot's > 5c761ce58666b3a1695697498598f8bf3484a0c7 > checkpatch.pl: Add warning for new

Re: [U-Boot] [U-Boot, 1/1] MAINTAINERS: ARM STM STM32MP: correct file paths

2018-04-11 Thread Tom Rini
On Wed, Apr 04, 2018 at 01:16:08AM +0200, Heinrich Schuchardt wrote: > Provide correct file paths. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [U-Boot, 1/1] get_maintainer.pl: update from Linux kernel v4.16

2018-04-11 Thread Tom Rini
On Wed, Apr 04, 2018 at 01:54:26AM +0200, Heinrich Schuchardt wrote: > The most significant change is the addition of the --self-test option > which allows to run a consistency check on all MAINTAINERS files. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master,

Re: [U-Boot] [U-Boot, v2, u-boot, 2/2] reset: add sandbox test for bulk API

2018-04-11 Thread Tom Rini
On Tue, Apr 03, 2018 at 11:40:51AM +0200, Neil Armstrong wrote: > This patch adds the bulk reset API tests for the sandbox test suite. > > Unlike the main test, it also check the "other" reset signal using the bulk > API > and checks if the resets are correctly asserted/deasserted. > > To

Re: [U-Boot] Pull request: u-boot-ubi/master

2018-04-11 Thread Tom Rini
On Wed, Apr 11, 2018 at 03:16:21PM +0200, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-ubi master > > The following changes since commit 2600df4f8ef12ece9cec13030005919e0ba2b0d5: > > Merge tag 'xilinx-for-v2018.05-rc2' of git://git.denx.de/u-boot-microblaze > (2018-04-09

Re: [U-Boot] mkimage: do not fail if there is no print_header function

2018-04-11 Thread Tom Rini
On Fri, Mar 30, 2018 at 10:28:19AM +0200, Guillaume GARDET wrote: > Commit 253c60a breaks the exit value of 'mkimage -T rkimage' > and print the following error: > mkimage: Can't print header for Rockchip Boot Image support: Success > > It is not a failure to not print headers, so just

Re: [U-Boot] [U-Boot, 1/1] fw_printenv: Fix crash due to incorrect size for malloc'ed string.

2018-04-11 Thread Tom Rini
On Wed, Apr 04, 2018 at 10:09:57AM +0200, Kristian Amlie wrote: > Using sizeof gives the size of the pointer only, not the string. This > could easily lead to crashes when using -l argument. > > Signed-off-by: Kristian Amlie Applied to u-boot/master, thanks! --

Re: [U-Boot] armv7m: disable icache before linux booting

2018-04-11 Thread Tom Rini
On Fri, Mar 30, 2018 at 09:22:40AM +0200, Patrice Chotard wrote: > Similarly to ARMV7, on ARMV7M instruction cache memory needs > to be disabled before running linux kernel to avoid kernel to > be stuck. > > Signed-off-by: Patrice Chotard Applied to u-boot/master,

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

2018-04-11 Thread Tom Rini
On Thu, Mar 29, 2018 at 02:55:25PM +0200, Neil Armstrong wrote: > The Amlogic Meson SoCs embeds up to 256 reset lines, add the corresponding > driver. > > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [U-Boot, v2, u-boot, 1/2] reset: Add get/assert/deassert/release for bulk of reset signals

2018-04-11 Thread Tom Rini
On Tue, Apr 03, 2018 at 11:40:50AM +0200, Neil Armstrong wrote: > This patch adds a "bulk" API to the reset API in order to get/deassert/ > assert/release a group of reset signals associated with a device. > > This bulk API will avoid adding a copy of the same code to manage > a group of reset

Re: [U-Boot] log: Correct missing free() on error in log_add_filter()

2018-04-11 Thread Tom Rini
On Mon, Apr 02, 2018 at 02:42:39AM -0600, Simon Glass wrote: > If there is a problem with the parameters to log_add_filter(), the memory > allocated is currently not freed. Fix this. > > Reported-by: Coverity (CID: 171962) > > Signed-off-by: Simon Glass Applied to

  1   2   >