[U-Boot] [PATCH u-boot] ARM64: meson: Sync DT with Linux 4.17

2018-06-05 Thread Neil Armstrong
Synchronize the Linux Device Tree for Amlogic Meson GX boards from Linux 4.17.0 This will enable USB on Amlogic Meson GXL Boards like Khadas VIM, P212 or LibreTech-CC. Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-gx.dtsi| 40 +--

[U-Boot] [PATCH 1/4] lib: fdtdec: Fill initial ram top with DDR start value from dt

2018-06-05 Thread Siva Durga Prasad Paladugu
Fill initial ram top with DDR base addr value from DT as not filling it here always assumes it as zero while calculating relocation offset and hence lead to failures in somecases. This will assumed as zero if CONFIG_SYS_SDRAM_BASE is not defined. Signed-off-by: Siva Durga Prasad Paladugu

[U-Boot] [PATCH 3/4] arm: zynq: Add Nand flash mini u-boot configuration for zynq

2018-06-05 Thread Siva Durga Prasad Paladugu
Add configuration files/dtses for mini u-boot configuration which runs on smaller footprint of memory. This configuration has only required nand flash support. Signed-off-by: Siva Durga Prasad Paladugu --- arch/arm/dts/Makefile | 1 + arch/arm/dts/zynq-cse-nand.dts | 90

[U-Boot] [PATCH 2/4] arm: zynq: Dont define SDRAM_BASE and SDRAM_SIZE in .h

2018-06-05 Thread Siva Durga Prasad Paladugu
Remove the SDRAM_BASE nad SDRAM_SIZE as it can now get these details from DT using 'commit 327f66622391 ("lib: fdtdec: Fill initial ram top with DDR start value from dt")' Signed-off-by: Siva Durga Prasad Paladugu --- include/configs/zynq_cse.h | 3 --- 1 file changed, 3 deletions(-) diff

[U-Boot] [PATCH 4/4] arm: zynq: Add parallel NOR flash mini u-boot configuration for zynq

2018-06-05 Thread Siva Durga Prasad Paladugu
Add configuration files/dtses for mini u-boot configuration which runs on smaller footprint OCM memory. This configuration only has required parallel nor flash support. Signed-off-by: Siva Durga Prasad Paladugu --- arch/arm/dts/Makefile | 1 + arch/arm/dts/zynq-cse-nor.dts | 88

