[U-Boot] [RESEND PATCH v2 1/2] imx: mx7: fix potential overflow in imx_ddr_size()

2018-10-15 Thread Marcel Ziswiler
From: Marcel Ziswiler The imx_ddr_size() function may overflow as it is possible to kind of over provision the DDR controller. Fix this by capping it to 2 GB which is the maximum allowed size as per reference manual. Signed-off-by: Marcel Ziswiler Reviewed-by: Fabio Estevam --- Changes in v2

[U-Boot] [RESEND PATCH v2 2/2] colibri_imx7: prime get_ram_size() using imx_ddr_size()

2018-10-15 Thread Marcel Ziswiler
From: Fabio Estevam Rather than passing a hardcoded maxsize to the generic get_ram_size() function use the i.MX 7 specific imx_ddr_size() function, which extracts the memory size at runtime by reading the DDR controller registers. This is a purely cosmetic change as the generic get_ram_size() fu

Re: [U-Boot] [PATCH v3 07/13] net: ftgmac100: handle timeouts when transmitting

2018-10-15 Thread Cédric Le Goater
On 10/15/18 10:58 PM, Joe Hershberger wrote: > On Wed, Oct 10, 2018 at 6:48 AM Cédric Le Goater wrote: >> >> Signed-off-by: Cédric Le Goater >> --- >> drivers/net/ftgmac100.c | 18 ++ >> 1 file changed, 18 insertions(+) >> >> diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftg

[U-Boot] [PATCH 1/1] efi_loader: implement EFI_RESET_SHUTDOWN at boot time

2018-10-15 Thread Heinrich Schuchardt
Allow an EFI application to shut down the system. If EFI_RESET_SHUTDOWN is issued call do_poweroff(). Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_runtime.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runt

Re: [U-Boot] [PATCH v3 03/13] net: ftgmac100: convert to driver model

2018-10-15 Thread Cédric Le Goater
On 10/15/18 10:39 PM, Joe Hershberger wrote: > On Wed, Oct 10, 2018 at 6:45 AM Cédric Le Goater wrote: >> >> The driver is based on the previous one and the code is only adapted >> to fit the driver model. The support for the Faraday ftgmac100 >> controller is the same with MAC and MDIO bus suppor

[U-Boot] Please pull from u-boot-i2c

2018-10-15 Thread Heiko Schocher
Hello Tom, please pull from u-boot-i2c.git master The following changes since commit 3d5ced9e22d32112a20f9dc0f5fb1f22ef088079: Merge tag 'dm-9oct18' of git://git.denx.de/u-boot-dm (2018-10-10 13:35:17 -0400) are available in the Git repository at: git://git.denx.de/u-boot-i2c.git master

Re: [U-Boot] [PATCH] i2c: fix: Add support for the Arm's Versatile Express I2C controller

2018-10-15 Thread Heiko Schocher
Hello Heiko, Am 11.10.2018 um 07:26 schrieb Heiko Schocher: accidentially while fixing merge errors for patch: https://lists.denx.de/pipermail/u-boot/2018-September/342278.html missed to add files: MAINTAINERS drivers/i2c/Kconfig drivers/i2c/Makefile add them with this patch. Signed-off-by:

[U-Boot] [PATCH 2/3] arm: imx: include imx8image support

2018-10-15 Thread Peng Fan
When building i.MX8/8X board, use imx8image type. `-e $(CONFIG_SYS_TEXT_BASE)` is not needed, but no harm to keep it for i.MX8/8X Signed-off-by: Peng Fan --- arch/arm/mach-imx/Makefile | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-imx/Makef

[U-Boot] [PATCH 3/3] imx: imx8qxp_mek: update to build image in U-Boot

2018-10-15 Thread Peng Fan
Update README Add imximage.cfg Update defconfig to include imximage.cfg Signed-off-by: Peng Fan --- board/freescale/imx8qxp_mek/README | 41 ++-- board/freescale/imx8qxp_mek/imximage.cfg | 25 +++ configs/imx8qxp_mek_defconfig| 1 +

[U-Boot] [PATCH 1/3] tools: add i.MX8/8X image support

2018-10-15 Thread Peng Fan
i.MX8/8X bootable image type is container type. The bootable image, containers a container set which supports two container. The 1st container is for SECO firmware, the 2nd container needs to include scfw, m4_0/1 image, ACore images per your requirement. Signed-off-by: Peng Fan --- Note: This is

Re: [U-Boot] [PATCH 1/1] sandbox: dt: sandbox.dts set skip-localhost = <1>

2018-10-15 Thread Joe Hershberger
Hi Heinrich, On Mon, Oct 15, 2018 at 7:20 PM Heinrich Schuchardt wrote: > > On 10/15/2018 11:52 PM, Joe Hershberger wrote: > > On Sun, Oct 14, 2018 at 2:27 PM Heinrich Schuchardt > > wrote: > >> > >> The local interface is not usable for many network operations. It has been > >> disabled in all

Re: [U-Boot] [PATCH v3 1/1] efi_loader: PSCI reset and shutdown

2018-10-15 Thread Sumit Garg
On Mon, 15 Oct 2018 at 22:13, Heinrich Schuchardt wrote: > > When an operating system started via bootefi tries to reset or power off > this is done by calling the EFI runtime ResetSystem(). On most ARMv8 system > the actual reset relies on PSCI. Depending on whether the PSCI firmware > resides th

