[U-Boot] [PATCH v6 02/10] fit: use 'const' for the input of fdt_offset() and locate_dtb_in_fit()

2017-09-15 Thread Jean-Jacques Hiblot
Those 2 functions don't modify their input, we can mark it const. This prevents compilation warnings when they are provided const input. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini Reviewed-by: Simon Glass ---

[U-Boot] [PATCH v6 01/10] dts: renamed FIT_EMBED to MULTI_DTB_FIT and moved it to the dts Kconfig

2017-09-15 Thread Jean-Jacques Hiblot
CONFIG_FIT_EMBED might be confused with CONFIG_OF_EMBED, rename it MULTI_DTB_FIT as it is able to get a DTB from a FIT image containing multiple DTBs. Also move the option to the Kconfig dedicated to the DTS options and create a README for this feature. Signed-off-by: Jean-Jacques Hiblot

[U-Boot] [PATCH v6 07/10] lib: allow building lzo for the SPL

2017-09-15 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- lib/Kconfig | 5 + lib/Makefile | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index

Re: [U-Boot] [PATCH v2 05/16] dtoc: Add support for 32 or 64-bit addresses

2017-09-15 Thread Simon Glass
On 29 August 2017 at 14:23, Dr. Philipp Tomsich wrote: > >> On 29 Aug 2017, at 22:15, Simon Glass wrote: >> >> When using 32-bit addresses dtoc works correctly. For 64-bit addresses it >> does not since it ignores the #address-cells and

[U-Boot] [PATCH 2/3] rockchip: back-to-bootrom: replace assembly-implementation with C-code

2017-09-15 Thread Philipp Tomsich
The back-to-bootrom implementation for Rockchip has always relied on the stack-pointer being valid on entry, so there was little reason to have this as an assembly implementation. This provides a new C-only implementation of save_boot_params and back_to_bootrom (relying on setjmp/longjmp) and

Re: [U-Boot] [U-Boot, 1/2] GPT: create block device for sandbox testing

2017-09-15 Thread Tom Rini
On Sat, Sep 09, 2017 at 11:47:12PM -0700, ali...@peloton-tech.com wrote: > From: Alison Chaiken > > Provide a Python function that creates a small block device for the > purpose of testing the cmd/gpt.c or cmd/part.c functions in the u-boot > sandbox. > >

[U-Boot] [PATCH 3/4] ARM: uniphier: remove bit field macros from sc64-regs.h

2017-09-15 Thread Masahiro Yamada
Starting from PXs3, the bit fields of RSTCTRL, CLKCTRL registers will change every SoC. There is no more point to define bitfields in the common header file. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/clk/clk-ld11.c | 2 +-

[U-Boot] [PATCH 1/4] mtd: nand: denali: allow to override corrupted revision register

2017-09-15 Thread Masahiro Yamada
The Denali IP does not update the revision register properly. Allow to override it with SoC data associated with compatible. Linux had already finished big surgery of this driver, but I need to prepare the NAND core before the full sync of the driver. For now, I am fixing the most fatal problem

Re: [U-Boot] [PATCH] spl: fit: Fixed incompatible type warning in spl_load_fit_image()

2017-09-15 Thread Tom Rini
On Fri, Sep 15, 2017 at 09:46:29AM +0200, Jean-Jacques Hiblot wrote: > Warning introduced in commit 7264f29 (spl: fit: Eanble GZIP support for > image decompression) > > Signed-off-by: Jean-Jacques Hiblot > --- > common/spl/spl_fit.c | 4 +++- > 1 file changed, 3

Re: [U-Boot] [PATCH v2 0/3] support enter download mode on rockchip platform

2017-09-15 Thread Dr. Philipp Tomsich
Andy, > On 15 Sep 2017, at 15:23, Andy Yan wrote: > > Hi Philipp: > > 2017-09-15 20:07 GMT+08:00 Dr. Philipp Tomsich > >: > Andy, > > > On 14 Sep 2017, at 10:51, Andy Yan

Re: [U-Boot] [PATCH v2 0/3] support enter download mode on rockchip platform

2017-09-15 Thread Dr. Philipp Tomsich
Andy, > On 14 Sep 2017, at 10:51, Andy Yan wrote: > > > Most rockchip platform based boards use a key to instruct > the board enter download firmware mode, some boards use a > adc to detect the key status, and some use a gpio. I just sent out a series that updates the

Re: [U-Boot] [U-Boot, 1/2] arm: am57xx: cl-som-am57x: Use new pinctrl macros

2017-09-15 Thread Tom Rini
On Fri, Sep 08, 2017 at 02:08:24PM -0500, Suman Anna wrote: > Commit 6ae4c3efbd62 ("ARM: DRA7: Add pinctrl register definitions") > has added new macros for pinmux configuration in line with the > kernel definitions. Fixup the current pinctrl data for the CompuLab > CL-SOM-AM57x board to use

Re: [U-Boot] [U-Boot, 1/1] add pytests for 'gpt rename' and 'gpt swap'

