[U-Boot] [PATCH 3/3] mips: mt76xx: gardena-smart-gateway: Add factory data variable handling

2018-11-27 Thread Stefan Roese
Some factory data is stored in the SPI NOR and needs to get extracted from there into U-Boot environment variables. This patch also includes a board-specific command "fd_write" to provide some dummy / default values for this factory-data in the SPI NOR flash. This should only be necessary for

[U-Boot] [PATCH 2/3] mips: mt76xx: gardena-smart-gateway: Misc updates to defconfig

2018-11-27 Thread Stefan Roese
The following changes are made: - Add default bootcmd which can be used for initial start-up - Setup necessary MTD parts for Linux compatibility Signed-off-by: Stefan Roese Cc: Daniel Schwierzeck --- configs/gardena-smart-gateway-mt7688-ram_defconfig | 6 --

[U-Boot] [PATCH 1/3] mips: mt7628: Change compatible property of the ethernet DT node

2018-11-27 Thread Stefan Roese
As the driver has been changed to be more specific, the DT compatible property also needs to be adapted. Signed-off-by: Stefan Roese Cc: Daniel Schwierzeck --- arch/mips/dts/mt7628a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/dts/mt7628a.dtsi

Re: [U-Boot] [PATCH] ARM: mvebu: add revision id for Armada-385 B0

2018-11-27 Thread Stefan Roese
On 27.11.18 22:32, Chris Packham wrote: Marvell have release a B0 revision of the Armada-385 SoC. This fixes a hardware errata enabling RGMII to work when the Ethernet voltage is configured to 3.3V. Signed-off-by: Chris Packham --- arch/arm/mach-mvebu/cpu.c | 3 +++

Re: [U-Boot] EXT: [PATCH v2 0/2] Update RV3029 driver to DM and add DM-backed bootcount support

2018-11-27 Thread Ray, Ian (GE Healthcare)
> On 28 Nov 2018, at 0.00, Philipp Tomsich > wrote: > > > On one of our application-specific carrier boards, a MicroCrystal > RV3029 acts as an off-module battery-backed RTC for the RK3399-Q7. > The RV3029 is intended both to provide RTC services (to Linux) and > to store the bootcount in

[U-Boot] [PATCH 3/4] cmd: efishell: make Boot####/BootOrder variable non-volatile

2018-11-27 Thread AKASHI Takahiro
See UEFI specification v2.7a, section 3.3 for details attributes. Signed-off-by: AKASHI Takahiro --- cmd/efishell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/efishell.c b/cmd/efishell.c index 7cdff757b06c..a594278a04fe 100644 --- a/cmd/efishell.c +++ b/cmd/efishell.c @@ -641,6

[U-Boot] [PATCH 4/4] efi_loader: bootmgr: make BootNext non-volatile

2018-11-27 Thread AKASHI Takahiro
See UEFI specification v2.7a, section 3.3 for details attributes. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_bootmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c index db391147fb2d..128d1e887cb4

[U-Boot] [PATCH 1/4] efi_loader: support non-volatile variable behavior

2018-11-27 Thread AKASHI Takahiro
An EFI variable is nothing but a wrapper of a corresponding u-boot environment variable (See efi_variable.c), but under the current implementation, NON_VOLATILE attribute is not honored while u-boot environment variables can be saved/restored in storage. With this patch, the expected semantics

[U-Boot] [PATCH 2/4] cmd: efishell: support -nv option to setvar sub-command

2018-11-27 Thread AKASHI Takahiro
With -nv specified, a variable to be created will have NON_VOLATILE attribute. Signed-off-by: AKASHI Takahiro --- cmd/efishell.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/cmd/efishell.c b/cmd/efishell.c index 7cd3ca489559..7cdff757b06c 100644 ---

[U-Boot] [PATCH 0/4] efi_loader: non-volatile variables support

2018-11-27 Thread AKASHI Takahiro
As the subject suggested, this patch set allows any efi variable to be volatile or non-volatile as UEFI specification describes. With my efishell patch[1] with patch #2, you can try as follows: => efi setvar PlatformLang en => efi setvar -nv BootNext =H0200 => env save BootNext will be

[U-Boot] [PATCH] rockchip: rk3188: use board_debug_uart_init() for UART io init

2018-11-27 Thread Kever Yang
Sync with other rockchip SoCs, use board_debug_uart_init() to init default UART iomux. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/rk3188-board-spl.c | 29 +-- 2 files changed, 23 insertions(+), 7 deletions(-) diff

Re: [U-Boot] [PATCH] imx: hab: extend hab_auth_img to calculate ivt_offset

2018-11-27 Thread Heiko Schocher
Hello Quentin, Am 27.11.2018 um 15:15 schrieb Parthiban Nallathambi: Hi Quentin Grembert, On 11/27/18 3:12 PM, Quentin Grembert wrote: Hi, I don't know how to publish on U-Boot mailing list, so i'm writing directly to you. I am using hab_auth_img to authentificate other files than Linux

Re: [U-Boot] [PATCH v2 00/32] spi: DM_SPI migration timeout, remainder(2)

2018-11-27 Thread Tom Rini
On Wed, Nov 28, 2018 at 05:24:45AM +0100, Heiko Schocher wrote: > Hello Marek, Jagan, > > Am 27.11.2018 um 13:10 schrieb Marek Vasut: > >On 11/27/2018 06:51 AM, Jagan Teki wrote: > >>On Mon, Nov 26, 2018 at 12:48 PM Peng Fan wrote: > >>> > >>>Hi Jagan, > >>> > >>>Just have a quick question here.

Re: [U-Boot] [PATCH v2 00/32] spi: DM_SPI migration timeout, remainder(2)

