Re: [U-Boot] mtd: spi-nor: new NXP FlexSPI driver location & framework to use ?

2018-05-11 Thread Boris Brezillon
Hi Jagan, On Fri, 11 May 2018 11:30:43 +0530 Jagan Teki wrote: > On Fri, May 11, 2018 at 11:08 AM, Prabhakar Kushwaha > wrote: > > Dear Jagan, > > > > NXP is coming up with new FlexSPI controller. It is similar to existing > > QSPI with

[U-Boot] [PATCH] bootcount: Add bootcount command

2018-05-11 Thread Alex Kiernan
Add a command to manipulate the bootcounter. This is useful if you can run device recovery from inside U-Boot and need to reset the bootcounter after executing that process as part of altbootcmd. Signed-off-by: Alex Kiernan --- cmd/Kconfig | 7 +++ cmd/Makefile

Re: [U-Boot] [RFC PATCH 2/2] board: eets: pdu001: Fix wrong default value in Kconfig

2018-05-11 Thread Masahiro Yamada
2018-05-12 8:40 GMT+09:00 Eugeniu Rosca : > After importing linux v4.16-rc1 commit 2c37e08464a8 ("kconfig: Warn if > choice default is not in choice"), Kconfig complains: > > scripts/kconfig/conf --syncconfig Kconfig > board/eets/pdu001/Kconfig:22:warning:\ >

Re: [U-Boot] [RFC PATCH 1/2] kconfig: re-sync with Linux 4.17-rc4

2018-05-11 Thread Masahiro Yamada
Hi Eugeniu, Thanks for your great job! Almost looks good to me except one missed re-sync. See below. 2018-05-12 8:40 GMT+09:00 Eugeniu Rosca : > Align Kconfig to Linux 4.17-rc4 with minimal impact on non-kconfig files. > > Previous Kconfig sync was done by commit

Re: [U-Boot] [PATCH v2] ext4fs: Add ext4 extent tree cache

2018-05-11 Thread Tom Rini
On Fri, May 11, 2018 at 11:09:37AM -0700, evan.g.thomp...@gmail.com wrote: > From: Evan Thompson > > In ext4, the file inode can store up to 4 extents. If a file requires > more (due to size or fragmentation), an extent index tree is used. > > Currently, u-boot

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

2018-05-11 Thread Tom Rini
On Fri, May 11, 2018 at 12:19:58PM -0700, Tom Warren wrote: > Tom, > > Please pull u-boot-tegra/master into U-Boot/master. Thanks! > > All Tegra builds are OK, and Stephen's automated test system reports that > all tests pass. > > The following changes since commit

[U-Boot] [PATCH 1/1] README.uefi: update list of missing functionality

2018-05-11 Thread Heinrich Schuchardt
Update the list of missing functionality for boottime and runtime services. Signed-off-by: Heinrich Schuchardt --- doc/README.uefi | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/README.uefi b/doc/README.uefi index 2ad9217db85..6b9759cfede

Re: [U-Boot] [PATCH v4] efi_loader: fix off-by-one bug in efi_get_variable

2018-05-11 Thread Heinrich Schuchardt
On 05/11/2018 10:18 PM, Ivan Gorinov wrote: > efi_get_variable() always stores an extra zero byte after the output data. > When the returned data size matches the output buffer size, the extra zero > byte is stored past the end of the output buffer. > > Signed-off-by: Ivan Gorinov

[U-Boot] [RFC PATCH 2/2] board: eets: pdu001: Fix wrong default value in Kconfig

2018-05-11 Thread Eugeniu Rosca
After importing linux v4.16-rc1 commit 2c37e08464a8 ("kconfig: Warn if choice default is not in choice"), Kconfig complains: scripts/kconfig/conf --syncconfig Kconfig board/eets/pdu001/Kconfig:22:warning:\ choice default symbol 'PDU001_RUN_LED_RED' \ is not contained in the choice

Re: [U-Boot] [PATCH v7 06/35] musb: sunxi: Add OTG device clkgate and reset for H3/H5

2018-05-11 Thread Maxime Ripard
On Mon, May 07, 2018 at 10:55:16PM +0200, Marek Vasut wrote: > On 05/07/2018 10:11 PM, Maxime Ripard wrote: > > On Mon, May 07, 2018 at 05:32:34PM +0200, Marek Vasut wrote: > >> On 05/07/2018 04:52 PM, Maxime Ripard wrote: > >>> On Mon, May 07, 2018 at 01:47:43PM +0200, Marek Vasut wrote: >

[U-Boot] [PATCH v4] efi_loader: fix off-by-one bug in efi_get_variable

2018-05-11 Thread Ivan Gorinov
efi_get_variable() always stores an extra zero byte after the output data. When the returned data size matches the output buffer size, the extra zero byte is stored past the end of the output buffer. Signed-off-by: Ivan Gorinov --- lib/efi_loader/efi_variable.c | 40

Re: [U-Boot] [PATCH v3] efi_loader: fix off-by-one bug in efi_get_variable