2017-09-15 Thread Tom Rini
On Sat, Sep 09, 2017 at 11:54:51PM -0700, ali...@peloton-tech.com wrote: > From: Alison Chaiken > > Add unit tests for the 'gpt rename' and 'gpt swap' commands that > rely on the block device created by test/py/make_test_disk.py. > Add CONFIG_CMD_GPT_RENAME to the

Re: [U-Boot] [PATCH v2 0/3] support enter download mode on rockchip platform

2017-09-15 Thread Andy Yan
Hi Philipp: 2017-09-15 20:07 GMT+08:00 Dr. Philipp Tomsich < philipp.toms...@theobroma-systems.com>: > Andy, > > > On 14 Sep 2017, at 10:51, Andy Yan wrote: > > > > > > Most rockchip platform based boards use a key to instruct > > the board enter download firmware mode,

[U-Boot] [PATCH] arm: dts: Add missing u-boot specific dtsi for dra7-evm

2017-09-15 Thread Jean-Jacques Hiblot
commit b63b995 (arm: dts: Add u-boot specific compatibles) separated out u-boot specific compatibles from dts files. The u-boot specifics were moved in *-u-boot.dtsi files for all dra7 platforms except dra7-evm. Without it the SD card is broken on DRA7-evm because the regulator cannot be enabled.

[U-Boot] [PATCH 0/3] rockchip: back-to-bootrom: replace assembly-implementation with C-code

2017-09-15 Thread Philipp Tomsich
Recent discussions confirmed (what the code always assumed): the Rockchip BROM always enters U-Boot with the stack-pointer valid (i.e. the U-Boot startup code is running off the BROM stack). We can thus replace the back-to-bootrom code (i.e. both the save_boot_params and back_to_bootrom

Re: [U-Boot] [U-Boot,2/2] ARM: DRA7: Cleanup old pinctrl macros

2017-09-15 Thread Tom Rini
On Fri, Sep 08, 2017 at 02:08:25PM -0500, Suman Anna wrote: > Commit 6ae4c3efbd62 ("ARM: DRA7: Add pinctrl register definitions") > has added new macros for pinmux configuration in line with the kernel > definitions. Cleanup the old pinctrl macros from the common header > file so that they are

Re: [U-Boot] lib: strto: fix incorrect handling of specified base

2017-09-15 Thread Tom Rini
On Mon, Sep 11, 2017 at 04:53:08PM -0400, Rob Clark wrote: > The strto functions should honor the specified base (if non-zero) rather > than permitting a hex or octal string when the user wanted (for example) > base 10. > > This has been fixed somewhere along the way in the upstream linux kernel

Re: [U-Boot] [U-Boot, v2, 1/1] checkpatch: update from Linux v4.13-rc6

2017-09-15 Thread Tom Rini
On Tue, Sep 12, 2017 at 09:57:45AM +0200, Heinrich Schuchardt wrote: > Checkpatch produces the following warning: > > Unescaped left brace in regex is deprecated here > (and will be fatal in Perl 5.30), passed through in regex; > marked by <-- HERE in m/^(\+.*(?:do|\))){ <-- HERE / > at

[U-Boot] [PATCH 2/4] ARM: uniphier: merge two defconfig files into uniphier_v7_defconfig

2017-09-15 Thread Masahiro Yamada
The main difference between Pro4 and PXs2/LD6b is the Denali NAND IP version. This is now distinguished by DT. Merge the two defconfig files into uniphier_v7_defconfig. Update the README.uniphier too. Signed-off-by: Masahiro Yamada ---

[U-Boot] Please pull u-boot-video/next

2017-09-15 Thread Anatolij Gustschin
Hi Tom, please pull some new video patches. The full build passed: https://travis-ci.org/vdsao/u-boot-video/builds/275799369 The following changes since commit c98ac3487e413c71e5d36322ef3324b21c6f60f9: Prepare v2017.09 (2017-09-11 14:10:40 -0400) are available in the git repository at:

[U-Boot] [PATCH v6 09/10] spl: dm: Make it possible for the SPL to pick its own DTB from a FIT

2017-09-15 Thread Jean-Jacques Hiblot
u-boot can be embedded within a FIT image with multiple DTBs. It then selects at run-time which one is best suited for the platform. Use the same principle here for the SPL: put the DTBs in a FIT image, compress it (LZO, GZIP, or no compression) and append it at the end of the SPL.

[U-Boot] [PATCH v6 10/10] omap: detect board before spl_early_init()

2017-09-15 Thread Jean-Jacques Hiblot
In order to be able to select the right DTB, we need to have identified the board before spl_early_init() is called. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini Reviewed-by: Simon Glass ---

Re: [U-Boot] [U-Boot, v2] blk: Remove various places that do flush cache after read

2017-09-15 Thread Tom Rini
On Tue, Sep 12, 2017 at 07:00:23PM -0700, Bin Meng wrote: > All these places seem to inherit the codes from the MMC driver where > a FIXME was put in the comment. However the correct operation after > read should be cache invalidate, not flush. > > The underlying drivers should be responsible

Re: [U-Boot] [PATCH 00/22] mmc: Add support for HS200 and UHS modes

2017-09-15 Thread Jean-Jacques Hiblot
Hi Jaehoon, What is the status on this one? Do you still have issues with some platforms? Jean-Jacques On 28/07/2017 15:05, Jaehoon Chung wrote: Hi Kever, On 07/26/2017 08:33 PM, Kever Yang wrote: Hi Jaehoon, What's the status of this patch set now? Can we land this patch set

Re: [U-Boot] efi_loader: queued patches

2017-09-15 Thread Rob Clark
On Fri, Sep 15, 2017 at 12:27 AM, Heinrich Schuchardt wrote: > Hello Alex, > > this is the sequence of patches I am currently working with. Maybe Rob > could also send a similar list. That way you know in which sequence you > can do reviewing. fwiw, my current stack of

[U-Boot] [PATCH 4/4] ARM: uniphier: add GPU(Mali) reset deassert and clk enable

2017-09-15 Thread Masahiro Yamada
The driver for Linux is out of control of Socionext, so set up reset / clock in here. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/clk/clk-ld20.c | 12 arch/arm/mach-uniphier/clk/clk-pxs3.c | 12 2 files changed, 24

[U-Boot] [PATCH v6 06/10] gzip: add a function to parse the header

2017-09-15 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- include/common.h | 1 + lib/gunzip.c | 15 --- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/include/common.h

[U-Boot] [PATCH v6 05/10] lzo: add a function to check the validity of the header

2017-09-15 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- include/linux/lzo.h| 3 +++ lib/lzo/lzo1x_decompress.c | 21 + 2 files changed, 20 insertions(+), 4 deletions(-) diff

[U-Boot] [PATCH v6 08/10] fdtdec: sort include files

2017-09-15 Thread Jean-Jacques Hiblot
Sort include files in accordance to U-Boot coding style. Signed-off-by: Jean-Jacques Hiblot --- lib/fdtdec.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 630e040..f26d2eb 100644 --- a/lib/fdtdec.c +++

[U-Boot] [PATCH v6 04/10] fit: If no matching config is found in fit_find_config_node(), use the default one

2017-09-15 Thread Jean-Jacques Hiblot
If board_fit_config_name_match() doesn't match any configuration node, then use the default one (if provided). Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- common/common_fit.c | 20

[U-Boot] [PATCH v6 03/10] fit: fixed bug in locate_dtb_in_fit()

2017-09-15 Thread Jean-Jacques Hiblot
If the dtb is the first data of the FIT, the its offset is 0x0. Change the test to '<' instead of '<=' Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- common/boot_fit.c | 2 +- 1 file changed, 1

Re: [U-Boot] [U-Boot, 1/1] test/py: u_boot_console_base.py: fix typo

2017-09-15 Thread Tom Rini
On Thu, Sep 14, 2017 at 12:27:07PM +0200, Heinrich Schuchardt wrote: > run_command does not have a parameter wait_for_each. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH v4 0/3] Allwinner DE2 HDMI SimpleFB support

