[U-Boot] [PATCH v2 1/2] mvebu: neta: align DMA buffers

2018-05-29 Thread Baruch Siach
From: Jon Nettleton This makes sure the DMA buffers are properly aligned for the hardware. Reviewed-by: Stefan Roese Signed-off-by: Jon Nettleton Signed-off-by: Baruch Siach --- v2: * Change BUG_ON to WARN_ON (Stefan Roese) * Add Stefan's review tag --- drivers/net/mvneta.c | 18

[U-Boot] [PATCH v2 2/2] net: ping,arp: Fix cache alignment issues

2018-05-29 Thread Baruch Siach
From: Jon Nettleton Both ping_receive and arp_receive would transmit a received packet back out using its original point. This causes problems with certain network cards that add a custom header to the packet. Specifically the mvneta driver for the Armada series boards has a 2 byte Marvell

Re: [U-Boot] [PATCH] sf: ensure flash device is in 3-byte address mode

2018-05-29 Thread Jagan Teki
On Tue, May 22, 2018 at 9:59 AM, Simon Goldschmidt wrote: > > Hi Jagan, > > > On 21.05.2018 17:09, Jagan Teki wrote: >> >> Hi Simon, >> >> On Fri, May 18, 2018 at 12:48 PM, Simon Goldschmidt >> wrote: >>> >>> >>> On 14.05.2018 09:47, Simon Goldschmidt wrote: On