Re: [U-Boot] [PATCH v2 1/1] efi_loader: PSCI reset and shutdown

2018-10-15 Thread Sumit Garg
On Mon, 15 Oct 2018 at 22:00, Heinrich Schuchardt wrote: > > On 10/15/2018 09:34 AM, Sumit Garg wrote: > > On Sat, 13 Oct 2018 at 12:42, Heinrich Schuchardt > > wrote: > >> > >> When an operating system started via bootefi tries to reset or power off > >> this is done by calling the EFI runtime

[U-Boot] [PATCH v2] armv8: lx2160a: add eSDHC nodes

2018-10-15 Thread Yinbo Zhu
This patch is to add eSDHC nodes for lx2160a. Signed-off-by: Yinbo Zhu --- Change in v2: squash patch "add some minor fixes on esdhc node" to this patch arch/arm/dts/fsl-lx2160a-rdb.dts |8 arch/arm/dts/fsl-lx2160a.dtsi| 25 + 2 files c

Re: [U-Boot] [PATCH] riscv: dts: Sync to Linux Kernel ae350 dts.

2018-10-15 Thread Rick Chen
Bin Meng 於 2018年10月16日 週二 上午9:43寫道: > > Hi Rick, > > On Tue, Oct 16, 2018 at 9:25 AM Rick Chen wrote: > > > > Bin Meng 於 2018年10月8日 週一 下午1:49寫道: > > > > > > Hi Rick, > > > > > > On Mon, Oct 8, 2018 at 1:33 PM Andes wrote: > > > > > > > > From: Rick Chen > > > > > > > > Use same dts to boot U-B

Re: [U-Boot] [PATCH 2/2] riscv: dts: Add ae350_32.dts for 32 bit

2018-10-15 Thread Rick Chen
Bin Meng 於 2018年10月8日 週一 下午11:48寫道: > > Hi Rick, > > On Mon, Oct 8, 2018 at 1:37 PM Andes wrote: > > > > From: Rick Chen > > > > Add ae350_32.dts for 32 bit. And also rename > > ae350.dts to ae350_64.dts for 64 bit. > > > > Signed-off-by: Rick Chen > > Cc: Greentime Hu > > --- > > arch/riscv/

Re: [U-Boot] [PATCH] riscv: dts: Sync to Linux Kernel ae350 dts.

2018-10-15 Thread Bin Meng
Hi Rick, On Tue, Oct 16, 2018 at 9:25 AM Rick Chen wrote: > > Bin Meng 於 2018年10月8日 週一 下午1:49寫道: > > > > Hi Rick, > > > > On Mon, Oct 8, 2018 at 1:33 PM Andes wrote: > > > > > > From: Rick Chen > > > > > > Use same dts to boot U-Boot and Kernel. > > > > > > Following are the change notes : > >

Re: [U-Boot] [PATCH 1/2] riscv: configs: Separate ax25-ae350 for 32/64 bit.

2018-10-15 Thread Rick Chen
Bin Meng 於 2018年10月8日 週一 下午11:51寫道: > > Hi Rick, > > On Mon, Oct 8, 2018 at 1:36 PM Andes wrote: > > > > From: Rick Chen > > > > Separate ax25-ae350 from one to two for > > 32 and 64 bit individually. And also select > > different dts for 32 and 64 bit. > > > > Signed-off-by: Rick Chen > > Cc:

Re: [U-Boot] [PATCH] riscv: dts: Sync to Linux Kernel ae350 dts.

2018-10-15 Thread Rick Chen
Bin Meng 於 2018年10月8日 週一 下午1:49寫道: > > Hi Rick, > > On Mon, Oct 8, 2018 at 1:33 PM Andes wrote: > > > > From: Rick Chen > > > > Use same dts to boot U-Boot and Kernel. > > > > Following are the change notes : > > 1 Remove early printk bootargs. > > 2 Timer frequency are changed to 60MHz. > > 3 A

Re: [U-Boot] Please pull u-boot-dm

2018-10-15 Thread Tom Rini
On Tue, Oct 16, 2018 at 07:43:21AM +0800, Bin Meng wrote: > Hi Stephen, > > On Tue, Oct 16, 2018 at 6:43 AM Stephen Warren wrote: > > > > On 10/15/18 3:53 PM, Stephen Warren wrote: > > > On 10/15/18 2:17 PM, Simon Glass wrote: > > >> Hi Tom, > > >> > > >> The following changes since commit > > >>

[U-Boot] [ANN] U-Boot v2018.11-rc2 released

2018-10-15 Thread Tom Rini
Hey all, So it's release day and I've put up v2018.11-rc2, I've updated git and the tarballs are also up now. Thanks again to having signed tags, between -rc1 and -rc2 we have (including but not limited to): - The SPI-NAND changes have fully been integrated now. - ARM Versatile Express updates -

Re: [U-Boot] [GIT PULL] Xilinx changes for v2018.11-rc2

2018-10-15 Thread Tom Rini
On Mon, Oct 15, 2018 at 04:25:01PM +0200, Michal Simek wrote: > Hi Tom, > > please consider to pull these patches to your tree. > Buildmain for xilinx boards looks good and travis is not done yet but > link is here (I have seen several timeouts recently but it was there > even on clear mainline).

Re: [U-Boot] [PATCH 1/1] sandbox: dt: sandbox.dts set skip-localhost = <1>