Re: [U-Boot] [PATCH v10 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

2018-06-05 Thread Vasily Khoruzhick
On Mon, Jun 4, 2018 at 10:58 PM, Vasily Khoruzhick wrote: >> And A64-Relic has only ehci0 and ohci0 no ehci1 and ohci1, better to >> debug it from your side, what went wrong. > > Sure, I can do bisect. dd3228170ad7388bdd57ff18b9e463c36508ebe9 is the first bad commit commit

Re: [U-Boot] [PATCH v10 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

2018-06-05 Thread Vasily Khoruzhick
On Mon, Jun 4, 2018 at 11:31 PM, Vasily Khoruzhick wrote: > On Mon, Jun 4, 2018 at 10:58 PM, Vasily Khoruzhick wrote: >>> And A64-Relic has only ehci0 and ohci0 no ehci1 and ohci1, better to >>> debug it from your side, what went wrong. >> >> Sure, I can do bisect. > >

Re: [U-Boot] [PATCH v10 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

2018-06-05 Thread Jagan Teki
On Tue, Jun 5, 2018 at 12:32 PM, Vasily Khoruzhick wrote: > On Mon, Jun 4, 2018 at 11:31 PM, Vasily Khoruzhick wrote: >> On Mon, Jun 4, 2018 at 10:58 PM, Vasily Khoruzhick >> wrote: And A64-Relic has only ehci0 and ohci0 no ehci1 and ohci1, better to debug it from your side, what

Re: [U-Boot] [PATCH 2/2] ARM: kirkwood: SBx81LIFKW: Enable network hardware

2018-06-05 Thread Stefan Roese
On 03.06.2018 06:21, Chris Packham wrote: The SBx81LIFKW boards connect to the internal chassis management network via a Marvell 88e6097 L2 switch. The chassis connections are direct serdes on ports 8 and 9 with a RGMII interface on port 10 connected to the CPU MAC. For debugging purposes ports

Re: [U-Boot] [PATCH v2 2/2] ARM: add SBx81LIFKW board

2018-06-05 Thread Stefan Roese
On 30.05.2018 10:14, Chris Packham wrote: This is a series of line cards for Allied Telesis's SBx8100 chassis switch. The CPU block is common to the SBx81GS24a, SBx81XS6, SBx81XS16 and SBx81GT40 cards collectively referred to as SBx81LIFKW in u-boot. Reviewed-by: Stefan Roese Signed-off-by:

Re: [U-Boot] [PATCH] Enable thumb build to reduce build size of u-boot.kwb.

2018-06-05 Thread Stefan Roese
On 03.06.2018 21:38, Vagrant Cascadian wrote: Without this, u-boot.kwb overlaps where the u-boot environment is stored, and updating the environment can break u-boot and vice versa. https://bugs.debian.org/897671 https://lists.denx.de/pipermail/u-boot/2018-May/327497.html Signed-off-by:

[U-Boot] [PATCH] arm64: zynqmp: Split emmc configuration into emmc0 and emmc1

2018-06-05 Thread Siva Durga Prasad Paladugu
This patch splits the current mini emmc configuration into emmc0 and emmc1 configurations because emmc is probed at boot time and on systems which have only one interface mini configuration is failing on unused interface. This patch also adds required clock node in dts and enables

[U-Boot] [PATCH 2/2] board: freescale: ls1012afrwy: Add LS1012A-FRWY board support.

2018-06-05 Thread Pramod Kumar
Add board support for LS1012A-FRWY board, sharing many common functionalities with LS1012A-FRDM. Signed-off-by: Pramod Kumar --- board/freescale/ls1012afrwy/Kconfig| 31 ++ board/freescale/ls1012afrwy/MAINTAINERS| 10 +++ .../{ls1012afrdm =>

Re: [U-Boot] usb start causes u-boot restart with TUSB8041 hub

2018-06-05 Thread Chris Welch
> -Original Message- > From: Bin Meng > Sent: Monday, June 04, 2018 9:28 PM > To: Chris Welch > Subject: Re: [U-Boot] usb start causes u-boot restart with TUSB8041 hub > > Hi Cris, > > On Mon, Jun 4, 2018 at 11:14 PM, Chris Welch > wrote: > >> -Original Message- > >>

Re: [U-Boot] [PATCH] arm: mvebu: enable sata support for clearfog

2018-06-05 Thread Stefan Roese
On 28.05.2018 12:35, Baruch Siach wrote: From: Jon Nettleton The a38x sata interfaces run in ahci mode and can be accessed via the scsi command. Signed-off-by: Jon Nettleton [baruch: rebase on current upstream] Signed-off-by: Baruch Siach Applied to u-boot-marvell/master. Thanks, Stefan

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

2018-06-05 Thread Stefan Roese
On 28.05.2018 18:10, Baruch Siach wrote: From: Jon Nettleton This switches the clearfog boards to use DM based gpio and i2c drivers. The io expanders are configured via their device-tree entries. Signed-off-by: Jon Nettleton [baruch: add DT i2c aliases] Signed-off-by: Baruch Siach

[U-Boot] Please pull u-boot-marvell/master

2018-06-05 Thread Stefan Roese
Hi Tom, please pull the last batch of Marvell patches for this release (bug fixes might still be coming). I've run checkpatch as requested and only noticed warnings that I feel should be ignored (>80 chars etc). Thanks, Stefan The following changes since commit

[U-Boot] [PATCH] fs: btrfs: Fix not all CHUNK_ITEMs being read from CHUNK_TREE

2018-06-05 Thread Yevgeny Popovych
This causes errors when translating logical addresses to physical: btrfs_map_logical_to_physical: Cannot map logical address to physical btrfs_file_read: Error reading extent The behavior of btrfs_map_logical_to_physical() is to stop traversing CHUNK_TREE when it encounters first

[U-Boot] [PATCH 1/2] board: freescale: ls1012afrx:Common files to support

2018-06-05 Thread Pramod Kumar
LS1012A-FRDM and LS1012A-FRWY board. 1-Move all common files applicable for both boards LS1012A-FRDM and LS1012A-FRWY into board directory ls1012afrx. 2-Restructure LS1012A-FRDM code. Only board specific files are in LS1012A-FRDM board directory. Signed-off-by: Pramod Kumar ---

[U-Boot] u-boot hangs on soft reboot

2018-06-05 Thread Muzammal Ahmed
Hi there, I'm having this subtle issue where if I put my ARM device (U-boot + Linux) under soft reboot cycle (stress test), it fails after 100+ cycles. The serial output I capture in failed scenario is: ... g_txrx_mode=1 g_profileid=1 id=0x1F11 board_type=0x0004 HAS_POE_SUPPORT=1 Not POE

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

2018-06-05 Thread Chris Packham
Hi Dennis, On Tue, Jun 5, 2018 at 9:53 AM wrote: > > From: Dennis Gilmore > > The helios4 is built on the SolidRun Armada 38x SOM. > The port os based on the ClearFog board, using information from > https://github.com/helios-4/u-boot-marvell as well as dtb input > from

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

2018-06-05 Thread Stefan Roese
On 29.05.2018 23:13, Michael Walle wrote: Synchronize it with the LS-XHL board. Signed-off-by: Michael Walle Applied to u-boot-marvell/master. Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 1/2] ARM: kirkwood: remove automatic I2C config if DM_I2C is enabled

2018-06-05 Thread Stefan Roese
On 30.05.2018 10:14, Chris Packham wrote: The mach/config.h file would helpfully define CONFIG_SYS_I2C and CONFIG_SYS_I2C_MVTWSI if CONFIG_CMD_I2C was defined by the board. This conflicts with the way DM_I2C works. As a transitional measure don't automatically define these if CONFIG_DM_I2C is

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

2018-06-05 Thread Stefan Roese
On 29.05.2018 23:13, Michael Walle wrote: 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

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

2018-06-05 Thread Stefan Roese
On 27.05.2018 17:34, Baruch Siach wrote: From: Rabeeh Khoury Some QCA988x based modules presence is not detected by the SERDES lanes, so force this detection which will trigger the LTSSM state machine to negotiate link. An example of such a card is WLE900VX. Signed-off-by: Rabeeh Khoury

Re: [U-Boot] [PATCH] fs: btrfs: Fix not all CHUNK_ITEMs being read from CHUNK_TREE

2018-06-05 Thread Marek BehĂșn
Hmm, for some reason there are some items with objectid=0 and type=0 betwenn CHUNK_ITEM_KEYs, and thus the reading breaks before reading all items. I am not sure if this is an error in our driver or there really are such items, but yout patch solves this. Reviewed-by: Marek Behun On Tue, 5 Jun

Re: [U-Boot] [PATCH 1/2] ARM: kirkwood: Enforce size limit for sheevaplug

2018-06-05 Thread Stefan Roese
On 04.06.2018 09:51, Chris Packham wrote: The u-boot binary sits in flash immediately before the environment. Don't allow the binary size to grow into the environment space. Signed-off-by: Chris Packham Applied to u-boot-marvell/master. Thanks, Stefan

Re: [U-Boot] [PATCH 2/2] ARM: kirkwood: Enforce size limit for guruplug

2018-06-05 Thread Stefan Roese
On 04.06.2018 09:51, Chris Packham wrote: The u-boot binary sits in flash immediately before the environment. Don't allow the binary size to grow into the environment space. Signed-off-by: Chris Packham Applied to u-boot-marvell/master. Thanks, Stefan

[U-Boot] [PATCH] cmd: fpga: Remove fit image support passed without fpga device

2018-06-05 Thread Michal Simek
The patch applied in 2010 "cmd_fpga: cleanup help and check parameters" (sha1: a790b5b2326be9d7c9ad9e3d9b51a8bfabc62d07" was adding this checking + if (dev == FPGA_INVALID_DEVICE) { + puts("FPGA device not specified\n"); + op = FPGA_NONE; + } which simply

Re: [U-Boot] [PATCH] common: Use command_ret_t enum values instead of values

2018-06-05 Thread Michal Simek
On 4.6.2018 21:22, Heinrich Schuchardt wrote: > On 06/04/2018 01:37 PM, Michal Simek wrote: >> Use enum command_ret_t types in cmd_process_error(). >> Also handle USAGE failure separately. >> >> Signed-off-by: Michal Simek >> --- >> >> common/command.c | 7 +-- >> 1 file changed, 5

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

2018-06-05 Thread Tom Rini
On Tue, Jun 05, 2018 at 11:33:03AM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the last batch of Marvell patches for this release > (bug fixes might still be coming). > > I've run checkpatch as requested and only noticed warnings that > I feel should be ignored (>80 chars etc). > >

[U-Boot] [PATCH v3] lib: Add hexdump

2018-06-05 Thread Alexey Brodkin
Often during debugging session it's very interesting to see what data we were dealing with. For example what we write or read to/from memory or peripherals. This change introduces functions that allow to dump binary data with one simple function invocation like:

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

2018-06-05 Thread Tom Rini
On Tue, May 29, 2018 at 03:46:39PM +0300, Ramon Fried wrote: > From: Ramon Fried > > Add WARN_ONCE definition to allow single time notification > of warnings to the user. > > Change-Id: If14d878dba04f3c976c0c2ae079a0f7642047006 You forgot the Signed-off-by line (which I can't fix, sorry) and

Re: [U-Boot] [PATCH v2] board_f: Only reserve memory for U-Boot if we're going to relocate

2018-06-05 Thread Alexey Brodkin
Hi Tom, On Sat, 2018-05-26 at 18:53 -0600, Simon Glass wrote: > On 25 May 2018 at 07:08, Alexey Brodkin wrote: > > In case of no relocation we'll just waste some space at the very end > > of usable memory area. If target device has very limited amount of memory > > (for example 256 kB) this loss

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

2018-06-05 Thread Ramon Fried
On Tue, Jun 5, 2018 at 5:45 PM, Tom Rini wrote: > On Tue, May 29, 2018 at 03:46:39PM +0300, Ramon Fried wrote: > >> From: Ramon Fried >> >> Add WARN_ONCE definition to allow single time notification >> of warnings to the user. >> >> Change-Id: If14d878dba04f3c976c0c2ae079a0f7642047006 > > You

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

2018-06-05 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks, Jagan. The following changes since commit 809e0e398a91db7bf8b4d6259d9bfc6fbd6bce83: Merge branch 'master' of git://git.denx.de/u-boot-sunxi (2018-06-04 08:55:00 -0400) are available in the Git repository at: git://git.denx.de/u-boot-spi.git master

[U-Boot] [PATCH] ARM: rmobile: Zap CONFIG_SYS_CLK_FREQ where applicable

2018-06-05 Thread Marek Vasut
The CONFIG_SYS_CLK_FREQ is not used on some of the Gen3 boards, remove it. Moreover, on Ebisu this actually didn't match the comment in the config file at all, but since it was not used, there was no real problem. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- include/configs/draak.h

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

2018-06-05 Thread Ramon Fried
Add WARN_ONCE definition to allow single time notification of warnings to the user. Taken from Linux kernel (4.17) with slight changes (Removed __section(.data.once)) Signed-off-by: Ramon Fried --- Facepalm, missed that it was actually a v3 and not a v2. v2: accidently commited the wrong file.

Re: [U-Boot] [PATCH] x86: Add 64-bit setjmp/longjmp implementation

2018-06-05 Thread Ivan Gorinov
On Sun, Jun 03, 2018 at 02:06:47PM +0200, Alexander Graf wrote: > On 02.06.18 20:44, Heinrich Schuchardt wrote: > > On 05/31/2018 12:50 AM, Ivan Gorinov wrote: > >> Add setjmp/longjmp functions for x86_64, > >> based on existing 32-bit implementation. > > > > Thank you for your patch. This

[U-Boot] [PATCH] ax25: Remove CONFIG_BOOTP_SERVERIP

2018-06-05 Thread Alexander Graf
The config variable CONFIG_BOOTP_SERVERIP indicates on DHCP-TFTP fetches that the serverip variable is supposed to be used rather than the IP of the DHCP server that replied. Given that in the default environment no serverip is provided, that option does not make a lot of sense and instead breaks

[U-Boot] [PATCH] riscv: Add support for HI20 PE relocations

2018-06-05 Thread Alexander Graf
The PE standard allows for HI20/LOW12 relocations. Within the efi_loader target we always know that our relocation target is 4k aligned, so we don't need to worry about the LOW12 part. This patch adds support for the respective relocations. With this and a few grub patches I have cooking in

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

2018-06-05 Thread Ramon Fried
Add WARN_ONCE definition to allow single time notification of warnings to the user. Taken from Linux kernel (4.17) with slight changes (Removed __section(.data.once)) Signed-off-by: Ramon Fried --- v2: removed change-id, added taken from description to commit message. include/linux/bug.h | 18

Re: [U-Boot] u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC

2018-06-05 Thread Vagrant Cascadian
On 2018-05-21, Vagrant Cascadian wrote: > On 2018-05-12, Vagrant Cascadian wrote: >> On 2018-05-12, Vagrant Cascadian wrote: >>> Booting firefly-rk3288 seems to hang looking for environment: >>> >>> U-Boot 2018.05+dfsg-1 (May 10 2018 - 20:24:57 +) >>> >>> Model: Firefly-RK3288 >>>

[U-Boot] [PATCH 1/4] arm: odroid: Use standard environment variable names kernel_addr_r, ramdisk_addr_r and fdt_addr_r.

2018-06-05 Thread Vagrant Cascadian
Replace non-standard variable names kerneladdr, initrdaddr and fdtaddr with kernel_addr_r, ramdisk_addr_r and fdt_addr_r, as documented in u-boot README. Signed-off-by: Vagrant Cascadian --- include/configs/odroid.h | 24 +++- 1 file changed, 11 insertions(+), 13

[U-Boot] [PATCH 2/4] arm: odroid: Increase default env size in preparation for distro_bootcmd.

2018-06-05 Thread Vagrant Cascadian
Adding distro_bootcmd support bumps the default environment size over 4500. Increase to 16384 to allow for room to grow in the future. Signed-off-by: Vagrant Cascadian --- include/configs/odroid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/odroid.h

[U-Boot] [PATCH 0/4] arm: odroid: Convert to distro_bootcmd.

2018-06-05 Thread Vagrant Cascadian
Switch odroid platform to use distro_bootcmd, adjusting to use standardized environment variable names, and use the default bootdelay. The additional environment variables from distro_bootcmd requires increasing the default environment size, which would break backwards compatibility with saved

Re: [U-Boot] usb start causes u-boot restart with TUSB8041 hub

2018-06-05 Thread Chris Welch
> -Original Message- > From: Chris Welch > Sent: Tuesday, June 05, 2018 9:17 AM > To: 'bmeng...@gmail.com' > Cc: U-Boot-Denx > Subject: RE: [U-Boot] usb start causes u-boot restart with TUSB8041 hub > > > -Original Message- > > From: Bin Meng > > Sent: Monday, June 04, 2018

[U-Boot] [PATCH 4/4] arm: odroid: Inherit default value for bootdelay from distro_bootcmd.

2018-06-05 Thread Vagrant Cascadian
The default value with distro_bootcmd is 2 seconds, which is reasonably fast, and provides a consistent experience across platforms supporting distro_bootcmd. The current bootdelay value of 0 seconds is a bit challenging to interrupt when desired. Signed-off-by: Vagrant Cascadian ---

[U-Boot] [PATCH 3/4] arm: odroid: Enable distro_bootcmd support.

2018-06-05 Thread Vagrant Cascadian
Enable distro_bootcmd for a standardized boot process across multiple platforms. Signed-off-by: Vagrant Cascadian --- include/configs/odroid.h | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/configs/odroid.h b/include/configs/odroid.h index

[U-Boot] [PATCH 17/29] dtoc: Fix Fdt.GetNode() to handle a missing node

2018-06-05 Thread Simon Glass
At present the algortihm is not correct since it will return the root node if the requested node is not found and there are no slashes in the requested node name. Fix this and add a test. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 5 - tools/dtoc/test_fdt.py | 4 2 files

[U-Boot] [RFC][PATCH] spl: vboot: Verify content before using load_addr

2018-06-05 Thread Teddy Reed
When using verified-boot in the SPL, the FIT content must be verified before it can be used. Currently the load_addr FIT property is read and used as input to memcpy before the property is verified. Signed-off-by: Teddy Reed --- common/spl/spl_fit.c | 19 ++- 1 file changed, 10

Re: [U-Boot] [PATCH v10 00/35] phy: sunxi: Add Allwinner sun4i USB PHY

2018-06-05 Thread Vasily Khoruzhick
On Tue, Jun 5, 2018 at 12:04 AM, Jagan Teki wrote: > > Let me look at it and will come back. I fixed it. See "usb: sunxi: sun50i: enable OHCI0 clock when OHCI1 is in use" and "sunxi: clock: Fix EHCI and OHCI clocks on A64" on ML. ___ U-Boot mailing

[U-Boot] OSFC 2018

2018-06-05 Thread Philipp Deppenwiese
Dear Ladies and Gentlemen, We invite you to the Open Source Firmware Conference 2018 ( www.osfc.io ) which takes place at the 12th - 15th September in Erlangen, Germany. The OSFC 2018 is the first conference focusing exclusively on Open Source firmware. Therefore, our mission is to provide an

Re: [U-Boot] [PATCH] if_changed: fix error handling

2018-06-05 Thread Chris Packham
Hi, On Tue, Jun 5, 2018 at 2:08 AM Luca Ceresoli wrote: > > The commands in if_changed and if_changed_dep are concatenated with a > ';', thus any error in any command except the last one will be > silently ignored. This is particularly relevant for the actual > payload, cmd_$(1), whose errors

[U-Boot] [PATCH 2/2] usb: sunxi: sun50i: enable OHCI0 clock when OHCI1 is in use

2018-06-05 Thread Vasily Khoruzhick
On A64 OHCI1 clock source is OHCI0 clock, so we need to enable OHCI0 clock when OHCI1 is in use. Fixes commit dd3228170ad7 ("usb: sunxi: Switch to use generic-phy") Signed-off-by: Vasily Khoruzhick --- drivers/usb/host/ohci-sunxi.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-)

[U-Boot] [PATCH 1/2] sunxi: clock: Fix EHCI and OHCI clocks on A64

2018-06-05 Thread Vasily Khoruzhick
EHCI0 is bit 24, EHCI1 - 25, OHCI0 - 28, OHCI1 - 29 Fixed commit fef73766d9ad ("sunxi: clock: Fix OHCI clock gating for H3/H5") Signed-off-by: Vasily Khoruzhick --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 13/29] dtoc: Update fdt tests to increase code coverage

2018-06-05 Thread Simon Glass
At present only some of the fdt functionality is tested. Add more tests to cover most things. Also turn on test coverage, which currently sits at 99%. Signed-off-by: Simon Glass --- tools/dtoc/test_fdt.py | 62 ++ 1 file changed, 62 insertions(+) diff

[U-Boot] [PATCH 21/29] dtoc: Add a test for code coverage

2018-06-05 Thread Simon Glass
Add a -T option to run a code-coverage test on dtoc. At present this is about 96%. Future work will increase it to 100%. Signed-off-by: Simon Glass --- tools/dtoc/dtoc.py | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tools/dtoc/dtoc.py b/tools/dtoc/dtoc.py index

[U-Boot] [PATCH 29/29] binman: Support updating the device tree with calc'd info

2018-06-05 Thread Simon Glass
It is useful to write the position and size of each entry back to the device tree so that U-Boot can access this at runtime. Add a feature to support this, along with associated tests. Signed-off-by: Simon Glass --- tools/binman/README | 6 +-- tools/binman/control.py

[U-Boot] [PATCH 12/29] dtoc: Update tests to write failures to /tmp

2018-06-05 Thread Simon Glass
When a test fails due to an output mismatch (e.g. due to a new property being adding to a test file) it is currently hard to update the test to the new output. In particular the tabs in the file are written as \t in the Python tests. To make this easier, write both the expected and actual results

[U-Boot] [PATCH 23/29] binman: Move capture_sys_output() to test_util

2018-06-05 Thread Simon Glass
This function is useful in various tests. Move it into the common test utility module. Signed-off-by: Simon Glass --- tools/binman/elf_test.py | 22 ++ tools/binman/image_test.py | 2 +- tools/patman/test_util.py | 22 ++ 3 files changed, 25

[U-Boot] [PATCH 15/29] dtoc: Drop use of a local dtb buffer

2018-06-05 Thread Simon Glass
At present the Fdt class has its own copy of the device tree. This is confusing an unnecessary now that pylibfdt has its own. Drop it and provide access functions to the buffer. This allows us to move the rest of the implementation to use pylibfdt methods instead of directly calling libfdt stubs.

[U-Boot] [PATCH 24/29] dtoc: Avoid unwanted output during tests

2018-06-05 Thread Simon Glass
At present some warnings are printed to indicate failures which are a known part of running the tests. Suppress these. Signed-off-by: Simon Glass --- tools/dtoc/fdt_util.py | 4 ++-- tools/dtoc/test_dtoc.py | 13 + 2 files changed, 11 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH 00/29] binman: Add more tests and support for updating the device tree

2018-06-05 Thread Simon Glass
At present we have 100% code coverage for binman. This series adds the same for dtoc (which converts device-tree data to C) and the Fdt class (which provides convenient Python access to the device tree). Binman already support writing a map file showing the location of each entry in the images in

[U-Boot] [PATCH 03/29] binman: Tidy up variables in _RunMicrocodeTest()

2018-06-05 Thread Simon Glass
At present we call the three entries first, second and third. Rename them to reflect their contents instead, for clarity. Signed-off-by: Simon Glass --- tools/binman/ftest.py | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/tools/binman/ftest.py

[U-Boot] [PATCH 01/29] binman: Switch to 'python-coverage'

2018-06-05 Thread Simon Glass
From: Tom Rini The most portable way to get access to coverage is to invoke it as 'python-coverage'. Cc: Simon Glass Signed-off-by: Tom Rini Signed-off-by: Simon Glass --- tools/binman/README| 3 +-- tools/binman/binman.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-)

[U-Boot] [PATCH 28/29] binman: Add a SetCalculatedProperties() method

2018-06-05 Thread Simon Glass
Once binman has packed the image, the position and size of each entry is known. It is then possible for binman to update the device tree with these positions. Since placeholder values have been added, this does not affect the size of the device tree and therefore the packing does not need to be

[U-Boot] [PATCH 22/29] dtoc: Increase code coverage to 100%

2018-06-05 Thread Simon Glass
Add more tests to increase dtoc code coverage to 100%. Correct a whitespace error in some test .dts files at the same time. Signed-off-by: Simon Glass --- tools/dtoc/dtoc_test_add_prop.dts| 24 tools/dtoc/dtoc_test_addr32_64.dts | 2 +- tools/dtoc/dtoc_test_addr64_32.dts

[U-Boot] [PATCH 11/29] dtoc: Add some tests for the fdt module

2018-06-05 Thread Simon Glass
At present this module is tested via the dtoc tests. This is a bit painful since the tests are at a higher level and so failures are more difficult to diagnose. Add some tests that exercise the fdt module directly. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 12 +-

[U-Boot] [PATCH 05/29] binman: Tidy up execution of tests

2018-06-05 Thread Simon Glass
Move all the test execution into the same mechanism so that we can request a particular test (from any suite) by passing it as an argument to 'binman -t'. Signed-off-by: Simon Glass --- tools/binman/binman.py | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[U-Boot] [PATCH 25/29] dtoc: Add functions to add integer properties

2018-06-05 Thread Simon Glass
Add a few simple functions to add a placeholder integer property, and set its value. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 27 +++ tools/dtoc/test_fdt.py | 20 2 files changed, 47 insertions(+) diff --git a/tools/dtoc/fdt.py

[U-Boot] [PATCH 16/29] dtoc: Keep track of property offsets

2018-06-05 Thread Simon Glass
At present the Fdt class does not keep track of property offsets if they change due to removal of properties. Update the code to handle this, and add a test. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 19 +++ tools/dtoc/test_fdt.py | 39

[U-Boot] [PATCH 19/29] dtoc: Fix properties with a single zero-arg phandle

2018-06-05 Thread Simon Glass
At present a property with a single phandle looks like an integer value to dtoc. Correct this by adjusting it in the phandle-processing code. Add a test for this, so that code coverage increases to 100%. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 12

[U-Boot] [PATCH 08/29] libfdt: Fix the Python pack() function

2018-06-05 Thread Simon Glass
This currently fails to reduce the device-tree bytearray size. Fix this. This stands in for a pending upstream change. Signed-off-by: Simon Glass --- scripts/dtc/pylibfdt/libfdt.i_shipped | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 07/29] libfdt: Bring in proposed pylibfdt changes