2017-09-15 Thread Peter Robinson
On Fri, Sep 15, 2017 at 2:59 AM, Icenowy Zheng wrote: > This patchset is for Allwinner DE2 HDMI SimpleFB support. > > The framebuffer initialized by the Allwinner DE2 driver can be > passed by to the kernel as simplefb, and this can enable the > kernel to display graphics without

[U-Boot] [PATCH v6 00/10] spl: dm: Make it possible for the SPL to pick its own DTB from a FIT

2017-09-15 Thread Jean-Jacques Hiblot
Following the RFC, here is the series implementing the mechanism in a cleaner way. The idea is that the SPL may take advantage of selecting its DTB from a pool of available DTBs. To do that several DTBs are embedded in a compressed FIT image appended at the end of the SPL. The patch is done in

[U-Boot] [PATCH] ARM: davinci: Remove CONFIG_SOC_DA830

2017-09-15 Thread Adam Ford
Nothing CONFIG_SOC_DA830 anymore, so let's remove it and the one remaining source file for it. It appears to have been abandoned a while ago. Signed-off-by: Adam Ford diff --git a/arch/arm/mach-davinci/Makefile b/arch/arm/mach-davinci/Makefile index 7d67191..d4c593d 100644

Re: [U-Boot] [PATCH] Travis-CI: Switch back to using the top of tree dtc

2017-09-15 Thread Simon Glass
On 14 September 2017 at 09:29, Tom Rini wrote: > > In a0f3e3df4adc we switched to using the Ubuntu-provided dtc as travis > was having a problem with the number of warnings that were generated by > the newer dtc. This is no longer a concern as we now have the same > logic as

Re: [U-Boot] [PATCH] arm: dts: Add missing u-boot specific dtsi for dra7-evm

2017-09-15 Thread Lokesh Vutla
On Friday 15 September 2017 04:09 PM, Jean-Jacques Hiblot wrote: > commit b63b995 (arm: dts: Add u-boot specific compatibles) separated out > u-boot specific compatibles from dts files. > The u-boot specifics were moved in *-u-boot.dtsi files for all dra7 > platforms except dra7-evm. > Without