2018-05-11 Thread Ivan Gorinov
On Fri, May 11, 2018 at 08:18:27PM +0200, Heinrich Schuchardt wrote: > On 05/11/2018 07:54 PM, Ivan Gorinov wrote: > > efi_get_variable() always stores an extra zero byte after the output data. > > When the returned data size matches the output buffer size, the extra zero > > byte is stored past

Re: [U-Boot] [PATCH 2/2] mx31: Convert MX31_HCLK_FREQ and MX31_CLK32 to Kconfig.

2018-05-11 Thread Tom Rini
On Fri, May 11, 2018 at 02:06:55PM +0200, Magnus Lilja wrote: > Also remove the #ifdef's from clock.h since the Kconfig values defaults > the to old default values in clock.h. > > Signed-off-by: Magnus Lilja Reviewed-by: Tom Rini -- Tom

Re: [U-Boot] [PATCH 1/2] mx31pdk: Convert CONFIG_MX31 flag to use Kconfig.

2018-05-11 Thread Tom Rini
On Fri, May 11, 2018 at 02:06:54PM +0200, Magnus Lilja wrote: > Move CONFIG_MX31 from mx31pdk.h to mx31pdk_defconfig and introduce > necessary Kconfig changes as well. > > Signed-off-by: Magnus Lilja Reviewed-by: Tom Rini -- Tom signature.asc

Re: [U-Boot] [GIT PULL] Xilinx changes for v2018.07

2018-05-11 Thread Tom Rini
On Fri, May 11, 2018 at 03:16:56PM +0200, Michal Simek wrote: > Hi Tom, > > please pull these changes to your tree. > Buildman looks good and travis build is not showing any issue too. > https://travis-ci.org/michalsimek/u-boot/builds/377645974 > > As we have discussed I have grab pending mmc

[U-Boot] Pull request, u-boot-tegra/master

2018-05-11 Thread Tom Warren
Tom, Please pull u-boot-tegra/master into U-Boot/master. Thanks! All Tegra builds are OK, and Stephen's automated test system reports that all tests pass. The following changes since commit da342f06b30399fbbebbb53aadfc018713c65c24: Merge git://git.denx.de/u-boot-ubi (2018-05-10 07:17:14

Re: [U-Boot] [PATCH v3] efi_loader: fix off-by-one bug in efi_get_variable

2018-05-11 Thread Heinrich Schuchardt
On 05/11/2018 07:54 PM, Ivan Gorinov wrote: > efi_get_variable() always stores an extra zero byte after the output data. > When the returned data size matches the output buffer size, the extra zero > byte is stored past the end of the output buffer. > > Signed-off-by: Ivan Gorinov

[U-Boot] [PATCH v2] ext4fs: Add ext4 extent tree cache

2018-05-11 Thread evan . g . thompson
From: Evan Thompson In ext4, the file inode can store up to 4 extents. If a file requires more (due to size or fragmentation), an extent index tree is used. Currently, u-boot reads a node from each level of the extent tree for every block read, which is very

[U-Boot] [PATCH v3] efi_loader: fix off-by-one bug in efi_get_variable

2018-05-11 Thread Ivan Gorinov
efi_get_variable() always stores an extra zero byte after the output data. When the returned data size matches the output buffer size, the extra zero byte is stored past the end of the output buffer. Signed-off-by: Ivan Gorinov --- lib/efi_loader/efi_variable.c | 40

Re: [U-Boot] [PATCH] ext4fs: Add ext4 extent tree cache

2018-05-11 Thread Evan Thompson
On Fri, May 11, 2018 at 10:18 AM, Tom Rini wrote: > On Fri, May 11, 2018 at 10:14:38AM -0700, Evan Thompson wrote: >> On Thu, May 10, 2018 at 3:02 PM, Tom Rini wrote: >> > On Mon, Mar 26, 2018 at 04:05:24PM -0700, evan.g.thomp...@gmail.com wrote: >> > >>

Re: [U-Boot] [PATCH] ext4fs: Add ext4 extent tree cache

2018-05-11 Thread Tom Rini
On Fri, May 11, 2018 at 10:14:38AM -0700, Evan Thompson wrote: > On Thu, May 10, 2018 at 3:02 PM, Tom Rini wrote: > > On Mon, Mar 26, 2018 at 04:05:24PM -0700, evan.g.thomp...@gmail.com wrote: > > > >> + > >> +#ifndef CONFIG_EXT4_EXTENT_CACHE_SIZE > >> +#define

Re: [U-Boot] [PATCH] ext4fs: Add ext4 extent tree cache

2018-05-11 Thread Evan Thompson
On Thu, May 10, 2018 at 3:02 PM, Tom Rini wrote: > On Mon, Mar 26, 2018 at 04:05:24PM -0700, evan.g.thomp...@gmail.com wrote: > >> + >> +#ifndef CONFIG_EXT4_EXTENT_CACHE_SIZE >> +#define CONFIG_EXT4_EXTENT_CACHE_SIZE 5 >> +#endif > > This needs to be done in Kconfig. Ok, I'll

Re: [U-Boot] Beaglebone Black U-boot won't buid - THUMB instruction issue