2018-06-05 Thread Simon Glass
This provides various patches sent to the devicetree-compiler mailing list to enhance the Python bindings. A final version of this patch may be created once upstreaming is complete, but if it takes too long, this can act as a placeholder. New pylibfdt features: - Support for most remaining,

[U-Boot] [PATCH 04/29] binman: Correct operation of ObtainContents()

2018-06-05 Thread Simon Glass
This method is supposed to return the contents of an entry. However at present there is no check that it actually does. Also some implementations do not return 'True' to indicate success, as required. Add a check for things working as expected, and correct the implementations. This requires some

[U-Boot] [PATCH 06/29] binman: Tidy up setting of entry contents

2018-06-05 Thread Simon Glass
At present the contents of an entry are set in subclasses simply by assigning to the data and content_size properties. Add some methods to do this, so that we have more control. In particular, add a method to set the contents without changing its size, so we can validate that case. Add a test

[U-Boot] [PATCH 02/29] binman: Make the operation of Entry__testing explicit

2018-06-05 Thread Simon Glass
This fake entry is used for testing. At present it only has one behaviour which is to return an invalid set of entry positions, to cause an error. The fake entry will need to be used for other things too. Allow the test .dts file to specify the behaviour of the fake entry, so we can control its

[U-Boot] [PATCH 20/29] dtoc: Fix some minor errors