Re: [U-Boot] [PATCH 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-05-29 Thread Chris Packham
On Tue, May 29, 2018 at 4:46 PM Baruch Siach wrote: > Equivalent code that disables the hidden i2c0 slave already exists in > the Turris Omnia platform specific code. But this hidden i2c0 slave that > interferes the i2c bus is not board specific. Armada 38x SoCs and at > least some Kirkwood

Re: [U-Boot] [PATCH] arm: mvebu: move i2c slave disable to generic SPL code

2018-05-29 Thread Baruch Siach
Hi Maxime, On Tue, May 29, 2018 at 06:32:01PM +0200, Maxime Ripard wrote: > On Tue, May 29, 2018 at 05:43:30PM +0200, Stefan Roese wrote: > > > On Mon, May 28, 2018 at 11:04:38AM +0200, Stefan Roese wrote: > > > I went back to the thread a bit, but I couldn't really understand what > > > the

Re: [U-Boot] [PATCH 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-05-29 Thread Chris Packham
On Wed, May 30, 2018 at 5:55 AM Baruch Siach wrote: > Hi Stefan, > On Tue, May 29, 2018 at 08:11:55AM +0200, Stefan Roese wrote: > > On 29.05.2018 06:45, Baruch Siach wrote: > > > Equivalent code that disables the hidden i2c0 slave already exists in > > > the Turris Omnia platform specific

Re: [U-Boot] ls1021atwr: Convert to use driver model TSEC driver

2018-05-29 Thread York Sun
Alison and Prabhakar, Please take a look at the mentioned patch. York On 05/29/2018 07:24 PM, Bin Meng wrote: > Hi York, > > There was a patch [1] previously done by me to convert to use driver > model TSEC driver on LS1021ATWR. It was never accepted given at that > time the PCI driver for

[U-Boot] ls1021atwr: Convert to use driver model TSEC driver

2018-05-29 Thread Bin Meng
Hi York, There was a patch [1] previously done by me to convert to use driver model TSEC driver on LS1021ATWR. It was never accepted given at that time the PCI driver for LS1021A has not been converted to use driver model yet, and DM PCI is unfortunately bundled to DM ETH. Now that we have

Re: [U-Boot] [U-Boot, v2] mach-snapdragon: increase size of malloc pool

2018-05-29 Thread Tom Rini
On Mon, May 28, 2018 at 11:55:49PM +0300, Ramon Fried wrote: > Pool size must be increased to support new additionals > drivers. > > Signed-off-by: Ramon Fried Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] db820c: add dummy clock for uart node

2018-05-29 Thread Tom Rini
On Tue, May 29, 2018 at 12:30:45AM +0300, Ramon Fried wrote: > The missing clock causes serial_msm driver probe to fail. > Added a dummy node so the probe succeeds, as the clock init > currently in db820c is empty. > > Fixes: 11d59fe5374a ("serial: serial_msm: fail probe if settings clocks >

Re: [U-Boot] Import Android's dt_table.h for DT image format

2018-05-29 Thread Tom Rini
On Mon, May 28, 2018 at 05:19:35PM +0200, Alex Deymo wrote: > Android documentation defines the recommended image format for storing > DTB/DTBO files in a single dtbo.img image. This patch includes the > latest header file with the struct definitions for this format from > AOSP. > > The header

Re: [U-Boot] Please pull u-boot-marvell

2018-05-29 Thread Tom Rini
On Tue, May 29, 2018 at 10:43:58AM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the 2nd batch of MVEBU related patches in this > merge window from the Marvell repository. > > Thanks, > Stefan > > > The following changes since commit c3c863880479edeb5b08226e622d13c91326e4a7: > > add

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

2018-05-29 Thread Tom Rini
On Tue, May 29, 2018 at 05:37:26AM +0200, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-ubi.git master > > The following changes since commit 624d2cae3401c2e4d43c571a9b81d1f650e7703d: > > SPDX: Fixup SPDX tags in a few new files (2018-05-20 09:47:45 -0400) > > are available

[U-Boot] mkenvimage.c:119:35: error: ‘PLAIN_VERSION’ undeclared

2018-05-29 Thread Ed Swarthout
I'm not sure why mkenvimage.c is expecting the system include path to have u-boot's version.h, but it is causing the subject error message if it contains someone elses. See: $ echo '#error Should not include /usr/local/include/version.h' > /usr/local/include/version.h $ make

[U-Boot] [RFC PATCH 2/2] arm: kirkwood: lsxl: Add SPI driver model support

2018-05-29 Thread Michael Walle
This patch shows how to enable driver model support for the LS-CHLv2 and LS-XHL boards. There are a couple of open questions: - do I need the u-boot,dm-pre-reloc tags in the device tree? - should mach/config.h define CONFIG_DM_SEQ_ALIAS? - how can we split this patch or are there any other

[U-Boot] [PATCH 1/2] enable CONFIG_DISTRO_DEFAULTS for LS-CHLv2 board

2018-05-29 Thread Michael Walle
Synchronize it with the LS-XHL board. Signed-off-by: Michael Walle --- configs/lschlv2_defconfig | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/configs/lschlv2_defconfig b/configs/lschlv2_defconfig index 23e68a00ea..f2763221a1 100644 ---

Re: [U-Boot] [PATCH 37/41] mmc: fsl_esdhc: fix sd/mmc ddr mode clock setting issue

2018-05-29 Thread Benoît Thébaudeau
Dear Peng Fan, Some other remarks. On Tue, May 29, 2018 at 3:45 AM, Peng Fan wrote: > > >> -Original Message- >> From: Benoît Thébaudeau [mailto:benoit.thebaudeau@gmail.com] >> Sent: 2018年5月29日 6:32 >> To: Peng Fan >> Cc: sba...@denx.de; Fabio Estevam ; U-Boot >> ; Bough Chen >>

Re: [U-Boot] [PATCH] regmap: Separate memory-based operations

2018-05-29 Thread Alexey Brodkin
Hi Simon, On Fri, 2018-05-25 at 20:07 -0600, Simon Glass wrote: > Hi Alexey, > > On 25 May 2018 at 03:45, Alexey Brodkin wrote: > > Hi Simon, > > > > On Thu, 2018-05-24 at 20:42 -0600, Simon Glass wrote: > > > Hi Alexey, [snip] > > > When we want to use a particular I2C bus via regmap, we

[U-Boot] [PATCH] ARC: Move .ivt section to the very beginning of the image

2018-05-29 Thread Alexey Brodkin
This is useful for cases when U-Boot image is put in ROM and reset vector points to 0 where the very beginnign of the image reside. Signed-off-by: Alexey Brodkin --- arch/arc/cpu/u-boot.lds | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git

[U-Boot] [PATCH] ARC: Improve relocation fix-ups

2018-05-29 Thread Alexey Brodkin
We used to have the one and only linker script for all ARC boards and so we relied on a particular order of symbols there. Because of that we used __ivt_end as the marker of the end of all the code which won't be true any longer if we move .ivt section to any other place. That said we'd better

[U-Boot] [PATCH] ARC: Make sure .ivt section is not purged by garbage collector

2018-05-29 Thread Alexey Brodkin
Fixes fac4790491f6 "arc: Eliminate unused code and data with GCC's garbage collector", see [1]. Since in case of ARCv2 .ivt only contains addrresses of interrupt/exception handlers linker doesn't understand that this section actually make a lot of sense and decides to get rid of it if we use

Re: [U-Boot] [PATCH] armv8: ls1088a: change dpl load command from apply to lazyapply.

2018-05-29 Thread York Sun
On 05/11/2018 12:46 AM, Jagdish Gediya wrote: > use "fsl_mc lazyapply dpl addr" instead of "fsl_mc apply dpl addr" > > change dpl load addr to 0x8000 from 0x8020 because dpl gets > corrupted at 0x8020 during bootm command excecution. > Do you expact dpl remains valid after running

Re: [U-Boot] [PATCH 1/3] board: Kconfig: Re-Arrangement of PPA firmware and header addresses

2018-05-29 Thread York Sun
On 05/23/2018 03:15 AM, Bhaskar Upadhaya wrote: > ppa firmware and header address may vary depending upon different boards, > configure ppa firmware and header address in board specific kconfig > > Signed-off-by: Vinitha V Pillai > Signed-off-by: Jagdish Gediya > Signed-off-by: Bhaskar Upadhaya

Re: [U-Boot] [PATCH 1/2] i2c: mvtwsi: disable i2c slave on Armada 38x

2018-05-29 Thread Baruch Siach
Hi Stefan, On Tue, May 29, 2018 at 08:11:55AM +0200, Stefan Roese wrote: > On 29.05.2018 06:45, Baruch Siach wrote: > > Equivalent code that disables the hidden i2c0 slave already exists in > > the Turris Omnia platform specific code. But this hidden i2c0 slave that > > interferes the i2c bus is

Re: [U-Boot] [RFC] arm: mvebu: Add Helios4 Armada 38x initial support

2018-05-29 Thread Dennis Gilmore
El mar, 29-05-2018 a las 08:41 +0200, Stefan Roese escribió: > Hi Dennis, > > On 26.05.2018 22:02, dgilm...@redhat.com wrote: > > From: Dennis Gilmore > > > > The helios4 is built on the SolidRun Armada 38x SOM. > > Which specific SoM?

[U-Boot] [PATCH] ARM: socfpga: Assure correct ACTLR configuration

2018-05-29 Thread Marek Vasut
Make sure the ARM ACTLR register has correct configuration, otherwise the Linux kernel refuses to boot. In particular, the "Write Full Line of Zeroes" bit must be cleared. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- NOTE: This gem was well hidden in the Altera U-Boot fork

[U-Boot] [PATCH] ARM: socfpga: Make DRAM node available in SPL

2018-05-29 Thread Marek Vasut
The SPL can also parse the DRAM configuration node to figure out the memory layout, make sure it is available. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- arch/arm/dts/socfpga_arria10_socdk.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH] ARM: socfpga: Pull DRAM size from DT

2018-05-29 Thread Marek Vasut
Pull the DRAM size from DT instead of hardcoding it into U-Boot. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- arch/arm/mach-socfpga/misc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/misc.c

[U-Boot] [PATCH] ddr: altera: Drop custom dram_bank_mmu_setup() on Arria10

2018-05-29 Thread Marek Vasut
This function was never used in SPL and the default implementation of dram_bank_mmu_setup() does the same thing. The only difference is the part which configures OCRAM as cachable, which doesn't really work as it covers more than the OCRAM. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh

[U-Boot] [PATCH] ddr: altera: Add ECC DRAM scrubbing support for Arria10

2018-05-29 Thread Marek Vasut
The SDRAM must first be rewritten by zeroes if ECC is used to initialize the ECC metadata. Make the CPU overwrite the DRAM with zeroes in such a case. This scrubbing implementation turns the caches on temporarily, then overwrites the whole RAM with zeroes, flushes the caches and turns them off

[U-Boot] [PATCH] ARM: dts: socfpga: Adjust NAND register layout on Arria10

2018-05-29 Thread Marek Vasut
Adjust the NAND register size on Arria10 to reflect reality. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- arch/arm/dts/socfpga_arria10.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/socfpga_arria10.dtsi

Re: [U-Boot] [PATCH] arm: mvebu: move i2c slave disable to generic SPL code

2018-05-29 Thread Maxime Ripard
On Tue, May 29, 2018 at 05:43:30PM +0200, Stefan Roese wrote: > > On Mon, May 28, 2018 at 11:04:38AM +0200, Stefan Roese wrote: > > > (Added Jagan and Maxime to Cc) > > > > > > On 28.05.2018 10:55, Chris Packham wrote: > > > > Hi Baruch, > > > > > > > > On Mon, May 28, 2018 at 8:22 PM Baruch

[U-Boot] [PATCH v2 2/2] buildman: Add support for environment delta in summary

2018-05-29 Thread Alex Kiernan
When summarising the builds, add the -U option to emit delta lines for the default environment built into U-Boot at each commit. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass --- Changes in v2: - update buildman README to cover -U option tools/buildman/README | 28 +

[U-Boot] [PATCH v2 1/2] buildman: Extract environment as part of each build

2018-05-29 Thread Alex Kiernan
As we're building the boards, extract the default U-Boot environment to uboot.env so we can interrogate it later. Signed-off-by: Alex Kiernan --- Changes in v2: - capture stderr/stdout so when the build fails we don't produce spurious output as part of the build

Re: [U-Boot] [PATCH v3] board: sun50i: Add Amarula A64-Relic initial support

2018-05-29 Thread Jagan Teki
On Tue, May 29, 2018 at 9:44 PM, Maxime Ripard wrote: > On Mon, May 28, 2018 at 04:34:43PM +0530, Jagan Teki wrote: >> +CONFIG_CMD_USB_MASS_STORAGE=y > > You still haven't explained why this is useful to add it by default on > this particular board. This board does have only eMMC and no external

Re: [U-Boot] [PATCH v3] board: sun50i: Add Amarula A64-Relic initial support

2018-05-29 Thread Maxime Ripard
On Mon, May 28, 2018 at 04:34:43PM +0530, Jagan Teki wrote: > +CONFIG_CMD_USB_MASS_STORAGE=y You still haven't explained why this is useful to add it by default on this particular board. Maxime -- Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering

[U-Boot] [PATCH v8 17/18] usb: fastboot: Convert USB f_fastboot to shared fastboot

2018-05-29 Thread Alex Kiernan
Convert USB fastboot code to use shared fastboot protocol. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass --- Changes in v8: - add Reviewed-by: tag Changes in v7: - set FASTBOOT_CMD_OEM_FORMAT for all existing users of FASTBOOT_FLASH_MMC_DEV that also have CMD_GPT Changes in v6: -

[U-Boot] [PATCH v8 14/18] mmc: Separate "mmc swrite" from fastboot

2018-05-29 Thread Alex Kiernan
Introduce CONFIG_IMAGE_SPARSE and CONFIG_CMD_MMC_SWRITE so the "mmc swrite" command is separated from the fastboot code. Move image-sparse from common to lib so it's clear it's library code. Rename CONFIG_FASTBOOT_FLASH_FILLBUF_SIZE to CONFIG_IMAGE_SPARSE_FILLBUF_SIZE and migrate it to Kconfig.

[U-Boot] [PATCH v8 01/18] fastboot: Move fastboot to drivers/fastboot

2018-05-29 Thread Alex Kiernan
Separate CMD_FASTBOOT from FASTBOOT and move code and configuration to drivers/fastboot. Switch dependencies on FASTBOOT to USB_FUNCTION_FASTBOOT as anyone who wants FASTBOOT before this series wants USB_FUNCTION_FASTBOOT. Split USB_FUNCTION_FASTBOOT from FASTBOOT so they retain their existing

[U-Boot] [PATCH v8 00/18] Add fastboot UDP support

2018-05-29 Thread Alex Kiernan
This series merges the fastboot UDP support from AOSP into mainline U-Boot. Changes in UDP behaviour from the AOSP code, so it follows the existing USB behaviour: - 'boot' now follows the USB code and does 'bootm CONFIG_FASTBOOT_BUF_ADDR'. I've added 'fastboot_bootcmd' which if set overrides

Re: [U-Boot] [PATCH] arm: mvebu: move i2c slave disable to generic SPL code

2018-05-29 Thread Stefan Roese
Hi Maxime, On 29.05.2018 17:39, Maxime Ripard wrote: On Mon, May 28, 2018 at 11:04:38AM +0200, Stefan Roese wrote: (Added Jagan and Maxime to Cc) On 28.05.2018 10:55, Chris Packham wrote: Hi Baruch, On Mon, May 28, 2018 at 8:22 PM Baruch Siach wrote: Hi Chris, On Mon, May 28, 2018 at

Re: [U-Boot] [PATCH] arm: mvebu: move i2c slave disable to generic SPL code

2018-05-29 Thread Maxime Ripard
Hi! On Mon, May 28, 2018 at 11:04:38AM +0200, Stefan Roese wrote: > (Added Jagan and Maxime to Cc) > > On 28.05.2018 10:55, Chris Packham wrote: > > Hi Baruch, > > > > On Mon, May 28, 2018 at 8:22 PM Baruch Siach wrote: > > > > > Hi Chris, > > > > > On Mon, May 28, 2018 at 08:11:39PM +1200,

[U-Boot] [PATCH v8 18/18] fastboot: Update fastboot documentation

2018-05-29 Thread Alex Kiernan
Update fastboot documentation to reflect merged USB/UDP implementation. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass --- Changes in v8: - add Reviewed-by: tag Changes in v7: None Changes in v6: - new Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v8 16/18] fastboot: Add support for 'oem format' command