2018-11-27 Thread Heiko Schocher
Hello Marek, Jagan, Am 27.11.2018 um 13:10 schrieb Marek Vasut: On 11/27/2018 06:51 AM, Jagan Teki wrote: On Mon, Nov 26, 2018 at 12:48 PM Peng Fan wrote: Hi Jagan, Just have a quick question here. After dropping non-DM code, for SPL use non-DM code should switch to SPL_DM and use SPL OF

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

2018-11-27 Thread Tom Rini
On Tue, Nov 27, 2018 at 06:40:30PM +0100, Marek Vasut wrote: > The following changes since commit 6b21502229035779059493b2193fd790448fe85e: > > Merge branch '2018-11-25-master-imports' (2018-11-26 12:40:22 -0500) In the future, can you please include a short summary here if not using a signed

[U-Boot] [RESENT PATCH v3] rockchip: update emmc/sd index for distro boot order

2018-11-27 Thread Kever Yang
According to the emmc/sdcard index in dts alias, emmc is always 0 and sdcard index is 1, let's update to using correct mmc number for distro boot order in common header. SD card suppost to have higher priority so that people can boot into the firmware in SD card, this is very convenient for

[U-Boot] [RESENT PATCH 2/2] rockchip: rk322x: use ROCKCHIP_BOOT_MODE_REG to update reboot flag

2018-11-27 Thread Kever Yang
Use ROCKCHIP_BOOT_MODE_REG instead of grf structure so that we can re-use the source code later. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk322x-board.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/mach-rockchip/rk322x-board.c

[U-Boot] [RESENT PATCH 1/2] rockchip: rk3128: use ROCKCHIP_BOOT_MODE_REG to update reboot flag

2018-11-27 Thread Kever Yang
Use ROCKCHIP_BOOT_MODE_REG instead of grf structure so that we can re-use the source code later. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/rk3128-board.c | 5 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [U-Boot] [PATCH] ARM: rmobile: Convert to bootm_size

2018-11-27 Thread Tom Rini
On Tue, Nov 27, 2018 at 07:31:24PM +0100, Simon Goldschmidt wrote: > On Tue, Nov 27, 2018 at 4:47 PM Marek Vasut wrote: > > > > On 11/27/2018 04:26 PM, Simon Goldschmidt wrote: > > > On 27.11.2018 14:09, Marek Vasut wrote: > > >> On 11/27/2018 01:33 PM, Simon Goldschmidt wrote: > > >>> On Tue,

Re: [U-Boot] [PATCH] ARM: rmobile: Convert to bootm_size

2018-11-27 Thread Tom Rini
On Tue, Nov 27, 2018 at 08:03:04AM +0100, Simon Goldschmidt wrote: > On Tue, Nov 27, 2018 at 1:11 AM Marek Vasut wrote: > > > > Convert all Renesas R-Car boards to bootm_size of 256 MiB and drop both > > fdt_high and initrd_high. This change implies that the FDT and initrd > > will always be

Re: [U-Boot] [PATCH 3/3] buildman/toolchain.py: handle inconsistent tarball names

2018-11-27 Thread Trevor Woerner
On Mon, Nov 26, 2018 at 8:06 PM Simon Glass wrote: > Reviewed-by: Simon Glass > But please use single quotes for strings. > I can send a v2 if you like? ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v2 2/2] bootcount: add a DM RTC backing store for bootcount

2018-11-27 Thread Philipp Tomsich
This implements a driver using a RTC-based backing store for the DM bootcount implementation. The node configuring this feature will be compatible with 'u-boot,bootcount-rtc' and the underlying RTC device shall be reference through the property 'rtc'. An offset into the RTC device's register

[U-Boot] [PATCH v2 1/2] bootcount: add uclass for bootcount

2018-11-27 Thread Philipp Tomsich
The original bootcount methods do not provide an interface to DM and rely on a static configuration for I2C devices (e.g. bus, chip-addr, etc. are configured through defines statically). On a modern system that exposes multiple devices in a DTS-configurable way, this is less than optimal and a

[U-Boot] [PATCH v2 0/2] Update RV3029 driver to DM and add DM-backed bootcount support

2018-11-27 Thread Philipp Tomsich
On one of our application-specific carrier boards, a MicroCrystal RV3029 acts as an off-module battery-backed RTC for the RK3399-Q7. The RV3029 is intended both to provide RTC services (to Linux) and to store the bootcount in its battery-backed SRAM section. To support this use-case, this series

[U-Boot] [PATCH 2/2] rtc: rv3029: update to support DM and sync with Linux 4.17

2018-11-27 Thread Philipp Tomsich
The "Flamingo" carrier-board for the RK3399-Q7 has a RV3029 populated and the application will use the off-module RV3029 RTC including the battery backed SRAM. To support this use case, this commit includes the following changes: * updates the rv3029 driver to use DM * implements the

[U-Boot] [PATCH 1/2] rtc: rv3029: add to Kconfig

2018-11-27 Thread Philipp Tomsich
The MicroCrystal RV3029 driver didn't have a Kconfig entry and was not used anywhere. Add it to Kconfig to make it selectable. Signed-off-by: Philipp Tomsich Tested-by: Klaus Goger --- drivers/rtc/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/rtc/Kconfig

[U-Boot] [PATCH] ARM: mvebu: add revision id for Armada-385 B0

2018-11-27 Thread Chris Packham
Marvell have release a B0 revision of the Armada-385 SoC. This fixes a hardware errata enabling RGMII to work when the Ethernet voltage is configured to 3.3V. Signed-off-by: Chris Packham --- arch/arm/mach-mvebu/cpu.c | 3 +++ arch/arm/mach-mvebu/include/mach/soc.h|