2018-06-05 Thread Simon Glass
Fix some comments and a printf string which is incorrect. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 3 ++- tools/dtoc/dtoc.py | 4 ++-- tools/dtoc/fdt.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/dtoc/dtb_platdata.py

[U-Boot] [PATCH 27/29] binman: Add a ProcessFdt() method

2018-06-05 Thread Simon Glass
Some entry types modify the device tree, e.g. to remove microcode or add a property. So far this just modifies their local copy and does not affect a 'shared' device tree. Rather than doing this modification in the ObtainContents() method, and a new ProcessFdt() method which is specifically

[U-Boot] [PATCH 18/29] dtoc: Update fdt tests to increase code coverage

2018-06-05 Thread Simon Glass
At present only some of the fdt functionality is tests. Add more tests to bring code coverage up further. Signed-off-by: Simon Glass --- tools/dtoc/dtoc_test_simple.dts | 1 + tools/dtoc/fdt.py | 16 ++- tools/dtoc/test_dtoc.py | 3 +++

[U-Boot] [PATCH 26/29] binman: Complete documentation of stages

2018-06-05 Thread Simon Glass
At present one of the stages is badly numbered and not described. Fix this. Signed-off-by: Simon Glass --- tools/binman/README | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/binman/README b/tools/binman/README index f74e39242f6..3cfcf84d92c 100644 ---