2018-05-29 Thread Alex Kiernan
Introduce 'oem format' which matches the USB implementation, guard this with CONFIG_FASTBOOT_CMD_OEM_FORMAT so that you can configure it out. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: - new Changes in

[U-Boot] [PATCH v8 15/18] net: fastboot: Merge AOSP UDP fastboot

2018-05-29 Thread Alex Kiernan
Merge UDP fastboot support from AOSP: https://android.googlesource.com/platform/external/u-boot/+/android-o-mr1-iot-preview-8 Signed-off-by: Alex Kiernan Signed-off-by: Alex Deymo Signed-off-by: Jocelyn Bohr Reviewed-by: Simon Glass --- Changes in v8: None Changes in v7: None Changes in

[U-Boot] [PATCH v8 09/18] fastboot: Extract common definitions from USB fastboot

2018-05-29 Thread Alex Kiernan
Move FASTBOOT_VERSION to include/fastboot.h so when we merge the UDP code we only have one definition. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: - leave

[U-Boot] [PATCH v8 12/18] fs: Add fs_get_type_name to return current filesystem name

2018-05-29 Thread Alex Kiernan
Add fs_get_type_name so we can get the current filesystem type. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass Reviewed-by: Joe Hershberger --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: - add docbook comments Changes in v3: - new