2018-10-15 Thread Heinrich Schuchardt
On 10/15/2018 11:52 PM, Joe Hershberger wrote: > On Sun, Oct 14, 2018 at 2:27 PM Heinrich Schuchardt > wrote: >> >> The local interface is not usable for many network operations. It has been >> disabled in all sandbox device trees except sandbox.dts. Let's disable it >> here too. >> >> 'bootefi s

Re: [U-Boot] Please pull u-boot-dm

2018-10-15 Thread Bin Meng
Hi Stephen, On Tue, Oct 16, 2018 at 6:43 AM Stephen Warren wrote: > > On 10/15/18 3:53 PM, Stephen Warren wrote: > > On 10/15/18 2:17 PM, Simon Glass wrote: > >> Hi Tom, > >> > >> The following changes since commit > >> 6e7a186dc5d50f563e224e9ae7be70defff7ee0d: > >> > >>Merge tag 'arc-more-up

Re: [U-Boot] Please pull u-boot-dm

2018-10-15 Thread Stephen Warren
On 10/15/18 3:53 PM, Stephen Warren wrote: On 10/15/18 2:17 PM, Simon Glass wrote: Hi Tom, The following changes since commit 6e7a186dc5d50f563e224e9ae7be70defff7ee0d:    Merge tag 'arc-more-updates-for-2018.11-rc2-2' of git://git.denx.de/u-boot-arc (2018-10-15 07:20:07 -0400) are available

Re: [U-Boot] [PATCH 1/2] net: mvpp2: fix polarity of PHY reset signal

2018-10-15 Thread Joe Hershberger
On Mon, Oct 15, 2018 at 5:18 AM Baruch Siach wrote: > > The dm_gpio_set_value() call sets the logical level of the GPIO signal. > That is, it takes the GPIO_ACTIVE_{LOW,HIGH} property into account. The > driver needs to assert the reset, and then deassert it. Not the other > way around. > > Cc: St

Re: [U-Boot] [PATCH 2/2] net: mvpp2: increase PHY reset pulse

2018-10-15 Thread Joe Hershberger
On Mon, Oct 15, 2018 at 5:17 AM Baruch Siach wrote: > > The default Linux PHY reset delay is 10ms. This is also the requirement > for Marvell 88E151x PHYs, which are likely to be used with this Ethernet > MAC. > > Cc: Stefan Chulski > Signed-off-by: Baruch Siach Acked-by: Joe Hershberger _

Re: [U-Boot] [PATCH 26/27] virtio: net: Support non-legacy device

2018-10-15 Thread Joe Hershberger
On Sun, Sep 23, 2018 at 8:58 AM Bin Meng wrote: > > For v1.0 compliant device, it always assumes the member 'num_buffers' > exists in the struct virtio_net_hdr while the legacy driver only > presented 'num_buffers' when VIRTIO_NET_F_MRG_RXBUF was negotiated. > Without that feature the structure wa

Re: [U-Boot] [PATCH 1/1] sandbox: clone host Ethernet address

2018-10-15 Thread Joe Hershberger
On Sun, Oct 14, 2018 at 7:16 PM Heinrich Schuchardt wrote: > > Wireless routers may not accept multiple MAC addresses to bind via the same > WLAN session. To make the sandbox usable in a wireless environment we > therefore should clone the host Ethernet address. > > Without the patch DHCP is possi

Re: [U-Boot] Please pull u-boot-dm

2018-10-15 Thread Stephen Warren
On 10/15/18 2:17 PM, Simon Glass wrote: Hi Tom, The following changes since commit 6e7a186dc5d50f563e224e9ae7be70defff7ee0d: Merge tag 'arc-more-updates-for-2018.11-rc2-2' of git://git.denx.de/u-boot-arc (2018-10-15 07:20:07 -0400) are available in the Git repository at: git://git.denx.

Re: [U-Boot] [PATCH 1/1] sandbox: dt: sandbox.dts set skip-localhost = <1>

2018-10-15 Thread Joe Hershberger
On Sun, Oct 14, 2018 at 2:27 PM Heinrich Schuchardt wrote: > > The local interface is not usable for many network operations. It has been > disabled in all sandbox device trees except sandbox.dts. Let's disable it > here too. > > 'bootefi selftest' tries to do execute DHCP. This fails on the lo d

Re: [U-Boot] [PATCH v2] net: Add MT76xx ethernet driver

2018-10-15 Thread Joe Hershberger
On Mon, Oct 8, 2018 at 8:50 AM Stefan Roese wrote: > > This patch adds ethernet support for the Mediatek MT76xx SoC, including > a minimum setup of the integrated switch. This driver is loosly based on > the driver version included in this MediaTek github repository: > > https://github.com/MediaTe

Re: [U-Boot] [PATCH v3 10/13] net: ftgmac100: Add support for the Aspeed SoC

2018-10-15 Thread Joe Hershberger
On Wed, Oct 10, 2018 at 6:51 AM Cédric Le Goater wrote: > > The Faraday ftgmac100 MAC controllers as found on the Aspeed SoCs have > some slight differences in the HW interface (End-Of-Rx/Tx-Ring bits). > > Signed-off-by: Cédric Le Goater > Reviewed-by: Simon Glass Acked-by: Joe Hershberger __

Re: [U-Boot] [PATCH v3 13/13] aspeed: ast2500: fix D2-PLL clock setting in RGMII mode