[U-Boot] [PATCH 10/29] binman: Move coverage logic into a new test_util file

2018-06-05 Thread Simon Glass
At present only binman has the logic for determining Python test coverage but this is useful for other tools also. Move it out into a separate file so it can be used by other tools. Signed-off-by: Simon Glass --- tools/binman/binman.py| 30 +++ tools/patman/test_util.py

[U-Boot] [PATCH 09/29] libfdt: Add get_property() and del_node()

2018-06-05 Thread Simon Glass
Add support for these functions in the Python binding. This patch stands in for a pending upstream change. Signed-off-by: Simon Glass --- scripts/dtc/pylibfdt/libfdt.i_shipped | 32 +++ 1 file changed, 32 insertions(+) diff --git a/scripts/dtc/pylibfdt/libfdt.i_shipped

[U-Boot] [PATCH 14/29] dtoc: Make use of the new pylibfdt methods

2018-06-05 Thread Simon Glass
Now that pylibfdt supports a fuller API we don't need to directly call the libfdt stubs. Update the code to use the Fdt methods instead. Some other cases remain which will be tidied up in a later commit, since they need larger changes. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 26

[U-Boot] [PATCH v5 1/3] sunxi-mmc: introduce new MMC_SUNXI_HAS_NEW_MODE_SWITCH option