Re: [U-Boot] [U-Boot, 2/2] add pytests for 'gpt guid' command in sandbox

2017-09-15 Thread Tom Rini
On Sat, Sep 09, 2017 at 11:47:13PM -0700, ali...@peloton-tech.com wrote: > From: Alison Chaiken > > Run unit tests for the 'gpt guid' command, making use of the block > device created by test/py/make_test_disk.py. Remove this device at > the end of the tests. > >

[U-Boot] [PATCH] rockchip: puma_rk3399: increase serialno_str size

2017-09-15 Thread Klaus Goger
Increase serialno_str to 17 bytes so it can hold the 16 bytes long serial nummer and the terminating null byte added by snprintf. Signed-off-by: Klaus Goger --- board/theobroma-systems/puma_rk3399/puma-rk3399.c | 2 +- 1 file changed, 1 insertion(+), 1

[U-Boot] [PATCH] cmd/gpt.c: Fix warning over memset args in allocate_disk_part

2017-09-15 Thread Tom Rini
With clang-3.8 we see: cmd/gpt.c:196:31: warning: 'memset' call operates on objects of type 'struct disk_part' while the size is based on a different type 'struct disk_part *' [-Wsizeof-pointer-memaccess] memset(newpart, '\0', sizeof(newpart)); ~~~

[U-Boot] [PATCH 3/3] rockchip: back-to-bootrom: allow passing a cmd to the bootrom

2017-09-15 Thread Philipp Tomsich
The BROM supports forcing it to enter download-mode, if an appropriate result/cmd-word is returned to it. There already is a series to support this in review, so this prepares the (newly C-version) of the back-to-bootrom code to accept a cmd to passed on to the BROM. All the existing call-sites

[U-Boot] [PATCH 1/3] arm: make save_boot_params_ret prototype visible for AArch64

2017-09-15 Thread Philipp Tomsich
The save_boot_params_ret() prototype (for those of us, that have a valid SP on entry and can implement save_boot_params() in C), was previously only defined for !defined(CONFIG_ARM64). This moves the declaration to a common block to ensure the prototype is available to everyone that might need

[U-Boot] [PATCH 1/2] mtd: nand: do not check R/B# for CMD_READID in nand_command(_lp)

2017-09-15 Thread Masahiro Yamada
Read ID (0x90) command does not toggle the R/B# pin. Without this patch, NAND_CMD_READID falls into the default: label, then R/B# is checked by chip->dev_ready(). [masahiro: import Linux commit 3158fa0e739615769cc047d2428f30f4c3b6640e] Signed-off-by: Masahiro Yamada

[U-Boot] [PATCH 2/2] mtd: nand: do not check R/B# for CMD_SET_FEATURES in nand_command(_lp)

2017-09-15 Thread Masahiro Yamada
Set Features (0xEF) command toggles the R/B# pin after 4 sub feature parameters are written. Currently, nand_command(_lp) calls chip->dev_ready immediately after the address cycle because NAND_CMD_SET_FEATURES falls into default: label. No wait is needed at this point. If you see

[U-Boot] [PATCH] rockchip: board: lion-rk3368: avoid ATF overwriting active SPL stage

2017-09-15 Thread Philipp Tomsich
The RK3368-uQ7 ATF has been moved back to 0x10 (1MB from the start of DRAM) to avoid it overwriting the active SPL stage during FIT image loading. This change adapts the .its to match up (again) with our ATF repository for the RK3368-uQ7. Signed-off-by: Philipp Tomsich

[U-Boot] [PATCH] Fix s25fl256s position in spi_flash_ids list

2017-09-15 Thread Vsevolod Gribov
Spansion S25FS256S and S25FL256S flashes have equal JEDEC ID and ext ID. As far as S25FL256S occures in spi_flash_ids before S25FS256S, U-Boot incorrectly detects FS flash as FL. Thus its better to compare with S25FS256S first. --- drivers/mtd/spi/spi_flash_ids.c | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH v3 11/14] dtbo: make dtbos special

2017-09-15 Thread Stephen Warren
On 09/04/2017 02:12 PM, Pantelis Antoniou wrote: Special rule for dtbo generation diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib +quiet_cmd_dtco = DTCO$@ +# Rule for objects only; does not put specific u-boot include at the end +# No generation of assembly file either +#

Re: [U-Boot] [PATCH] spl: fit: Fixed incompatible type warning in spl_load_fit_image()

2017-09-15 Thread Jean-Jacques Hiblot
Hi Tom, York On 15/09/2017 14:53, Tom Rini wrote: On Fri, Sep 15, 2017 at 09:46:29AM +0200, Jean-Jacques Hiblot wrote: Warning introduced in commit 7264f29 (spl: fit: Eanble GZIP support for image decompression) Signed-off-by: Jean-Jacques Hiblot --- common/spl/spl_fit.c

Re: [U-Boot] [PATCH v3 11/14] dtbo: make dtbos special

2017-09-15 Thread Tom Rini
On Fri, Sep 15, 2017 at 09:52:41AM -0600, Stephen Warren wrote: > On 09/15/2017 09:50 AM, Stephen Warren wrote: > >On 09/04/2017 02:12 PM, Pantelis Antoniou wrote: > >>Special rule for dtbo generation > > > >>diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib > > > >>+quiet_cmd_dtco = DTCO