[U-Boot] [RFC PATCH] tools: add a generic config for native tools building

2018-11-27 Thread Otavio Salvador
The motivation for this is to allow distributions to distribute all possible tools in a generic way, avoiding the need of specific tools building for each machine. Especially on OpenEmbedded / Yocto Project ecosystem, it is very common each BSP to end providing their specific tools when they need

[U-Boot] [PATCH 6/7] doc: android: Add simple guide for A/B updates

2018-11-27 Thread Ruslan Trofymenko
Add a short documentation for A/B enablement and 'android_ab_select' command usage. Signed-off-by: Ruslan Trofymenko --- doc/README.android-ab | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 doc/README.android-ab diff --git

[U-Boot] [PATCH 4/7] cmd: Add 'android_ab_select' command

2018-11-27 Thread Ruslan Trofymenko
For A/B system update support the Android boot process requires to send 'androidboot.slot_suffix' parameter as a command line argument. This patch implementes 'android_ab_select' command which allows us to obtain current slot by processing the A/B metadata. The patch was extracted from commit [1]

[U-Boot] [PATCH 5/7] test/py: Add base test case for A/B updates

2018-11-27 Thread Ruslan Trofymenko
Add sandbox test for 'android_ab_select' command. Test: ./test/py/test.py --bd sandbox --build -k test_ab Signed-off-by: Ruslan Trofymenko --- configs/sandbox_defconfig | 2 ++ test/py/tests/test_ab.py | 74 +++ 2 files changed, 76 insertions(+)

Re: [U-Boot] [PATCH 0/7] android: Implement A/B boot process

2018-11-27 Thread Alistair Strachan
On Tue, Nov 27, 2018 at 11:57 AM Ruslan Trofymenko wrote: > > This patch series adds support for Android A/B boot process [1]. > Main steps of A/B boot process are: > - A/B metadata integrity check > - looking for the current slot (where the system should be > booting from) > - getting

[U-Boot] [PATCH 7/7] env: am57xx: Implement A/B boot process

2018-11-27 Thread Ruslan Trofymenko
Add support for A/B boot process on AM57xx based boards: 1. Define 'slot_suffix' variable (using 'android_ab_select' command) 2. Extend 'emmc_android_boot' boot command (add commands for A/B boot process) 'android_ab_select' command is used to decide which slot should be used for

[U-Boot] [PATCH 2/7] disk: part: Extend API to get partition info

2018-11-27 Thread Ruslan Trofymenko
This patch adds part_get_info_by_dev_and_name_or_num() function which allows us to get partition info from its number or name. Partition of interest is specified by string like "device_num:partition_number" or "device_num#partition_name". The patch was extracted from [1]. [1]

[U-Boot] [PATCH 3/7] common: Implement A/B metadata

2018-11-27 Thread Ruslan Trofymenko
This patch determines the A/B-specific bootloader message structure that is the basis for implementation of recovery and A/B update functions. A/B metadata is stored in this structure and used to decide which slot should we use to boot the device. Also some basic functions for A/B metadata

[U-Boot] [PATCH 0/7] android: Implement A/B boot process

2018-11-27 Thread Ruslan Trofymenko
This patch series adds support for Android A/B boot process [1]. Main steps of A/B boot process are: - A/B metadata integrity check - looking for the current slot (where the system should be booting from) - getting the name of the current boot partition (boot_a or boot_b) and

[U-Boot] [PATCH 1/7] cmd: part: Add 'number' sub-command

2018-11-27 Thread Ruslan Trofymenko
This sub-command serves for getting the partition index from partition name. Also it can be used to test the existence of specified partition. Signed-off-by: Ruslan Trofymenko --- cmd/part.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/cmd/part.c

[U-Boot] [PATCH] sf: prevent clean_bar overwriting error codes

2018-11-27 Thread Simon Goldschmidt
In spi_flash.c, if CONFIG_SPI_FLASH_BAR is enabled, the function 'clean_bar' makes sure that the Bank Address Register is reset at the end of functions using it. However, if this is enabled, those functions may return zero (success) when they should return an error. This is because after e.g.

Re: [U-Boot] [PATCH] net: explicitly assign errno to return code in case of network failure

2018-11-27 Thread Christian Gmeiner
Am Mi., 21. Nov. 2018 um 15:57 Uhr schrieb Thomas RIENOESSL : > > When dealing with two ethernet ports and having "netretry" set > to "once", it could occur that the connection (e.g. an ARP > request) failed, hence the status of the netloop was > "NETLOOP_FAIL". Due to the setting of "netretry",

Re: [U-Boot] [PATCH] ARM: rmobile: Convert to bootm_size

2018-11-27 Thread Marek Vasut
On 11/27/2018 07:31 PM, Simon Goldschmidt wrote: > On Tue, Nov 27, 2018 at 4:47 PM Marek Vasut wrote: >> >> On 11/27/2018 04:26 PM, Simon Goldschmidt wrote: >>> On 27.11.2018 14:09, Marek Vasut wrote: On 11/27/2018 01:33 PM, Simon Goldschmidt wrote: > On Tue, Nov 27, 2018 at 1:25 PM

Re: [U-Boot] board: da8xxevm: Fix Environmental CRC error

2018-11-27 Thread Tom Rini
On Tue, Nov 20, 2018 at 08:43:13AM -0600, Adam Ford wrote: > When the spi_flash_probe_bus_cs() was previously called, it was > called using 0's for two values where CONFIG_ENV_SPI_MAX_HZ and > CONFIG_ENV_SPI_MODE are now used. When changed this > caused the environment to fail the CRC check and

