Re: [U-Boot] [PATCH] arm64: allwinner: a64: Disable ehci1 and ohci1 for bananapi, nanopi

2018-07-02 Thread Maxime Ripard
On Mon, Jul 02, 2018 at 11:57:45PM +0200, Marek Vasut wrote: > On 07/02/2018 11:40 PM, Tom Rini wrote: > > On Mon, Jul 02, 2018 at 11:27:58PM +0200, Marek Vasut wrote: > >> On 07/02/2018 10:53 PM, Jagan Teki wrote: > >>> During usb shutdown or 'usb reset' all the necessary clocks > >>> on the speci

Re: [U-Boot] [PATCH] sunxi: H3/H5/A64: OHCI: prevent turning off shared gates

2018-07-02 Thread Jagan Teki
On Tue, Jul 3, 2018 at 5:14 AM, Andre Przywara wrote: > The USB host controllers on the H3, H5 and A64 have the oddity of > sharing some clock and reset gates, so both the OHCI and EHCI bits have > to be enabled to make only one of them working. We take care of this, and > initialisation works fin

Re: [U-Boot] [PATCH 1/1] ARM: qemu-arm: enable RTC

2018-07-02 Thread Heinrich Schuchardt
On 07/03/2018 07:29 AM, Takahiro AKASHI wrote: > On Tue, Jul 03, 2018 at 04:07:31AM +0200, Heinrich Schuchardt wrote: >> On 07/03/2018 01:51 AM, Takahiro AKASHI wrote: >>> On Mon, Jul 02, 2018 at 07:07:55PM +0300, Tuomas Tynkkynen wrote: Hi Heinrich, On 06/29/2018 01:34 AM, Heinrich

[U-Boot] [PATCH] armv8: layerscape: Enable EHCI access for LS1012A

2018-07-02 Thread Ran Wang
Program Central Security Unit (CSU) to grant access permission for USB 2.0 controller, otherwiase EHCI funciton will down. Signed-off-by: Ran Wang --- arch/arm/cpu/armv8/fsl-layerscape/soc.c | 8 arch/arm/include/asm/arch-fsl-layerscape/ns_access.h | 1 + 2 files changed, 9

Re: [U-Boot] [PATCH 1/1] ARM: qemu-arm: enable RTC

2018-07-02 Thread Takahiro AKASHI
On Tue, Jul 03, 2018 at 04:07:31AM +0200, Heinrich Schuchardt wrote: > On 07/03/2018 01:51 AM, Takahiro AKASHI wrote: > > On Mon, Jul 02, 2018 at 07:07:55PM +0300, Tuomas Tynkkynen wrote: > >> Hi Heinrich, > >> > >> On 06/29/2018 01:34 AM, Heinrich Schuchardt wrote: > >>> QEMU provides an emulated

Re: [U-Boot] [PATCH 1/1] ARM: qemu-arm: enable RTC

2018-07-02 Thread Heinrich Schuchardt
On 07/03/2018 04:07 AM, Heinrich Schuchardt wrote: > On 07/03/2018 01:51 AM, Takahiro AKASHI wrote: >> On Mon, Jul 02, 2018 at 07:07:55PM +0300, Tuomas Tynkkynen wrote: >>> Hi Heinrich, >>> >>> On 06/29/2018 01:34 AM, Heinrich Schuchardt wrote: QEMU provides an emulated ARM AMBA PrimeCell PL03

Re: [U-Boot] [PATCH] board/aries: Remove

2018-07-02 Thread Tom Rini
On Mon, Jul 02, 2018 at 06:39:23PM -0400, Tom Rini wrote: > The various Aries Embedded boards have been orphaned for a year and no > one has come forward to take care of them. Remove. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signat

Re: [U-Boot] Pull request: u-boot-net.git master

2018-07-02 Thread Tom Rini
On Mon, Jul 02, 2018 at 02:49:38PM -0500, Joe Hershberger wrote: > Hi Tom, > > The following changes since commit ac378bb05fa3cac3197085431f577e0dbddd4b4a: > > Merge git://git.denx.de/u-boot-x86 (2018-07-01 22:13:34 -0400) > > are available in the git repository at: > > > git://git.denx.d

[U-Boot] [ANN] U-Boot v2018.07-rc3 released

2018-07-02 Thread Tom Rini
Hey all, It's a week until release and I've put out v2018.07-rc3. I think things are looking good for release, but I do want to see what we can / can't do about the sunxi arm64 USB issue that just cropped up. Thanks all! -- Tom signature.asc Description: PGP signature ___

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

2018-07-02 Thread Tom Rini
On Mon, Jul 02, 2018 at 11:05:35PM +0530, Jagan Teki wrote: > Hi, > > Please pull this PR. > > thanks, > Jagan. > > The following changes since commit 51dce7d2bfdecd974412634e4a0758ac55edcc00: > > mtd: spi: Correct parameters for s25fs512s flash (2018-06-25 15:50:33 +0530) > > are available