[U-Boot] [Patch v2] spl: Fix compiling warning on gunzip argument

2017-09-15 Thread York Sun
common/spl/spl_fit.c:201:12: warning: passing argument 4 of ‘gunzip’ from incompatible pointer type [-Wincompatible-pointer-types] src, )) Signed-off-by: York Sun Reported-by: Heinrich Schuchardt CC: Jean-Jacques Hiblot --- Change

Re: [U-Boot] [U-Boot, 1/1] add pytests for 'gpt rename' and 'gpt swap'

2017-09-15 Thread Tom Rini
On Fri, Sep 15, 2017 at 09:40:29AM -0600, Stephen Warren wrote: > On 09/15/2017 06:29 AM, Tom Rini wrote: > >On Sat, Sep 09, 2017 at 11:54:51PM -0700, ali...@peloton-tech.com wrote: > >>From: Alison Chaiken > >> > >>Add unit tests for the 'gpt rename' and 'gpt swap'

Re: [U-Boot] [PATCH] spl: fit: Fixed incompatible type warning in spl_load_fit_image()

2017-09-15 Thread York Sun
On 09/15/2017 07:52 AM, Jean-Jacques Hiblot wrote: > Hi Tom, York > > > On 15/09/2017 14:53, Tom Rini wrote: >> On Fri, Sep 15, 2017 at 09:46:29AM +0200, Jean-Jacques Hiblot wrote: >> >>> Warning introduced in commit 7264f29 (spl: fit: Eanble GZIP support for >>> image decompression) >>> >>>

Re: [U-Boot] [PATCH] spl: Fix compiling warning on gunzip argument

2017-09-15 Thread Jean-Jacques Hiblot
Hi York, On 14/09/2017 21:41, York Sun wrote: common/spl/spl_fit.c:201:12: warning: passing argument 4 of ‘gunzip’ from incompatible pointer type [-Wincompatible-pointer-types] src, )) Signed-off-by: York Sun Reported-by: Heinrich Schuchardt ---

Re: [U-Boot] [PATCH] spl: Fix compiling warning on gunzip argument

2017-09-15 Thread York Sun
On 09/15/2017 08:10 AM, Jean-Jacques Hiblot wrote: > Hi York, > > > On 14/09/2017 21:41, York Sun wrote: >> common/spl/spl_fit.c:201:12: warning: passing argument 4 of ‘gunzip’ >> from incompatible pointer type [-Wincompatible-pointer-types] >> src, )) >> >> Signed-off-by: York Sun

Re: [U-Boot] [PATCH v4 0/3] Allwinner DE2 HDMI SimpleFB support

2017-09-15 Thread icenowy
在 2017-09-15 21:35,Maxime Ripard 写道: On Fri, Sep 15, 2017 at 02:25:12PM +0100, Peter Robinson wrote: On Fri, Sep 15, 2017 at 2:59 AM, Icenowy Zheng wrote: > This patchset is for Allwinner DE2 HDMI SimpleFB support. > > The framebuffer initialized by the Allwinner DE2 driver

Re: [U-Boot] [U-Boot, 1/1] add pytests for 'gpt rename' and 'gpt swap'

2017-09-15 Thread Stephen Warren
On 09/15/2017 06:29 AM, Tom Rini wrote: On Sat, Sep 09, 2017 at 11:54:51PM -0700, ali...@peloton-tech.com wrote: From: Alison Chaiken Add unit tests for the 'gpt rename' and 'gpt swap' commands that rely on the block device created by test/py/make_test_disk.py. Add

Re: [U-Boot] [PATCH v3 11/14] dtbo: make dtbos special

2017-09-15 Thread Stephen Warren
On 09/15/2017 09:50 AM, Stephen Warren wrote: On 09/04/2017 02:12 PM, Pantelis Antoniou wrote: Special rule for dtbo generation diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib +quiet_cmd_dtco = DTCO$@ +# Rule for objects only; does not put specific u-boot include at the end

Re: [U-Boot] [PATCH v3 11/14] dtbo: make dtbos special

2017-09-15 Thread Stephen Warren
On 09/15/2017 10:13 AM, Tom Rini wrote: On Fri, Sep 15, 2017 at 09:52:41AM -0600, Stephen Warren wrote: On 09/15/2017 09:50 AM, Stephen Warren wrote: On 09/04/2017 02:12 PM, Pantelis Antoniou wrote: Special rule for dtbo generation diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib

Re: [U-Boot] [PATCH v4 0/3] Allwinner DE2 HDMI SimpleFB support

2017-09-15 Thread Maxime Ripard
On Fri, Sep 15, 2017 at 02:25:12PM +0100, Peter Robinson wrote: > On Fri, Sep 15, 2017 at 2:59 AM, Icenowy Zheng wrote: > > This patchset is for Allwinner DE2 HDMI SimpleFB support. > > > > The framebuffer initialized by the Allwinner DE2 driver can be > > passed by to the kernel

