Re: [U-Boot] [UBOOT PATCH] clk: zynqmp: Fixed the same if/else part error reported by coverity

2018-06-26 Thread Michal Simek
On 27.6.2018 07:14, Vipul Kumar wrote: > This patch fixed the same if/else part error by adding the required > source select on the basis of is_pre_src check. > > Signed-off-by: Vipul Kumar > --- > drivers/clk/clk_zynqmp.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff -

[U-Boot] [PATCH] imx: imx7d-sdb: Add DM QSPI support

2018-06-26 Thread Ye Li
On iMX7D SabreSD board, the QSPI has pins conflict with EPDC (default). To use QSPI, users have to rework the board (de-populate R388-R391, R396-R399 populate R392-R395, R299, R300). So we add new DTS file and new defconfig dedicated for QSPI. Other changes to support the DM QSPI: - Add QSPI node

[U-Boot] [PATCH 1/2] imx: imx6sx-sdb: Enable DM QSPI driver

2018-06-26 Thread Ye Li
To support DM QSPI driver - Add spi0 and spi1 alias for qspi1 and qspi2. - Modify n25q256a@0 and n25q256a@1 compatible string to "spi-flash" - Enable DM SPI/QSPI relavent configurations - Remove iomux settings of qspi2 in board codes which is not needed for DM driver. - Add sf default setti

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

2018-06-26 Thread Jagan Teki
On Tue, Jun 26, 2018 at 3:05 AM, Tom Rini wrote: > On Tue, Jun 26, 2018 at 12:19:03AM +0530, Jagan Teki wrote: > >> Hi Tom, >> >> Please pull this PR. >> >> thanks, >> Jagan. >> >> The following changes since commit 77b5ba5d2b94c5b028991c82782493f64bd4f392: >> >> Merge branch 'master' of git://g

[U-Boot] [PATCH 2/2] imx: imx6sx-sabreauto: convert to use DM QSPI driver

2018-06-26 Thread Ye Li
To support DM QSPI driver: - Modify n25q256a@0 and n25q256a@1 compatible string to "spi-flash" - Enable DM SPI and DM SPI FLASH configurations - Remove iomux settings of qspi1 in board codes which is not needed for DM driver. Signed-off-by: Ye Li --- arch/arm/dts/imx6sx-sabreauto.dts

Re: [U-Boot] [UBOOT PATCH v3 3/3] spi: xilinx_spi: Added support to read JEDEC-id twice at the boot time