2018-10-15 Thread Joe Hershberger
On Wed, Oct 10, 2018 at 6:46 AM Cédric Le Goater wrote: > > The algorithm in the ast2500_calc_clock_config() routine suffers from > integer rounding and the requested rate does not get the appropriate > set of Numerator, Denumerator, Post Divider parameters. > > This is the case for the D2-PLL clo

Re: [U-Boot] [PATCH v3 12/13] aspeed: Activate ethernet devices on the ast2500 Eval Board

2018-10-15 Thread Joe Hershberger
On Wed, Oct 10, 2018 at 6:51 AM Cédric Le Goater wrote: > > Signed-off-by: Cédric Le Goater > Reviewed-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v3 09/13] aspeed: ast2500: fix missing break in D2PLL clock enablement

2018-10-15 Thread Joe Hershberger
On Wed, Oct 10, 2018 at 6:50 AM Cédric Le Goater wrote: > > Signed-off-by: Cédric Le Goater > Reviewed-by: Joel Stanley > Reviewed-by: Simon Glass Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/

Re: [U-Boot] [PATCH v3 08/13] net: ftgmac100: add clock support

2018-10-15 Thread Joe Hershberger
On Wed, Oct 10, 2018 at 6:48 AM Cédric Le Goater wrote: > > Signed-off-by: Cédric Le Goater Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v3 07/13] net: ftgmac100: handle timeouts when transmitting

2018-10-15 Thread Joe Hershberger
On Wed, Oct 10, 2018 at 6:48 AM Cédric Le Goater wrote: > > Signed-off-by: Cédric Le Goater > --- > drivers/net/ftgmac100.c | 18 ++ > 1 file changed, 18 insertions(+) > > diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c > index b46187b567c6..edf34c601c68 100644 > -

Re: [U-Boot] [PATCH v3 06/13] net: ftgmac100: convert the RX/TX descriptor arrays

2018-10-15 Thread Joe Hershberger
On Wed, Oct 10, 2018 at 6:47 AM Cédric Le Goater wrote: > > Use simple arrays under the device priv structure to hold the RX and > TX descriptors and handle memory coherency by invalidating or flushing > the d-cache when required. > > Signed-off-by: Cédric Le Goater Acked-by: Joe Hershberger __

Re: [U-Boot] [PATCH v3 05/13] net: ftgmac100: add MDIO bus and phylib support

2018-10-15 Thread Joe Hershberger
On Wed, Oct 10, 2018 at 6:46 AM Cédric Le Goater wrote: > > Implement the MDIO bus read/write functions using the readl_poll_timeout() > routine, initialize the bus and scan for the PHY. RGMII and RMII mode > are supported. > > Signed-off-by: Cédric Le Goater Acked-by: Joe Hershberger _

Re: [U-Boot] [PATCH v3 04/13] net: ftgmac100: use setbits_le32() in the reset method

2018-10-15 Thread Joe Hershberger
On Wed, Oct 10, 2018 at 6:46 AM Cédric Le Goater wrote: > > Signed-off-by: Cédric Le Goater Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v3 03/13] net: ftgmac100: convert to driver model

2018-10-15 Thread Joe Hershberger
On Wed, Oct 10, 2018 at 6:45 AM Cédric Le Goater wrote: > > The driver is based on the previous one and the code is only adapted > to fit the driver model. The support for the Faraday ftgmac100 > controller is the same with MAC and MDIO bus support for RGMII/RMII > modes. > > Configuration is upda

Re: [U-Boot] [PATCH v3 02/13] net: ftgmac100: use the aligned() macro

2018-10-15 Thread Joe Hershberger
On Wed, Oct 10, 2018 at 6:43 AM Cédric Le Goater wrote: > > Signed-off-by: Cédric Le Goater Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v3 01/13] net: ftgmac100: use the BIT() macro

2018-10-15 Thread Joe Hershberger
On Wed, Oct 10, 2018 at 6:43 AM Cédric Le Goater wrote: > > Signed-off-by: Cédric Le Goater > --- Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

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

2018-10-15 Thread Simon Glass
Hi Tom, The following changes since commit 6e7a186dc5d50f563e224e9ae7be70defff7ee0d: Merge tag 'arc-more-updates-for-2018.11-rc2-2' of git://git.denx.de/u-boot-arc (2018-10-15 07:20:07 -0400) are available in the Git repository at: git://git.denx.de/u-boot-dm.git tags/pull-15oct-18 for you

Re: [U-Boot] [PATCH v5 13/13] buildman: Add a --boards option to specify particular boards to build

2018-10-15 Thread Simon Glass
On 11 June 2018 at 23:26, Simon Glass wrote: > > At present 'buildman sandbox' will build all 5 boards for the sandbox > architecture rather than the single board 'sandbox'. The only current way > to exclude sandbox_spl, sandbox_noblk, etc. is to use -x which is a bit > clumbsy. > > Add a --boards

Re: [U-Boot] [PATCH v9 10/18] sandbox: Try to start the RAM buffer at a particular address

2018-10-15 Thread Simon Glass
On 14 September 2018 at 09:46, Simon Glass wrote: > Hi Alex, > > On 26 August 2018 at 19:01, Alexander Graf wrote: >> >> >> On 08.08.18 11:54, Simon Glass wrote: >>> Use a starting address of 256MB which should be available. This helps to >>> make sandbox RAM buffers pointers more recognisable. >

Re: [U-Boot] [PATCH] core: ofnode: Fix mem leak in error path