Re: [U-Boot] [U-Boot,v3,03/21] efi: add some missing __packed

2017-09-15 Thread Rob Clark
On Fri, Sep 15, 2017 at 2:53 PM, Heinrich Schuchardt wrote: > On 09/14/2017 12:05 AM, Rob Clark wrote: >> All of the device-path related structures should be packed. UEFI >> defines the device-path as a byte-aligned data structure. >> >> Signed-off-by: Rob Clark

[U-Boot] [PATCH] mmc: uniphier-sd: Add vqmmc regulator support

2017-09-15 Thread Marek Vasut
Add initial support for setting the vqmmc regulator. Since we do not support 1V8 modes, set the regulator to 3V3 and enable it. Signed-off-by: Marek Vasut Cc: Masahiro Yamada Cc: Jaehoon Chung ---

[U-Boot] [PATCH] net: ravb: Add PHY reset GPIO support

2017-09-15 Thread Marek Vasut
Add support for obtaining PHY reset GPIO from DT and toggling it before configuring the PHY to put the PHY into defined state. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu Cc: Joe Hershberger ---

[U-Boot] [PATCH 2/3] ARM: rmobile: Remove AVB clock configuration from board files

2017-09-15 Thread Marek Vasut
The configuration is now fully performed by the AVB and clk drivers, so remove it from the board file. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- board/renesas/salvator-x/salvator-x.c | 3 --- board/renesas/ulcb/ulcb.c

[U-Boot] [PATCH 3/3] ARM: rmobile: Remove SCIF clock configuration from board files

2017-09-15 Thread Marek Vasut
The configuration is now fully performed by the SCIF and clk drivers, so remove it from the board file. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- board/renesas/salvator-x/salvator-x.c | 2 -- board/renesas/ulcb/ulcb.c

Re: [U-Boot] [PATCH v3 05/14] fit: Allow multiple images per property

2017-09-15 Thread sjg
On 4 September 2017 at 14:12, Pantelis Antoniou wrote: > As part of the fdt overlay support which need it, allow > a list of configurations per property. > > Signed-off-by: Pantelis Antoniou > --- > common/image-fit.c | 18

Re: [U-Boot] [PATCH v3 04/14] fdt: Allow stacked overlays phandle references

2017-09-15 Thread sjg
On 4 September 2017 at 14:12, Pantelis Antoniou wrote: > This patch enables an overlay to refer to a previous overlay's > labels by performing a merge of symbol information at application > time. > > In a nutshell it allows an overlay to refer to a symbol that a

Re: [U-Boot] [PATCH v3 10/14] doc: overlays: Tweak documentation regarding overlays

2017-09-15 Thread sjg
On 4 September 2017 at 14:12, Pantelis Antoniou wrote: > From: Franklin S Cooper Jr > > Pull some information regarding overlays from commit messages and > put them directly within the documentation. Also add some information > regarding required

Re: [U-Boot] [PATCH v2 07/16] dtoc: Update the Fdt class to record phandles

2017-09-15 Thread sjg
Add a map from phandles to nodes. This can be used by clients of the the class instead of maintaining this themselves. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/fdt.py | 5 + 1 file changed, 5 insertions(+) Applied to u-boot-fdt thanks!

Re: [U-Boot] [PATCH v1] cmd: usb: add blk devices to ignore list in tree graph

2017-09-15 Thread Suneel Garapati
Hi Bin, On Thu, Sep 14, 2017 at 11:27 PM, Bin Meng wrote: > Hi Suneel, > > On Mon, Sep 11, 2017 at 2:17 PM, Simon Glass wrote: >> On 6 September 2017 at 11:01, Suneel Garapati wrote: >>> add blk child devices to ignore list while

Re: [U-Boot] [PATCH v2 01/16] fdt: Sync libfdt up to upstream

2017-09-15 Thread sjg
Add upstream changes to U-Boot: - new pylibfdt functions - fdt_setprop_placeholder() Signed-off-by: Simon Glass --- Changes in v2: None lib/libfdt/fdt_rw.c | 20 --- lib/libfdt/libfdt.h | 31 +++

Re: [U-Boot] [PATCH v2 13/16] dtoc: Put phandle args in an array

2017-09-15 Thread sjg
We want to support more than one phandle argument. It makes sense to use an array for this rather than discrete struct members. Adjust the code to support this. Rename the member to 'arg' instead of 'id'. Signed-off-by: Simon Glass --- Changes in v2: None

Re: [U-Boot] [PATCH v3 11/14] dtbo: make dtbos special

2017-09-15 Thread Tom Rini
On Fri, Sep 15, 2017 at 10:21:28AM -0600, Stephen Warren wrote: > On 09/15/2017 10:13 AM, Tom Rini wrote: > >On Fri, Sep 15, 2017 at 09:52:41AM -0600, Stephen Warren wrote: > >>On 09/15/2017 09:50 AM, Stephen Warren wrote: > >>>On 09/04/2017 02:12 PM, Pantelis Antoniou wrote: > Special rule

Re: [U-Boot] [U-Boot,v3,01/21] part: move efi_guid_t