Re: [U-Boot] [U-Boot, 2/4] ARM: dts: am335x-chiliboard: add /chosen/stdout-path

2018-11-27 Thread Tom Rini
On Wed, Nov 21, 2018 at 08:32:01PM +0100, Marcin Niestroj wrote: > Add that node path in u-boot overlay dtsi file for now to keep > am335x-chiliboard.dts in sync with Linux. > > Signed-off-by: Marcin Niestroj > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [U-Boot, 1/4] ARM: dts: am335x-chili*: add chiliSOM and chiliboard DTS files

2018-11-27 Thread Tom Rini
On Wed, Nov 21, 2018 at 08:32:00PM +0100, Marcin Niestroj wrote: > Import chiliSOM and chiliboard dts files from Linux v4.19. They will > be used after transition to driver model and device-tree based boot. > > Signed-off-by: Marcin Niestroj > Reviewed-by: Tom Rini Applied to u-boot/master,

Re: [U-Boot] [U-Boot, 3/4] ARM: chiliboard: move towards driver model and device-tree boot

2018-11-27 Thread Tom Rini
On Wed, Nov 21, 2018 at 08:32:02PM +0100, Marcin Niestroj wrote: > This patch mostly enables DM drivers in board defconfig and all their > dependencies. Additionally we remove ethernet platform data, as all > details are in device-tree now. > > Signed-off-by: Marcin Niestroj > Reviewed-by: Tom

Re: [U-Boot] configs: Remove CONFIG_MARVELL

2018-11-27 Thread Tom Rini
On Wed, Nov 21, 2018 at 08:24:51PM +1300, Chris Packham wrote: > This option is defined by a few boards but doesn't guard any code. > Remove it from the boards and config_whitelist.txt. > > Signed-off-by: Chris Packham > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, 4/4] ARM: chiliboard: remove dead !CONFIG_DM_SERIAL code

2018-11-27 Thread Tom Rini
On Wed, Nov 21, 2018 at 08:32:03PM +0100, Marcin Niestroj wrote: > DM_SERIAL is selected by TARGET_CHILIBOARD, so there is no reason to > keep code that will not be built. Remove it. > > Signed-off-by: Marcin Niestroj > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] arm: ti: boot: Fix U-Boot environment partition address

2018-11-27 Thread Tom Rini
On Thu, Nov 15, 2018 at 10:26:17PM +0200, Sam Protsenko wrote: > Recent removal of obsolete partition led to shifting of starting address > of "reserved" partition (which reflects U-Boot environment). Fix its > start address to keep it in sync with ENV_OFFSET and DFU environment. > > This patch

Re: [U-Boot] ARM: armv7: Add early stack for erratum workarounds

2018-11-27 Thread Tom Rini
On Mon, Nov 19, 2018 at 02:47:53PM -0600, Andrew F. Davis wrote: > Some erratum workarounds call into C code before the stack > is setup, this can lead to values pushed onto the stack > being lost, firewall exceptions, and other undefined behavior. > > Setup a temporary stack to allow these

Re: [U-Boot] tools/file2include: don't use malloc.h for malloc

2018-11-27 Thread Tom Rini
On Sun, Nov 18, 2018 at 01:03:39PM +1100, Jonathan Gray wrote: > stdlib.h is the header for malloc since at least c89/c90. > Previously this would fail to build on OpenBSD and fallback to the wrong > header: > > In file included from u-boot/tools/file2include.c:21: >

Re: [U-Boot] [U-Boot, v2] ARM: vexpress_*_defconfig: Enable CMD_UBI support

2018-11-27 Thread Tom Rini
On Tue, Nov 20, 2018 at 04:47:12PM -0200, Otavio Salvador wrote: > This allow for convenient use of QEMU machine to test loading of UBI > filesystem. There are a couple of changes made together of this which > are required: > > 1) The malloc must be at least 512 KiB to allow the use of UBI >

Re: [U-Boot] armv7r: K3: Allow SPL to run only on core 0

2018-11-27 Thread Tom Rini
On Thu, Nov 15, 2018 at 11:04:50AM +0530, Lokesh Vutla wrote: > Based on the MCU R5 efuse settings, R5F cores in MCU domain > either work in split mode or in lock step mode. > > If efuse settings are in lockstep mode: ROM release R5 cores > and SPL continues to run on the R5 core is lockstep

Re: [U-Boot] add default-option to bootmenu

2018-11-27 Thread Tom Rini
On Fri, Oct 05, 2018 at 11:58:39AM +0200, Frank Wunderlich wrote: > >From 6304b2ee2d2e9be47672d3559fee8d879b7328ff Mon Sep 17 00:00:00 2001 > From: Frank Wunderlich > Date: Fri, 5 Oct 2018 11:41:59 +0200 > Subject: [PATCH] add default-option to bootmenu > with this patch the selected Entry in

Re: [U-Boot] [PATCH] ARM: rmobile: Convert to bootm_size

2018-11-27 Thread Simon Goldschmidt
On Tue, Nov 27, 2018 at 4:47 PM Marek Vasut wrote: > > On 11/27/2018 04:26 PM, Simon Goldschmidt wrote: > > On 27.11.2018 14:09, Marek Vasut wrote: > >> On 11/27/2018 01:33 PM, Simon Goldschmidt wrote: > >>> On Tue, Nov 27, 2018 at 1:25 PM Marek Vasut > >>> wrote: > On 11/27/2018 08:03 AM,

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

2018-11-27 Thread Marek Vasut
The following changes since commit 6b21502229035779059493b2193fd790448fe85e: Merge branch '2018-11-25-master-imports' (2018-11-26 12:40:22 -0500) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to

[U-Boot] u-boot-socfpga/master unbuildable on S10