2018-10-15 Thread sjg
A newly created property is currently not freed if a name could not be allocated. This patch fixes the resulting memory leak in the error patch. Reported-by: Coverity (CID: 184085) Fixes: e369e58df79c ("core: Add functions to set properties in live-tree") Signed-off-by: Mario Six --- drivers/cor

Re: [U-Boot] [PATCH v11 02/16] regmap: Fix documentation

2018-10-15 Thread sjg
The documentation in regmap.h is not in kernel-doc format. Correct this. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v10 -> v11: No changes v9 -> v10: No changes v8 -> v9: No changes v7 -> v8: No changes v6 -> v7: No changes v5 -> v6: No changes

Re: [U-Boot] [PATCH v11 14/16] misc: Sort Makefile entries

2018-10-15 Thread sjg
Makefile entries should be sorted. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six Signed-off-by: Anatolij Gustschin --- v10 -> v11: No changes v9 -> v10: No changes v8 -> v9: No changes v7 -> v8: No changes v6 -> v7: No changes v5 -> v6: No changes v4

Re: [U-Boot] [PATCH v11 15/16] misc: Add gdsys_soc driver

2018-10-15 Thread sjg
This patch adds a driver for the bus associated with a IHS FPGA. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v10 -> v11: No changes v9 -> v10: No changes v8 -> v9: No changes v7 -> v8: No changes v6 -> v7: No changes v5 -> v6: No changes v4 -> v5: No changes v3 -> v4: No change

Re: [U-Boot] [PATCH v11 01/16] test: regmap: Increase size of syscon0 memory

2018-10-15 Thread sjg
The upcoming changes to the regmap interface will contain a proper check for plausibility when reading/writing from/to a register map. To still have the current tests pass, increase the size of the memory region for the syscon0 device, since one of the tests reads and writes beyond this range. Rev

Re: [U-Boot] [PATCH v11 03/16] regmap: Add documentation

2018-10-15 Thread sjg
Document the regmap_alloc() function. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v10 -> v11: No changes v9 -> v10: No changes v8 -> v9: No changes v7 -> v8: No changes v6 -> v7: No changes v5 -> v6: No changes v4 -> v5: No changes v3 -> v4: No

Re: [U-Boot] [PATCH v11 04/16] regmap: Improve error handling

2018-10-15 Thread sjg
ofnode_read_simple_addr_cells may fail and return a negative error code. Check for this when initializing regmaps. Also check if both_len is zero, since this is perfectly possible, and would lead to a division-by-zero further down the line. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glas

Re: [U-Boot] [PATCH v11 16/16] misc: Add IHS FPGA driver

2018-10-15 Thread sjg
Add a driver for gdsys IHS (Integrated Hardware Systems) FPGAs, which supports initialization of the FPGA, as well as information gathering. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v10 -> v11: No changes v9 -> v10: No changes v8 -> v9: No changes v7 -> v8: No changes v6 -> v7:

Re: [U-Boot] [PATCH v3 3/8] dm: util: Add a livetree equivalent API of dm_fdt_pre_reloc()

2018-10-15 Thread sjg
This adds a new API dm_ofnode_pre_reloc(), a livetree equivalent API of dm_fdt_pre_reloc(). Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/util.c | 25 + include/dm/util.h | 27 ++- 2

Re: [U-Boot] [PATCH v3 5/8] dm: Correct pre_reloc_only parameter description in several APIs' comments

2018-10-15 Thread sjg
The pre_reloc_only parameter description currently only mentions drivers with the DM_FLAG_PRE_RELOC flag, but does not mention the special device tree properties. Correct them. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None include/dm/device-inter

Re: [U-Boot] [PATCH v3 2/8] cpu: mpc83xx: Remove unnecessary characters in the description string

2018-10-15 Thread sjg
The description string should not contain unnecessary characters, like the ending '\n' or the leading 'CPU:'. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/cpu/mpc83xx_cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied t

Re: [U-Boot] [PATCH v3 4/8] dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in lists_bind_fdt()

2018-10-15 Thread sjg
Currently the comments of several APIs (eg: dm_init_and_scan()) say: @pre_reloc_only: If true, bind only drivers with the DM_FLAG_PRE_RELOC flag. If false bind all drivers. The 'Pre-Relocation Support' chapter in doc/driver-model/README.txt documents the same that both device tree properties and

Re: [U-Boot] [PATCH v3 6/8] dm: core: Mirror the chosen node parse logic in the livetree scanning

2018-10-15 Thread sjg
Commit f2006808f099: ("dm: core: parse chosen node") added a logic to parse the chosen node during dm_scan_fdt_node(), but unfortunately it missed adding the same logic in dm_scan_fdt_live(). This mirrors the logic in the livetree version. The weird thing is that commit f2006808f099 did update the

Re: [U-Boot] [PATCH v3 1/8] dm: cpu: Fix print_cpuinfo() output

2018-10-15 Thread sjg
It was observed that current output of print_cpuinfo() on QEMU x86 targets does not have an ending '\n', neither have a leading 'CPU:' any more. However it used to have these before. It turns out commit c0434407b595 introduced a unified DM version of print_cpuinfo() that exposed such issue on QEMU

Re: [U-Boot] [PATCH v3 8/8] timer: Sort Kconfig driver entries

2018-10-15 Thread sjg
This is currently out of order. Sort it. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: - rebase on u-boot/master so that patch [4/8] can be applied cleanly Changes in v2: None drivers/timer/Kconfig | 110 +- 1 file change