2018-05-11 Thread Faiz Abbas
Hi John, On Friday 11 May 2018 07:10 AM, John Babrick wrote: > Hello - I am trying to work through the book "Mastering Embedded Linux > Programming" by Chris Simmonds, and trying to work through building u-boot > after having built the cross toolchain. I am running into an error when I > try to

[U-Boot] driver: net: fsl-mc: Initialization of MC memory

2018-05-11 Thread Ralf Göbel
Hi, I have added the fix to my GitHub repository: https://github.com/RalfGoebel/u-boot/commit/1d23fa42cb2ebe115ccd7a842ac7993f e4f1ce00 Unfortunately, I don't really know what's happening here. It looks like the error is caused by using uninitialized memory, but maybe it's something else. Is

Re: [U-Boot] [PATCH v3 3/3] spi: mxs_spi: DM conversion

2018-05-11 Thread Akash Gajjar
Hello Marek, On Fri, May 11, 2018 at 4:09 PM, Marek Vasut wrote: > On 05/11/2018 12:08 PM, Gajjar Akash wrote: > > Hi Marek, > > > > Thanks for the review comments. > > > > > -struct mxs_spi_slave { > > > - struct spi_slaveslave; > > > -

[U-Boot] [PATCH 1/1] efi_loader: DocBook comments for boot services

2018-05-11 Thread Heinrich Schuchardt
With 'make htmldocs' we can generate a documentation if the function comments follow the DocBook conventions. This patch adjusts the comments for EFI boot services and provides the DocBook template for the EFI subsystem. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS

Re: [U-Boot] Beaglebone Black U-boot won't buid - THUMB instruction issue

2018-05-11 Thread Tom Rini
On Thu, May 10, 2018 at 09:40:44PM -0400, John Babrick wrote: > Hello - I am trying to work through the book "Mastering Embedded Linux > Programming" by Chris Simmonds, and trying to work through building u-boot > after having built the cross toolchain. I am running into an error when I > try to

Re: [U-Boot] Please pull u-boot-fsl-qoriq master

2018-05-11 Thread Tom Rini
On Fri, May 11, 2018 at 04:20:11AM +, York Sun wrote: > Tom, > > The following changes since commit a43d46a73cb2c40481791cb292b8eb0b5a80d55e: > > arm: v7R: Add support for enabling caches (2018-05-07 15:53:29 -0400) > > are available in the git repository at: > >

[U-Boot] [PATCH v1 20/21] display5: config: Add GPT verification and restoration code on SWUpdate entry

2018-05-11 Thread Lukasz Majewski
If GPT gets broken, then after N boot attempts we will run the SWUpdate restoration image. On its enter we will check GPT and restore it if needed. To test it: display5 > mmc write 0x1200 4 8 It will overwrite the primary GPT table. Signed-off-by: Lukasz Majewski ---

[U-Boot] [PATCH v1 14/21] display5: config: Update swupdate initramfs file name (now supporting ext4)

2018-05-11 Thread Lukasz Majewski
After moving to swupdate 2017.07, the default fs for swupdate rootfs is ext4, not ext3. Signed-off-by: Lukasz Majewski --- include/configs/display5.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/display5.h b/include/configs/display5.h index

[U-Boot] [PATCH v1 17/21] display5: config: Add cma=256M to command line arguments

2018-05-11 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- include/configs/display5.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/display5.h b/include/configs/display5.h index 75dfed9c3d..8212775cc3 100644 --- a/include/configs/display5.h +++

[U-Boot] [PATCH v1 21/21] display5: Add missing environment.h include to avoid warning

2018-05-11 Thread Lukasz Majewski
Without this change the following warning shows up when building: board/liebherr/display5/display5.c:270:3: warning: implicit declaration of function ‘eth_env_set_enetaddr’ [-Wimplicit-function-declaration] This commit fixes this issue. Signed-off-by: Lukasz Majewski ---

[U-Boot] [PATCH v1 19/21] display5: display5_defconfig: Enable support for gpt command (CMD_GPT) in production u-boot

2018-05-11 Thread Lukasz Majewski
After this change one can run 'gpt' command on production u-boot. Signed-off-by: Lukasz Majewski --- configs/display5_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/display5_defconfig b/configs/display5_defconfig index

[U-Boot] [PATCH v1 09/21] display5: config: factory: Extend mtdparts to support LEG factory partition

2018-05-11 Thread Lukasz Majewski
This special partition has been added solely for production purpose. Signed-off-by: Lukasz Majewski --- configs/display5_factory_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/display5_factory_defconfig b/configs/display5_factory_defconfig

[U-Boot] [PATCH v1 13/21] display5: config: factory: Update BACKUP rootfs in factory mode

2018-05-11 Thread Lukasz Majewski
After splitting rootfs images to BACKUP and ACTIVE, the "factory" u-boot also needs to update the former. Signed-off-by: Lukasz Majewski --- include/configs/display5.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/configs/display5.h

[U-Boot] [PATCH v1 05/21] display5: spl: Check return code of the env_* functions

2018-05-11 Thread Lukasz Majewski
Force booting through u-boot proper when environment error encountered (as a result of either broken SPI-NOR or erased envs). Signed-off-by: Lukasz Majewski --- board/liebherr/display5/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v1 07/21] display5: config: Remove support for Linux initramfs recovery image boot