[U-Boot] [PATCH v8 07/18] fastboot: Fix parameter types in _fb_nand_write

2018-05-29 Thread Alex Kiernan
Compiling on a 64 bit target the arguments to _fb_nand_write are incompatible: drivers/fastboot/fb_nand.c: In function ‘_fb_nand_write’: drivers/fastboot/fb_nand.c:101:42: warning: passing argument 3 of ‘nand_write_skip_bad’ from incompatible pointer type [-Wincompatible-pointer-types]

[U-Boot] [PATCH v8 10/18] fastboot: Rename public fb_ functions to fastboot_

2018-05-29 Thread Alex Kiernan
Rename fb_mmc_flash_write/fb_mmc_erase/fb_nand_flash_write/fb_nand_erase to fastboot_... as they form a public interface Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass --- Changes in v8: None Changes in v7: None Changes in v6: - add docbook comments Changes in v5: - new Changes in v4:

[U-Boot] [PATCH v8 13/18] fastboot: Migrate FASTBOOT_FLASH_NAND_TRIMFFS to Kconfig

2018-05-29 Thread Alex Kiernan
Add FASTBOOT_FLASH_NAND_TRIMFFS to Kconfig; note there are no in-tree users of it. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: - new Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v8 08/18] fastboot: Rename fb_set_reboot_flag to fastboot_set_reboot_flag