Re: [U-Boot] [PATCH 1/1] ARM: qemu-arm: enable RTC

2018-07-02 Thread Heinrich Schuchardt
On 07/03/2018 01:51 AM, Takahiro AKASHI wrote: > On Mon, Jul 02, 2018 at 07:07:55PM +0300, Tuomas Tynkkynen wrote: >> Hi Heinrich, >> >> On 06/29/2018 01:34 AM, Heinrich Schuchardt wrote: >>> QEMU provides an emulated ARM AMBA PrimeCell PL031 RTC. >>> >>> The patch sets the base address in the boar

[U-Boot] [PATCH 2/2] sandbox: Don't disable ctrlc() on sandbox if in raw mode

2018-07-02 Thread Joe Hershberger
In raw mode, handle ctrl-c as normal. This allows normal ctrl-c behavior such as aborting a command that is timing out without completely terminating the sandbox executable. In [1], Simon disabled this. His reason for it was that it interferes with piping test scripts. Piping should be done in co

[U-Boot] [PATCH 1/2] console: Remember if ctrlc is disabled in console_tstc()

2018-07-02 Thread Joe Hershberger
We don't necessarily want to re-enable ctrl-c if it was already disabled when calling tstc(). Signed-off-by: Joe Hershberger --- common/console.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/console.c b/common/console.c index 2ba33dc574..36c0568dbf 100644 --

Re: [U-Boot] [PATCH 1/1] ARM: qemu-arm: enable RTC

2018-07-02 Thread Takahiro AKASHI
On Mon, Jul 02, 2018 at 07:07:55PM +0300, Tuomas Tynkkynen wrote: > Hi Heinrich, > > On 06/29/2018 01:34 AM, Heinrich Schuchardt wrote: > >QEMU provides an emulated ARM AMBA PrimeCell PL031 RTC. > > > >The patch sets the base address in the board include file according to the > >definition in hw/a

[U-Boot] [PATCH] sunxi: H3/H5/A64: OHCI: prevent turning off shared gates

2018-07-02 Thread Andre Przywara
The USB host controllers on the H3, H5 and A64 have the oddity of sharing some clock and reset gates, so both the OHCI and EHCI bits have to be enabled to make only one of them working. We take care of this, and initialisation works fine (due to setting already set bits). However on shutdown we tur

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

2018-07-02 Thread Andreas Färber
Am 02.07.2018 um 10:01 schrieb Jagan Teki: > On Wed, Jun 27, 2018 at 6:12 AM, Andre Przywara > wrote: >> 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 erra

Re: [U-Boot] [PATCH] arm64: allwinner: a64: Disable ehci1 and ohci1 for bananapi, nanopi

2018-07-02 Thread Marek Vasut
On 07/02/2018 11:40 PM, Tom Rini wrote: > On Mon, Jul 02, 2018 at 11:27:58PM +0200, Marek Vasut wrote: >> On 07/02/2018 10:53 PM, Jagan Teki wrote: >>> During usb shutdown or 'usb reset' all the necessary clocks >>> on the specific controller will disable. Usually this shutdown >>> happen during U-

Re: [U-Boot] [PATCH] arm64: allwinner: a64: Disable ehci1 and ohci1 for bananapi, nanopi

2018-07-02 Thread Tom Rini
On Mon, Jul 02, 2018 at 11:27:58PM +0200, Marek Vasut wrote: > On 07/02/2018 10:53 PM, Jagan Teki wrote: > > During usb shutdown or 'usb reset' all the necessary clocks > > on the specific controller will disable. Usually this shutdown > > happen during U-Boot proper handoff to Linux. > > No, 'usb

Re: [U-Boot] [PATCH] arm64: allwinner: a64: Disable ehci1 and ohci1 for bananapi, nanopi

2018-07-02 Thread Marek Vasut
On 07/02/2018 10:53 PM, Jagan Teki wrote: > During usb shutdown or 'usb reset' all the necessary clocks > on the specific controller will disable. Usually this shutdown > happen during U-Boot proper handoff to Linux. No, 'usb reset' can be triggered by the user any time. > There is an issue in Al

Re: [U-Boot] [PATCH 5/5] drivers: net: zynq_gem: fix phy dt node setting

2018-07-02 Thread Joe Hershberger
On Thu, Jun 28, 2018 at 2:47 PM, Grygorii Strashko wrote: > Now zynq_gem driver will overwrite UCLASS_ETH node when PHY is > connected and configured which is not correct. > Use struct phydev->node instead. > > Signed-off-by: Grygorii Strashko Acked-by: Joe Hershberger _

Re: [U-Boot] [PATCH 4/5] drivers: net: cpsw: fix phy dt node setting