2018-06-05 Thread Vasily Khoruzhick
A64 doesn't have a mode switch in CCM, so introduce new MMC_SUNXI_HAS_NEW_MODE_SWITCH option to support new mode on A64 Signed-off-by: Vasily Khoruzhick --- arch/arm/mach-sunxi/Kconfig | 1 + drivers/mmc/Kconfig | 4 drivers/mmc/sunxi_mmc.c | 2 ++ 3 files changed, 7

Re: [U-Boot] [PATCH v2 0/3] Generic file system firmware loader DM

2018-06-05 Thread Chee, Tien Fong
On Thu, 2018-05-24 at 13:04 +0800, tien.fong.c...@intel.com wrote: Hi All, > From: Tien Fong Chee > > This patchset contains generic file system loader DM which is very > close to > Linux firmware loader but for U-Boot framework. Generic file system > firmware > loader can be used load whatever

[U-Boot] [PATCH v5 0/3] sunxi: fix eMMC stability issues on A64

2018-06-05 Thread Vasily Khoruzhick
eMMC seems to require new clocking mode and calibration on A64, otherwise it is pretty unstable on some boards (e.g. Pinebook) with some eMMCs. v2: - improve comment about calibration for eMMC on A64 - simplify ifdef-s around configuring delays v3: - fix fallout due to ifdef simplification in

[U-Boot] [PATCH v5 3/3] mmc: sunxi: run calibration on A64

2018-06-05 Thread Vasily Khoruzhick
Along with using new mode it fixes eMMC instability on Pinebook Signed-off-by: Vasily Khoruzhick --- arch/arm/include/asm/arch-sunxi/mmc.h | 6 +- drivers/mmc/sunxi_mmc.c | 11 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v5 2/3] sunxi-mmc: use new mode on A64

2018-06-05 Thread Vasily Khoruzhick
That is necessary for using automatic calibration on A64 eMMC. Signed-off-by: Vasily Khoruzhick --- arch/arm/mach-sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index c4dc0f7672..fbba20ce10 100644 ---