2018-05-29 Thread Alex Kiernan
Rename fb_set_reboot_flag to fastboot_set_reboot_flag so it matches all other fastboot code in the global name space. Fix the guards around them so that they're dependent on FASTBOOT, not just USB_FUNCTION_FASTBOOT. Move the weak implementation of fastboot_set_reboot_flag to fb_common.c so we can

[U-Boot] [PATCH v8 11/18] ti: fastboot: Move weak overrides to board files

2018-05-29 Thread Alex Kiernan
Overriding fastboot_set_reboot_flag() in arch/arm/mach-omap2/boot-common.c leaves it applying all boards that derive from this, not just the ones which have support for Android bootloader flow. Move the weak function override to the relevant board files. Signed-off-by: Alex Kiernan Reviewed-by:

[U-Boot] [PATCH v8 06/18] fastboot: Remove FIXME for CONFIG_FASTBOOT_...NAME

2018-05-29 Thread Alex Kiernan
CONFIG_FASTBOOT_GPT_NAME and CONFIG_FASTBOOT_MBR_NAME are always defined by Kconfig if you're compiling this code, so remove these redundant defaults. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v8: None Changes in v7: None Changes in v6: None

[U-Boot] [PATCH v8 05/18] fastboot: Add missing newlines

2018-05-29 Thread Alex Kiernan
Add newlines so we format our output correctly. Signed-off-by: Alex Kiernan Acked-by: Joe Hershberger Reviewed-by: Jocelyn Bohr --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v8 04/18] fastboot: Correct dependencies in FASTBOOT_FLASH

2018-05-29 Thread Alex Kiernan
Ensure that when selecting FASTBOOT_FLASH you end up with a buildable configuration. Prior to this you could select NAND without MTDPARTS and end up with an image which (surprisingly) excluded NAND. Also fix dependencies on FASTBOOT_GPT_NAME/FASTBOOT_MBR_NAME which require you have

[U-Boot] [PATCH v8 03/18] fastboot: Extract fastboot_okay/fail to fb_common.c

2018-05-29 Thread Alex Kiernan
Add drivers/fastboot/fb_common.c, where fastboot_okay/fail are implemented so we can call them from a non-USB implementation. Introduce fastboot_response which takes varargs parameters so we can use it to generate formatted response strings. Refactor fastboot_okay/fail to use it. Signed-off-by:

[U-Boot] [PATCH v8 02/18] fastboot: Refactor fastboot_okay/fail to take response

2018-05-29 Thread Alex Kiernan
Add the response string as a parameter to fastboot_okay/fail, instead of modifying a global, to match the contract expected by the AOSP U-Boot code. Signed-off-by: Alex Kiernan Reviewed-by: Joe Hershberger --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None

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

2018-05-29 Thread Vasily Khoruzhick
On Mon, May 28, 2018 at 10:04 PM, Jagan Teki wrote: > On Mon, May 28, 2018 at 11:13 PM, Vasily Khoruzhick > wrote: >> You need both patches in order for it to work. >> >> I tested these patches on Pinebook and Pine64 LTS, both were able to >> boot from eMMC. What board are you using? > > Did

Re: [U-Boot] Uboot send pull request

2018-05-29 Thread Tom Rini
On Tue, May 29, 2018 at 02:56:07PM +0800, ub...@andestech.com wrote: > Hi Tom, > > Please pull the following patch from u-boot-riscv into your tree. > Thanks! > > The following changes since commit c3c863880479edeb5b08226e622d13c91326e4a7: > > add FIT data-position & data-offset property

[U-Boot] [PATCH v2 1/2] mmc: sdhci: Update sdhci_send_command() to handle HS200

2018-05-29 Thread Siva Durga Prasad Paladugu
This patch updates sdhci_send_command() to handle MMC HS200 tuning command. Signed-off-by: Siva Durga Prasad Paladugu --- Changes from v1: - Fixed spacings as per comment --- drivers/mmc/sdhci.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/sdhci.c

[U-Boot] [PATCH v2 2/2] mmc: zynqmp: Add HS200 modes support for ZynqMP

2018-05-29 Thread Siva Durga Prasad Paladugu
This patch adds HS200 suuport for ZynqMP and enables the same for ZC1751 DC1 board which has eMMC on it. Signed-off-by: Siva Durga Prasad Paladugu --- Changes from v1: - Fixed coding style as per comment --- configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig | 1 + drivers/mmc/zynq_sdhci.c

[U-Boot] [PATCH 3/3] fpga: zynqmp: Add secure bitstream loading for ZynqMP