2018-06-26 Thread Jagan Teki
On Mon, Jun 25, 2018 at 4:06 PM, Vipul Kumar wrote: > Hi Jagan, > >> -Original Message- >> From: Jagan Teki [mailto:jagannadh.t...@gmail.com] >> Sent: Monday, June 25, 2018 3:47 PM >> To: Vipul Kumar >> Cc: U-Boot Mailing List ; Michal Simek >> >> Subject: Re: [U-Boot] [UBOOT PATCH v3 3/

Re: [U-Boot] [PATCH v3] drivers: spi: migrate cf_spi to DM

2018-06-26 Thread Jagan Teki
On Tue, Jun 26, 2018 at 10:28 PM, Angelo Dureghello wrote: > This patch adds DM support to cf_spi.c. > > How to use/test it: > > 1) enable the following options, > > CONFIG_DM_SPI > CONFIG_DM_SPI_FLASH > > 2) add similar code into your board.c file > > U_BOOT_DEVICE(coldfire_spi) = { > .na

Re: [U-Boot] [PATCH 5/5] net: sandbox-raw: Allow interface to be specified by index

2018-06-26 Thread Joe Hershberger
On Wed, Jun 27, 2018 at 12:55 AM, Heinrich Schuchardt wrote: > On 06/27/2018 06:58 AM, Joe Hershberger wrote: >> Hi Heinrich, >> >> On Tue, Jun 26, 2018 at 8:15 PM, Heinrich Schuchardt >> wrote: >>> On 06/26/2018 11:19 PM, Joe Hershberger wrote: With systemd stable interface names, eth0 wil

Re: [U-Boot] [PATCH 5/5] net: sandbox-raw: Allow interface to be specified by index

2018-06-26 Thread Heinrich Schuchardt
On 06/27/2018 06:58 AM, Joe Hershberger wrote: > Hi Heinrich, > > On Tue, Jun 26, 2018 at 8:15 PM, Heinrich Schuchardt > wrote: >> On 06/26/2018 11:19 PM, Joe Hershberger wrote: >>> With systemd stable interface names, eth0 will almost never exist. >>> Instead of using that name in the sandbox.d

Re: [U-Boot] [PATCH] x86: Add scsi command to coreboot and qemu

2018-06-26 Thread Bin Meng
On Wed, Jun 27, 2018 at 7:18 AM, Simon Glass wrote: > On 26 June 2018 at 04:58, Bin Meng wrote: >> This adds the scsi command to coreboot and qemu, to be in consistent >> with other x86 targets. >> >> Signed-off-by: Bin Meng >> --- >> >> arch/x86/cpu/coreboot/Kconfig | 1 + >> arch/x86/cpu/qemu

[U-Boot] [UBOOT PATCH] clk: zynqmp: Fixed the same if/else part error reported by coverity

2018-06-26 Thread Vipul Kumar
This patch fixed the same if/else part error by adding the required source select on the basis of is_pre_src check. Signed-off-by: Vipul Kumar --- drivers/clk/clk_zynqmp.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk_zynqmp.c b/drivers/clk/clk_zynqmp.

Re: [U-Boot] [PATCH 5/5] net: sandbox-raw: Allow interface to be specified by index

2018-06-26 Thread Joe Hershberger
Hi Heinrich, On Tue, Jun 26, 2018 at 8:15 PM, Heinrich Schuchardt wrote: > On 06/26/2018 11:19 PM, Joe Hershberger wrote: >> With systemd stable interface names, eth0 will almost never exist. >> Instead of using that name in the sandbox.dts, use index 2 (the first >> interface after "lo"). Enumer

Re: [U-Boot] [PATCH 5/5] net: sandbox-raw: Allow interface to be specified by index

2018-06-26 Thread Simon Glass
Hi Joe, On 26 June 2018 at 16:31, Joe Hershberger wrote: > On Tue, Jun 26, 2018 at 6:18 PM, Simon Glass wrote: >> Hi Joe, >> >> On 26 June 2018 at 14:19, Joe Hershberger wrote: >>> With systemd stable interface names, eth0 will almost never exist. >>> Instead of using that name in the sandbox.d

Re: [U-Boot] [U-Boot, v4, 11/21] efi_loader: Introduce ms abi vararg helpers

2018-06-26 Thread Bin Meng
Hi Alex, On Tue, Jun 26, 2018 at 7:18 PM, Alexander Graf wrote: > On 06/26/2018 03:51 AM, Bin Meng wrote: >> >> Hi Alex, >> >> On Tue, Jun 26, 2018 at 12:47 AM, Alexander Graf wrote: >>> >>> On 06/23/2018 10:37 AM, Bin Meng wrote: Hi Alex, On Thu, Jun 21, 2018 at 11:13 PM, Al

Re: [U-Boot] [PATCH] rsa: Support LibreSSL in rsa-sign.c

2018-06-26 Thread Jonathan Gray
On Tue, Jun 26, 2018 at 07:49:47AM +0200, parazyd wrote: > This commit will allow rsa-sign.c to be compiled when LibreSSL is used > instead of OpenSSL. It isn't clear what version of LibreSSL you are using but this is wrong. The latest LibreSSL has RSA_get0_key(), OPENSSL_init_ssl() and EVP_MD_CT

Re: [U-Boot] [PATCH] power: pmic: Let PFUZE3000 see all 256 registers

2018-06-26 Thread Fabio Estevam
Hi Stefano, Could you please consider this one for 2018.07? Thanks On Wed, Apr 25, 2018 at 2:06 PM, Trent Piepho wrote: > The PFUZE3000 uses registers addresses up to 0xff. > > The DM pfuze100 driver supports both pfuze100 and pfuze3000. Allow it > to use the device type to return the correct

Re: [U-Boot] [PATCH 5/5] net: sandbox-raw: Allow interface to be specified by index

2018-06-26 Thread Heinrich Schuchardt
On 06/26/2018 11:19 PM, Joe Hershberger wrote: > With systemd stable interface names, eth0 will almost never exist. > Instead of using that name in the sandbox.dts, use index 2 (the first > interface after "lo"). Enumerate the interfaces on the system to choose > a valid interace name. > > Signed-

[U-Boot] [PATCH 2/2] arm: timer: sunxi: add Allwinner timer erratum workaround

2018-06-26 Thread Andre Przywara
The Allwinner A64 SoCs suffers from an arch timer implementation erratum, where sometimes the lower 11 bits of the counter value erroneously become all 0's or all 1's [1]. This leads to sudden jumps, both forwards and backwards, with the latter one often showing weird behaviour. Port the workaround

[U-Boot] [PATCH 1/2] arm: timer: factor out FSL arch timer erratum workaround

2018-06-26 Thread Andre Przywara
At the moment we have the workaround for the Freescale arch timer erratum A-008585 merged into the generic timer_read_counter() routine. Split those two up, so that we can add other errata workaround more easily. Also add an explaining comment on the way. Signed-off-by: Andre Przywara --- arch/a

[U-Boot] [PATCH 0/2] sunxi: Fix MMC driver crashes

2018-06-26 Thread Andre Przywara
There were recent reports about MMC operations failing very often on boards with the Allwinner A64 SoC. Investigations pointed to a time issue, and indeed a recent patch [1] introduced frequent arch timer reads to the Allwinner MMC driver. Reverting this patch made the problems go away, but also hu

Re: [U-Boot] [PATCH 3/5] net: sandbox: Convert sandbox mock eth driver to livetree

2018-06-26 Thread Joe Hershberger
On Tue, Jun 26, 2018 at 6:28 PM, Simon Glass wrote: > Hi Joe, > > On 26 June 2018 at 16:25, Joe Hershberger wrote: >> Hi Simon, >> >> On Tue, Jun 26, 2018 at 6:18 PM, Simon Glass wrote: >>> Hi Joe, >>> >>> On 26 June 2018 at 14:19, Joe Hershberger wrote: Use the dev_ functions to access DT

Re: [U-Boot] Pine64 problems with GPT partitions

2018-06-26 Thread André Przywara
Hi, On 06/26/2018 04:09 PM, Peter Robinson wrote: >> On 26/06/18 15:52, Alexander Graf wrote: >>> On 06/26/2018 04:39 PM, Andre Przywara wrote: Hi Guillaume, On 26/06/18 15:18, guillaume.gar...@free.fr wrote: > Hi Andre, > > You are the maintainer of Pine64 in U-Boot, so

Re: [U-Boot] [PATCH v4 2/6] net: sun8i-emac: fix printing NULL character

2018-06-26 Thread Joe Hershberger
On Tue, Jun 26, 2018 at 6:54 AM, Lothar Felten wrote: > If the variant is not set and therefore NULL, do not attempt to print > the variant. > > Signed-off-by: Lothar Felten Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https:

Re: [U-Boot] [PATCH 5/5] net: sandbox-raw: Allow interface to be specified by index

2018-06-26 Thread Joe Hershberger
On Tue, Jun 26, 2018 at 6:18 PM, Simon Glass wrote: > Hi Joe, > > On 26 June 2018 at 14:19, Joe Hershberger wrote: >> With systemd stable interface names, eth0 will almost never exist. >> Instead of using that name in the sandbox.dts, use index 2 (the first >> interface after "lo"). Enumerate the

Re: [U-Boot] [PATCH 3/5] net: sandbox: Convert sandbox mock eth driver to livetree

2018-06-26 Thread Simon Glass
Hi Joe, On 26 June 2018 at 16:25, Joe Hershberger wrote: > Hi Simon, > > On Tue, Jun 26, 2018 at 6:18 PM, Simon Glass wrote: >> Hi Joe, >> >> On 26 June 2018 at 14:19, Joe Hershberger wrote: >>> Use the dev_ functions to access DT properties. >>> >>> Also correct the reading of the fake MAC add

Re: [U-Boot] [PATCH 4/5] net: sandbox-raw: Convert raw eth driver to livetree

2018-06-26 Thread Joe Hershberger
On Tue, Jun 26, 2018 at 6:18 PM, Simon Glass wrote: > Hi Joe, > > On 26 June 2018 at 14:19, Joe Hershberger wrote: >> Signed-off-by: Joe Hershberger >> --- >> >> drivers/net/sandbox-raw.c | 24 +--- >> 1 file changed, 13 insertions(+), 11 deletions(-) > > Reviewed-by: Simon

Re: [U-Boot] [PATCH 3/5] net: sandbox: Convert sandbox mock eth driver to livetree

2018-06-26 Thread Joe Hershberger
Hi Simon, On Tue, Jun 26, 2018 at 6:18 PM, Simon Glass wrote: > Hi Joe, > > On 26 June 2018 at 14:19, Joe Hershberger wrote: >> Use the dev_ functions to access DT properties. >> >> Also correct the reading of the fake MAC address. The format from the DT >> is u32s, so to accurately read the MAC

Re: [U-Boot] [PATCH v3 1/4] core: Add functions to set properties in live-tree

2018-06-26 Thread Simon Glass
On 26 June 2018 at 00:46, Mario Six wrote: > Implement a set of functions to manipulate properties in a live device > tree: > > * ofnode_write_prop() to set generic properties of a node > * ofnode_write_string() to set string properties of a node > * ofnode_set_enabled() to either enable or disabl

Re: [U-Boot] [PATCH v3 2/6] soc: qualcomm: Add Shared Memory Manager driver

2018-06-26 Thread Simon Glass
On 26 June 2018 at 04:20, Ramon Fried wrote: > The Shared Memory Manager driver implements an interface for allocating > and accessing items in the memory area shared among all of the > processors in a Qualcomm platform. > > Adapted from the Linux driver (4.17) > > Changes from the original Linux

Re: [U-Boot] [PATCH v3 5/6] test: list: Add tests for hexdump.c

2018-06-26 Thread Simon Glass
On 26 June 2018 at 05:28, Mario Six wrote: > > Add tests for the hex2bin, bin2hex, and hex_to_bin functions, which were > recently added to U-Boot. > > Signed-off-by: Mario Six > > --- > > v2 -> v3: > New in v3 > > --- > test/Makefile | 1 + > test/lib/Makefile | 5 +++ > test/lib/hexdum

Re: [U-Boot] [PATCH v3 4/6] test: Add ut_asserteq_mem

2018-06-26 Thread Simon Glass
On 26 June 2018 at 04:28, Mario Six wrote: > Add a unit test assert-method, which compares two given memory areas for > byte-wise equality. > > Signed-off-by: Mario Six > > --- > > v2 -> v3: > New in v3 > > --- > include/test/ut.h | 18 ++ > 1 file changed, 18 insertions(+) Revi

Re: [U-Boot] [PATCH 4/5] net: sandbox-raw: Convert raw eth driver to livetree

2018-06-26 Thread Simon Glass
Hi Joe, On 26 June 2018 at 14:19, Joe Hershberger wrote: > Signed-off-by: Joe Hershberger > --- > > drivers/net/sandbox-raw.c | 24 +--- > 1 file changed, 13 insertions(+), 11 deletions(-) Reviewed-by: Simon Glass > > diff --git a/drivers/net/sandbox-raw.c b/drivers/net/s

Re: [U-Boot] [PATCH v2 1/6] dm: SMEM (Shared memory) uclass

2018-06-26 Thread Simon Glass
HI Ramon, On 26 June 2018 at 04:15, Ramon Fried wrote: > > > On Tue, Jun 26, 2018 at 6:59 AM Simon Glass wrote: >> >> Hi Ramon, >> >> On 21 June 2018 at 20:11, Ramon Fried wrote: >> > This is a uclass for Shared memory manager drivers. >> > >> > A Shared Memory Manager driver implements an inte

Re: [U-Boot] [PATCH v3 6/6] cmd: Add osd commands

2018-06-26 Thread Simon Glass
On 26 June 2018 at 04:28, Mario Six wrote: > Add command to query information from and write text to on-screen > display (OSD) devices. > > Signed-off-by: Mario Six > > --- > > v2 -> v3: > * Fixed style violations > * Moved gdsys legacy OSD cmds to their own file > * Made sure allocated buffer is

Re: [U-Boot] [PATCH 3/5] net: sandbox: Convert sandbox mock eth driver to livetree

2018-06-26 Thread Simon Glass
Hi Joe, On 26 June 2018 at 14:19, Joe Hershberger wrote: > Use the dev_ functions to access DT properties. > > Also correct the reading of the fake MAC address. The format from the DT > is u32s, so to accurately read the MAC from the DT, we need to cast each > value to a u8. > > Signed-off-by: Jo

Re: [U-Boot] [PATCH] x86: Add scsi command to coreboot and qemu

2018-06-26 Thread Simon Glass
On 26 June 2018 at 04:58, Bin Meng wrote: > This adds the scsi command to coreboot and qemu, to be in consistent > with other x86 targets. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/coreboot/Kconfig | 1 + > arch/x86/cpu/qemu/Kconfig | 1 + > 2 files changed, 2 insertions(+) Reviewe

Re: [U-Boot] [PATCH] rsa: Support LibreSSL in rsa-sign.c

2018-06-26 Thread Simon Glass
+Tom On 25 June 2018 at 23:49, parazyd wrote: > This commit will allow rsa-sign.c to be compiled when LibreSSL is used > instead of OpenSSL. I think it is better to describe the problem/motivation and the change that is being made: E.g. At present rsa-sign.c cannot be built with LibreSSL. Adjus

Re: [U-Boot] [PATCH 1/5] sandbox: eth-raw: Correct valid socket test in send/recv

2018-06-26 Thread Simon Glass
On 26 June 2018 at 14:19, Joe Hershberger wrote: > In open, the socket is correctly checked to be -1 in the error case. > In send and recv, we checked for 0, but that is a valid socket number. > > Correct this by checking for -1 as a bad socket everywhere. > > Signed-off-by: Joe Hershberger > ---

Re: [U-Boot] [PATCH v3 3/6] video_osd: Add osd sandbox driver and tests

2018-06-26 Thread Simon Glass
On 26 June 2018 at 05:28, Mario Six wrote: > Add sandbox driver and tests for the new OSD uclass. > > Signed-off-by: Mario Six > > --- > > v2 -> v3: > * Fixed style violations > * Removed sandbox_osd_get_mem from the uclass and moved it into the > driver > > v1 -> v2: > New in v2 > > --- > arc

Re: [U-Boot] [PATCH 5/5] net: sandbox-raw: Allow interface to be specified by index

2018-06-26 Thread Simon Glass
Hi Joe, On 26 June 2018 at 14:19, Joe Hershberger wrote: > With systemd stable interface names, eth0 will almost never exist. > Instead of using that name in the sandbox.dts, use index 2 (the first > interface after "lo"). Enumerate the interfaces on the system to choose > a valid interace name.

Re: [U-Boot] [PATCH 2/5] net: Correct comment in Kconfig

2018-06-26 Thread Simon Glass
On 26 June 2018 at 14:19, Joe Hershberger wrote: > Signed-off-by: Joe Hershberger > --- > > drivers/net/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de https://list

Re: [U-Boot] [PATCH v3 3/4] core: Add dev_{disable,enable}_by_path

2018-06-26 Thread Simon Glass
On 26 June 2018 at 00:46, Mario Six wrote: > We cannot use device structures to disable devices, since getting > them with the API functions would bind and activate the device, which > would fail if the underlying device does not exist. > > --- > > Hence, add a function to disable devices by path

Re: [U-Boot] [PATCH] cmd: fastboot: Validate user input

2018-06-26 Thread Simon Glass
Hi Sam, On 26 June 2018 at 10:20, Sam Protsenko wrote: > In case when user provides '-' as USB controller index, like this: > > => fastboot - > > data abort occurs in strcmp() function in do_fastboot(), here: > > if (!strcmp(argv[1], "udp")) > > That's because argv[1] is NULL when user ty

[U-Boot] [PATCH v4 6/6] test: smem: add basic smem test

2018-06-26 Thread Ramon Fried
Add basic smem sandbox testing. Signed-off-by: Ramon Fried --- Tom, this patch depends on https://patchwork.ozlabs.org/patch/932965/ Changes in v4: - Fixed typo in function name. Changes in v3: - Adapt to smem_get_free_space() new interface in series 3. Changes in v2: None test/dm/Makefile

[U-Boot] [PATCH v4 0/6] Qualcomm SMEM driver

2018-06-26 Thread Ramon Fried
This patchset introduces Qualcomm's shared memory manager. In U-boot context, it will allow reading board specific information (IE. RAM address, RAM size) that was prepopulated by the SBL. As part of the patchset a new uclass id is introduced, UCLASS_SMEM. Changes in v4: - Fixed typo in function

[U-Boot] [PATCH v4 4/6] dts: db820c: added smem nodes

2018-06-26 Thread Ramon Fried
Added necessary nodes for Qualcomm smem driver. Signed-off-by: Ramon Fried Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/dts/dragonboard820c-uboot.dtsi | 4 arch/arm/dts/dragonboard820c.dts| 16 2 files changed

[U-Boot] [PATCH v4 5/6] drivers: smem: sandbox

2018-06-26 Thread Ramon Fried
Add Sandbox driver for SMEM. mostly stub operations. Signed-off-by: Ramon Fried --- Changes in v4: None Changes in v3: None Changes in v2: None arch/sandbox/dts/test.dts | 4 configs/sandbox64_defconfig | 2 ++ configs/sandbox_defconfig | 2 ++ drivers/smem/Kconfig| 9

[U-Boot] [PATCH v4 3/6] dts: db410c: added smem nodes

2018-06-26 Thread Ramon Fried
Added necessary nodes for Qualcomm smem driver. Signed-off-by: Ramon Fried Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/dts/dragonboard410c-uboot.dtsi | 5 + arch/arm/dts/dragonboard410c.dts| 16 2 files change

[U-Boot] [PATCH v4 1/6] dm: SMEM (Shared memory) uclass

2018-06-26 Thread Ramon Fried
This is a uclass for Shared memory manager drivers. A Shared Memory Manager driver implements an interface for allocating and accessing items in the memory area shared among all of the processors. Signed-off-by: Ramon Fried Reviewed-by: Simon Glass Reviewed-by: Philipp Tomsich --- Changes i

[U-Boot] [PATCH v4 2/6] soc: qualcomm: Add Shared Memory Manager driver

2018-06-26 Thread Ramon Fried
The Shared Memory Manager driver implements an interface for allocating and accessing items in the memory area shared among all of the processors in a Qualcomm platform. Adapted from the Linux driver (4.17) Changes from the original Linux driver: * Removed HW spinlock mechanism, which is irreleva

[U-Boot] [PATCH 2/2] armv8: ls1046ardb: Add falcon mode for for QSPI boot

2018-06-26 Thread York Sun
A new defconfig is introduced to support SPL boot from QSPI NOR flash. This is to support falcon mode for faster booting into Linux. Signed-off-by: York Sun --- .../arm/cpu/armv8/fsl-layerscape/doc/README.falcon | 10 arch/arm/cpu/armv8/fsl-layerscape/spl.c| 3 + board/freescal

[U-Boot] [PATCH 1/2] armv8: layerscape: spl: Initialize QSPI AHB for QSPI boot

2018-06-26 Thread York Sun
To get full access of QSPI space, initialize AHB interface. Signed-off-by: York Sun --- arch/arm/cpu/armv8/fsl-layerscape/spl.c| 4 arch/arm/include/asm/arch-fsl-layerscape/soc.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/spl.c b/arch/

[U-Boot] [PATCH] armv8: layerscape: Enabled I-cache for SPL boot

2018-06-26 Thread York Sun
Enable I-cache for SPL boot to boost performance. Earlier MMU was enabled only for LS2080A and has since been dropped by commit f539c8a4a7a5 ("armv8: ls2080a: Drop early MMU for SPL build"). Signed-off-by: York Sun --- arch/arm/cpu/armv8/fsl-layerscape/spl.c | 1 + 1 file changed, 1 insertion(+)

Re: [U-Boot] sandbox: Net: No ethernet found.

2018-06-26 Thread Joe Hershberger
Hey Guys, On Tue, Jun 19, 2018 at 5:03 PM, Simon Glass wrote: > +Joe > > On 15 June 2018 at 00:10, Heinrich Schuchardt wrote: >> Hello Simon, >> >> when I run sandbox_defconfig I always get >> Net: No ethernet found. >> >> The dm command shows no driver attached to uclass 21: eth. Why are the

[U-Boot] [PATCH 0/5] sandbox: net: Fix sandbox eth drivers

2018-06-26 Thread Joe Hershberger
It seems as sandbox moved to livetree these drivers were not updated. Heinrich suggested correctly that at this point we should be enumerating network interface names, not hard-coding eth0. Also, there were a few bugs that needed fixing. Joe Hershberger (5): sandbox: eth-raw: Correct valid sock

[U-Boot] [PATCH 3/5] net: sandbox: Convert sandbox mock eth driver to livetree

2018-06-26 Thread Joe Hershberger
Use the dev_ functions to access DT properties. Also correct the reading of the fake MAC address. The format from the DT is u32s, so to accurately read the MAC from the DT, we need to cast each value to a u8. Signed-off-by: Joe Hershberger --- drivers/net/sandbox.c | 15 +++ 1 file

[U-Boot] [PATCH 1/5] sandbox: eth-raw: Correct valid socket test in send/recv

2018-06-26 Thread Joe Hershberger
In open, the socket is correctly checked to be -1 in the error case. In send and recv, we checked for 0, but that is a valid socket number. Correct this by checking for -1 as a bad socket everywhere. Signed-off-by: Joe Hershberger --- arch/sandbox/cpu/eth-raw-os.c | 4 ++-- 1 file changed, 2 i

[U-Boot] [PATCH 5/5] net: sandbox-raw: Allow interface to be specified by index

2018-06-26 Thread Joe Hershberger
With systemd stable interface names, eth0 will almost never exist. Instead of using that name in the sandbox.dts, use index 2 (the first interface after "lo"). Enumerate the interfaces on the system to choose a valid interace name. Signed-off-by: Joe Hershberger --- arch/sandbox/cpu/eth-raw-os.

[U-Boot] [PATCH 2/5] net: Correct comment in Kconfig

2018-06-26 Thread Joe Hershberger
Signed-off-by: Joe Hershberger --- drivers/net/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index e88f056d84..5f26a0004a 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -8,7 +8,7 @@ config DM_ETH Ena

[U-Boot] [PATCH 4/5] net: sandbox-raw: Convert raw eth driver to livetree

2018-06-26 Thread Joe Hershberger
Signed-off-by: Joe Hershberger --- drivers/net/sandbox-raw.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/net/sandbox-raw.c b/drivers/net/sandbox-raw.c index 3f8020f629..f835a6a7f3 100644 --- a/drivers/net/sandbox-raw.c +++ b/drivers/net/

[U-Boot] [PATCH] spi_flash: add a bunch of winbond flashes to id-table

2018-06-26 Thread Hannes Schmelzer
This commit adds the following flashes to the id-table - W25Q16JV - W25Q32JV - W25Q64JV - W25Q128JV - W25Q256JV Signed-off-by: Hannes Schmelzer --- drivers/mtd/spi/spi_flash_ids.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi/spi_flash_ids.c b/drivers/mtd/spi/spi_fl

Re: [U-Boot] [PATCH 1/1] dwc2 USB controller hangs with lan78xx

2018-06-26 Thread andrew thomas
On 06/26/2018 05:34 AM, Alexander Graf wrote: On 06/21/2018 10:37 AM, Peter Robinson wrote: On Mon, Jun 18, 2018 at 7:56 PM, Andrew Thomas wrote: This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3

Re: [U-Boot] [PATCH 1/1] dwc2 USB controller hangs with lan78xx

2018-06-26 Thread andrew thomas
On 06/26/2018 04:36 AM, Alexander Graf wrote: On 06/18/2018 08:56 PM, Andrew Thomas wrote: This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+. When the host attempts to receive a packet, but a pa

[U-Boot] [PATCH v2] spl: Kconfig: SPL_LOAD_FIT_ADDRESS to Kconfig

2018-06-26 Thread Ibai Erkiaga
Create a new KConfig entry to define FIT image position for SPL RAM mode. Signed-off-by: Ibai Erkiaga --- Changes in v2: -Converted zynqmp and dra7xx_evm defconfig files Kconfig | 7 +++ common/spl/spl_ram.c | 4 co

[U-Boot] [PATCH 4/6] bootcount: Configure length limit for I2C bootcount

2018-06-26 Thread Sebastian Reichel
From: Denis Zalevskiy Bootcount driver should verify size against the maximum available space. New configuration parameter adds this capability and keeps backward compatibility by providing default value. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- drivers/bootcount/Kc

[U-Boot] [PATCH 6/6] board: ge: Store bootcount in EEPROM on PPD and Bx50v3

2018-06-26 Thread Sebastian Reichel
From: Denis Zalevskiy u-boot's ext3/4 write/modify functionality sometimes corrupts filesystem in the case if it requires recovery (e.g. after unexpected shutdown) and we want to avoid the only filesystem modification we have - bootcounter writing. So, bootcounter will be stored in the EEPROM whe

[U-Boot] [PATCH 5/6] board: ge: Move VPD reading to the vpd_reader

2018-06-26 Thread Sebastian Reichel
From: Denis Zalevskiy Merge functionality duplicated in bx50v3 and mx53ppd: the logic is the same except that process_vpd is called at different phases. Also read_vpd could end up in error, so there is no VPD data in this case - it shouldn't be processed. Signed-off-by: Denis Zalevskiy Signed-o

[U-Boot] [PATCH 2/6] board: ge: Move VPD EEPROM configuration to the defconfig

2018-06-26 Thread Sebastian Reichel
From: Denis Zalevskiy Use standard configuration logic to define EEPROM constants. Names are based on VPD_EEPROM_ prefix because EEPROM_ is already used by i2c_eeprom driver. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/Kconfig | 2 ++ board/ge/bx50

[U-Boot] [PATCH 3/6] bootcount: i2c: Add bus switching to the I2C bootcount driver

2018-06-26 Thread Sebastian Reichel
From: Denis Zalevskiy If there is an I2C mux, current bus should be switched before manipulating with I2C. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- drivers/bootcount/Kconfig | 15 ++- drivers/bootcount/bootcount_i2c.c | 70 +++

[U-Boot] [PATCH 1/6] board: ge: Remove EEPROM bus param from read_vpd()

2018-06-26 Thread Sebastian Reichel
From: Denis Zalevskiy The bus is statically defined, so remove redundant parameters from read_vpd() for PPD and Bx50v3. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 6 +++--- board/ge/mx53ppd/mx53ppd.c | 6 +++--- 2 files changed, 6 insertio

[U-Boot] [PATCH 0/6] GE: Move from ext4 to eeprom bootcounter

2018-06-26 Thread Sebastian Reichel
Writing to ext4 from U-Boot is dangerous in case of inconsistent filesystem state (i.e. due to power-loss). The current U-Boot code can modify the filesystem, so that it is no longer usable by Linux after fsck. This patchset avoids writing to the partition on GE devices by moving the boot counter

[U-Boot] [PATCH v3 6/6] test: smem: add basic smem test

2018-06-26 Thread Ramon Fried
Add basic smem sandbox testing. Signed-off-by: Ramon Fried Reviewed-by: Simon Glass --- Tom, this patch depends on https://patchwork.ozlabs.org/patch/932965/ Changes in v3: - Adapt to smem_get_free_space() new interface in series 3. Changes in v2: None test/dm/Makefile | 1 + test/dm/smem.

[U-Boot] [PATCH v3 5/6] drivers: smem: sandbox

2018-06-26 Thread Ramon Fried
Add Sandbox driver for SMEM. mostly stub operations. Signed-off-by: Ramon Fried Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/sandbox/dts/test.dts | 4 configs/sandbox64_defconfig | 2 ++ configs/sandbox_defconfig | 2 ++ drivers/smem/Kconfig|

[U-Boot] [PATCH v3 0/6] Qualcomm SMEM driver

2018-06-26 Thread Ramon Fried
This patchset introduces Qualcomm's shared memory manager. In U-boot context, it will allow reading board specific information (IE. RAM address, RAM size) that was prepopulated by the SBL. As part of the patchset a new uclass id is introduced, UCLASS_SMEM. Changes in v3: (As suggested by Simon Gl

[U-Boot] [PATCH v3 3/6] dts: db410c: added smem nodes

2018-06-26 Thread Ramon Fried
Added necessary nodes for Qualcomm smem driver. Signed-off-by: Ramon Fried Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/dts/dragonboard410c-uboot.dtsi | 5 + arch/arm/dts/dragonboard410c.dts| 16 2 files changed, 21 insertions(+)

[U-Boot] [PATCH v3 4/6] dts: db820c: added smem nodes

2018-06-26 Thread Ramon Fried
Added necessary nodes for Qualcomm smem driver. Signed-off-by: Ramon Fried Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/dts/dragonboard820c-uboot.dtsi | 4 arch/arm/dts/dragonboard820c.dts| 16 2 files changed, 20 insertions(+)

[U-Boot] [PATCH v3 2/6] soc: qualcomm: Add Shared Memory Manager driver

2018-06-26 Thread Ramon Fried
The Shared Memory Manager driver implements an interface for allocating and accessing items in the memory area shared among all of the processors in a Qualcomm platform. Adapted from the Linux driver (4.17) Changes from the original Linux driver: * Removed HW spinlock mechanism, which is irreleva

[U-Boot] [PATCH v3 1/6] dm: SMEM (Shared memory) uclass

2018-06-26 Thread Ramon Fried
This is a uclass for Shared memory manager drivers. A Shared Memory Manager driver implements an interface for allocating and accessing items in the memory area shared among all of the processors. Signed-off-by: Ramon Fried Reviewed-by: Simon Glass Reviewed-by: Philipp Tomsich --- Changes i

Re: [U-Boot] [PATCH v2 1/6] dm: SMEM (Shared memory) uclass

2018-06-26 Thread Ramon Fried
On Tue, Jun 26, 2018 at 6:59 AM Simon Glass wrote: > Hi Ramon, > > On 21 June 2018 at 20:11, Ramon Fried wrote: > > This is a uclass for Shared memory manager drivers. > > > > A Shared Memory Manager driver implements an interface for allocating > > and accessing items in the memory area shared

[U-Boot] [PATCH 2/2] spl: nor: Skip CONFIG_SYS_FDT_BASE if not defined

2018-06-26 Thread York Sun
If FIT image is used, CONFIG_SYS_FDT_BASE is not needed. Signed-off-by: York Sun --- common/spl/spl_nor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c index b919fff..969e319 100644 --- a/common/spl/spl_nor.c +++ b/common/spl/sp

[U-Boot] [PATCH 1/2] spl: nor: Add FIT support

2018-06-26 Thread York Sun
Add support of loading FIT image from NOR flash. Signed-off-by: York Sun --- common/spl/spl_nor.c | 42 -- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c index bb6194f..b919fff 100644 --- a/common

[U-Boot] [PATCH] env: Simplify Makefile using $(SPL_TPL_)

2018-06-26 Thread York Sun
Add Kconfig options SPL_ENV_* and TPL_ENV_* and simplify Makefile. This allows SPL/TPL image has different environment setting from full feature U-Boot. Signed-off-by: York Sun --- env/Kconfig | 115 +++ env/Makefile | 40 ++--

[U-Boot] [PATCH v3] drivers: spi: migrate cf_spi to DM

2018-06-26 Thread Angelo Dureghello
This patch adds DM support to cf_spi.c. How to use/test it: 1) enable the following options, CONFIG_DM_SPI CONFIG_DM_SPI_FLASH 2) add similar code into your board.c file U_BOOT_DEVICE(coldfire_spi) = { .name = "spi_coldfire", .platdata = &mcf_spi_plat, }; --- Changes from v1:

[U-Boot] [PATCH] spl: mmc: Skip RAW mode ARGS sectors if not defined

2018-06-26 Thread York Sun
RAW mode ARGS sector doesn't have to be used for all falcon boot. Skip loading ARGS sectors if not defined. Signed-off-by: York Sun --- common/spl/spl_mmc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index db5be3d..0b2f059

[U-Boot] [PATCH] armv8: ls1046ardb: ls1046aqds: Move SPL macros to defconfig

2018-06-26 Thread York Sun
Instead of defining Kconfig macros in header file, move them to defconfig files. Signed-off-by: York Sun --- configs/ls1046aqds_sdcard_ifc_defconfig | 8 configs/ls1046aqds_sdcard_qspi_defconfig| 8 configs/ls1046ardb_emmc_defconfig | 8 c

[U-Boot] [PATCH] cmd: fastboot: Validate user input

2018-06-26 Thread Sam Protsenko
In case when user provides '-' as USB controller index, like this: => fastboot - data abort occurs in strcmp() function in do_fastboot(), here: if (!strcmp(argv[1], "udp")) That's because argv[1] is NULL when user types in the '-', and null pointer dereference occurs in strcmp() (which

Re: [U-Boot] [PATCH 1/1] dwc2 USB controller hangs with lan78xx