Re: [U-Boot] [PATCH v3 7/8] test: dm: core: Add a test case for driver marked with DM_FLAG_PRE_RELOC flag

2018-10-15 Thread sjg
Now that we fixed the pre-relocation driver binding for driver marked with DM_FLAG_PRE_RELOC flag, add a test case to cover that scenario. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/sandbox/dts/test.dts | 4 test/dm/bus.c

[U-Boot] [PATCH] arm: socfpga: fpga: fix type of local variable

2018-10-15 Thread Simon Goldschmidt
The 'status' variable in 'socfpga_load()' for both gen5 and arria10 is of type 'unsigned long' while it is always used as 'int' only. Change it to 'int'. Signed-off-by: Simon Goldschmidt --- drivers/fpga/socfpga_arria10.c | 2 +- drivers/fpga/socfpga_gen5.c| 2 +- 2 files changed, 2 inserti

Re: [U-Boot] [PATCH v11 4/6] efi: Split out test init/uninit into functions

2018-10-15 Thread Heinrich Schuchardt
On 10/15/2018 04:17 PM, Simon Glass wrote: > The functions in bootefi are very long because they mix high-level code > and control with the low-level implementation. To help with this, create > functions which handle preparing for running the test and cleaning up > afterwards. > > Also shorten the

Re: [U-Boot] [PATCH v11 2/6] efi_loader: Drop setup_ok

2018-10-15 Thread Heinrich Schuchardt
On 10/15/2018 04:17 PM, Simon Glass wrote: > This value is stored in data which appears to be read-only with sandbox on > my Ubuntu 18.04 machine. In any case it is not good practice to store > run-time data in a build-time linker list. Yes this should be changed. Otherwise a reset of the board wil

Re: [U-Boot] [PATCH v11 1/6] sandbox: Put CPUs under a cpu-bus node

2018-10-15 Thread Heinrich Schuchardt
On 10/15/2018 04:17 PM, Simon Glass wrote: > The CPU uclass expects that all CPUs have a parent device which is a > cpu-bus. Fix up the sandbox test DT to follow this convention. This allow > the code in smbios_write_type4_dm() to work, since it calls > dev_get_parent_platdata() on each CPU. > > S

[U-Boot] [PATCH v3 1/1] efi_loader: PSCI reset and shutdown

2018-10-15 Thread Heinrich Schuchardt
When an operating system started via bootefi tries to reset or power off this is done by calling the EFI runtime ResetSystem(). On most ARMv8 system the actual reset relies on PSCI. Depending on whether the PSCI firmware resides the hypervisor (EL2) or in the secure monitor (EL3) either an HVC or a

Re: [U-Boot] [PATCH v2 1/1] efi_loader: PSCI reset and shutdown

2018-10-15 Thread Heinrich Schuchardt
On 10/15/2018 09:34 AM, Sumit Garg wrote: > On Sat, 13 Oct 2018 at 12:42, Heinrich Schuchardt wrote: >> >> When an operating system started via bootefi tries to reset or power off >> this is done by calling the EFI runtime ResetSystem(). On most ARMv8 system >> the actual reset relies on PSCI. Dep

Re: [U-Boot] [Patch v3] socfpga: clean up sfp generation

2018-10-15 Thread Simon Goldschmidt
On 15.10.2018 15:52, Dalon Westergreen wrote: From: Dalon Westergreen Move the sfp file generation entirely to the root Makefile. This means that the u-boot-spl.sfp will only be generated when required and only for the socfpga variants that require it. sfp generation is now entirely controlle

[U-Boot] [GIT PULL] Xilinx changes for v2018.11-rc2

2018-10-15 Thread Michal Simek
Hi Tom, please consider to pull these patches to your tree. Buildmain for xilinx boards looks good and travis is not done yet but link is here (I have seen several timeouts recently but it was there even on clear mainline). https://travis-ci.org/michalsimek/u-boot/builds/441591781 If you don't li

[U-Boot] [PATCH v11 5/6] efi: Create a function to set up for running EFI code

2018-10-15 Thread Simon Glass
There is still duplicated code in efi_loader for tests and normal operation. Add a new bootefi_run_prepare() function which holds common code used to set up U-Boot to run EFI code. Make use of this from the existing bootefi_test_prepare() function, as well as do_bootefi_exec(). Also shorten a few

Re: [U-Boot] [PATCH] ARM: Samsung: Add Exynos5422-based Odroid HC2 support

2018-10-15 Thread Lukasz Majewski
Hi Dirk, > Odroid HC2 board is based on Odroid XU4 board, like the Odroid HC1. > > The linux kernel does not provide a hc2 DTB so the hc1 DTB is also > used for the Odroid HC2. > > Signed-off-by: Dirk Meul > --- > board/samsung/common/exynos5-dt-types.c | 16 +--- > board/samsung/c

[U-Boot] [PATCH v11 1/6] sandbox: Put CPUs under a cpu-bus node

2018-10-15 Thread Simon Glass
The CPU uclass expects that all CPUs have a parent device which is a cpu-bus. Fix up the sandbox test DT to follow this convention. This allow the code in smbios_write_type4_dm() to work, since it calls dev_get_parent_platdata() on each CPU. Signed-off-by: Simon Glass --- Changes in v11: - Add a

[U-Boot] [PATCH v11 2/6] efi_loader: Drop setup_ok