2018-05-29 Thread Siva Durga Prasad Paladugu
This patch adds support for loading secure bitstreams on ZynqMP platforms. The secure bitstream images has to be generated using Xilinx bootgen tool. Signed-off-by: Siva Durga Prasad Paladugu --- arch/arm/include/asm/arch-zynqmp/sys_proto.h | 6

[U-Boot] [PATCH 2/3] cmd: fpga: Add support to load secure bitstreams

2018-05-29 Thread Siva Durga Prasad Paladugu
This patch adds support to load secure bitstreams(authenticated or encrypted or both). As of now, this feature is added and tested only for xilinx bitstreams and the secure bitstream was generated using xilinx bootgen tool, but the command is defined in more generic way. Command example to load

[U-Boot] [PATCH 1/3] cmd: fpga: Reorder the arguments parsing code

2018-05-29 Thread Siva Durga Prasad Paladugu
This patch modifies the arguments parsing code by parsing based on requested operation for fpga loadfs and then parses the most common/basic args for other fpga load commands. This makes it easy for new command extensions or additions especially the commands with more args. Signed-off-by: Siva

[U-Boot] [PATCH 2/3] arm64: zynqmp: Fix address for tca6416_u97 chip on zcu104

2018-05-29 Thread Michal Simek
I2c address is not 0x21 but 0x20. This patch is fixing both revA and revC boards. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu104-revA.dts | 4 ++-- arch/arm/dts/zynqmp-zcu104-revC.dts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH 3/3] arm64: zynqmp: Remove broken-cd from zcu100-revC

2018-05-29 Thread Michal Simek
Card detect bit was broken on revA and it is working fine with revC board that's why this property can be removed. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu100-revC.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/zynqmp-zcu100-revC.dts

[U-Boot] [PATCH 1/3] arm64: zynqmp: Add ina226 to zcu104 revC

2018-05-29 Thread Michal Simek
Add new ina226 chip present on i2c bus which wasn't on revA. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu104-revC.dts | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/zynqmp-zcu104-revC.dts b/arch/arm/dts/zynqmp-zcu104-revC.dts index

Re: [U-Boot] [U-Boot, v3, 1/3] mmc: dwmmc: socfpga: Add reset ctrl to driver

2018-05-29 Thread Dinh Nguyen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 05/25/2018 06:16 AM, Tom Rini wrote: > On Fri, May 25, 2018 at 10:45:53AM +0800, Ley Foon Tan wrote: >> On Thu, May 24, 2018 at 8:39 PM, Tom Rini >> wrote: >>> On Tue, May 08, 2018 at 11:19:24AM +0800, Ley Foon Tan wrote: >>> Add code to

[U-Boot] [PATCH] mtd: ubi: Add missing newlines in ubi_init()

2018-05-29 Thread Stefan Roese
I just stumbled over some cluttered UBI messages. It seems some newline chars are missing in the current U-Boot UBI source. Lets fix this in U-Boot as well (Linux has those fixes already). Signed-off-by: Stefan Roese Cc: Heiko Schocher --- drivers/mtd/ubi/build.c | 12 ++-- 1 file

Re: [U-Boot] [PATCH] disk: efi: Correct backing up the MBR boot code

2018-05-29 Thread Sam Protsenko
On 23 May 2018 at 12:51, Andy Shevchenko wrote: > On Tue, May 22, 2018 at 2:04 AM, Sam Protsenko > wrote: >> In commit e163a931af34 ("cmd: gpt: backup boot code before writing MBR") >> there was added the procedure for storing old boot code when doing "gpt >> write". But instead of storing just

Re: [U-Boot] [PATCH] Import Android's dt_table.h for DT image format

2018-05-29 Thread Sam Protsenko
On 28 May 2018 at 18:19, Alex Deymo wrote: > Android documentation defines the recommended image format for storing > DTB/DTBO files in a single dtbo.img image. This patch includes the > latest header file with the struct definitions for this format from > AOSP. > > The header was adapted to

[U-Boot] [PATCH v7 00/11] Add support for DM_USB and DM_USB_DEV for TI's DRA7 EVMs and AM57 EVMs platforms.

2018-05-29 Thread Jean-Jacques Hiblot
Moving to DM_USB and DM_USB_DEV brings some benefits: - it is required to support DM_ETH and USB network adapters with the same binary. - support for USB3 on AM57x comes almost for free - removal of platform code related to USB Tested on: - dra76 evm - AM572 evm This series applies on top of

Re: [U-Boot] [PATCH v7 00/18] Add fastboot UDP support

2018-05-29 Thread Alex Kiernan
On Mon, May 28, 2018 at 8:41 AM Lukasz Majewski wrote: > Hi Alex, Sam, > Sam have you tested Alex patches on your HW (as you asked earlier for > the repo to fetch the code)? > Could you add Tested-by: tag? > Are there any more comments on this series? I've nothing more outstanding - the

Re: [U-Boot] [PATCH] mvebu: a38x: Force receiver detected on PCIe lanes

2018-05-29 Thread Mario Six
Hi Stefan, On Mon, May 28, 2018 at 4:49 PM, Stefan Roese wrote: > On 28.05.2018 15:15, Mario Six wrote: >> >> Hi Stefan, >> >> On Mon, May 28, 2018 at 2:52 PM, Stefan Roese wrote: >>> >>> (Added Mario and Chris) >>> >>> >>> On 27.05.2018 17:34, Baruch Siach wrote: From: Rabeeh