2018-05-11 Thread Lukasz Majewski
This is a prerequisite patch to combine SWUpdate and Linux recovery initramfs images. It removes the support for it. Signed-off-by: Lukasz Majewski --- configs/display5_defconfig | 2 +- configs/display5_factory_defconfig | 2 +- include/configs/display5.h |

[U-Boot] [PATCH v1 10/21] display5: Support for the emergency PAD pressing

2018-05-11 Thread Lukasz Majewski
To enter the special mode, one needs to short cut two pads with e.g. screw driver. After power up the SPL will execute u-boot in which proper actions will be taken. It is worth noting that we do not alter envs (even the BOOT_FROM variable) and unconditionally go to recovery. Signed-off-by:

[U-Boot] [PATCH v1 18/21] display5: config: Reduce rootfs2 (BACKUP) size from 1528M to 512M

2018-05-11 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- include/configs/display5.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/display5.h b/include/configs/display5.h index 8212775cc3..906345067c 100644 --- a/include/configs/display5.h +++

[U-Boot] [PATCH v1 16/21] display5: net: Add function to read ethaddr from iMX6 fuses

2018-05-11 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- board/liebherr/display5/display5.c | 21 + 1 file changed, 21 insertions(+) diff --git a/board/liebherr/display5/display5.c b/board/liebherr/display5/display5.c index 4bade476a5..a3deba216c 100644 ---

[U-Boot] [PATCH v1 15/21] display5: ddr: Enable support for DDR3 auto calibration

2018-05-11 Thread Lukasz Majewski
This code performs DDR3 memory calibration for display5 board. Signed-off-by: Lukasz Majewski --- board/liebherr/display5/spl.c | 47 +++ configs/display5_defconfig| 1 + 2 files changed, 48 insertions(+) diff --git

[U-Boot] [PATCH v1 08/21] display5: config: Update SPI-NOR partition for larger swupdate-initramfs

2018-05-11 Thread Lukasz Majewski
The SPI-NOR partition information has been updated to store swupdate-kernel-FIT just after envs as well as two times larger swupdate-initramfs image. Signed-off-by: Lukasz Majewski --- configs/display5_defconfig | 2 +- configs/display5_factory_defconfig | 2 +-

[U-Boot] [PATCH v1 12/21] display5: config: Provide 'tftp_mmc_rootfs_bkp' command to write BACKUP rootfs

2018-05-11 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- include/configs/display5.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/display5.h b/include/configs/display5.h index 9e3c7f547b..1e0383de46 100644 --- a/include/configs/display5.h +++ b/include/configs/display5.h @@

[U-Boot] [PATCH v1 03/21] display5: config: Add "factory" (1MiB) SPI-NOR partition in u-boot

2018-05-11 Thread Lukasz Majewski
To test if this partition is present - one needs to write: display5 > sf probe; mtdparts display5 > sf erase factory +0x10 Signed-off-by: Lukasz Majewski --- configs/display5_defconfig | 2 +- include/configs/display5.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)

[U-Boot] [PATCH v1 11/21] display5: wdt: Enable WDT support (both SPL and u-boot)

2018-05-11 Thread Lukasz Majewski
Test case: The fitImage gets corrupted: truncate -c -s 3M fitImage run tftp_mmc_fitImg setenv boot_os y reset [board shall hang in SPL with "Trying to boot from MMC1" information] Then after X seconds WDT is causing board to reset. After N boot attempts we enter recovery mode. Signed-off-by:

[U-Boot] [PATCH v1 04/21] display5: config: Provide command to flash the whole SPI-NOR memory

2018-05-11 Thread Lukasz Majewski
It may be necessary to update the content of the whole SPI-NOR memory at once with using a single command (tftp_sf_img). Signed-off-by: Lukasz Majewski --- include/configs/display5.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/configs/display5.h

[U-Boot] [PATCH v1 06/21] display5: config: Reset the board when bootm fails