2018-06-26 Thread Peter Robinson
On Tue, Jun 26, 2018 at 4:55 PM, Alexander Graf wrote: > On 06/26/2018 02:47 PM, Peter Robinson wrote: > > This bug is the combination of dwc2 USB controller and lan78xx > USB ethernet controller, which is the combination in use on > the Raspberry Pi Model 3 B+. > > When th

Re: [U-Boot] [U-Boot, v4, 2/2] test/py: add test for whitelist of variables while importing environment

2018-06-26 Thread Stephen Warren
On 06/26/2018 06:41 AM, Quentin Schulz wrote: Hi all, On Wed, Jun 13, 2018 at 01:02:06PM -0600, Stephen Warren wrote: On 06/13/2018 12:53 PM, Quentin Schulz wrote: Hi Tom, On Wed, Jun 13, 2018 at 11:43:32AM -0400, Tom Rini wrote: On Mon, Jun 04, 2018 at 11:47:30AM +0200, Quentin Schulz wrote

Re: [U-Boot] [PATCH 1/1] dwc2 USB controller hangs with lan78xx

2018-06-26 Thread Alexander Graf
On 06/26/2018 02:47 PM, Peter Robinson wrote: This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+. When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller r

Re: [U-Boot] [PATCH] fw_printenv: Don't bail out directly after one env read error