[U-Boot] [PATCH v2] bug.h: introduce WARN_ONCE

2018-05-29 Thread Ramon Fried
From: Ramon Fried Add WARN_ONCE definition to allow single time notification of warnings to the user. Change-Id: If14d878dba04f3c976c0c2ae079a0f7642047006 --- v2: accidently commited the wrong file. noticed by Masahiro Yamada include/linux/bug.h | 18 ++ 1 file changed, 18

[U-Boot] [PATCH v7 09/11] configs: am57xx_evm: Enable DM_USB and DM_USB_DEV

2018-05-29 Thread Jean-Jacques Hiblot
Enable DM_USB and DM_USB_DEV for AM57xx based boards. Signed-off-by: Vignesh R Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: - Fix build issue "multiple definition of `usb_gadget_handle_interrupts'" Changes in v6: - AM57 configs: enable DM_USB and DM_USB_DEV. Use DWC3_GENERIC in

[U-Boot] [PATCH v7 11/11] board: ti: am57xx: remove USB platform code

2018-05-29 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/ti/am57xx/board.c | 86 - 1 file changed, 86 deletions(-) diff --git

[U-Boot] [PATCH v7 10/11] board: ti: dra7-evm: remove USB platform code

2018-05-29 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/ti/dra7xx/evm.c | 105 -- 1 file changed, 105 deletions(-) diff --git

[U-Boot] [PATCH v7 01/11] syscon: dm: Add a new method to get a regmap from DTS

2018-05-29 Thread Jean-Jacques Hiblot
syscon_regmap_lookup_by_phandle() can be used to get the regmap of a syscon device from a reference in the DTS. It operates similarly to the linux version of the namesake function. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v7: - replace remaining if()

[U-Boot] [PATCH v7 06/11] board; ti: am57xx: turn on USB clocks

2018-05-29 Thread Jean-Jacques Hiblot
From: Vignesh R Enable USB clocks in late init stage to support ports under DM_USB. Signed-off-by: Vignesh R Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - am57xx boards: when DM_USB

[U-Boot] [PATCH v7 07/11] dts: dra7x: make ocp2scp@4a080000 compatible with simple-bus

2018-05-29 Thread Jean-Jacques Hiblot
This is required when DM_USB is used, to bind the USB phys. Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - split dts changes in 2 commits: one for binding the children of

[U-Boot] [PATCH v7 05/11] board: ti: dra7xx-evm: turn on USB clocks in late init stage

2018-05-29 Thread Jean-Jacques Hiblot
For USB ports that use the Driver Model, turn on the clocks during the late init stage. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/ti/dra7xx/evm.c |

[U-Boot] [PATCH v7 04/11] dwc3-generic: Add support for the TI DWC3 glue

2018-05-29 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 85 + 1 file changed, 85 insertions(+) diff --git

[U-Boot] [PATCH v7 08/11] configs: enable DM_USB and DM_USB_DEV for all DRA7 platforms

2018-05-29 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: - Fix build issue "multiple definition of `usb_gadget_handle_interrupts'" Changes in v6: - DRA7 configs: enable DM_USB and DM_USB_DEV. Use DWC3_GENERIC in place of DWC3_OF_SIMPLE. disable non DM USB options Changes in v5: None Changes in

[U-Boot] [PATCH v7 02/11] phy: ti-pip3-phy: Add support for USB3 PHY

2018-05-29 Thread Jean-Jacques Hiblot
From: Vignesh R Add support to handle USB3 PHYs present on AM57xx/DRA7xx SoCs. This is needed to move AM57xx to DM_USB. Signed-off-by: Vignesh R Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: None Changes in v6: - ti-pipe3-phy: take PLL out of IDLE in pipe3_init(). The PLL may have

[U-Boot] [PATCH v7 03/11] phy: Add a new driver for OMAP's USB2 PHYs

2018-05-29 Thread Jean-Jacques Hiblot
This drivers supports the USB2 PHY found on omap5 and dra7 SOCs. Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - omap-usb2-phy: Implement power_on and power_off callbacks

[U-Boot] [PATCH v3 6/6] iotrace: fix behaviour when buffer is full

2018-05-29 Thread Ramon Fried
Don't continue updating the offset when buffer is full. When the buffer size exhausts and there's no space left to write warn the user and update only the needed size and not both the offset and needed size. Add needed buffer size information in the iotrace command. Signed-off-by: Ramon Fried

[U-Boot] [PATCH v2 5/7] dwc3: move phy operation to core.c

2018-05-29 Thread Jean-Jacques Hiblot
Those operations can be used for peripheral operation as well as host operation. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/usb/dwc3/core.c | 88 - drivers/usb/dwc3/ep0.c | 1 - drivers/usb/host/xhci-dwc3.c | 93

[U-Boot] [PATCH v2 7/7] dwc3-generic: Add select_dr_mode operation