2017-09-15 Thread Heinrich Schuchardt
Hello Alex, I guess it makes most sense if you pick up this patch in your efi-next branch as it touches include/efi.h and otherwise we would have to load this onto Tom. Best regards Heinrich On 09/15/2017 08:19 PM, Heinrich Schuchardt wrote: > On 09/14/2017 12:05 AM, Rob Clark wrote: >> Prep

[U-Boot] [PATCH] boston: Remove unused label in lowlevel_display

2017-09-15 Thread Paul Burton
The lowlevel_display() function includes a "1:" label which is never used. Remove it. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck --- board/imgtec/boston/lowlevel_init.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH 3/5] ARM: rmobile: Switch to DM PFC pinmux and GPIO driver

2017-09-15 Thread Marek Vasut
Enable the PFC pinmux and GPIO drivers and disable the SH GPIO combo driver. This allows the drivers to obtain pinmux and GPIO configuration from DT rather than hard-coding it in board files. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu

[U-Boot] [PATCH] ARM: rmobile: Enable GPIO command

2017-09-15 Thread Marek Vasut
This command is convenient for manipulating the GPIOs, so enable it. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/r8a7795_salvator-x_defconfig | 1 + configs/r8a7795_ulcb_defconfig | 1 +

Re: [U-Boot] [PATCH v3 06/14] fit: Do not throw away extra configuration on fit_image_load()

2017-09-15 Thread sjg
Hi, On 4 September 2017 at 14:12, Pantelis Antoniou wrote: > fit_image_load() threw away the extra configuration parts when > loading. We need them around for applying extra overlays for > building the boot fdt. > > Signed-off-by: Pantelis Antoniou

Re: [U-Boot] [PATCH v3 07/14] fit: Introduce methods for applying overlays on fit-load

2017-09-15 Thread sjg
On 4 September 2017 at 14:12, Pantelis Antoniou wrote: > Introduce an overlay based method for constructing a base DT blob > to pass to the kernel. > > It is based on a specific method now to get the FDT from a FIT image > named boot_get_fdt_fit(). > >

Re: [U-Boot] [PATCH v3 11/14] dtbo: make dtbos special

2017-09-15 Thread sjg
On Fri, Sep 15, 2017 at 10:21:28AM -0600, Stephen Warren wrote: > On 09/15/2017 10:13 AM, Tom Rini wrote: > >On Fri, Sep 15, 2017 at 09:52:41AM -0600, Stephen Warren wrote: > >>On 09/15/2017 09:50 AM, Stephen Warren wrote: > >>>On 09/04/2017 02:12 PM, Pantelis Antoniou wrote: > Special rule

Re: [U-Boot] [PATCH v3 12/14] config: sandbox: Add unit tests

2017-09-15 Thread sjg
On 4 September 2017 at 14:12, Pantelis Antoniou wrote: > Add unit tests for sandbox default config. > > Signed-off-by: Pantelis Antoniou > --- > configs/sandbox_defconfig | 2 ++ > 1 file changed, 2 insertions(+) > Acked-by: Simon

Re: [U-Boot] [PATCH v2 02/16] dtoc: Adjust Node to record its parent

2017-09-15 Thread sjg
We need to be able to search back up the tree for #address-cells and #size-cells. Record the parent of each node to make this easier. Signed-off-by: Simon Glass Reviewed-by: Philipp Tomsich Tested-by: Philipp Tomsich

Re: [U-Boot] [PATCH v2 10/16] dtoc: Rename is_phandle() and adjust it to return more detail

2017-09-15 Thread sjg
Update this function to return more detail about a property that contains phandles. This will allow (in a future commit) more accurate handling of these properties. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/dtb_platdata.py | 79

Re: [U-Boot] [PATCH v3 03/14] fdt: Switch to using the verbose overlay application method

2017-09-15 Thread Simon Glass
On 8 September 2017 at 22:53, Simon Glass wrote: > On 4 September 2017 at 14:12, Pantelis Antoniou > wrote: >> The verbose overlay application method prints out more helpful >> messages, so switch to it. >> >> Signed-off-by: Pantelis Antoniou

Re: [U-Boot] [PATCH v2 11/16] dtoc: Rename the phandle struct

2017-09-15 Thread sjg
Rather than naming the phandle struct according to the number of cells it uses (e.g. struct phandle_2_cell) name it according to the number of arguments it has (e.g. struct phandle_1_arg). This is a more intuitive naming. Signed-off-by: Simon Glass --- Changes in v2: None

Re: [U-Boot] [PATCH v3 01/14] Introduce fdt_setprop_placeholder() method