2018-06-26 Thread Joe Hershberger
On Tue, Jun 26, 2018 at 4:37 AM, Ioan-Adrian Ratiu wrote: > From: Joe Hershberger > > When using a redundant environment a read error should simply mean to > not use that copy instead of giving up completely. The other copy may > be just fine. > > Signed-off-by: Joe Hershberger > Signed-off-by:

Re: [U-Boot] Pine64 problems with GPT partitions

2018-06-26 Thread Peter Robinson
> On 26/06/18 15:52, Alexander Graf wrote: >> On 06/26/2018 04:39 PM, Andre Przywara wrote: >>> Hi Guillaume, >>> >>> On 26/06/18 15:18, guillaume.gar...@free.fr wrote: Hi Andre, You are the maintainer of Pine64 in U-Boot, so I want to let you know that Pine64 has problems to ac

Re: [U-Boot] Pine64 problems with GPT partitions

2018-06-26 Thread Andre Przywara
Hi, On 26/06/18 15:52, Alexander Graf wrote: > On 06/26/2018 04:39 PM, Andre Przywara wrote: >> Hi Guillaume, >> >> On 26/06/18 15:18, guillaume.gar...@free.fr wrote: >>> Hi Andre, >>> >>> You are the maintainer of Pine64 in U-Boot, so I want to let you know >>> that Pine64 has problems to access