2018-05-29 Thread Jean-Jacques Hiblot
The select_dr_mode operation is executed when the glue driver is probed. The role of this optional function is to configure the operating mode of the controller at the glue level. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 26

[U-Boot] [PATCH v2 6/7] dwc3-generic: Handle the PHYs, the clocks and the reset lines

2018-05-29 Thread Jean-Jacques Hiblot
This make the driver more generic. At this point this driver can replace the dwc3-of-simple implementation. Make the description in the Kconfig more generic too. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/usb/dwc3/Kconfig| 7 +-

[U-Boot] [PATCH v2 2/7] usb: introduce a separate config option for DM USB device

2018-05-29 Thread Jean-Jacques Hiblot
Using CONFIG_DM_USB for this purpose prevents using DM_USB for host and not for device. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: - select DM_USB_DEV by default for zynqmp platforms arch/arm/Kconfig| 2 ++ drivers/usb/Kconfig | 6 ++

[U-Boot] [PATCH v2 4/7] dwc3_generic: do not probe the USB device driver when it's bound

2018-05-29 Thread Jean-Jacques Hiblot
The driver will be probed when usb_gadget_initialize() is called. Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index

[U-Boot] [PATCH v2 0/7] Improvements for the dwc3_generic driver

2018-05-29 Thread Jean-Jacques Hiblot
This series aims at bringing improvements to the dwc3_generic driver so that it can be used by most of the platforms using the dwc3 controller. This series applies on top of the master branch of USB tree. It also also available on github: https://github.com/jjhiblot/u-boot/tree/dwc3_generic_v2 I

[U-Boot] [PATCH v2 3/7] usb: udc: implement DM versions of usb_gadget_initialize()/_release()/_handle_interrupt()

2018-05-29 Thread Jean-Jacques Hiblot
When DM_USB_DEV the platform code for the USB device must be replaced by calls to a USB device driver. usb_gadget_initialize() probes the USB device driver. usb_gadget_release() removes the USB device driver. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Lukasz Majewski --- Changes in v2:

[U-Boot] [PATCH v2 1/7] usb: gadget: Do not call board_usb_xxx() directly in USB gadget drivers

2018-05-29 Thread Jean-Jacques Hiblot
Add 2 functions to wrap the calls to board_usb_init() and board_usb_cleanup(). This is a preparatory work for DM support for UDC drivers (DM_USB_DEV). Signed-off-by: Jean-Jacques Hiblot --- Changes in v2: - Updated commit log - Fixed typo in thordown.c cmd/fastboot.c | 4 ++--

Re: [U-Boot] [U-Boot,v1,3/5] dm: serial: Add setparity

2018-05-29 Thread Tom Rini
On Tue, May 29, 2018 at 07:13:36AM +, Patrice CHOTARD wrote: > Hi Tom > > On 05/28/2018 09:13 PM, Tom Rini wrote: > > On Thu, May 17, 2018 at 02:50:44PM +0200, Patrice Chotard wrote: > > > >> From: Patrick Delaunay > >> > >> Implements serial setparity ops to allow uart parity change. > >>

Re: [U-Boot] [PATCH v1 0/7] Improvements for the dwc3_generic driver

2018-05-29 Thread Michal Simek
On 29.5.2018 13:03, Jean-Jacques Hiblot wrote: > > > On 28/05/2018 12:25, Michal Simek wrote: >> Hi, >> >> On 28.5.2018 11:47, Jean-Jacques Hiblot wrote: >>> Hi Michal >>> >>> >>> On 28/05/2018 10:32, Michal Simek wrote: Hi Jean, On 25.5.2018 11:32, Jean-Jacques Hiblot wrote:

Re: [U-Boot] [PATCH v1 0/7] Improvements for the dwc3_generic driver

2018-05-29 Thread Jean-Jacques Hiblot
On 28/05/2018 12:25, Michal Simek wrote: Hi, On 28.5.2018 11:47, Jean-Jacques Hiblot wrote: Hi Michal On 28/05/2018 10:32, Michal Simek wrote: Hi Jean, On 25.5.2018 11:32, Jean-Jacques Hiblot wrote: This series aims at bringing improvements to the dwc3_generic driver so that it can be

Re: [U-Boot] [PATCH] arm: mvebu: switch clearfog to use device-tree i2c and gpio

2018-05-29 Thread Stefan Roese
Hi Jon, On 29.05.2018 11:02, Jon Nettleton wrote: On Tue, May 29, 2018 at 7:37 AM Stefan Roese > wrote: On 29.05.2018 07:10, Chris Packham wrote: > On Tue, May 29, 2018 at 4:58 PM Baruch Siach mailto:bar...@tkos.co.il>> wrote: > >> Hi Chris, >

Re: [U-Boot] [PATCH] bug.h: introduce WARN_ONCE

2018-05-29 Thread Ramon Fried
On Tue, May 29, 2018 at 2:21 AM, Masahiro Yamada wrote: > 2018-05-28 18:44 GMT+09:00 Ramon Fried : >> Add WARN_ONCE definition to allow single time notification >> of warnings to the user. >> >> Signed-off-by: Ramon Fried >> --- >> include/linux/bug.h | 18 ++ >> 1 file changed,

  1   2   >