2018-11-27 Thread Marek Vasut
Hi, Stratix 10 fails to build with the latest S10 patches, see: https://travis-ci.org/marex/u-boot-socfpga/jobs/456956465 please fix. -- Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (24.11.2018)

2018-11-27 Thread Jean-Jacques Hiblot
On 26/11/2018 23:18, Marek Vasut wrote: On 11/26/2018 11:15 PM, Lukasz Majewski wrote: Hi Jean-Jacques , On 11/26/2018 09:21 PM, Marek Vasut wrote: On 11/26/2018 07:45 PM, Tom Rini wrote: On Sun, Nov 25, 2018 at 07:04:49PM +0100, Marek Vasut wrote: On 11/24/2018 11:11 PM, Lukasz Majewski

Re: [U-Boot] [PATCH v2 3/3] imx: Add PHYTEC phyBOARD-i.MX6UL-Segin

2018-11-27 Thread Marek Vasut
On 11/23/2018 05:47 PM, Martyn Welch wrote: > Port for the PHYTEC phyBOARD-i.MX6UL-Segin single board computer. Based on > the PHYTEC phyCORE-i.MX6UL SOM (PCL063). Nice ! A few nits below. > This port provides both SPL and > DCD based boot options (hence the two defconfigs). Is the DCD option

[U-Boot] [PATCH v3] ARM: meson: Add regmap support for clock driver

2018-11-27 Thread Loic Devulder
This patch modifies the meson clock driver to use syscon/regmap like the Linux kernel does, as it is needed if we want to share the same DTS files. DTS files are synchronized from Linux 4.19. Signed-off-by: Loic Devulder Acked-by: Neil Armstrong --- Note: this patch needs to be merged *after*

Re: [U-Boot] [PATCH v2] tools: env: support skip leading zero of env

2018-11-27 Thread zqb-all
Hi Wolfgang , Stefan I try to use uboot envtools in allwinner's platform, then found that the env in allwinner's SDK have some leading zero, that prevent envtools to parse it. Finally I add these code to fix it. Wolfgang Denk 于2018年11月27日周二 下午11:00写道: > Dear zqb-all, > > In message

Re: [U-Boot] [PATCH v2 00/32] spi: DM_SPI migration timeout, remainder(2)

2018-11-27 Thread Tom Rini
On Tue, Nov 27, 2018 at 03:39:39PM +0100, Stefano Babic wrote: > Hi Jagan, > > (CCing the world looks to me quite a terror attack, nevertheless): > > On 27/11/18 06:51, Jagan Teki wrote: > > On Mon, Nov 26, 2018 at 12:48 PM Peng Fan wrote: > >> > >> Hi Jagan, > >> > >> Just have a quick

Re: [U-Boot] [linux-sunxi] [PATCH v3 0/9] Stop AXP from crashing when enabling LDO3

2018-11-27 Thread Priit Laes
On Wed, Nov 21, 2018 at 08:05:24PM +0200, Priit Laes wrote: > This is a resend/v2 of a "Stop AXP from crashing when enabling LDO3" series, > posted by Olliver Schinagl in March 2017. Unfortunately it never got past > initial discussion [1], but most Olimex Lime2 boards are still running > into

Re: [U-Boot] [RESEND][PATCH] power: regulator: denied disable on always-on regulator

2018-11-27 Thread Richard Röjfors
On Thu, Nov 15, 2018 at 1:46 PM Patrice Chotard wrote: > > From: Patrick Delaunay > > Don't disable regulator which are tagged as "regulator-always-on" in DT. > > Signed-off-by: Patrick Delaunay > Reviewed-by: Simon Glass > Reviewed-by: Jack Mitchell > Tested-by: Jack Mitchell >

Re: [U-Boot] [PATCH v3 1/7] dm: serial: Add ->getconfig() callback

2018-11-27 Thread Andy Shevchenko
On Mon, Nov 26, 2018 at 06:02:28PM -0700, Simon Glass wrote: > Hi Andy, > > On Tue, 20 Nov 2018 at 14:52, Andy Shevchenko > wrote: > > > > In some cases it would be good to know the settings, such as parity, > > of current serial console. One example might be an ACPI SPCR table > > to generate

Re: [U-Boot] [PATCH] ARM: rmobile: Convert to bootm_size

2018-11-27 Thread Marek Vasut
On 11/27/2018 04:26 PM, Simon Goldschmidt wrote: > On 27.11.2018 14:09, Marek Vasut wrote: >> On 11/27/2018 01:33 PM, Simon Goldschmidt wrote: >>> On Tue, Nov 27, 2018 at 1:25 PM Marek Vasut >>> wrote: On 11/27/2018 08:03 AM, Simon Goldschmidt wrote: > On Tue, Nov 27, 2018 at 1:11 AM

Re: [U-Boot] [PATCH v3 11/11] mtd: sf: Make sf_mtd.c more robust

2018-11-27 Thread Jagan Teki
On Tue, Nov 27, 2018 at 6:06 PM Boris Brezillon wrote: > > On Mon, 26 Nov 2018 14:25:44 +0100 > Miquel Raynal wrote: > > > Hi Jagan, > > > > Jagan Teki wrote on Mon, 26 Nov 2018 18:35:01 > > +0530: > > > > > On 26/11/18 6:12 PM, Boris Brezillon wrote: > > > > On Mon, 26 Nov 2018 13:37:46 +0100

Re: [U-Boot] [PATCH v2 1/6] spi: Remove unused spi_init

2018-11-27 Thread Jagan Teki
On Sat, Nov 24, 2018 at 5:43 PM Jagan Teki wrote: > > Remove spi_init definition which never used on > respective code since from many years. > > Signed-off-by: Jagan Teki > --- All patches, Applied to u-boot-spi/maste ___ U-Boot mailing list

