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

2018-05-08 Thread Stefan Roese
On 08.05.2018 08:58, Alex Kiernan wrote: >>> +static inline void bootcount_inc(void) >>> +{ >>> + unsigned long bootcount = bootcount_load(); >>> + >>> + if (gd->flags & GD_FLG_SPL_INIT) { >>> + bootcount_store(++bootcount); >>> + return; >>> + } >>>

Re: [U-Boot] u-boot 2018 SPI SPL

2018-05-08 Thread Mehmet Ali İPİN
Dear Fabio, Hello, ROM code starts execution of the SPL code in SPI flash; I traced and see that It jumped to MMC drivers/mmc.c file, as default DM_MMC is not defined, then SPL is calling empty weak "board_mmc_init and cpu_mmc_init" functions. I also defined DM_MMC in defconfig file, but g

Re: [U-Boot] [RFC PATCH v2 16/20] fastboot: net: Add NAND support

2018-05-08 Thread Joe Hershberger
On Tue, May 8, 2018 at 1:53 AM, Jocelyn Bohr wrote: > On Mon, Apr 30, 2018 at 1:33 AM Alex Kiernan wrote: > >> Add NAND support to fastboot UDP flash/erase commands >> >> Signed-off-by: Alex Kiernan >> --- >> >> Changes in v2: None >> >> net/fastboot.c | 17 ++--- >> 1 file changed,

[U-Boot] [GIT PULL] Please pull u-boot-mmc master

2018-05-08 Thread Jaehoon Chung
Dear Tom, Could you pull these patches to u-boot/master? If there is a problem, let me know, plz. The following changes since commit a43d46a73cb2c40481791cb292b8eb0b5a80d55e: arm: v7R: Add support for enabling caches (2018-05-07 15:53:29 -0400) are available in the Git repository at: git:/

Re: [U-Boot] [U-Boot, v2, 1/2] rockchip: enable SYS_NS16550 for all SoCs by default

2018-05-08 Thread Jonathan Gray
On Thu, Apr 26, 2018 at 09:05:37AM +0200, Philipp Tomsich wrote: > > All rockchip SoCs can use ns16550 driver, enable it for all > > and set SYS_NS16550_MEM32 for all SoCs. > > > > Version-changes: 2 > > - use imply instead of select > > > > Signed-off-by: Kever Yang > > Acked-by: Philipp Tomsic

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

2018-05-08 Thread Lukasz Majewski
Hi Alex, Stefan, > On 08.05.2018 08:58, Alex Kiernan wrote: > > > > >>> +static inline void bootcount_inc(void) > >>> +{ > >>> + unsigned long bootcount = bootcount_load(); > >>> + > >>> + if (gd->flags & GD_FLG_SPL_INIT) { > >>> + bootcount_store(++bootcount); > >>> +

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

2018-05-08 Thread Lukasz Majewski
On Tue, 08 May 2018 05:15:13 + Alex Kiernan wrote: > On Wed, May 2, 2018 at 3:11 PM Lukasz Majewski wrote: > > > Those two functions can be used to provide easy bootcount > > management. > > > Signed-off-by: Lukasz Majewski > > > Reviewed-by: Tom Rini > > Reviewed-by: Stefan Roese

Re: [U-Boot] [U-Boot, v2, 1/2] rockchip: enable SYS_NS16550 for all SoCs by default

2018-05-08 Thread Dr. Philipp Tomsich
Kever, Could you analyse and provide (against master) a patch for this? We’ll need to catch any left-overs from your changes at the start of the cycle before we try to merge any of the more invasive changes you have in-flight. Thanks, Philipp. > On 8 May 2018, at 09:30, Jonathan Gray wrote: >

Re: [U-Boot] rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC

2018-05-08 Thread Jonathan Gray
On Thu, Apr 26, 2018 at 09:05:33AM +0200, Philipp Tomsich wrote: > > The generic ehci-driver (ehci-generic.c) will try to enable the clocks > > listed in the DTSI. If this fails (e.g. due to clk_enable not being > > implemented in a driver and -ENOSYS being returned by the clk-uclass), > > the driv

Re: [U-Boot] uboot support to Allwinner bananapi zero

2018-05-08 Thread Chen-Yu Tsai
On Tue, May 8, 2018 at 2:33 PM, Jagan Teki wrote: > On Wed, Apr 11, 2018 at 8:15 PM, Jun Nie wrote: >> Hi Icenowy & Jagan, >> >> I see bananapi zero patch was posted and discussed in [1], but without >> further follow up. Maybe we can decide which name is more maintainable >> first, bananapi-*, B

Re: [U-Boot] rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC

2018-05-08 Thread Dr. Philipp Tomsich
Looks like the designware GMAC driver is trying to enable a clock and can’t deal with the -ENOENT. Could you try to see which clock it is requesting and add the necessary entries in the clock-enable function? If you have a patch, I’ll try to prioritise it, so we get these regressions cleaned up q

Re: [U-Boot] [PATCH 1/4] i2c: rcar_i2c: Remove the driver

2018-05-08 Thread Heiko Schocher
Hello Marek, Am 01.05.2018 um 09:03 schrieb Marek Vasut: Remove the rcar_i2c driver, since it's no longer used by any board and will be superseded by a DM and DT capable variant. Signed-off-by: Marek Vasut Cc: Heiko Schocher Cc: Nobuhiro Iwamatsu --- drivers/i2c/Makefile | 1 - driver

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

2018-05-08 Thread Alex Kiernan
On Tue, May 8, 2018 at 8:11 AM Stefan Roese wrote: > On 08.05.2018 08:58, Alex Kiernan wrote: > > >>> +static inline void bootcount_inc(void) > >>> +{ > >>> + unsigned long bootcount = bootcount_load(); > >>> + > >>> + if (gd->flags & GD_FLG_SPL_INIT) { > >>> + bootco

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

2018-05-08 Thread Alex Kiernan
On Tue, May 8, 2018 at 8:41 AM Lukasz Majewski wrote: > On Tue, 08 May 2018 05:15:13 + > Alex Kiernan wrote: > > On Wed, May 2, 2018 at 3:11 PM Lukasz Majewski wrote: > > > > > Those two functions can be used to provide easy bootcount > > > management. > > > > > Signed-off-by: Lukasz Majew

Re: [U-Boot] [RFC PATCH v2 16/20] fastboot: net: Add NAND support

2018-05-08 Thread Alex Kiernan
On Tue, May 8, 2018 at 8:20 AM Joe Hershberger wrote: > On Tue, May 8, 2018 at 1:53 AM, Jocelyn Bohr wrote: > > On Mon, Apr 30, 2018 at 1:33 AM Alex Kiernan wrote: > > > >> Add NAND support to fastboot UDP flash/erase commands > >> > >> Signed-off-by: Alex Kiernan > >> --- > >> > >> Changes in

Re: [U-Boot] [RFC PATCH v2 07/20] net: fastboot: Merge AOSP UDP fastboot

2018-05-08 Thread Alex Kiernan
On Thu, May 3, 2018 at 9:39 PM Joe Hershberger wrote: > On Mon, Apr 30, 2018 at 3:32 AM, Alex Kiernan wrote: > > +/** > > + * Constructs and sends a packet in response to received fastboot packet > > + * > > + * @param fb_headerHeader for response packet > > + * @param fastboot_da

Re: [U-Boot] [RFC PATCH v2 11/20] fastboot: net: Change 'continue' so it matches USB fastboot

2018-05-08 Thread Alex Kiernan
On Thu, May 3, 2018 at 9:58 PM Joe Hershberger wrote: > On Mon, Apr 30, 2018 at 3:32 AM, Alex Kiernan wrote: > > Change the behaviour of 'continue' so that we simply exit the fastboot > > server and leave the caller to decide what to do next. This matches > > the USB fastboot behaviour. > Good,

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

2018-05-08 Thread Lukasz Majewski
Hi Alex, > On Tue, May 8, 2018 at 8:41 AM Lukasz Majewski wrote: > > > On Tue, 08 May 2018 05:15:13 + > > Alex Kiernan wrote: > > > > On Wed, May 2, 2018 at 3:11 PM Lukasz Majewski > > > wrote: > > > > Those two functions can be used to provide easy bootcount > > > > management. > >

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

2018-05-08 Thread Alex Kiernan
On Tue, May 8, 2018 at 10:21 AM Lukasz Majewski wrote: > Hi Alex, > > On Tue, May 8, 2018 at 8:41 AM Lukasz Majewski wrote: > > > > > On Tue, 08 May 2018 05:15:13 + > > > Alex Kiernan wrote: > > > > > > On Wed, May 2, 2018 at 3:11 PM Lukasz Majewski > > > > wrote: > > > > > Those two func

[U-Boot] help on DM

2018-05-08 Thread Andy Tang
Hi Simon, I am working on enabling DM for sata driver. Previously sata was initialized by calling the functions ahci_init() and scsi_scan(). Now I plan to use driver/ata/sata_ceva.c as our sata driver. In board config file I enabled the following configs (dts was added properly): +CONFIG_DM_SCS

[U-Boot] [PATCH] rockchip: clk: rk3288: handle clk_enable requests for GMAC

2018-05-08 Thread Jonathan Gray
Since b0ba1e7e9d9b9441a18048ec67a3b3100c096975 (rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC) Ethernet no longer probes on RK3288. Add no-ops for GMAC clocks observed to be requested which match the clk_enable cases in RK3368 and RK3399. Signed-off-by: Jonathan Gray

Re: [U-Boot] [PATCH] rockchip: clk: rk3288: handle clk_enable requests for GMAC

2018-05-08 Thread Dr. Philipp Tomsich
> On 8 May 2018, at 11:49, Jonathan Gray wrote: > > Since b0ba1e7e9d9b9441a18048ec67a3b3100c096975 > (rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC) > Ethernet no longer probes on RK3288. > > Add no-ops for GMAC clocks observed to be requested which match the > clk_e

[U-Boot] [PATCH v3 2/2] zynqmp: zcu102: Add qspi driver support for ZynqMP zcu102 boards

2018-05-08 Thread Siva Durga Prasad Paladugu
This patch adds qspi driver support for all ZynqMP ZCU102 boards. Signed-off-by: Siva Durga Prasad Paladugu --- Changes for v3: - Changed as per latest changes in 1/2 Changes for v2: - Rebased on top of latest master and enabled qspi for all zcu102 boards. --- configs/xilinx_zynqmp_zcu102_rev

[U-Boot] [PATCH v3 1/2] spi: zynqmp_gqspi: Add support for ZynqMP qspi driver

2018-05-08 Thread Siva Durga Prasad Paladugu
This patch adds qspi driver support for ZynqMP SoC. This driver is responsible for communicating with qspi flash devices. Signed-off-by: Siva Durga Prasad Paladugu --- Changes for v3: - Renamed all macros, functions, files and configs as per comment - Used wait_for_bit wherever required - Removed

Re: [U-Boot] [PATCH 3/3] rockchip: fix incorrect detection of ram size

2018-05-08 Thread Dr. Philipp Tomsich
Marty, > On 8 May 2018, at 02:52, Marty E. Plummer wrote: > > On Mon, May 07, 2018 at 11:16:28AM +0200, Dr. Philipp Tomsich wrote: >> >>> On 7 May 2018, at 04:34, Marty E. Plummer wrote: >>> >>> On Mon, May 07, 2018 at 10:20:55AM +0800, Kever Yang wrote: Hi Marty, On 05/

Re: [U-Boot] [PATCH 3/3] rockchip: fix incorrect detection of ram size

2018-05-08 Thread Dr. Philipp Tomsich
Simon, Looks like we’d like to have a 64bit type for size in ‘struct ram_info’ (see below). Let us know what you think of the proposed change. Thanks, Philipp. > On 8 May 2018, at 12:21, Dr. Philipp Tomsich > wrote: > > Marty, > >> On 8 May 2018, at 02:52, Marty E. Plummer wrote: >> >> O

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

2018-05-08 Thread Lukasz Majewski
Hi Alex, > On Tue, May 8, 2018 at 10:21 AM Lukasz Majewski wrote: > > > Hi Alex, > > > > On Tue, May 8, 2018 at 8:41 AM Lukasz Majewski > > > wrote: > > > > On Tue, 08 May 2018 05:15:13 + > > > > Alex Kiernan wrote: > > > > > > > > On Wed, May 2, 2018 at 3:11 PM Lukasz Majewski >

Re: [U-Boot] [U-Boot, v2, 1/2] rockchip: enable SYS_NS16550 for all SoCs by default

2018-05-08 Thread Jonathan Gray
On Tue, May 08, 2018 at 09:41:32AM +0200, Dr. Philipp Tomsich wrote: > Kever, > > Could you analyse and provide (against master) a patch for this? > We???ll need to catch any left-overs from your changes at the start of the > cycle > before we try to merge any of the more invasive changes you hav

Re: [U-Boot] [linux-sunxi] Re: [PATCH v4 13/19] sunxi: DT: A64: update board .dts files from Linux

2018-05-08 Thread Jagan Teki
On Sun, Apr 1, 2018 at 8:11 AM, Chen-Yu Tsai wrote: > On Sun, Apr 1, 2018 at 9:28 AM, André Przywara wrote: >> On 30/03/18 05:25, Chen-Yu Tsai wrote: >> >> OK. So meanwhile I have something almost(TM) working: - drivers/clk/sunxi/clk-a64.c, which is a UCLASS_CLK implementation of >

[U-Boot] [PATCH 02/12] ARM: kirkwood: Add device-tree for dns325

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-dns325.dts | 63 + arch/arm/dts/kirkwood-dnskw.dtsi | 235 +++ configs/dns325_defconfig | 3 +- 3 files changed, 300 insertion

[U-Boot] [PATCH 03/12] ARM: kirkwood: Add device-tree for dockstar

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-dockstar.dts | 110 + configs/dockstar_defconfig | 3 +- 2 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 arch/arm

[U-Boot] [PATCH 01/12] ARM: add devicetree files for kirkwood SoC

2018-05-08 Thread Chris Packham
These files are taken verbatim from the Linux kernel 4.17 Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-6192.dtsi | 88 +++ arch/arm/dts/kirkwood-6281.dtsi | 90 +++ arch/arm/dts/kirkwood-98dx4122.dtsi | 53 arch/arm/dts/kirkwood.dtsi | 393

[U-Boot] [PATCH 00/12] kirkwood: device tree support

2018-05-08 Thread Chris Packham
This is an initial series to bring in the device tree files for kirkwood boards from Linux. All the patches are fairly mechanical matching up the device trees based on the defconfig name (and some educated guesses in a few places). Chris Packham (12): ARM: add devicetree files for kirkwood SoC

[U-Boot] [PATCH 06/12] ARM: kirkwood: Add device-tree for ib62x0

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-ib62x0.dts | 146 +++ configs/ib62x0_defconfig | 3 +- 2 files changed, 148 insertions(+), 1 deletion(-) create mode 100644 arch/arm/d

[U-Boot] [PATCH 12/12] ARM: kirkwood: Add device-tree for sheevaplug

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable device tree control in u-boot. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-sheevaplug-common.dtsi | 104 +++ arch/arm/dts/kirkwood-sheevaplug.dts | 42 configs/sheevaplug_defconfig | 3

[U-Boot] [PATCH 11/12] ARM: kirkwood: Add device-tree for pogo_e02

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-pogo_e02.dts | 132 + configs/pogo_e02_defconfig | 3 +- 2 files changed, 134 insertions(+), 1 deletion(-) create mode 100644 arch/arm

[U-Boot] [PATCH 04/12] ARM: kirkwood: Add device-tree for goflexhome

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-goflexnet.dts | 190 configs/goflexhome_defconfig| 3 +- 2 files changed, 192 insertions(+), 1 deletion(-) create mode 100644 arch/ar

[U-Boot] [PATCH 07/12] ARM: kirkwood: Add device-tree for iconnect

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-iconnect.dts | 195 + configs/iconnect_defconfig | 3 +- 2 files changed, 197 insertions(+), 1 deletion(-) create mode 100644 arch/arm

[U-Boot] [PATCH 05/12] ARM: kirkwood: Add device-tree for guruplug

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- .../arm/dts/kirkwood-guruplug-server-plus.dts | 133 ++ configs/guruplug_defconfig| 3 +- 2 files changed, 135 insertions(+), 1 deletion(-) create mode 1006

[U-Boot] [PATCH 08/12] ARM: kirkwood: Add device-tree for nas220

2018-05-08 Thread Chris Packham
Import the dts file from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-blackarmor-nas220.dts | 172 configs/nas220_defconfig| 3 +- 2 files changed, 174 insertions(+), 1 deletion(-) create mode 100644

[U-Boot] [PATCH 09/12] ARM: kirkwood: Add device-tree for nsa310s

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-nsa310.dts | 139 arch/arm/dts/kirkwood-nsa3x0-common.dtsi | 158 +++ configs/nsa310s_defconfig| 3 +- 3 f

[U-Boot] [PATCH 10/12] ARM: kirkwood: Add device-tree for openrd

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-openrd-base.dts | 39 +++ arch/arm/dts/kirkwood-openrd-client.dts | 73 + arch/arm/dts/kirkwood-openrd-ultimate.dts | 55 ++ arch/arm/dts/ki

[U-Boot] [PATCH] rockchip: set SYS_NS16550_MEM32 for all SoCs

2018-05-08 Thread Jonathan Gray
Add back part of patch send out as 'rockchip: enable SYS_NS16550 for all SoCs by default' that seems to have gotten lost when it got merged to set SYS_NS16550_MEM32. Allows serial output to work on tinker-rk3288 again after c3c0331db1fb7b1f4ff41e144fc04353b37c785c. Signed-off-by: Kever Yang Sign

Re: [U-Boot] [U-Boot, v2, 1/2] rockchip: enable SYS_NS16550 for all SoCs by default

2018-05-08 Thread Dr. Philipp Tomsich
Good catch. I had a few merge-conflicts when merging that series. That one might have gotten lost. > On 8 May 2018, at 12:31, Jonathan Gray wrote: > > On Tue, May 08, 2018 at 09:41:32AM +0200, Dr. Philipp Tomsich wrote: >> Kever, >> >> Could you analyse and provide (against master) a patch for

Re: [U-Boot] [PATCH 0/3] Enable mmc to write sparse images

2018-05-08 Thread Jassi Brar
On Fri, Apr 6, 2018 at 12:04 PM, wrote: > From: Jassi Brar > > Hi, > > Having capability to flash sparse images from mmc subsystem could be useful. > For example, non-android/fastboot platforms could leverage the concept. Or > some platforms that need to 'pull' updates (get images over tftp and

Re: [U-Boot] [RFC PATCH v2 00/20] Add fastboot UDP support

2018-05-08 Thread Jocelyn Bohr
On Wed, May 2, 2018 at 1:14 AM Alex Kiernan wrote: > On Wed, May 2, 2018 at 7:34 AM Jocelyn Bohr wrote: > > > Hi Alex, > > > I think this approach looks really good so far, and will make maintaining > both > > implementations easier going forward. I haven't looked at every change > here > > yet,

[U-Boot] [PATCH] tegra: nyan-big: Update CONFIG_SYS_TEXT to the default in README.chromium

2018-05-08 Thread Peter Robinson
To build u-boot on a Nyan Big Chromebook the docs outline adjusting the Tegra124 defined CONFIG_SYS_TEXT_BASE but this has since been moved to individual config files. We should have the default required for u-boot chain loading on the chromebook as the default CONFIG_SYS_TEXT_BASE and update the d

[U-Boot] [PATCH] lib/Kconfig: Mark OF_LIBFDT_OVERLAY as depending on OF_LIBFDT

2018-05-08 Thread Tom Rini
The overlay code is only useful when OF_LIBFDT is set, so mark it as depending on that first. Signed-off-by: Tom Rini --- lib/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Kconfig b/lib/Kconfig index 3fa1731a4951..1590f7afa402 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -286,

Re: [U-Boot] [linux-sunxi] Re: [PATCH v4 13/19] sunxi: DT: A64: update board .dts files from Linux

2018-05-08 Thread Andre Przywara
Hi, On 08/05/18 11:34, Jagan Teki wrote: > On Sun, Apr 1, 2018 at 8:11 AM, Chen-Yu Tsai wrote: >> On Sun, Apr 1, 2018 at 9:28 AM, André Przywara >> wrote: >>> On 30/03/18 05:25, Chen-Yu Tsai wrote: >>> >>> > OK. So meanwhile I have something almost(TM) working: > - drivers/clk/sunx

[U-Boot] [PATCH] net: Protect net_state from reentrant net_loop()

2018-05-08 Thread Leonid Iziumtsev
Global variable "net_state" is used in net_loop() state-machine. But it happens that some times the net_loop() can be called multiple times in the same call stack. For example when the netconsole is enabled and we print the message while some other net protocol is in action. Netconsole will overwri

Re: [U-Boot] [RFC PATCH v2 07/20] net: fastboot: Merge AOSP UDP fastboot

2018-05-08 Thread Joe Hershberger
On Tue, May 8, 2018 at 4:11 AM, Alex Kiernan wrote: > On Thu, May 3, 2018 at 9:39 PM Joe Hershberger > wrote: > >> On Mon, Apr 30, 2018 at 3:32 AM, Alex Kiernan > wrote: > > > >> > +/** >> > + * Constructs and sends a packet in response to received fastboot > packet >> > + * >> > + * @param fb_

Re: [U-Boot] [PATCH v2 2/2] cmd: Add dtimg command

2018-05-08 Thread Alex Deymo
Le jeu. 19 avr. 2018 à 22:52, Sam Protsenko a écrit : > dtimg command allows user to work with Android DTB/DTBO image format. > Such as, getting the address of desired DTB/DTBO file, printing the dump > of the image in U-Boot shell, etc. > > This command is needed to provide Android boot with new

Re: [U-Boot] [PATCH v2 1/2] common: Add support for Android DT image

2018-05-08 Thread Alex Deymo
Le jeu. 19 avr. 2018 à 22:52, Sam Protsenko a écrit : > Android documentation recommends new image format for storing DTB/DTBO > files: [1]. To support that format, two things should be done: > > 1. Add dt_table.h file from Android (BSD-3 relicensed version): [2]. >This header defines structu

Re: [U-Boot] [RFC PATCH v2 11/20] fastboot: net: Change 'continue' so it matches USB fastboot

2018-05-08 Thread Joe Hershberger
On Tue, May 8, 2018 at 4:20 AM, Alex Kiernan wrote: > On Thu, May 3, 2018 at 9:58 PM Joe Hershberger > wrote: > >> On Mon, Apr 30, 2018 at 3:32 AM, Alex Kiernan > wrote: >> > Change the behaviour of 'continue' so that we simply exit the fastboot >> > server and leave the caller to decide what to

[U-Boot] [PATCH v6 1/6] configs: apalis-tk1: fix boot failure using ext4 rootfs

2018-05-08 Thread Marcel Ziswiler
From: Sanchayan Maity Trying to boot from an ext4 rootfs fails due to us defaulting to ext3. While the downstream T20/T30 L4T kernel has issues with ext4 later TK1 L4T should work just fine with it. Hence enable ext4 for sdboot and usbboot on TK1. Signed-off-by: Sanchayan Maity Acked-by: Marcel

[U-Boot] [PATCH v6 6/6] apalis-tk1: fix pcie reset for reliable gigabit ethernet operation

2018-05-08 Thread Marcel Ziswiler
From: Marcel Ziswiler It turns out that the current PCIe reset implementation in the PCIe board init function is not quite working reliably due to PCIe reset timing violations. Fix this by overriding the tegra_pcie_board_port_reset() function. Also allow optionally bringing up the PCIe switch as

[U-Boot] [PATCH] Licenses/README: Update some style and add explicit license to the document

2018-05-08 Thread Tom Rini
- Add an SPDX license tag to the file, saying it's GPL-2.0. - From the Linux Kernel v4.17-rc4, import the "License identifier syntax" section as-is from Documentation/process/license-rules.rst and then change it to be clearer about examples from the Linux Kernel vs examples found in U-Boot, a

[U-Boot] [PATCH v6 3/6] power: as3722: fix ldo_get/set_enable for ldo index bigger than 7

2018-05-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Fix ldo_get_enable() and ldo_set_enable() functions for LDOs with an index > 7. Turns out there are actually two separate AS3722_LDO_CONTROL registers AS3722_LDO_CONTROL0 and AS3722_LDO_CONTROL1. Actually make use of both. While at it also actually use the enable parameter o

[U-Boot] [PATCH v6 0/6] fix apalis-tk1 pcie gigabit ethernet operation

2018-05-08 Thread Marcel Ziswiler
This series addresses a gigabit Ethernet reliability issue as observed on Apalis TK1 related to a PCIe reset timing violation. This series is available at http://git.toradex.com/cgit/u-boot-toradex.git/log/?h=for-next Changes in v6: - Use macro AS3722_LDO_CONTROL0_MAX_INDEX instead of the hard-

[U-Boot] [PATCH v6 5/6] power: as3722: add as3722_ldo_set_voltage signature to header file

2018-05-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Just like the already present as3722_sd_set_voltage() add the currently missing signature of the as3722_ldo_set_voltage() function to its header file. Signed-off-by: Marcel Ziswiler Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None

[U-Boot] [PATCH v6 4/6] pci: tegra: introduce weak tegra_pcie_board_port_reset() function

2018-05-08 Thread Marcel Ziswiler
From: Marcel Ziswiler Introduce a weak tegra_pcie_board_port_reset() function by default calling the existing tegra_pcie_port_reset() function. Additionally add a tegra_pcie_port_index_of_port() function to retrieve the specific PCIe port index if required. This allows overriding the PCIe port re

[U-Boot] [PATCH v6 2/6] apalis-tk1: add missing as3722 gpio0 configuration

2018-05-08 Thread Marcel Ziswiler
From: Marcel Ziswiler As the AS3722 GPIO0 is also a not connected on our Apalis TK1 module explicitly configure it to high-impedance as well. Signed-off-by: Marcel Ziswiler Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in

Re: [U-Boot] [PATCH] net: Protect net_state from reentrant net_loop()

2018-05-08 Thread Joe Hershberger
On Tue, May 8, 2018 at 8:55 AM, Leonid Iziumtsev wrote: > Global variable "net_state" is used in net_loop() state-machine. > But it happens that some times the net_loop() can be called > multiple times in the same call stack. For example when the > netconsole is enabled and we print the message wh

Re: [U-Boot] [PATCH] driver: net: fsl-mc: updated copyright info

2018-05-08 Thread York Sun
On 03/15/2018 02:07 AM, Yogesh Narayan Gaur wrote: > Updated copyright info for the issues reported after running > check-legal test. > > Signed-off-by: Yogesh Gaur > --- > Legally NXP and Freescale Semiconductor are same entity. Can you refresh this patch? It has conflict with Tom's recent chan

Re: [U-Boot] [RFC PATCH v2 07/20] net: fastboot: Merge AOSP UDP fastboot

2018-05-08 Thread Alex Kiernan
On Tue, May 8, 2018 at 4:24 PM Joe Hershberger wrote: > On Tue, May 8, 2018 at 4:11 AM, Alex Kiernan wrote: > > On Thu, May 3, 2018 at 9:39 PM Joe Hershberger > > wrote: > > > >> On Mon, Apr 30, 2018 at 3:32 AM, Alex Kiernan > > wrote: > > > > > > > >> > +/** > >> > + * Constructs and sends a

Re: [U-Boot] [RFC PATCH v2 16/20] fastboot: net: Add NAND support

2018-05-08 Thread Jocelyn Bohr
On Tue, May 8, 2018 at 2:09 AM Alex Kiernan wrote: > On Tue, May 8, 2018 at 8:20 AM Joe Hershberger > wrote: > > > On Tue, May 8, 2018 at 1:53 AM, Jocelyn Bohr wrote: > > > On Mon, Apr 30, 2018 at 1:33 AM Alex Kiernan > wrote: > > > > > >> Add NAND support to fastboot UDP flash/erase commands

Re: [U-Boot] [RFC PATCH v2 16/20] fastboot: net: Add NAND support

2018-05-08 Thread Jocelyn Bohr
On Thu, May 3, 2018 at 2:24 PM Joe Hershberger wrote: > On Mon, Apr 30, 2018 at 3:32 AM, Alex Kiernan > wrote: > > Add NAND support to fastboot UDP flash/erase commands > > > > Signed-off-by: Alex Kiernan > > Acked-by: Joe Hershberger > Reviewed-by: Jocelyn Bohr _

Re: [U-Boot] Appended DTB Android boot image support

2018-05-08 Thread Ramon Fried
On Fri, May 4, 2018, 10:38 PM Simon Glass wrote: > Hi, > > On 1 May 2018 at 04:52, Ramon Fried wrote: > > On Tue, May 1, 2018 at 12:20 PM, Alex Deymo wrote: > >> Hi Ramon, > >> > >> What "header_version" is the boot image you have? The > >> include/android_image.h in U-Boot is a little bit old

Re: [U-Boot] [U-Boot, 1/3] fastboot: sparse: remove redundant argument to write_sparse_image

2018-05-08 Thread Tom Rini
On Fri, Apr 06, 2018 at 12:04:52PM +0530, jassisinghb...@gmail.com wrote: > From: Jassi Brar > > 'sz' has no use for write_sparse_image, remove it simplifying the api. > > Signed-off-by: Jassi Brar Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot, v4, 1/3] dm: led: Support "default-state" property

2018-05-08 Thread Tom Rini
On Wed, Apr 11, 2018 at 11:16:27AM +0200, linux-kernel-...@beckhoff.com wrote: > From: Patrick Bruenn > > Add support for the device tree property "default-state". This feature > might be useful for LEDs indicating "power on" or similar states. > > Note: Even with this commit gpio-leds remain i

Re: [U-Boot] [U-Boot, 2/3] fastboot: sparse: make write_sparse_image useable for non-fastboot

2018-05-08 Thread Tom Rini
On Fri, Apr 06, 2018 at 12:05:09PM +0530, jassisinghb...@gmail.com wrote: > From: Jassi Brar > > write_sparse_image could be useful for non-fastboot users. > For ex a platform, without usb-device/fastboot support, could > get sparse images over tftp and write using the mmc command. > Or non-andr

Re: [U-Boot] clk: clk_stm32f: Use PLLSAIP as USB 48MHz clock

2018-05-08 Thread Tom Rini
On Wed, Apr 11, 2018 at 05:07:45PM +0200, Patrice Chotard wrote: > On all STM32F4 and F7 SoCs family (except STM32F429), PLLSAI > output P can be used as 48MHz clock source for USB and SDMMC. > > Signed-off-by: Patrice Chotard > Tested By: Bruno Herrera Applied to u-boot/master, thanks! --

Re: [U-Boot] [U-Boot, u-boot, 2/2] pinctrl: meson: Update pinmux with new Linux bindings

2018-05-08 Thread Tom Rini
On Wed, Apr 11, 2018 at 05:40:41PM +0200, Neil Armstrong wrote: > The pinctrl bindings has changed for Amlogic Meson SoCs since Linux 4.13, > update the pinctrl driver to take this in account. > > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.asc Descripti

Re: [U-Boot] [U-Boot, v4, 3/3] dm: led: add testcase for "default-state" property

2018-05-08 Thread Tom Rini
On Wed, Apr 11, 2018 at 11:16:29AM +0200, linux-kernel-...@beckhoff.com wrote: > From: Patrick Bruenn > > Add two more gpio-leds to sandbox test device tree with default-state > property set to "on"/"off". > Add dm_test_led_default_state() to check that these new LED's are set to > LEDST_ON and

Re: [U-Boot] [U-Boot, u-boot, 1/2] ARM64: meson: Sync DT and Bindings with Linux 4.16

2018-05-08 Thread Tom Rini
On Wed, Apr 11, 2018 at 05:40:40PM +0200, Neil Armstrong wrote: > Synchronize the Linux Device Tree for Amlogic Meson GX boards from Linux > 4.16.0. > > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot,3/3] mmc: support writing sparse images

2018-05-08 Thread Tom Rini
On Fri, Apr 06, 2018 at 12:05:24PM +0530, jassisinghb...@gmail.com wrote: > From: Jassi Brar > > Provide an alternate path for sparse-images to be > written to MMC. For example, via tftp on platforms > that don't support fastboot protocol. Or when an > image is to written at some offset, rather

Re: [U-Boot] mach-snapdragon: Fix UART clock flow

2018-05-08 Thread Tom Rini
On Tue, Apr 17, 2018 at 05:43:37PM +0300, Ramon Fried wrote: > UART clock enabling flow was wrong. > Changed the flow according to downstream implementation in LK. > > Signed-off-by: Ramon Fried This causes a warning on dragonboard410c: aarch64: + dragonboard410c +(dragonboard410c) clk_

Re: [U-Boot] [U-Boot, v4, 2/3] dm: led: auto probe() LEDs with "default-state"

2018-05-08 Thread Tom Rini
On Wed, Apr 11, 2018 at 11:16:28AM +0200, linux-kernel-...@beckhoff.com wrote: > From: Patrick Bruenn > > To avoid board specificy LED activation code, automatically > activate gpio-leds with "default-state" property during bind(). > > Signed-off-by: Patrick Bruenn Applied to u-boot/master, t

Re: [U-Boot] pci: intel: Add Intel FPGA PCIe controller driver

2018-05-08 Thread Tom Rini
On Fri, Apr 20, 2018 at 09:55:45PM +0800, Ley Foon Tan wrote: > Add PCIe driver for Intel FPGA PCIe IP. This driver operates the PCIe IP in > rootport mode only, the EP mode is not supported. The driver is tested > with the Intel e1000e NIC driver. > > Signed-off-by: Ley Foon Tan Applied to u-b

Re: [U-Boot] [U-Boot, RESEND, v1, 4/4] ARM: dts: stm32mp157: Add vrefbuf DT node

2018-05-08 Thread Tom Rini
On Thu, Apr 26, 2018 at 05:00:49PM +0200, Patrice Chotard wrote: > Add vrefbuf device tree node. This allows to get > a voltage reference for ADCs. > > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [U-Boot, RESEND, v1, 4/4] configs: stm32mp15_basic: Set regulator relative flags

2018-05-08 Thread Tom Rini
On Thu, Apr 26, 2018 at 05:13:12PM +0200, Patrice Chotard wrote: > Enable DM_REGULATOR_STPMU1 flag to activate regulator > driver for STM32MP15 SoC and CMD_REGULATOR flag to be > able to set/get regulator state int U-boot command line. > > Disable PMIC_CHILDREN as this flag is not needed in SPL >

Re: [U-Boot] [U-Boot,v2,u-boot] ARM: meson: rename GXBB to GX

2018-05-08 Thread Tom Rini
On Wed, Apr 11, 2018 at 05:13:45PM +0200, Neil Armstrong wrote: > Taking into account the Amlogic Family name starts with GX, including > the GXBB, GXL and GXM SoCs. > > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot, 1/2] gpio: atmel_pio4: add drive strength macros

2018-05-08 Thread Tom Rini
On Mon, Apr 23, 2018 at 10:59:49AM +0300, Eugen Hristev wrote: > From: Ludovic Desroches > > Macros for drive strength configuration were missing. > > Signed-off-by: Ludovic Desroches Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [U-Boot, 1/3] arm: dra76: fastboot: extend cpu type for getvar command

2018-05-08 Thread Tom Rini
On Wed, Apr 25, 2018 at 03:56:34PM -0500, Praneeth Bajjuri wrote: > 'commit dda0bd674481 ("arm: dra762: Add support for device package > identification")' > introduces ABZ and ACD package identification. > > This patch is to extend usage of "fastboot getvar cpu" for > DRA76x ABZ and ACD devices.

Re: [U-Boot] defconfig: at91-sama5d2_ptc_ek: remove unused SYS_EXTRA_OPTIONS

2018-05-08 Thread Tom Rini
On Wed, Apr 25, 2018 at 12:22:41PM +0300, Eugen Hristev wrote: > From: Ludovic Desroches > > Remove SYS_USE_NANDFLASH, SYS_USE_MMC as they are deprecated and > unused. > The board configurations already use CONFIG_SD_BOOT and > CONFIG_NAND_BOOT respectively. > > Signed-off-by: Ludovic Desroches

Re: [U-Boot] [U-Boot, RESEND, v1, 3/4] ARM: dts: stm32mp157c-ed1: Add regulator node

2018-05-08 Thread Tom Rini
On Thu, Apr 26, 2018 at 05:13:11PM +0200, Patrice Chotard wrote: > Add regulator nodes needed by stpmu1 regulator driver > Add vmmc-supply and vqmmc-supply regulator property for > sdmmc1 and sdmmc2. > > Signed-off-by: Christophe Kerello > Signed-off-by: Patrice Chotard Applied to u-boot/maste

Re: [U-Boot] [U-Boot, RESEND, v1, 3/4] configs: stm32mp15: Enable STM32_VREFBUF flag

2018-05-08 Thread Tom Rini
On Thu, Apr 26, 2018 at 05:00:48PM +0200, Patrice Chotard wrote: > From: Fabrice Gasnier > > Enable vrefbuf on stm32mp15, to be used by ADC. > > Signed-off-by: Fabrice Gasnier > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signatu

Re: [U-Boot] [U-Boot, 1/2] configs: TI: Enable FIT Library overlay support

2018-05-08 Thread Tom Rini
On Wed, Apr 25, 2018 at 04:03:23PM -0500, Praneeth Bajjuri wrote: > Enable the FDT library overlay support for all TI SOC family. > > Without this option, when Loading fdt from FIT image, the > following warning is seen. > > "config with overlays but CONFIG_OF_LIBFDT_OVERLAY not set". > > Signe

Re: [U-Boot] [U-Boot,2/2] env: ti: android: boot with FIT Image

2018-05-08 Thread Tom Rini
On Wed, Apr 25, 2018 at 04:03:24PM -0500, Praneeth Bajjuri wrote: > Boot android over emmc by default thru FIT image > > Signed-off-by: Praneeth Bajjuri > Suggested-by: Andrew F.Davis > Reviewed-by: Tom Rini > Reviewed-by: Sam Protsenko Applied to u-boot/master, thanks! -- Tom signature.

Re: [U-Boot] [U-Boot, 2/2] board: atmel: sama5d2_ptc_ek: update pin configuration for NAND

2018-05-08 Thread Tom Rini
On Mon, Apr 23, 2018 at 10:59:50AM +0300, Eugen Hristev wrote: > From: Ludovic Desroches > > The drive strength has to be set to medium for the NAND data lines. > With a low drive, we can get some data corruption. > > Signed-off-by: Ludovic Desroches Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, RESEND, v1, 2/2] ARM: dts: stm32mp157: Add SoC pwr regulator entry

2018-05-08 Thread Tom Rini
On Thu, Apr 26, 2018 at 04:45:19PM +0200, Patrice Chotard wrote: > Add SoC power regulator entry for reg11, reg18 and usb33 > regulator. > > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [U-Boot, RESEND, v1, 2/4] clk: stm32mp1: Add VREF clock gating

2018-05-08 Thread Tom Rini
On Thu, Apr 26, 2018 at 05:00:47PM +0200, Patrice Chotard wrote: > From: Fabrice Gasnier > > Add VREF clock gating, that may be used by STM32 VREFBUF regulator. > > Signed-off-by: Fabrice Gasnier > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signature.asc Desc

Re: [U-Boot] [U-Boot,v4] arm64: Add SMC and HVC commands

2018-05-08 Thread Tom Rini
On Fri, Apr 13, 2018 at 10:40:57AM +0300, Michalis Pappas wrote: > This patch adds smc and hvc commands, that allow issuing Secure Monitor > Calls and Hypervisor Calls conforming to the ARM SMC Calling Convention. > > Add Kconfig items to allow each command can be individually enabled. > > Signe

Re: [U-Boot] gpio: atmel_pio4: give a full configuration when muxing pins

2018-05-08 Thread Tom Rini
On Tue, Apr 24, 2018 at 10:16:01AM +0300, Eugen Hristev wrote: > From: Ludovic Desroches > > When a pin is muxed to a peripheral or as a GPIO, the only > configuration that can be set is the pullup. It is too restrictive > so this patch allows to give a full configuration. > > Signed-off-by: Lu

Re: [U-Boot] [U-Boot, RESEND, v1, 1/4] power: regulator: stpmu1: Introduce stpmu1 driver

2018-05-08 Thread Tom Rini
On Thu, Apr 26, 2018 at 05:13:09PM +0200, Patrice Chotard wrote: > From: Christophe Kerello > > Enable support for the regulator functions of the STPMU1X PMIC. The > driver implements get/set api for the various BUCKS and LDOs supported > by the PMIC device. This driver is controlled by a device

Re: [U-Boot] board: sama5d27_som1_ek: Fix the USB vbus power

2018-05-08 Thread Tom Rini
On Tue, Apr 24, 2018 at 02:36:28PM +0300, Eugen Hristev wrote: > According to the REVB schematic, fix the USB vbus power enable pin. > > Based on original work by Wenyou Yang > > Signed-off-by: Eugen Hristev Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] arm: controlcenterdc: Add spi-flash compatible strings

2018-05-08 Thread Tom Rini
On Thu, Apr 26, 2018 at 10:10:59AM +0200, Mario Six wrote: > Since kirkwook SPI was recently converted to DM, add compatible strings > to the SPI flash devices to make them work with the new driver. > > Signed-off-by: Mario Six Applied to u-boot/master, thanks! -- Tom signature.asc Descript

Re: [U-Boot] board: sama5d2_ptc_ek: adjust the smc timings of nand

2018-05-08 Thread Tom Rini
On Tue, Apr 24, 2018 at 10:43:53AM +0300, Eugen Hristev wrote: > To fix the issue of write the rootfs.ubi, adjust the smc timings > configuration of the nand controller. > > Based on original work by Wenyou Yang > > Signed-off-by: Eugen Hristev Applied to u-boot/master, thanks! -- Tom sign

Re: [U-Boot] configs: at91: sama5: updated mtdparts variable in bootargs

2018-05-08 Thread Tom Rini
On Tue, Apr 24, 2018 at 12:00:16PM +0300, Eugen Hristev wrote: > We have a new demo layout of our sama5 boards for the NAND Flash > memory. > According to this new layout, adjust the mtdparts variable in bootargs > to align with this, which is available at : > http://www.at91.com/linux4sam/bin/vie

Re: [U-Boot] [U-Boot,u-boot] adc: add Amlogic Meson SAR ADC driver

2018-05-08 Thread Tom Rini
On Mon, Apr 23, 2018 at 04:19:23PM +0200, Neil Armstrong wrote: > This patch adds the driver for the Amlogic Meson Successive Approximation > Register (SAR) A/D Converter based on the Linux IIO driver thanks to the > great work of Martin Blumenstingl. > The driver has been adapted to U-Boot and th

  1   2   >