2018-05-11 Thread Lukasz Majewski
Since display5 is now supporting boot counting, we can just reset the board when bootm fails (i.e. it doesn't boot the fitImage kernel for any reason). Signed-off-by: Lukasz Majewski --- include/configs/display5.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

[U-Boot] [PATCH v1 01/21] display5: factory: Add support for BOOT_FROM = FACTORY switch

2018-05-11 Thread Lukasz Majewski
When BOOT_FROM = FACTORY, then the LEG's factory setup is performed. This code relies on boot_nfs u-boot command, so it shall be adjusted appropriately (e.g. provide proper fitImage file). Signed-off-by: Lukasz Majewski --- include/configs/display5.h | 9 - 1 file

[U-Boot] [PATCH v1 02/21] display5: config: factory: Setup IP config data according to LEG production setup

2018-05-11 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- include/configs/display5.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/display5.h b/include/configs/display5.h index 67a1318e4f..6d384d4de5 100644 --- a/include/configs/display5.h +++ b/include/configs/display5.h @@

[U-Boot] [PATCH v1 00/21] This patch series brings in sync DISPLAY5 internal

2018-05-11 Thread Lukasz Majewski
This patch series brings the internal DISPLAY5 development in sync with mainline. Lukasz Majewski (21): display5: factory: Add support for BOOT_FROM = FACTORY switch display5: config: factory: Setup IP config data according to LEG production setup display5: config: Add "factory" (1MiB)

[U-Boot] [GIT PULL] Xilinx changes for v2018.07

2018-05-11 Thread Michal Simek
Hi Tom, please pull these changes to your tree. Buildman looks good and travis build is not showing any issue too. https://travis-ci.org/michalsimek/u-boot/builds/377645974 As we have discussed I have grab pending mmc patches for fixing timer issue and adding sd3.0 support because there was no

Re: [U-Boot] [PATCH] mmc: Changed the datatype of the variable to handle 64-bit arch

2018-05-11 Thread Michal Simek
On 3.5.2018 08:53, Michal Simek wrote: > From: Vipul Kumar > > This patch changed the datatype of variable "start" from uint to ulong > to work properly on 64-bit machines as well. Also the return type of > get_timer() function is ulong. > > Signed-off-by: Vipul Kumar

Re: [U-Boot] [UBOOT PATCH v3 0/7] Add support of SD3.0 UHS modes for ZynqMP

2018-05-11 Thread Michal Simek
On 19.4.2018 09:07, Siva Durga Prasad Paladugu wrote: > This patch series is meant to add SD3.0 support for ZynqMP > platform. > The first five patches in the series mostly setting up > things in sdhci layer to support SD3.0 , the sixth patch > is to add SD3.0 support for ZynqMP platform and the

[U-Boot] [PATCH 1/2] mx31pdk: Convert CONFIG_MX31 flag to use Kconfig.

2018-05-11 Thread Magnus Lilja
Move CONFIG_MX31 from mx31pdk.h to mx31pdk_defconfig and introduce necessary Kconfig changes as well. Signed-off-by: Magnus Lilja --- arch/arm/Kconfig | 14 ++ arch/arm/mach-imx/mx3/Kconfig | 20 configs/mx31pdk_defconfig

[U-Boot] [PATCH 2/2] mx31: Convert MX31_HCLK_FREQ and MX31_CLK32 to Kconfig.

2018-05-11 Thread Magnus Lilja
Also remove the #ifdef's from clock.h since the Kconfig values defaults the to old default values in clock.h. Signed-off-by: Magnus Lilja --- arch/arm/include/asm/arch-mx31/clock.h | 8 arch/arm/mach-imx/mx3/Kconfig | 14 ++ 2 files

[U-Boot] [PATCH 0/2] i.MX31PDK: Move CONFIG_MX31* to Kconfig

2018-05-11 Thread Magnus Lilja
Refresh i.MX31 and i.MX31PDK support in U-boot by moving some CONFIG_MX31* settings to Kconfig options. Boots nicely on actual hardware. Applies to tip of tree of the main U-boot branch, please advice if I should rebase on top of another tree. Regarding compiling and booting: I had to compile

Re: [U-Boot] mtd: spi-nor: new NXP FlexSPI driver location & framework to use ?

2018-05-11 Thread Prabhakar Kushwaha
Thanks Jagan > -Original Message- > From: Jagan Teki [mailto:jagannadh.t...@gmail.com] > Sent: Friday, May 11, 2018 11:31 AM > To: Prabhakar Kushwaha > Cc: Jagan Teki ; York Sun > ; Yogesh Narayan Gaur >

Re: [U-Boot] [PATCH v3 3/3] spi: mxs_spi: DM conversion

2018-05-11 Thread Marek Vasut
On 05/11/2018 01:09 PM, Akash Gajjar wrote: > Hello Marek, > > On Fri, May 11, 2018 at 4:09 PM, Marek Vasut > wrote: > > On 05/11/2018 12:08 PM, Gajjar Akash wrote: > > Hi Marek, > > > > Thanks for the review comments. >

Re: [U-Boot] [PATCH v1 08/16] arm: socfpga: stratix10: Add mailbox support for Stratix10 SoC

2018-05-11 Thread Marek Vasut
On 05/11/2018 11:25 AM, Ley Foon Tan wrote: > On Fri, May 11, 2018 at 4:44 PM, Marek Vasut wrote: >> On 05/11/2018 07:45 AM, Ley Foon Tan wrote: >>> On Thu, May 10, 2018 at 6:09 PM, Marek Vasut wrote: On 05/10/2018 10:45 AM, Ley Foon Tan wrote: > On Tue,

Re: [U-Boot] [U-Boot, 1/1] tools/file2include: avoid incorrect comments

2018-05-11 Thread Tom Rini
On Mon, May 07, 2018 at 11:00:22PM +0200, Heinrich Schuchardt wrote: > Avoid creating incorrect comments like /* ...*/... */ by printing > '.' instead of '*' inside comments. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [U-Boot, v2, 1/1] include: update log2 header from the Linux kernel

2018-05-11 Thread Tom Rini
On Mon, May 07, 2018 at 10:18:27PM +0200, Heinrich Schuchardt wrote: > Without the patch gcc 8 produces: > warning: ignoring attribute ‘noreturn’ because it conflicts with > attribute ‘const’ [-Wattributes] > int ilog2_NaN(void); > > So let's update the include from Linux kernel v4.16. > >

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

2018-05-11 Thread Tom Rini
On Fri, May 11, 2018 at 04:20:20AM +0200, Marek Vasut wrote: > The following changes since commit 6417572efa9107674ec106ae7e388178a92155fc: > > lib/Kconfig: Mark OF_LIBFDT_OVERLAY as depending on OF_LIBFDT > (2018-05-08 09:07:41 -0400) > > are available in the Git repository at: > >

Re: [U-Boot] Fix Ymodem build when DEBUG and CONFIG_USE_TINY_PRINTF are selected

2018-05-11 Thread Tom Rini
On Thu, May 03, 2018 at 11:45:08AM +, Alex Kiernan wrote: > Attempting to build with both DEBUG and CONFIG_USE_TINY_PRINTF along > with CONFIG_SPL_YMODEM_SUPPORT fails at link time: > > common/built-in.o: In function `zm_dprintf': > common/xyzModem.c:190: undefined reference to

Re: [U-Boot] SPDX: Convert a few files that were missed before

2018-05-11 Thread Tom Rini
On Mon, May 07, 2018 at 05:02:21PM -0400, Tom Rini wrote: > As part of the main conversion a few files were missed. These files had > additional whitespace after the '*' and before the SPDX tag and my > previous regex was too strict. This time I did a grep for all SPDX tags > and then filtered

Re: [U-Boot] [U-Boot, 1/1] xyz-modem: va_start() must be matched by va_end()

2018-05-11 Thread Tom Rini
On Mon, May 07, 2018 at 09:59:34PM +0200, Heinrich Schuchardt wrote: > Every va_start() call must be matched by a va_end() call. > > scripts/checkpatch.pl required reformatting the complete function > zm_dprintf(). > > Signed-off-by: Heinrich Schuchardt Applied to

Re: [U-Boot] [U-Boot, 2/2] board/freescale: Remove invalid fsl email addresses

2018-05-11 Thread Tom Rini
On Wed, May 02, 2018 at 08:12:07PM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > These fsl email addresses are no longer valid and they do not have a > correspondent nxp.com entry. > > Remove all invalid fsl email addresses and mark the boards as orphan. > >

Re: [U-Boot] [U-Boot,1/2] p1022ds: Change Timur's email address

2018-05-11 Thread Tom Rini
On Wed, May 02, 2018 at 08:12:06PM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > ti...@freescale.com is not a valid email for quite some time, so change > it to Timur's updated email. > > Signed-off-by: Fabio Estevam > Acked-by: Timur Tabi

Re: [U-Boot] [U-Boot, 1/1] tools/file2include: create Linux style SPDX header

2018-05-11 Thread Tom Rini
On Mon, May 07, 2018 at 08:38:24PM +0200, Heinrich Schuchardt wrote: > file2include is used to convert a binary file to a C include. > With the patch the SPDX header is written to the first line as > expected by scripts/checkpatch.pl. > > Cf.

Re: [U-Boot] [U-Boot, v5, 7/7] bootcount: display5: config: Enable boot count feature in the display5 board

2018-05-11 Thread Tom Rini
On Wed, May 02, 2018 at 04:10:56PM +0200, Lukasz Majewski wrote: > The boot count is enabled in both SPL and proper u-boot. > > Signed-off-by: Lukasz Majewski > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [U-Boot, v5, 6/7] bootcount: display5: spl: Extend DISPLAY5 board SPL to support bootcount checking

2018-05-11 Thread Tom Rini
On Wed, May 02, 2018 at 04:10:55PM +0200, Lukasz Majewski wrote: > This patch is necessary for providing basic bootcount checking in the case > of using "falcon" boot mode in that board. > > It forces u-boot proper boot, when we exceed the number of errors. > > Signed-off-by: Lukasz Majewski

Re: [U-Boot] bootm: fix 'memory-fixup' for vxWorks boot

2018-05-11 Thread Tom Rini
On Fri, May 04, 2018 at 10:49:11AM +0200, Hannes Schmelzer wrote: > The check for having a memory node within the fdt blob is made wrong, we > fix this here. > > Signed-off-by: Hannes Schmelzer Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [U-Boot, v5, 3/7] bootcount: Add function wrappers to handle bootcount increment and error checking

2018-05-11 Thread Tom Rini
On Wed, May 02, 2018 at 04:10:52PM +0200, Lukasz Majewski wrote: > Those two functions can be used to provide easy bootcount management. > > Signed-off-by: Lukasz Majewski > > Reviewed-by: Tom Rini > Reviewed-by: Stefan Roese Applied to

Re: [U-Boot] [U-Boot, v5, 5/7] bootcount: spl: Extend SPL to support bootcount incrementation

2018-05-11 Thread Tom Rini
On Wed, May 02, 2018 at 04:10:54PM +0200, Lukasz Majewski wrote: > This patch adds support for incrementation of the bootcount in SPL. > Such feature is necessary when we do want to use this feature with > 'falcon' boot mode (which loads OS directly in SPL). > > Signed-off-by: Lukasz Majewski

Re: [U-Boot] [U-Boot, v5, 4/7] bootcount: Rewrite autoboot to use wrapper functions from bootcount.h

2018-05-11 Thread Tom Rini
On Wed, May 02, 2018 at 04:10:53PM +0200, Lukasz Majewski wrote: > The code has been refactored to use common wrappers from bootcount.h > header. > > Signed-off-by: Lukasz Majewski > Reviewed-by: Stefan Roese > Reviewed-by: Tom Rini >

Re: [U-Boot] [U-Boot, v5, 2/7] bootcount: Add include guards into bootcount.h file

2018-05-11 Thread Tom Rini
On Wed, May 02, 2018 at 04:10:51PM +0200, Lukasz Majewski wrote: > This patch adds missing include guards for bootcount.h file. > > Signed-off-by: Lukasz Majewski > Reviewed-by: Stefan Roese > Reviewed-by: Tom Rini > Reviewed-by: Alex Kiernan

Re: [U-Boot] [U-Boot, v5, 1/7] bootcount: spl: Enable bootcount support in SPL

2018-05-11 Thread Tom Rini
On Wed, May 02, 2018 at 04:10:50PM +0200, Lukasz Majewski wrote: > New, SPL related config option - CONFIG_SPL_BOOTCOUNT_LIMIT has been > added to allow drivers/bootcount code re-usage in SPL. > > This code is necessary to use and setup bootcount in SPL in the case of > falcon boot mode. > >

Re: [U-Boot] [PATCH v3 3/3] spi: mxs_spi: DM conversion

2018-05-11 Thread Marek Vasut
On 05/11/2018 12:08 PM, Gajjar Akash wrote: > Hi Marek, > > Thanks for the review comments. > > > -struct mxs_spi_slave { > > -     struct spi_slave        slave; > > -     uint32_t                max_khz; > > -     uint32_t                mode; > > -     struct mxs_ssp_regs 

[U-Boot] Beaglebone Black U-boot won't buid - THUMB instruction issue

2018-05-11 Thread John Babrick
Hello - I am trying to work through the book "Mastering Embedded Linux Programming" by Chris Simmonds, and trying to work through building u-boot after having built the cross toolchain. I am running into an error when I try to build u-boot, any ideas? johann@mars:~/uboot-work/u-boot$ make

[U-Boot] [PATCH 3/4] efi_loader: implement ReinstallProtocolInterface

2018-05-11 Thread Heinrich Schuchardt
The ReinstallProtocolInterface boot time service is implemented. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 66 +++ 1 file changed, 43 insertions(+), 23 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c

[U-Boot] [PATCH 4/4] efi_selftest: test ReinstallProtocolInterface

2018-05-11 Thread Heinrich Schuchardt
Add a test for ReinstallProtocolInterface to the controller selftest. As ReinstallProtocolInterface has to connect controllers to the new interface is does not fit to the manage protocols selftest. Signed-off-by: Heinrich Schuchardt ---

[U-Boot] [PATCH 2/4] efi_loader: check interface when uninstalling protocol

2018-05-11 Thread Heinrich Schuchardt
The interface has to be checked in UninstallProtocolInterface. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index

[U-Boot] [PATCH 0/4] implement ReinstallProtocolInterface

2018-05-11 Thread Heinrich Schuchardt
This patch series implements the ReinstallProtocolInterface interface and provides a unit test. UninstallProtocolInterface now checks the interface being uninstalled. Heinrich Schuchardt (4): efi_selftest: correct efi_selftest_manageprotocols efi_loader: check interface when uninstalling

[U-Boot] [PATCH 1/4] efi_selftest: correct efi_selftest_manageprotocols

2018-05-11 Thread Heinrich Schuchardt
Pass the correct interface when uninstalling a protocol. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/efi_selftest_manageprotocols.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_selftest/efi_selftest_manageprotocols.c

Re: [U-Boot] [PATCH v3 3/3] spi: mxs_spi: DM conversion

2018-05-11 Thread Gajjar Akash
Hi Marek, Thanks for the review comments. > -struct mxs_spi_slave { > > - struct spi_slaveslave; > > - uint32_tmax_khz; > > - uint32_tmode; > > - struct mxs_ssp_regs *regs; > > +struct mxs_spi_priv { > > + struct mxs_ssp_regs *regs;

[U-Boot] [PATCH] net: include/phy.h: add new mode for internal phy

2018-05-11 Thread Kunihiko Hayashi
Add the new mode to indicate a built-in PHY. This will be used by UniPhier AVE ethernet driver. Signed-off-by: Kunihiko Hayashi --- include/phy.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/phy.h b/include/phy.h index 0543ec1..d0f60d1 100644 ---

[U-Boot] [PATCH 4/4] ARM: dts: uniphier: change phy-mode to 'internal' for LD11

2018-05-11 Thread Kunihiko Hayashi
Change the phy-mode property to 'internal' that means to use a built-in PHY implemented on LD11 SoC. Signed-off-by: Kunihiko Hayashi --- arch/arm/dts/uniphier-ld11.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 3/4] ARM: dts: uniphier: add clock-names and reset-names to ethernet node

2018-05-11 Thread Kunihiko Hayashi
Add clock-names and reset-names because this node recognizes multiple clocks and resets. ("ether", and so on, for each) Signed-off-by: Kunihiko Hayashi --- arch/arm/dts/uniphier-ld11.dtsi | 2 ++ arch/arm/dts/uniphier-ld20.dtsi | 2 ++

[U-Boot] [PATCH 2/4] ARM: dts: uniphier: add required clocks and resets to Pro4 ethernet node

2018-05-11 Thread Kunihiko Hayashi
The GIO clock/reset, another MAC clock, and the PHY clock are required for the ethernet of Pro4 SoC. Signed-off-by: Kunihiko Hayashi --- arch/arm/dts/uniphier-pro4.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 0/4] ARM: dts: uniphier: add additional required properties for ethernet nodes

2018-05-11 Thread Kunihiko Hayashi
According to the modification of linux-next, add required clocks and their names, resets and their names, and system controller properties to fix the activation issues for the ethernet controllers implemented on some UniPhier SoCs. Kunihiko Hayashi (4): ARM: dts: uniphier: add syscon-phy-mode

[U-Boot] [PATCH 1/4] ARM: dts: uniphier: add syscon-phy-mode property to each ethernet node

2018-05-11 Thread Kunihiko Hayashi
Add syscon-phy-mode property specifying a phandle of system controller to each ethernet node. Signed-off-by: Kunihiko Hayashi --- arch/arm/dts/uniphier-ld11.dtsi | 1 + arch/arm/dts/uniphier-ld20.dtsi | 1 + arch/arm/dts/uniphier-pro4.dtsi | 3 ++-

Re: [U-Boot] [PATCH v1 08/16] arm: socfpga: stratix10: Add mailbox support for Stratix10 SoC

2018-05-11 Thread Ley Foon Tan
On Fri, May 11, 2018 at 4:44 PM, Marek Vasut wrote: > On 05/11/2018 07:45 AM, Ley Foon Tan wrote: >> On Thu, May 10, 2018 at 6:09 PM, Marek Vasut wrote: >>> On 05/10/2018 10:45 AM, Ley Foon Tan wrote: On Tue, May 8, 2018 at 5:21 PM, Marek Vasut

Re: [U-Boot] [PATCH v1 08/16] arm: socfpga: stratix10: Add mailbox support for Stratix10 SoC

2018-05-11 Thread Marek Vasut
On 05/11/2018 07:45 AM, Ley Foon Tan wrote: > On Thu, May 10, 2018 at 6:09 PM, Marek Vasut wrote: >> On 05/10/2018 10:45 AM, Ley Foon Tan wrote: >>> On Tue, May 8, 2018 at 5:21 PM, Marek Vasut wrote: On 05/08/2018 08:49 AM, Ley Foon Tan wrote: > On Thu, Apr

[U-Boot] [PATCH 2/2] configs: sama5d2_xplained: fix bootcmd/args for spi+emmc demo

2018-05-11 Thread Eugen Hristev
For sama5d2_xplained_spiflash_defconfig, we have the demo layout as presented on this link: http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d2XplainedMainPage#SPI_eMMC_Flash_demo_Memory_map on SPI Flash (4 Mbyte) we have Bootstrap (second level bootloader), U-boot + env and kernel+dtb we

[U-Boot] [PATCH 1/2] configs: sama5d2_xplained: set default FAT env location to SD-Card

2018-05-11 Thread Eugen Hristev
For sama5d2_xplained_mmc_defconfig, we have the following layout for SD-Card: partition 1: FAT: contains bootstrap binary (second level bootloader), U-boot, U-boot env, kernel, dtb partition 2: EXT4: Rootfs. Add to defconfig CONFIG_ENV_FAT_DEVICE_AND_PART to have environment by default on

[U-Boot] [PATCH] phy: marvell: a3700: Fix compatible string for ehci

2018-05-11 Thread Marek Behún
The DTS file for armada-37xx uses the string "marvell,armada3700-ehci", but the code searched for "marvell,armada-3700-ehci". Signed-off-by: Marek Behun --- drivers/phy/marvell/comphy_a3700.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

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

2018-05-11 Thread Jagdish Gediya
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. Signed-off-by: Jagdish Gediya --- include/configs/ls1088a_common.h | 10

[U-Boot] [PATCH] spi: Zap fsl_espi driver

2018-05-11 Thread Jagan Teki
Dropped becuase - No proper changes related to since from 2015 - no dm conversion. Signed-off-by: Jagan Teki --- Note: Right now only drived removed, if there is no further update on this will remove respective code which is using this driver. drivers/spi/Kconfig

Re: [U-Boot] mtd: spi-nor: new NXP FlexSPI driver location & framework to use ?

2018-05-11 Thread Jagan Teki
On Fri, May 11, 2018 at 11:08 AM, Prabhakar Kushwaha wrote: > Dear Jagan, > > NXP is coming up with new FlexSPI controller. It is similar to existing QSPI > with enhanced feature-set. > We have the driver ready as per existing framework i.e. driver/spi. > > From