2017-09-15 Thread sjg
On 4 September 2017 at 14:12, Pantelis Antoniou wrote: > In some cases you need to add a property but the contents of it > are not known at creation time, merely the extend of it. > > This method allows you to create a property of a given size (filled > with

[U-Boot] Please pull u-boot-fdt

2017-09-15 Thread Simon Glass
Hi Tom, Here are the overlay and dtoc series. The following changes since commit 5541543f686b43210fb92181003ff7175d4ab036: configs: at91: Remove CONFIG_SYS_EXTRA_OPTIONS assignment (2017-09-14 16:02:48 -0400) are available in the git repository at: git://git.denx.de/u-boot-fdt.git for

Re: [U-Boot] [PATCH v2 16/16] dtoc: Add a header to the generated files

2017-09-15 Thread sjg
Add a header that indicates that the files generated by dtoc should not be modified. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/dtb_platdata.py | 12 1 file changed, 12 insertions(+) Applied to u-boot-fdt thanks!

Re: [U-Boot] [PATCH v2 05/16] dtoc: Add support for 32 or 64-bit addresses

2017-09-15 Thread sjg
On 29 August 2017 at 14:23, Dr. Philipp Tomsich wrote: > >> On 29 Aug 2017, at 22:15, Simon Glass wrote: >> >> When using 32-bit addresses dtoc works correctly. For 64-bit addresses it >> does not since it ignores the #address-cells and

Re: [U-Boot] [U-Boot,v3,03/21] efi: add some missing __packed

2017-09-15 Thread Heinrich Schuchardt
On 09/14/2017 12:05 AM, Rob Clark wrote: > All of the device-path related structures should be packed. UEFI > defines the device-path as a byte-aligned data structure. > > Signed-off-by: Rob Clark > --- > include/efi_api.h | 8 > 1 file changed, 4 insertions(+), 4

[U-Boot] [PATCH] ARM: dts: rmobile: Add PHY reset GPIO

2017-09-15 Thread Marek Vasut
The PHY reset GPIOs were missing from the DT, add them. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/dts/salvator-common.dtsi | 1 + arch/arm/dts/ulcb.dtsi| 1 + 2 files changed, 2 insertions(+) diff --git

[U-Boot] [PATCH 4/5] ARM: rmobile: Zap ad-hoc PFC and GPIO setup in board files

2017-09-15 Thread Marek Vasut
At long last, nuke all this ad-hoc setup in board files in favor of letting PFC pinmux and GPIO drivers do the same job, but based on DT description of the hardware rather than this board-file ugliness. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu

Re: [U-Boot] [PATCH v3 09/14] doc: Document how to apply fdt overlays

2017-09-15 Thread sjg
On 4 September 2017 at 14:12, Pantelis Antoniou wrote: > We have the capability to apply overlays on the command line but > we didn't have a document explaining how. > > Signed-off-by: Pantelis Antoniou > --- >

Re: [U-Boot] [PATCH v3 14/14] test: overlay: Add unit test for stacked overlay

2017-09-15 Thread sjg
On 4 September 2017 at 14:12, Pantelis Antoniou wrote: > Verify that stacked overlays work. > > Signed-off-by: Pantelis Antoniou > --- > test/overlay/Makefile | 1 + > test/overlay/cmd_ut_overlay.c

Re: [U-Boot] [PATCH v3 08/14] fit: fdt overlays doc

2017-09-15 Thread sjg
On 4 September 2017 at 14:12, Pantelis Antoniou wrote: > Signed-off-by: Pantelis Antoniou > --- > doc/uImage.FIT/command_syntax_extensions.txt | 12 +- > doc/uImage.FIT/overlay-fdt-boot.txt | 221 >

Re: [U-Boot] [PATCH v3 13/14] ut: fix fdt_getprop_u32() change

2017-09-15 Thread sjg
On 4 September 2017 at 14:12, Pantelis Antoniou wrote: > fdt_getprop_u32 is not exported and it's different than what the > unit test uses. Rename u32 prop access methods to something that's > unit test specific. > > Signed-off-by: Pantelis Antoniou

Re: [U-Boot] [PATCH] libfdt: Initialize the stack variable

2017-09-15 Thread sjg
On 9/4/2017 8:41 PM, Chee, Tien Fong wrote: > On Rab, 2017-08-30 at 06:31 -0700, J. William Campbell wrote: >> On 8/29/2017 10:15 PM, tien.fong.c...@intel.com wrote: >>> From: Tien Fong Chee >>> >>> Report Coverity log: >>> The code uses a variable that has not >>> been

Re: [U-Boot] [PATCH v2 14/16] dtoc: Support properties containing multiple phandle values

2017-09-15 Thread sjg
At present dtoc has a very simplistic view of phandles. It assumes that a property has only a single phandle with a single argument (i.e. two cells per property). This is not true in many cases. Enhance the implementation to scan all phandles in a property and to use the correct number of

Re: [U-Boot] [PATCH v2 09/16] dtoc: Make is_phandle() a member function

2017-09-15 Thread sjg
This function will need to have access to class members once we enhance it to support multiple phandle values. In preparation for that, move it into the class. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/dtb_platdata.py | 36

Re: [U-Boot] efi_loader: queued patches

2017-09-15 Thread Rob Clark
On Fri, Sep 15, 2017 at 12:27 AM, Heinrich Schuchardt wrote: > Hello Alex, > > this is the sequence of patches I am currently working with. Maybe Rob > could also send a similar list. That way you know in which sequence you > can do reviewing. > > # EFI event services > # This

  1   2   >