2018-10-15 Thread Simon Glass
This value is stored in data which appears to be read-only with sandbox on my Ubuntu 18.04 machine. In any case it is not good practice to store run-time data in a build-time linker list. The value does not seem to be that useful, since tests that fail to setup are likely to fail to run also. Let'

[U-Boot] [PATCH v11 4/6] efi: Split out test init/uninit into functions

2018-10-15 Thread Simon Glass
The functions in bootefi are very long because they mix high-level code and control with the low-level implementation. To help with this, create functions which handle preparing for running the test and cleaning up afterwards. Also shorten the awfully long variable names here. Signed-off-by: Simo

[U-Boot] [PATCH v11 6/6] efi: Rename bootefi_test_finish() to bootefi_run_finish()

2018-10-15 Thread Simon Glass
This function can be used from do_bootefi_exec() so that we use mostly the same code for a normal EFI application and an EFI test. Rename the function and use it in both places. Signed-off-by: Simon Glass --- Changes in v11: - Drop patches previously applied Changes in v9: None Changes in v7:

[U-Boot] [PATCH v11 3/6] sandbox: smbios: Update to support sandbox

2018-10-15 Thread Simon Glass
At present this code casts addresses to pointers so cannot be used with sandbox. Update it to use mapmem instead. Signed-off-by: Simon Glass --- Changes in v11: - Fix the EFI code that has since been added and relies on broken behaviour Changes in v9: None Changes in v7: None Changes in v5: Non

[U-Boot] [PATCH v11 0/6] efi_loader: Code refactoring and improvement

2018-10-15 Thread Simon Glass
This collects the patches previously sent to break up the very large functions in efi_loader into smaller pieces. Now that the other sandbox stuff is applied, perhaps it is time to apply these patches. This also adds a few new patches to fix more recent breakages. Unfortunately we still cannot ena

[U-Boot] [Patch v3] socfpga: clean up sfp generation

2018-10-15 Thread Dalon Westergreen
From: Dalon Westergreen Move the sfp file generation entirely to the root Makefile. This means that the u-boot-spl.sfp will only be generated when required and only for the socfpga variants that require it. sfp generation is now entirely controlled by CONFIG_BUILD_TARGET being set to either spl

Re: [U-Boot] [PATCH v2] socfpga: clean up sfp generation

2018-10-15 Thread Marek Vasut
On 10/15/2018 03:42 PM, Westergreen, Dalon wrote: > On Sun, 2018-10-14 at 19:58 +0200, Marek Vasut wrote: >> On 10/13/2018 12:13 AM, Dalon Westergreen wrote: >> From: Dalon Westergreen > > >> >> Move the sfp file generation entirely to the root Makefile. This >>

Re: [U-Boot] [PATCH v2] socfpga: clean up sfp generation

2018-10-15 Thread Westergreen, Dalon
On Sun, 2018-10-14 at 19:58 +0200, Marek Vasut wrote: > On 10/13/2018 12:13 AM, Dalon Westergreen wrote: > From: Dalon Westergreen > Move the sfp file generation entirely to the root Makefile. Thismeans that > the u-boot-spl.sfp will only be generated when requiredand only for the > socfpga varia

Re: [U-Boot] Please pull ARC changes (fixed re-send)

2018-10-15 Thread Tom Rini
On Mon, Oct 15, 2018 at 10:39:46AM +, Alexey Brodkin wrote: > Hi Tom, > > This pull-request overrides the one sent last Friday: > https://lists.denx.de/pipermail/u-boot/2018-October/344211.html > as well as its duplicate sent for some reason today: > https://lists.denx.de/pipermail/u-boot/201

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

2018-10-15 Thread Tom Rini
On Fri, Oct 12, 2018 at 11:46:36AM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks, > Jagan. > > The following changes since commit 0a60a81ba3860946551cb79aa6486aa076e357f3: > > Kconfig: sandbox: enable cmd_avb and dependencies (2018-10-07 13:34:19 > -0400) > > are a

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

2018-10-15 Thread Tom Rini
On Fri, Oct 12, 2018 at 11:45:13AM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks, > Jagan. > > The following changes since commit 0a60a81ba3860946551cb79aa6486aa076e357f3: > > Kconfig: sandbox: enable cmd_avb and dependencies (2018-10-07 13:34:19 > -0400) > > are a

Re: [U-Boot] [PATCH] drivers: serial: probe all serial devices

2018-10-15 Thread Bin Meng
On Mon, Oct 15, 2018 at 8:15 PM Vabhav Sharma wrote: > > Serial subsystem search and probe only one first serial > device and unable to use remaining available UART devices > > This patch changes the logic to probe all available serial devices > using platform data or device tree in DM model in or

[U-Boot] [PATCH] drivers: serial: probe all serial devices

2018-10-15 Thread Vabhav Sharma
Serial subsystem search and probe only one first serial device and unable to use remaining available UART devices This patch changes the logic to probe all available serial devices using platform data or device tree in DM model in order to use all UART devices Signed-off-by: Vabhav Sharma --- d

Re: [U-Boot] [U-Boot, BUG] snow: mmc: SD card access broken: unable to select a mode

2018-10-15 Thread Guillaume Gardet
Hi, Le 16/05/2018 à 09:22, Guillaume Gardet a écrit : Hi Jaehoon, Le 26/04/2018 à 15:15, Guillaume Gardet a écrit : Le 26/04/2018 à 12:31, Jaehoon Chung a écrit : Hi, On 04/09/2018 09:02 PM, Guillaume Gardet wrote: Hi Jaehoon, There are problems with SD card access on Samsung Chromebook