Re: [U-Boot] Pine64 problems with GPT partitions

2018-06-26 Thread Alexander Graf
On 06/26/2018 04:39 PM, Andre Przywara wrote: Hi Guillaume, On 26/06/18 15:18, guillaume.gar...@free.fr wrote: Hi Andre, You are the maintainer of Pine64 in U-Boot, so I want to let you know that Pine64 has problems to access GPT partitions, whereas MBR partitions seem to be OK. Is that wit

Re: [U-Boot] [U-Boot, v4, 2/2] test/py: add test for whitelist of variables while importing environment

2018-06-26 Thread Tom Rini
On Tue, Jun 26, 2018 at 02:41:40PM +0200, Quentin Schulz wrote: > Hi all, > > On Wed, Jun 13, 2018 at 01:02:06PM -0600, Stephen Warren wrote: > > On 06/13/2018 12:53 PM, Quentin Schulz wrote: > > > Hi Tom, > > > > > > On Wed, Jun 13, 2018 at 11:43:32AM -0400, Tom Rini wrote: > > > > On Mon, Jun 0

Re: [U-Boot] [PATCH v2 1/6] dm: SMEM (Shared memory) uclass

2018-06-26 Thread Ramon Fried
On June 26, 2018 9:39:55 AM GMT+03:00, "Dr. Philipp Tomsich" wrote: > >> On 22 Jun 2018, at 04:11, Ramon Fried wrote: >> >> This is a uclass for Shared memory manager drivers. >> >> A Shared Memory Manager driver implements an interface for allocating >> and accessing items in the memory area