Re: [U-Boot] [PATCH v4 1/3] spi: pl022: Simplify platdata code

2018-11-27 Thread Jagan Teki
On Tue, Nov 27, 2018 at 1:29 PM Quentin Schulz wrote: > > Hi Jagan, > > On Sat, Nov 24, 2018 at 05:47:21PM +0530, Jagan Teki wrote: > > pl022 spi driver support both OF_CONTROL and PLATDATA, this > > patch is trying to simplify the code that differentiating > > platdata vs of_control. > > - Move

Re: [U-Boot] [PATCH v4 2/3] spi: pl022: Drop unnecessary include files

2018-11-27 Thread Jagan Teki
On Tue, Nov 27, 2018 at 1:30 PM Quentin Schulz wrote: > > Hi all, > > On Sat, Nov 24, 2018 at 05:47:22PM +0530, Jagan Teki wrote: > > This patch can drop unnecessary include files in > > pl022_spi driver. > > > > Cc: Quentin Schulz > > Signed-off-by: Jagan Teki > > --- > > Changes for v4: > > -

Re: [U-Boot] [PATCH v4 3/3] dm: platform_data: spi: s/pl022_spi.h/spi_pl022.h

2018-11-27 Thread Jagan Teki
On Tue, Nov 27, 2018 at 1:31 PM Quentin Schulz wrote: > > Hi Jagan, > > On Sat, Nov 24, 2018 at 05:47:23PM +0530, Jagan Teki wrote: > > Rename platform_data include file as spi_pl022.h from pl022_spi.h, > > this is generic notation used for spi platdata include files. > > > > Cc: Quentin Schulz

Re: [U-Boot] [PATCH v2 00/32] spi: DM_SPI migration timeout, remainder(2)

2018-11-27 Thread Stefano Babic
Hi Jagan, (CCing the world looks to me quite a terror attack, nevertheless): On 27/11/18 06:51, Jagan Teki wrote: > On Mon, Nov 26, 2018 at 12:48 PM Peng Fan wrote: >> >> Hi Jagan, >> >> Just have a quick question here. >> >> After dropping non-DM code, for SPL use non-DM code should switch to

Re: [U-Boot] [PATCH] drivers: regulator: regulator-uclass: disallow disable of always-on

2018-11-27 Thread Patrice CHOTARD
Hi Richard, As pointed by Jack, i already sent a similar patch on May. I resend it few days ago [1], it's preferable you add your tested-by on this last one. Thanks Patrice [1] https://lists.denx.de/pipermail/u-boot/2018-November/347511.html On 11/23/18 8:13 PM, Jack Mitchell wrote: > On

Re: [U-Boot] [PATCH] ARM: rmobile: Convert to bootm_size

2018-11-27 Thread Simon Goldschmidt
On 27.11.2018 14:09, Marek Vasut wrote: On 11/27/2018 01:33 PM, Simon Goldschmidt wrote: On Tue, Nov 27, 2018 at 1:25 PM Marek Vasut wrote: On 11/27/2018 08:03 AM, Simon Goldschmidt wrote: On Tue, Nov 27, 2018 at 1:11 AM Marek Vasut wrote: Convert all Renesas R-Car boards to bootm_size of

Re: [U-Boot] [PATCH] spl: implement CRC check on U-Boot uImage

2018-11-27 Thread Simon Goldschmidt
On 27.11.2018 15:57, Wolfgang Denk wrote: Dear Simon, In message <20181124124641.6605-1-simon.k.r.goldschm...@gmail.com> you wrote: SPL currently does not check uImage CRCs when loading U-Boot. This patch adds checking the uImage CRC when SPL loads U-Boot. It does this by reusing the existing

Re: [U-Boot] [PATCH v2] tools: env: support skip leading zero of env

2018-11-27 Thread Wolfgang Denk
Dear zqb-all, In message <1543283392-31275-1-git-send-email-zhuangqiu...@gmail.com> you wrote: > Signed-off-by: zqb-all Umm... please add a commit message that explains which problem you are trying to fix, and why you think your new code helps to address this problem. Thanks. Best regards,

Re: [U-Boot] [PATCH] spl: implement CRC check on U-Boot uImage

2018-11-27 Thread Wolfgang Denk
Dear Simon, In message <20181124124641.6605-1-simon.k.r.goldschm...@gmail.com> you wrote: > SPL currently does not check uImage CRCs when loading U-Boot. > > This patch adds checking the uImage CRC when SPL loads U-Boot. It does > this by reusing the existing config option SPL_CRC32_SUPPORT to

Re: [U-Boot] [PATCH] imx: hab: extend hab_auth_img to calculate ivt_offset

2018-11-27 Thread Parthiban Nallathambi
Hi Quentin Grembert, On 11/27/18 3:12 PM, Quentin Grembert wrote: Hi, I don't know how to publish on U-Boot mailing list, so i'm writing directly to you. I am using hab_auth_img to authentificate other files than Linux image, like *.dtb or others. So you have dtb and other images signed

Re: [U-Boot] [PATCH v2 3/3] imx: Add PHYTEC phyBOARD-i.MX6UL-Segin

2018-11-27 Thread Wadim Egorov
Hi Martyn, thanks for upstreaming this board. For the three patches & with u-boot.imx image type,   Tested-by: Wadim Egorov But it seems, phycore_pcl063_spl_defconfig is not working:   U-Boot spl 2018.11-00307-g74b1be3 (Nov 27 2018 - 15:05:14 +0100)   Trying to boot from MMC1   MMC Device 0