[U-Boot] [PATCH 1/1] board: ge: bx50v3: fix initialization of i2c bus0

2018-10-15 Thread Fabien Lahoudere
From: Dan Cimpoca I2C bus 0 was not initialized correctly. There is an offset between i2c index and the structure number of pad info. So i2c bus 0 can be in an inconsistent state. This problem become visible on B{4,6}50v3 with the CPUC HW watchdog enabled. Sometimes when the CPUC HW watchdog int

[U-Boot] [PATCH 2/2] board: ge: bx50v3: b{4,6}50v3 modeline

2018-10-15 Thread Fabien Lahoudere
From: Ian Ray The b{4,6}50v3 kernel framebuffer console requires a modeline otherwise the LVDS panel shows garbage. Signed-off-by: Ian Ray Signed-off-by: Fabien Lahoudere --- board/ge/bx50v3/bx50v3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx5

[U-Boot] [PATCH 1/2] board: ge: bx50v3: correct LDB clock

2018-10-15 Thread Fabien Lahoudere
From: Ian Ray Use Video PLL to provide 65MHz for all displays. Signed-off-by: Ian Ray Signed-off-by: Fabien Lahoudere --- board/ge/bx50v3/bx50v3.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx

Re: [U-Boot] [PATCH] ARM: Samsung: Add Exynos5422-based Odroid HC2 support

2018-10-15 Thread Marek Szyprowski
Hi All, On 2018-10-14 18:49, Meul, Dirk wrote: > Odroid HC2 board is based on Odroid XU4 board, like the Odroid HC1. > > The linux kernel does not provide a hc2 DTB so the hc1 DTB is also used > for the Odroid HC2. > > Signed-off-by: Dirk Meul I don't have access to HC2, but the code looks reas

[U-Boot] [PATCH 0/2] board: ge: bx50v3: Fix screen flickering

2018-10-15 Thread Fabien Lahoudere
This patchset solves screen flickering observed at bootup on b650v3. Steps to reproduce: 1) Connect B650 to power. 2) Switch On the Monitor. 3) Observe the display. Ian Ray (2): board: ge: bx50v3: correct LDB clock board: ge: bx50v3: b{4,6}50v3 modeline board/ge/bx50v3/bx50v3.c | 32 +++

[U-Boot] [PATCH 1/1] board: ge: bx50v3: Change maintainer

2018-10-15 Thread Fabien Lahoudere
While using ./scripts/get_maintainer.pl I detect that the Maintainer name and address for bx50v3 boards are not valid. The new maintainer for GE bx50v3 products must be Ian Ray. Signed-off-by: Fabien Lahoudere --- board/ge/bx50v3/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [U-Boot] [PATCH 0/7] Restructure the i.MX U-Boot documentation

2018-10-15 Thread Fabio Estevam
Hi Breno, On Tue, Oct 9, 2018 at 10:54 PM Breno Matheus Lima wrote: > > This patch set is restructuring and cleaning up the current i.MX documentation > included in the U-Boot doc directory. > > The current i.MX documentation is in the root directory so we cannot easily > check which one is i.MX

[U-Boot] Please pull ARC changes (fixed re-send)

2018-10-15 Thread Alexey Brodkin
Hi Tom, This pull-request overrides the one sent last Friday: https://lists.denx.de/pipermail/u-boot/2018-October/344211.html as well as its duplicate sent for some reason today: https://lists.denx.de/pipermail/u-boot/2018-October/344435.html The following changes since commit 3d5ced9e22d32112a20

Re: [U-Boot] [uboot-snps-arc] Please pull ARC changes

2018-10-15 Thread Alexey Brodkin
Hi Tom, Not sure why that duplicate email appeared... Either my mailer became crazy or I'm fatfingering :( Sorry for that! Though I'll re-send a pull-request as I did miss one important patch. -Alexey On Mon, 2018-10-15 at 10:22 +, Alexey Brodkin wrote: > Hi Tom, > > The following changes

[U-Boot] Please pull ARC changes

2018-10-15 Thread Alexey Brodkin
Hi Tom, The following changes since commit 3d5ced9e22d32112a20f9dc0f5fb1f22ef088079: Merge tag 'dm-9oct18' of git://git.denx.de/u-boot-dm (2018-10-10 13:35:17 -0400) are available in the Git repository at: git://git.denx.de/u-boot-arc.git tags/arc-more-updates-for-2018.11-rc2 for you to f

[U-Boot] [PATCH 1/2] net: mvpp2: fix polarity of PHY reset signal

2018-10-15 Thread Baruch Siach
The dm_gpio_set_value() call sets the logical level of the GPIO signal. That is, it takes the GPIO_ACTIVE_{LOW,HIGH} property into account. The driver needs to assert the reset, and then deassert it. Not the other way around. Cc: Stefan Chulski Signed-off-by: Baruch Siach --- drivers/net/mvpp2.

[U-Boot] [PATCH 2/2] net: mvpp2: increase PHY reset pulse

2018-10-15 Thread Baruch Siach
The default Linux PHY reset delay is 10ms. This is also the requirement for Marvell 88E151x PHYs, which are likely to be used with this Ethernet MAC. Cc: Stefan Chulski Signed-off-by: Baruch Siach --- drivers/net/mvpp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

  1   2   >