Re: [U-Boot] Pine64 problems with GPT partitions

2018-06-26 Thread Andre Przywara
Hi Guillaume, On 26/06/18 15:18, guillaume.gar...@free.fr wrote: > > Hi Andre, > > You are the maintainer of Pine64 in U-Boot, so I want to let you know that > Pine64 has problems to access GPT partitions, whereas MBR partitions seem to > be OK. Is that with the latest U-Boot? In general GPT

Re: [U-Boot] [PATCH 1/2] net: mv88e61xx: add configuration for RGMII delay

2018-06-26 Thread Joe Hershberger
On Tue, Jun 26, 2018 at 5:34 AM, Chris Packham wrote: > On Tue, Jun 26, 2018 at 6:10 AM Joe Hershberger > wrote: >> >> On Mon, Jun 25, 2018 at 5:34 AM, Chris Packham >> wrote: >> > Some hardware designs connect a CPU MAC directly to the RGMII interface >> > of a mv88e61xx device. On such devic

[U-Boot] Pine64 problems with GPT partitions

2018-06-26 Thread guillaume . gardet
Hi Andre, You are the maintainer of Pine64 in U-Boot, so I want to let you know that Pine64 has problems to access GPT partitions, whereas MBR partitions seem to be OK. There is a bug report from openSUSE here with additional informations: https://bugzilla.opensuse.org/show_bug.cgi?id=1098550

[U-Boot] Thoughts on EFI, CONFIG_LOADADDR and kernel_addr_r

2018-06-26 Thread Kristian Amlie
I have a question about CONFIG_LOADADDR: Given that several configuration settings have moved to Kconfig files recently, is it expected that the same thing will happen to CONFIG_LOADADDR? And following that: Does it mean that we should start retiring other environment variable names that are named

[U-Boot] [PATCH] spi: omap3: fix claim/release bus within DM

2018-06-26 Thread Hannes Schmelzer
The claim/release bus function must not reset the whole SPI core because settings regarding wordlen, clock-frequency and so on made by set_wordlen, set_mode, set_speed get lost with this action. Resulting in a non-functional SPI. Without DM the failure didn't came up since after the spi_reset with

  1   2   >