Re: [U-Boot] [PATCH u-boot v3 1/3] regmap: add regmap_read_poll_timeout() helper

2018-11-27 Thread Neil Armstrong
Hi Simon, On 27/11/2018 02:02, Simon Glass wrote: > Hi Neil, > > On Thu, 22 Nov 2018 at 03:01, Neil Armstrong wrote: >> >> Add the regmap_read_poll_timeout() macro based on the Linux implementation >> to simplify register polling with configurable timeout and sleep. >> >> Acked-by: Jagan Teki

[U-Boot] Please pull u-boot-amlogic-20181126

2018-11-27 Thread Neil Armstrong
Hi Tom, The following changes since commit 5830791d91d1200854ef78fcb32f808c8080f0f0: Merge tag 'pull-tg18' of git://git.denx.de/u-boot-dm (2018-11-23 17:25:27 -0500) are available in the Git repository at: git://git.denx.de/u-boot-amlogic.git tags/u-boot-amlogic-20181126 for you to fetch

Re: [U-Boot] [PATCH v2] tools: env: support skip leading zero of env

2018-11-27 Thread Stefan Agner
Maybe I miss something, but why is this needed exactly? -- Stefan On 27.11.18 02:49, zqb-all wrote: > Signed-off-by: zqb-all > --- > v2: fix all "env = environment.data" and "env = default_environment" > > tools/env/fw_env.c | 46 -- > 1 file

Re: [U-Boot] [PATCH] ARM: rmobile: Convert to bootm_size

2018-11-27 Thread Marek Vasut
On 11/27/2018 01:33 PM, Simon Goldschmidt wrote: > On Tue, Nov 27, 2018 at 1:25 PM Marek Vasut wrote: >> >> On 11/27/2018 08:03 AM, Simon Goldschmidt wrote: >>> On Tue, Nov 27, 2018 at 1:11 AM Marek Vasut wrote: Convert all Renesas R-Car boards to bootm_size of 256 MiB and drop both

Re: [U-Boot] [PATCH v2 1/2] spl_spi: Read default speed and mode values from DT

2018-11-27 Thread Simon Goldschmidt
On Tue, Nov 27, 2018 at 1:33 PM Patrick DELAUNAY wrote: > > Hi Simon, > > > From: Simon Goldschmidt > > Sent: mardi 27 novembre 2018 09:11 > > > > > On Tue, Nov 27, 2018 at 9:06 AM Patrick DELAUNAY > > wrote: > > > > > > Hi Simon, > > > > > > > -Original Message- > > > > From: Simon

[U-Boot] [PATCH v5 3/4] hwspinlock: add stm32 hardware spinlock support

2018-11-27 Thread Benjamin Gaignard
Implement hardware spinlock support for STM32MP1. Signed-off-by: Benjamin Gaignard Reviewed-by: Simon Glass Reviewed-by: Patrice Chotard --- arch/arm/dts/stm32mp157c-ed1.dts | 4 ++ arch/arm/dts/stm32mp157c.dtsi | 9 configs/stm32mp15_basic_defconfig | 2 +

[U-Boot] [PATCH v5 4/4] pinctrl: stm32: make pinctrl use hwspinlock

2018-11-27 Thread Benjamin Gaignard
Protect configuration registers with a hardware spinlock. If a hwspinlock is defined in the device-tree node used it to be sure that none of the others processors on the SoC could change the configuration at the same time. Signed-off-by: Benjamin Gaignard Reviewed-by: Simon Glass Reviewed-by:

[U-Boot] [PATCH v5 2/4] clk: stm32: add hardware spinlock clock

2018-11-27 Thread Benjamin Gaignard
From: Benjamin Gaignard Add hardware spinlock in the list of the clocks. Signed-off-by: Benjamin Gaignard Reviewed-by: Simon Glass Reviewed-by: Patrice Chotard --- drivers/clk/clk_stm32mp1.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/clk_stm32mp1.c

[U-Boot] [PATCH v5 1/4] dm: Add Hardware Spinlock class

2018-11-27 Thread Benjamin Gaignard
This is uclass for Hardware Spinlocks. It implements two mandatory operations: lock and unlock and one optional relax operation. Signed-off-by: Benjamin Gaignard Reviewed-by: Simon Glass Reviewed-by: Patrice Chotard --- version 5 - rebased on top of master branch version 4: - make timeout

[U-Boot] [PATCH v5 0/4] Add Hardware Spinlock class

2018-11-27 Thread Benjamin Gaignard
version 5: - rebased on top of master branch (patches 1 and 4) version 4: - make timeout loop more robust version 3: - use dev_get_parent - add Review-by version 2: - use -ETIMEDOUT and -ENOSYS for errors cases - do not test if ops is valid - remove useless include - add a private structure

Re: [U-Boot] [PATCH v5 1/4] riscv: Add kconfig option to run U-Boot in S-mode

2018-11-27 Thread Anup Patel
On Tue, Nov 27, 2018 at 4:17 PM Alexander Graf wrote: > > > > On 27.11.18 07:52, Anup Patel wrote: > > On Tue, Nov 27, 2018 at 12:09 PM Rick Chen wrote: > >> > Subject: [PATCH v5 1/4] riscv: Add kconfig option to run U-Boot in S-mode > > This patch adds kconfig option RISCV_SMODE

Re: [U-Boot] [PATCH v3 11/11] mtd: sf: Make sf_mtd.c more robust

2018-11-27 Thread Boris Brezillon
On Mon, 26 Nov 2018 14:25:44 +0100 Miquel Raynal wrote: > Hi Jagan, > > Jagan Teki wrote on Mon, 26 Nov 2018 18:35:01 > +0530: > > > On 26/11/18 6:12 PM, Boris Brezillon wrote: > > > On Mon, 26 Nov 2018 13:37:46 +0100 > > > Boris Brezillon wrote: > > > > > >> On Mon, 26 Nov 2018