2018-07-02 Thread Joe Hershberger
On Thu, Jun 28, 2018 at 2:47 PM, Grygorii Strashko wrote: > Now CPSW driver will overwrite UCLASS_ETH node when PHY is > connected and configured which is not correct. > Use struct phydev->node instead. > > Signed-off-by: Grygorii Strashko Acked-by: Joe Hershberger _

Re: [U-Boot] [PATCH 2/5] net: phy: dp83867: switch to use phy_get_ofnode()

2018-07-02 Thread Joe Hershberger
On Thu, Jun 28, 2018 at 2:47 PM, Grygorii Strashko wrote: > Use PHY API phy_get_ofnode() helper to get PHY DT node. > > Signed-off-by: Grygorii Strashko Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listi

Re: [U-Boot] [PATCH 3/5] net: phy: xilinx: switch to use phy_get_ofnode()

2018-07-02 Thread Joe Hershberger
On Thu, Jun 28, 2018 at 2:47 PM, Grygorii Strashko wrote: > Use PHY API phy_get_ofnode() helper to get PHY DT node. > > Signed-off-by: Grygorii Strashko Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listi

Re: [U-Boot] [PATCH 1/5] net: phy: add ofnode node to struct phy_device

2018-07-02 Thread Joe Hershberger
On Thu, Jun 28, 2018 at 2:47 PM, Grygorii Strashko wrote: > Now the UCLASS_ETH device "node" field is owerwritten by some network drivers > in > case of Ethernet PHYs which are linked to UCLASS_ETH device using > "phy-handle" DT property and when Ethernet PHY driver needs to read some > additiona

Re: [U-Boot] [PATCH 2/2] net: phy: dp83867: switch to use ofnode api

2018-07-02 Thread Joe Hershberger
On Thu, Jun 28, 2018 at 2:26 PM, Grygorii Strashko wrote: > Switch to use more generic ofnode API instead of FDT API. > > Signed-off-by: Grygorii Strashko Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/lis

Re: [U-Boot] [PATCH 1/2] net: phy: dp83867: add workaround for incorrect RX_CTRL pin strap

2018-07-02 Thread Joe Hershberger
On Thu, Jun 28, 2018 at 3:20 PM, Hannes Schmelzer wrote: > > On 06/28/2018 09:26 PM, Grygorii Strashko wrote: >> >> From: Murali Karicheri >> >> The data manual for DP83867IR/CR, SNLS484E[1], revised march 2017, >> advises that strapping RX_DV/RX_CTRL pin in mode 1 and 2 is not >> supported (see

Re: [U-Boot] [PATCH v5 5/6] sunxi: R40: add gigabit ethernet devicetree node

2018-07-02 Thread Joe Hershberger
On Wed, Jun 27, 2018 at 3:36 PM, Lothar Felten wrote: > Add a device tree node for the Allwinner R40/V40 GMAC gigabit > ethernet interface. > The R40 SoC does not use the syscon register for GMAC settings. > The gigabit ethernet interface can only be routed to a fixed set of > pins. > Updated to m

Re: [U-Boot] [PATCH 2/2] net: mvgbe: convert to DM

2018-07-02 Thread Joe Hershberger
On Wed, Jun 27, 2018 at 5:06 AM, Chris Packham wrote: > Add driver model support to the mvgbe driver. As a temporary measure > both DM and non-DM uses are supported. Once all the users have been > converted the non-DM support can be dropped. > > Signed-off-by: Chris Packham > --- > > drivers/net

[U-Boot] [PATCH] arm64: allwinner: a64: Disable ehci1 and ohci1 for bananapi, nanopi

2018-07-02 Thread Jagan Teki
During usb shutdown or 'usb reset' all the necessary clocks on the specific controller will disable. Usually this shutdown happen during U-Boot proper handoff to Linux. There is an issue in Allwinner A64, is during OHCI1 shutdown the controller is unable to access the register space so the Linux b

Re: [U-Boot] [PATCH 1/2] net: mvgbe: prepare for conversion to driver model

2018-07-02 Thread Joe Hershberger
On Wed, Jun 27, 2018 at 5:06 AM, Chris Packham wrote: > Extract some function bodies to helper functions that can be reused in > the DM/non-DM implementations. > > Signed-off-by: Chris Packham Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@l

Re: [U-Boot] [PATCH v4 4/6] net: sun8i-emac: support R40 GMAC

2018-07-02 Thread Joe Hershberger
On Tue, Jun 26, 2018 at 6:54 AM, Lothar Felten wrote: > Add support for the GMAC found in the Allwinner R40/V40 SoC. > > The R40 GMAC interface is not controlled by the syscon register but > has a separate configuration register in the CCU. > The clock gate and reset bits are in a different regist

Re: [U-Boot] [PATCH v4 3/6] net: sun8i-emac: set mux and clock by driver data

2018-07-02 Thread Joe Hershberger
On Tue, Jun 26, 2018 at 6:54 AM, Lothar Felten wrote: > Use driver data->variant information to select device specific > pin mux and phy clock settings. > > Suggested by Jagan Teki > > Signed-off-by: Lothar Felten > --- > Changelog: > new in v3 > v3 -> v4 use driver data to distinguish between

Re: [U-Boot] Pull request: u-boot-net.git master

2018-07-02 Thread Joe Hershberger
On Mon, Jul 2, 2018 at 2:57 PM, Tom Rini wrote: > On Mon, Jul 02, 2018 at 02:49:38PM -0500, Joe Hershberger wrote: > >> Hi Tom, >> >> The following changes since commit ac378bb05fa3cac3197085431f577e0dbddd4b4a: >> >> Merge git://git.denx.de/u-boot-x86 (2018-07-01 22:13:34 -0400) >> >> are availa

Re: [U-Boot] [PATCH 1/1] initialize net_mode.if_type

2018-07-02 Thread Joe Hershberger
On Thu, Jun 21, 2018 at 6:21 PM, Andrew Thomas wrote: > if_type is not correctly initialized > > Failure to initialize if_type means that grub2/efinet sends > a bogus arp request. It therefore gets no response. On Raspberry Pi 3B+ > this leads to a pause at: > > lan78xx_eth Waiting for PHY auto ne

Re: [U-Boot] Pull request: u-boot-net.git master

2018-07-02 Thread Tom Rini
On Mon, Jul 02, 2018 at 02:49:38PM -0500, Joe Hershberger wrote: > Hi Tom, > > The following changes since commit ac378bb05fa3cac3197085431f577e0dbddd4b4a: > > Merge git://git.denx.de/u-boot-x86 (2018-07-01 22:13:34 -0400) > > are available in the git repository at: > > > git://git.denx.d

[U-Boot] Pull request: u-boot-net.git master

2018-07-02 Thread Joe Hershberger
Hi Tom, The following changes since commit ac378bb05fa3cac3197085431f577e0dbddd4b4a: Merge git://git.denx.de/u-boot-x86 (2018-07-01 22:13:34 -0400) are available in the git repository at: git://git.denx.de/u-boot-net.git master for you to fetch changes up to a9ea30d267f26bee0b3a5cdd659624

Re: [U-Boot] net: Add new wol command - Wake on LAN

2018-07-02 Thread Joe Hershberger
Hi Lothar, https://patchwork.ozlabs.org/patch/933588/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] net: mvneta: zero Tx descriptors on init

2018-07-02 Thread Joe Hershberger
Hi Baruch, https://patchwork.ozlabs.org/patch/931795/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] net: fastboot: Fix build when FASTBOOT_FLASH is disabled

2018-07-02 Thread Joe Hershberger
Hi Alex, https://patchwork.ozlabs.org/patch/929797/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] net: mvneta: dcache flush TX descriptors at init

2018-07-02 Thread Joe Hershberger
Hi Baruch, https://patchwork.ozlabs.org/patch/931797/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] net: zynq_gem: Initialize val variable in zynq_gem_miiphy_read()

2018-07-02 Thread Joe Hershberger
Hi Michal, https://patchwork.ozlabs.org/patch/929254/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] net: Prefer command line arguments

2018-07-02 Thread Joe Hershberger
Hi Alexander, https://patchwork.ozlabs.org/patch/929828/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] net: Add option to prefer bootp/dhcp serverip

2018-07-02 Thread Joe Hershberger
Hi Alexander, https://patchwork.ozlabs.org/patch/929826/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v3 00/11] sandbox: net: Fix sandbox eth drivers

2018-07-02 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. Changes in v3: - s/UC_ETH/UCLASS_ETH/ - use a string constan

[U-Boot] [PATCH v3 11/11] sandbox: eth-raw: Add a SIMPLE_BUS to enumerate host interfaces

2018-07-02 Thread Joe Hershberger
Ask the OS for each of its interfaces and for each one, bind a U-Boot device and then probe it. This will allocate the priv data structure that is then populated. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: - use a string constant for host prefix - use calloc Cha

[U-Boot] [PATCH v3 10/11] sandbox: eth-raw: Make random MAC addresses available to eth-raw

2018-07-02 Thread Joe Hershberger
We don't necessarily know how many MAC addresses we'll need, so implement a ROM read so we always have something valid. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/net/sandbox-raw.c | 10 ++ 1 file changed, 10 insertions(

Re: [U-Boot] ax25: Switch to CONFIG_BOOTP_PREFER_SERVERIP

2018-07-02 Thread Joe Hershberger
Hi Alexander, https://patchwork.ozlabs.org/patch/929829/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v3 08/11] sandbox: eth-raw: Add a function to ask the host about localhost

2018-07-02 Thread Joe Hershberger
Instead of doing a simple string compare against "lo", look for the flag that indicates a localhost interface. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/sandbox/cpu/eth-raw-os.c | 27 +++ arch/sandb

[U-Boot] [PATCH v3 09/11] sandbox: eth-raw: Allow interface to be specified by index

2018-07-02 Thread Joe Hershberger
With systemd stable interface names, eth0 will almost never exist. Instead of using that name in the sandbox.dts, use an index. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/sandbox/cpu/eth-raw-os.c | 7 +++ arch/sandbox/

[U-Boot] [PATCH v3 03/11] net: Only call halt on a driver that has been init'ed

2018-07-02 Thread Joe Hershberger
With driver model, we were not checking if the state of the device was marked as active before calling the halt function. Check that the device is probed and also marked as active. This avoids the case where we were calling halt on the first device in net_init() and the driver would operate on bogu

[U-Boot] [PATCH v3 05/11] net: Correct comment in Kconfig

2018-07-02 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: - s/UC_ETH/UCLASS_ETH/ Changes in v2: None drivers/net/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index e88f056d84..79eef2d755 100644 ---

[U-Boot] [PATCH v3 01/11] sandbox: eth-raw: Correct valid socket test in send/recv

2018-07-02 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 Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2:

[U-Boot] [PATCH v3 07/11] net: sandbox-raw: Convert raw eth driver to livetree

2018-07-02 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: - move DT accesses to ofdata_to_platdata() - store the host interface details in priv - switch to dev_read_string() arch/sandbox/cpu/eth-raw-os.c | 28 +++- arch/sandb

[U-Boot] [PATCH v3 04/11] sandbox: eth-raw: Make sure descriptors are always initialized

2018-07-02 Thread Joe Hershberger
If we let descriptors equal 0, we can end up closing STDIN. Make sure they start out as -1. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/sandbox/cpu/eth-raw-os.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v3 06/11] net: sandbox: Convert sandbox mock eth driver to livetree

2018-07-02 Thread Joe Hershberger
Use the dev_ functions to access DT properties. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: - go back to u8_array - move DT accesses to ofdata_to_platdata() drivers/net/sandbox.c | 16 1 file changed, 12 insertions(+), 4 dele

[U-Boot] [PATCH v3 02/11] sandbox: Fix format of fake-host-hwaddr in test.dts

2018-07-02 Thread Joe Hershberger
test.dts specified the fake MAC address as a u32 array. Instead it should be a u8 array. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: - New patch arch/sandbox/dts/test.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --g

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

2018-07-02 Thread Jagan Teki
Hi, Please pull this PR. thanks, Jagan. The following changes since commit 51dce7d2bfdecd974412634e4a0758ac55edcc00: mtd: spi: Correct parameters for s25fs512s flash (2018-06-25 15:50:33 +0530) are available in the Git repository at: git://git.denx.de/u-boot-spi.git master for you to fet

Re: [U-Boot] [PATCH 1/1] ARM: qemu-arm: enable RTC

2018-07-02 Thread Tuomas Tynkkynen
Hi Heinrich, On 06/29/2018 01:34 AM, Heinrich Schuchardt wrote: QEMU provides an emulated ARM AMBA PrimeCell PL031 RTC. The patch sets the base address in the board include file according to the definition in hw/arm/virt.c of the QEMU source. It defines the Kconfig option for the existing drive

Re: [U-Boot] Support of device-tree for PowerPC platform: Query

2018-07-02 Thread Prabhakar Kushwaha
Dear Bin, Coming back to x86 example. > -Original Message- > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Friday, June 29, 2018 7:03 AM > To: York Sun > Cc: Simon Glass ; Prabhakar Kushwaha > ; u-boot@lists.denx.de > Subject: Re: [U-Boot] Support of device-tree for PowerPC platfor

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

2018-07-02 Thread Tom Rini
On Sat, Jun 30, 2018 at 12:35:49PM +0200, Wolfgang Denk wrote: > Dear Tom, > > In message <20180629181550.GG18596@bill-the-cat> you wrote: > > > > > This patch can lead to reading incorrect (old, no longer valid) > > > values without any way for the user to see what is happening. > > > > > > Thi

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

2018-07-02 Thread Tom Rini
On Mon, Jul 02, 2018 at 10:00:38AM +0800, Bin Meng wrote: > Hi Tom, > > This fixes instability issues on qemu-x86, and enables efi-loader on > x86 to use ACPI. This should be the last PR for v2018.07. > > The following changes since commit 2121bbe49c27b2b2d865fac4e4071c5a90ae90b2: > > lib: di

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

2018-07-02 Thread Tom Rini
On Sat, Jun 30, 2018 at 08:51:09AM +0200, Marek Vasut wrote: > The following changes since commit fb77a9e3537039664ad42992bef6688869eda7c1: > > Merge branch 'master' of git://git.denx.de/u-boot-spi (2018-06-28 > 09:04:41 -0400) > > are available in the Git repository at: > > git://git.denx.

Re: [U-Boot] mx5: Select ARM_CORTEX_A8_CVE_2017_5715

2018-07-02 Thread Tom Rini
On Wed, Jun 20, 2018 at 03:08:21PM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > On a 4.18-rc1 kernel the following warning is seen on i.MX51 and > i.MX53: > > CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, > system vulnerable > > Select the ARM_CORTEX_A8_C

Re: [U-Boot] [PATCH v5 4/5] cmd: nvedit: env import can now import only variables passed as parameters

2018-07-02 Thread Alex Kiernan
On Mon, Jul 2, 2018 at 1:21 PM Quentin Schulz wrote: > > Hi Wolfgang, > > On Mon, Jul 02, 2018 at 01:21:09PM +0200, Wolfgang Denk wrote: > > Dear Quentin, > > > > In message <20180702092548.bciqnfyd7d2hv26x@qschulz> you wrote: > > > > > > > Hm I don't see what you mean. himport_r imports a se

[U-Boot] persistent logo on LCD on imx6ull

2018-07-02 Thread Michael Nazzareno Trimarchi
Hi Peng I'm working to make persistent the uboot logo on imx6ull platform but I have some problem with the framebuffer. Now this is the main idea I use this to recalculate allocation ubi part ubiblock; ubi read ${loadaddr} updater; run load_dtb; fdt addr ${fdt_addr} fdt set /reserved-memory/fram

Re: [U-Boot] [PATCH v2] common/memsize.c: Increase save array for supporting memory size > 4GB

2018-07-02 Thread Chee, Tien Fong
On Sat, 2018-06-23 at 05:29 +0200, Marek Vasut wrote: > On 06/21/2018 08:31 AM, Chee, Tien Fong wrote: > > > > On Thu, 2018-06-21 at 06:34 +0200, Marek Vasut wrote: > > > > > > On 06/20/2018 09:06 AM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee > > > > > > > >

Re: [U-Boot] [PATCH] video: arm: rpi: Add brcm, bcm2708-fb compatible

2018-07-02 Thread Anatolij Gustschin
On Mon, 2 Jul 2018 14:33:14 +0200 Emmanuel Vadot m...@freebsd.org wrote: > When using CONFIG_OF_BOARD on rpi to use the dtb provided by the > RaspberryPi Fundation, the compatible string isn't the same, resulting > in not-functional video in u-boot. > > Signed-off-by: Oleksandr Tymoshenko > Sig

Re: [U-Boot] [PATCH] usb: dwc2: Add brcm,bcm2708-usb compatible

2018-07-02 Thread Marek Vasut
On 07/02/2018 02:34 PM, Emmanuel Vadot wrote: > When using CONFIG_OF_BOARD on rpi to use the dtb provided by the > RaspberryPi Fundation, the compatible string isn't the same, resulting > in not-functional usb from u-boot. > > Signed-off-by: Oleksandr Tymoshenko > Signed-off-by: Emmanuel Vadot >

[U-Boot] [PATCH] rpi: Add mmc 1 as a boot target

2018-07-02 Thread Emmanuel Vadot
When booting with the rpi-firmware "mmc" overlay that disable the SDHOST controller and use the SDHCI one for the sd card, mmc 1 because a viable boot target. Add it to the list Signed-off-by: Oleksandr Tymoshenko Signed-off-by: Emmanuel Vadot --- include/configs/rpi.h | 1 + 1 file changed, 1

[U-Boot] [PATCH] usb: dwc2: Add brcm,bcm2708-usb compatible

2018-07-02 Thread Emmanuel Vadot
When using CONFIG_OF_BOARD on rpi to use the dtb provided by the RaspberryPi Fundation, the compatible string isn't the same, resulting in not-functional usb from u-boot. Signed-off-by: Oleksandr Tymoshenko Signed-off-by: Emmanuel Vadot --- drivers/usb/host/dwc2.c | 1 + 1 file changed, 1 inser

[U-Boot] [PATCH] video: arm: rpi: Add brcm,bcm2708-fb compatible

2018-07-02 Thread Emmanuel Vadot
When using CONFIG_OF_BOARD on rpi to use the dtb provided by the RaspberryPi Fundation, the compatible string isn't the same, resulting in not-functional video in u-boot. Signed-off-by: Oleksandr Tymoshenko Signed-off-by: Emmanuel Vadot --- drivers/video/bcm2835.c | 1 + 1 file changed, 1 inser

Re: [U-Boot] [PATCH v5 4/5] cmd: nvedit: env import can now import only variables passed as parameters

2018-07-02 Thread Quentin Schulz
Hi Wolfgang, On Mon, Jul 02, 2018 at 01:21:09PM +0200, Wolfgang Denk wrote: > Dear Quentin, > > In message <20180702092548.bciqnfyd7d2hv26x@qschulz> you wrote: > > > > > Hm I don't see what you mean. himport_r imports a set of new > > > name=value pairs (in different formats); however, ther

Re: [U-Boot] [PATCH 1/7] armv8: fsl-layerscape: add configs for missing register blocks addresses

2018-07-02 Thread Laurentiu Tudor
Hi York, > -Original Message- > From: York Sun > Sent: Thursday, June 28, 2018 6:18 PM > > On 06/28/2018 02:42 AM, Laurentiu Tudor wrote: > > Add config defines with the sata, edma and qdma register block > > base addresses. Also white list the newly introduced defines. > > > > Signed-off

Re: [U-Boot] [PATCH v5 4/5] cmd: nvedit: env import can now import only variables passed as parameters

2018-07-02 Thread Wolfgang Denk
Dear Quentin, In message <20180702092548.bciqnfyd7d2hv26x@qschulz> you wrote: > > > Hm I don't see what you mean. himport_r imports a set of new > > name=value pairs (in different formats); however, there is no way to > > specify a name without a value, so himport_r by itself will not > > de

[U-Boot] [PATCH 3/4] efi_loader: check parameters of GetMemoryMap

2018-07-02 Thread Heinrich Schuchardt
Check the parameters of boottime service GetMemoryMap(). Return EFI_INVALID_PARAMETER where required by the UEFI spec. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_memory.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/lib/efi_loader

[U-Boot] [PATCH 1/4] efi_loader: check parameters of CreateEvent

2018-07-02 Thread Heinrich Schuchardt
Rigorously check the TPL level and the event type. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 35 --- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 298

[U-Boot] [PATCH 4/4] efi_loader: check map_key in ExitBootServices

2018-07-02 Thread Heinrich Schuchardt
The UEFI spec requires that the memory map key is checked in ExitBootServices(). Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 3 +++ lib/efi_loader/efi_boottime.c | 4 lib/efi_loader/efi_memory.c | 8 +++- 3 files changed, 14 insertions(+), 1 deletion(-) dif

[U-Boot] [PATCH 2/4] efi_loader: check parameters in memory allocation

2018-07-02 Thread Heinrich Schuchardt
If no pointer is provided throw an error. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_memory.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c index 86edfc95f4..f5aecd4b41 100644 --- a/lib/efi_loader/efi_memory.c +

[U-Boot] [PATCH 0/4] efi_loader: check parameters

2018-07-02 Thread Heinrich Schuchardt
The patches in this series provide a more rigorous checking of function parameters. Heinrich Schuchardt (4): efi_loader: check parameters of CreateEvent efi_loader: check parameters in memory allocation efi_loader: check parameters of GetMemoryMap efi_loader: check map_key in ExitBootServi

Re: [U-Boot] CONFIG_BOOTDELAY and env_default.h

2018-07-02 Thread Alex Kiernan
On Mon, Jul 2, 2018 at 3:25 AM Tom Rini wrote: > > On Fri, Jun 29, 2018 at 09:19:34PM -0700, Simon Glass wrote: > > +Tom > > > > Hi Alex, > > > > On 29 June 2018 at 02:31, Alex Kiernan wrote: > > > > > > I've just been digging into a problem where I've got both > > > CONFIG_ENV_IS_NOWHERE set and

Re: [U-Boot] [PATCH v5 4/5] cmd: nvedit: env import can now import only variables passed as parameters

2018-07-02 Thread Quentin Schulz
Hi Wolfgang, On Fri, Jun 29, 2018 at 02:52:29PM +0200, Wolfgang Denk wrote: > Dear Quentin, > > In message <20180629121942.lm4qbfmm5ya7fsx2@qschulz> you wrote: > > > > > I suggest that this isNOT the default behaviour. I think most > > > peaople would expect that this command only adds/replaces

Re: [U-Boot] [PATCH v1 1/5] ARM: PSCI: initialize stack pointer on secondary CPUs

2018-07-02 Thread Patrick DELAUNAY
Hi Stefan > From: Stefan Agner [mailto:ste...@agner.ch] > Sent: mercredi 27 juin 2018 10:36 > Subject: Re: [PATCH v1 1/5] ARM: PSCI: initialize stack pointer on secondary > CPUs > > On 24.06.2018 21:09, Stefan Agner wrote: > > From: Stefan Agner > > > > A proper stack is required to safely use

Re: [U-Boot] [PATCH v3 2/3] doc: dtbinding: Add file system firmware loader binding document

2018-07-02 Thread Chee, Tien Fong
On Fri, 2018-06-29 at 21:19 -0700, Simon Glass wrote: > Hi Tien Fong, > > On 28 June 2018 at 01:58, Chee, Tien Fong > wrote: > > > > On Thu, 2018-06-28 at 01:04 -0700, Chee, Tien Fong wrote: > > > > > > On Wed, 2018-06-27 at 14:03 -0700, Simon Glass wrote: > > > > > > > > > > > > Hi Tien Fong

Re: [U-Boot] build fail due to dependence error

2018-07-02 Thread Dr. Philipp Tomsich
Kever, Could you check the build artifacts in Jenkins to see whether after the ‘make [configname]_defconfig’, the link for asm/arch is correctly set up? Thanks, Philipp. > On 2 Jul 2018, at 09:54, Kever Yang wrote: > > Hi Simon, > > > On 06/30/2018 12:19 PM, Simon Glass wrote: >> Hi, >> >>

Re: [U-Boot] [PATCH v3 3/3] common: Generic loader for file system

2018-07-02 Thread Chee, Tien Fong
On Fri, 2018-06-29 at 14:13 +0200, Anatolij Gustschin wrote: > Hi, > > please see some comments below. > > On Mon, 25 Jun 2018 21:28:58 +0800 > tien.fong.c...@intel.com tien.fong.c...@intel.com wrote: > > > > > +/** > > + * _request_firmware_prepare - Prepare firmware struct. > > + * > > + * @f

Re: [U-Boot] [UBOOT PATCH v5 0/4] spi:xilinx_spi: Modify xilinx spi driver

2018-07-02 Thread Jagan Teki
On Sat, Jun 30, 2018 at 8:15 AM, Vipul Kumar wrote: > This series of patches do the following: > - This patch added support to get reg base address from DTS file > - Added rxfifo() and txfifo() functions to add the modularity > - Added support to read JEDEC-id twice at the boot time > - Added live

Re: [U-Boot] [PATCH v5 1/6] sunxi: R40: add gigabit ethernet clocks

2018-07-02 Thread Jagan Teki
On Thu, Jun 28, 2018 at 2:06 AM, Lothar Felten wrote: > Add clock control entries for the gigabit interface of the Allwinner > R40/V40 CPU > > Acked-by: Maxime Ripard > Reviewed-by: Joe Hershberger > Signed-off-by: Lothar Felten > > --- > Changelog: > new in v2 > v2->v3->4->v5: none > --- E

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

2018-07-02 Thread Jagan Teki
On Wed, Jun 27, 2018 at 6:12 AM, Andre Przywara wrote: > 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

Re: [U-Boot] build fail due to dependence error

2018-07-02 Thread Kever Yang
Hi Simon, On 06/30/2018 12:19 PM, Simon Glass wrote: > Hi, > > On 28 June 2018 at 01:41, Dr. Philipp Tomsich > wrote: >> Kever, >> >> is the link for ‘asm’ set up correctly? >> >> Thanks, >> Philipp. >> >> On 28 Jun 2018, at 10:38, Kever Yang wrote: >> >> Hi Simon, >> >> Do you have any

Re: [U-Boot] [PATCH 2/2] dm: sunxi: Use DM for MMC and SATA on all A10 boards

2018-07-02 Thread Maxime Ripard
On Sat, Jun 30, 2018 at 01:02:29AM +0100, Adam Sampson wrote: > Use the driver model for MMC and SATA, in preparation for CONFIG_BLK > defaulting to y. > > Tested on A10 Cubieboard. > > Signed-off-by: Adam Sampson Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin (formerly Free Elect

Re: [U-Boot] [PATCH 1/2] dm: mmc: sunxi: Add A10/A20 compatible strings

2018-07-02 Thread Maxime Ripard
On Sat, Jun 30, 2018 at 01:02:28AM +0100, Adam Sampson wrote: > Commit dd27918c2252 ("dm: mmc: sunxi: Add support for driver model") > only added the allwinner,sun5i-a13-mmc compatible string for this > driver. The DM initialisation code here also works with (at least) A10 > and A20, so add the app

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

2018-07-02 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 v5: (As suggested by Simon Gl

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

2018-07-02 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 v5: None 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

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

2018-07-02 Thread Ramon Fried
Added necessary nodes for Qualcomm smem driver. Signed-off-by: Ramon Fried Reviewed-by: Simon Glass --- Changes in v5: None 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 +

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

2018-07-02 Thread Ramon Fried
Add Sandbox driver for SMEM. mostly stub operations. Signed-off-by: Ramon Fried --- Changes in v5: None 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/Kcon

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

2018-07-02 Thread Ramon Fried
Added necessary nodes for Qualcomm smem driver. Signed-off-by: Ramon Fried Reviewed-by: Simon Glass --- Changes in v5: None 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