Re: [U-Boot] [PATCH v2 1/2] spl_spi: Read default speed and mode values from DT

2018-11-27 Thread Patrick DELAUNAY
Hi Simon, > From: Simon Goldschmidt > Sent: mardi 27 novembre 2018 09:11 > > On Tue, Nov 27, 2018 at 9:06 AM Patrick DELAUNAY > wrote: > > > > Hi Simon, > > > > > -Original Message- > > > From: Simon Goldschmidt > > > Sent: lundi 19 novembre 2018 20:09 > > > > > > On 19.11.2018

Re: [U-Boot] [PATCH] ARM: rmobile: Convert to bootm_size

2018-11-27 Thread Simon Goldschmidt
On Tue, Nov 27, 2018 at 1:25 PM Marek Vasut wrote: > > On 11/27/2018 08:03 AM, Simon Goldschmidt wrote: > > On Tue, Nov 27, 2018 at 1:11 AM Marek Vasut wrote: > >> > >> Convert all Renesas R-Car boards to bootm_size of 256 MiB and drop both > >> fdt_high and initrd_high. This change implies that

[U-Boot] Disable phy in application init

2018-11-27 Thread Zvi Vered
Hello, Upon 'ping', u-boot is trying to initialize PHY. In my case, the PHY is initialized by external hardware, not by MDC\MDIO. In menuconfig, there is no option to exclude CONFIG_PHYLIB -*- Ethernet PHY How should I modify u-boot so that the CPU will not try to initialize PHY ? Thank you,

Re: [U-Boot] [PATCH 40/93] arm: Remove colibri_pxa270 board

2018-11-27 Thread Marek Vasut
On 11/27/2018 01:08 AM, Simon Glass wrote: > On Mon, 26 Nov 2018 at 00:57, Marcel Ziswiler > wrote: >> >> On Mon, 2018-11-19 at 08:53 -0700, Simon Glass wrote: >>> This board has not been converted to CONFIG_DM_BLK by the deadline. >>> Remove it. >> >> NAK. I started working on PXA MMC driver

Re: [U-Boot] [PATCH v2 00/32] spi: DM_SPI migration timeout, remainder(2)

2018-11-27 Thread Marek Vasut
On 11/27/2018 06:51 AM, Jagan Teki wrote: > On Mon, Nov 26, 2018 at 12:48 PM Peng Fan wrote: >> >> Hi Jagan, >> >> Just have a quick question here. >> >> After dropping non-DM code, for SPL use non-DM code should switch to SPL_DM >> and use SPL OF CONTROL? > > Here are the options, that we

Re: [U-Boot] [PATCH v2 00/32] spi: DM_SPI migration timeout, remainder(2)

2018-11-27 Thread Jagan Teki
On Mon, Nov 26, 2018 at 12:48 PM Peng Fan wrote: > > Hi Jagan, > > Just have a quick question here. > > After dropping non-DM code, for SPL use non-DM code should switch to SPL_DM > and use SPL OF CONTROL? Here are the options, that we dealt based on the size constraints 1) try to use DM_SPL

[U-Boot] [PATCH v2] tools: env: support skip leading zero of env

2018-11-27 Thread zqb-all
Signed-off-by: zqb-all --- v2: fix all "env = environment.data" and "env = default_environment" tools/env/fw_env.c | 46 -- 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index a5d7595..60742b6

Re: [U-Boot] [PATCH V3 3/6] mmc: tmio: Keep generating clock when clock are enabled

2018-11-27 Thread Marek Vasut
On 11/27/2018 04:43 AM, Masahiro Yamada wrote: > On Wed, Nov 14, 2018 at 8:44 AM Marek Vasut wrote: >> >> The TMIO core has a feature where it can automatically disable clock output >> when the bus is not in use. While this is useful, it also interferes with >> switching the bus to 1.8V and other

Re: [U-Boot] [PATCH 4/9] ARM: socfpga: Bundle U-Boot fitImage into SFP on Arria10

2018-11-27 Thread Marek Vasut
On 11/27/2018 10:00 AM, Chee, Tien Fong wrote: > On Mon, 2018-11-26 at 12:22 +0100, Marek Vasut wrote: >> On 11/26/2018 11:30 AM, Chee, Tien Fong wrote: >>> >>> On Fri, 2018-11-23 at 13:40 +0100, Marek Vasut wrote: On 11/23/2018 10:54 AM, Chee, Tien Fong wrote: > > > On Wed,

Re: [U-Boot] [PATCH V3 1/6] mmc: tmio: Switch to clock framework

2018-11-27 Thread Marek Vasut
On 11/27/2018 04:45 AM, Masahiro Yamada wrote: > On Tue, Nov 27, 2018 at 6:35 AM Marek Vasut wrote: >> >> On 11/14/2018 12:40 AM, Marek Vasut wrote: >>> Switch the driver to using clk_get_rate()/clk_set_rate() instead of >>> caching the mclk frequency in it's private data. This is required on >>>

Re: [U-Boot] [PATCH] ARM: rmobile: Convert to bootm_size

2018-11-27 Thread Marek Vasut
On 11/27/2018 08:03 AM, Simon Goldschmidt wrote: > On Tue, Nov 27, 2018 at 1:11 AM Marek Vasut wrote: >> >> Convert all Renesas R-Car boards to bootm_size of 256 MiB and drop both >> fdt_high and initrd_high. This change implies that the FDT and initrd >> will always be copied into the first 256

  1   2   >