Re: [U-Boot] [PATCH] board: amlogic: document alternative libretech-cc installation methods

2019-08-06 Thread Peter Robinson
On Wed, 7 Aug 2019, 04:25 Daniel Drake, wrote: > On Tue, Aug 6, 2019 at 4:31 PM Remi Pommarel wrote: > > I don't know if it worth being mentioned here, but there is also a > > reverse engineered effort on bl31 for gxl. > > > > Thus it should be possible to use a bl31 built from mainline branch

Re: [U-Boot] [PATCH] board: amlogic: document alternative libretech-cc installation methods

2019-08-06 Thread Daniel Drake
On Tue, Aug 6, 2019 at 4:31 PM Remi Pommarel wrote: > I don't know if it worth being mentioned here, but there is also a > reverse engineered effort on bl31 for gxl. > > Thus it should be possible to use a bl31 built from mainline branch of > https://github.com/ARM-software/arm-trusted-firmware.

[U-Boot] [PATCH] spi: add NXP FlexSPI driver

2019-08-06 Thread Peng Fan
Add NXP Flexspi driver for i.MX8 Family usage. Flexible Serial Peripheral Interface (FlexSPI) host controller supports two SPI channels and up to 4 external devices. Each channel supports Single/Dual/Quad/Octal mode data transfer (1/2/4/8 bidirectional data lines). Signed-off-by: Peng Fan ---

[U-Boot] Standalone application support in SPL

2019-08-06 Thread William Zhang
Hi All, Has anyone come across to the need to run the standalone application in SPL? Due to the onchip SRAM size limitation in our chip, we will need run the small foot print SPL to initialization DDR before we load the u-boot proper to the main DDR memory. We will have to run our DDR

Re: [U-Boot] [PATCH] Update include/android_image.h from AOSP

2019-08-06 Thread Sam Protsenko
Hi Alex, On Mon, Aug 5, 2019 at 11:25 PM Alex Deymo wrote: > > This takes the latest changes from AOSP from the file > include/bootimg/bootimg.h from the repository: > https://android.googlesource.com/platform/system/tools/mkbootimg > and update the U-Boot version with the latest changes. > >

Re: [U-Boot] EFI_PXE_BASE_CODE_PROTOCOL

2019-08-06 Thread Leif Lindholm
On Tue, Aug 06, 2019 at 08:52:09PM +0200, Heinrich Schuchardt wrote: > > > > EFI_PXE_BASE_CODE_PACKET DhcpAck is a union: > > > > > > > > typedef union { > > > > UINT8 Raw[1472]; > > > > EFI_PXE_BASE_CODE_DHCPV4_PACKET Dhcpv4; > > > >

Re: [U-Boot] EFI_PXE_BASE_CODE_PROTOCOL

2019-08-06 Thread Heinrich Schuchardt
On 8/6/19 7:02 PM, Peter Jones wrote: On Tue, Aug 06, 2019 at 09:44:14AM +0100, Leif Lindholm wrote: +Peter Jones (sorry Peter) + Javier Martinez Canillas On Tue, Aug 06, 2019 at 08:34:58AM +0200, Heinrich Schuchardt wrote: iPXE uses the EFI simple network protocol to execute DHCP. OK.

Re: [U-Boot] [PATCH 1/2] watchdog: imx: Add DT ext-reset handling

2019-08-06 Thread Robert Hancock
On 2019-08-06 11:11 a.m., Marek Vasut wrote: > On 8/6/19 7:05 PM, Robert Hancock wrote: >> The Linux imx2_wdt driver uses a fsl,ext-reset-output boolean in the >> device tree to specify whether the board design should use the external >> reset instead of the internal reset. Use this boolean to

Re: [U-Boot] [PATCH 1/2] watchdog: imx: Add DT ext-reset handling

2019-08-06 Thread Marek Vasut
On 8/6/19 7:05 PM, Robert Hancock wrote: > The Linux imx2_wdt driver uses a fsl,ext-reset-output boolean in the > device tree to specify whether the board design should use the external > reset instead of the internal reset. Use this boolean to determine which > mode to use rather than using

Re: [U-Boot] [PATCH 2/2] efi_loader: set the dhcp ack received flag

2019-08-06 Thread Heinrich Schuchardt
On 8/4/19 1:52 PM, Heinrich Schuchardt wrote: On 8/2/19 9:26 PM, Patrick Wildt wrote: On Wed, Apr 10, 2019 at 11:24:53AM +0200, Patrick Wildt wrote: On Wed, Apr 10, 2019 at 11:20:35AM +0200, Patrick Wildt wrote: On Thu, Jan 31, 2019 at 07:29:04PM +0100, Heinrich Schuchardt wrote: Do we

[U-Boot] [PATCH v4 2/5] usb: usb_submit_int_msg -> usb_int_msg

2019-08-06 Thread Michal Suchanek
This aligns naming with usb_bulk_msg and usb_control_msg. Signed-off-by: Michal Suchanek --- v2: new patch v4: fix indentation of function arguments --- common/usb.c | 4 ++-- common/usb_kbd.c | 8 include/usb.h| 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff

[U-Boot] [PATCH v4 1/5] usb_kdb: only process events succesfully received

2019-08-06 Thread Michal Suchanek
Causes unbound key repeat on error otherwise. Signed-off-by: Michal Suchanek --- v2: fix indentation v4: fix ! condition to >= 0 --- common/usb_kbd.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/usb_kbd.c b/common/usb_kbd.c index cc99c6be0720..5ee6006012f2

[U-Boot] [PATCH v4 3/5] usb: storage: submit_int_msg -> usb_int_msg

2019-08-06 Thread Michal Suchanek
Use the wrapper as other callers do. Signed-off-by: Michal Suchanek --- v2: usb_submit_int_msg -> usb_int_msg v3: fix indentation --- common/usb_storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/usb_storage.c b/common/usb_storage.c index

[U-Boot] [PATCH v4 5/5] dwc2: use the nonblock argument in submit_int_msg

2019-08-06 Thread Michal Suchanek
An USB 1.1 keyboard connected to dwc2 through a high-speed hub does not report status until it changes. With this patch you can enable keyboard by pressing a key while USB devices are probed. Without a keypress no state is reported and the probe times out. We don't want to wait for a keypress or

[U-Boot] [PATCH v4 4/5] usb: Add nonblock argument to submit_int_msg

2019-08-06 Thread Michal Suchanek
This will be used to implement non-blocking keyboard polling in case of errors. Signed-off-by: Michal Suchanek --- v2: add missing hunk from last patch v4: - propagate nonblock argument to wrapper - add documentation of nonblock argument to wrapper --- common/usb.c | 9

[U-Boot] [PATCH 2/2] watchdog: imx: Use immediate reset bits for expire_now

2019-08-06 Thread Robert Hancock
The expire_now function was previously setting the watchdog timeout to minimum and waiting for the watchdog to expire. However, this watchdog also has bits to trigger immediate reset. Use those instead, like the Linux imx2_wdt driver does. Signed-off-by: Robert Hancock ---

[U-Boot] [PATCH 1/2] watchdog: imx: Add DT ext-reset handling

2019-08-06 Thread Robert Hancock
The Linux imx2_wdt driver uses a fsl,ext-reset-output boolean in the device tree to specify whether the board design should use the external reset instead of the internal reset. Use this boolean to determine which mode to use rather than using external reset unconditionally. For the legacy non-DM

[U-Boot] [PATCH 0/2] imx watchdog updates

2019-08-06 Thread Robert Hancock
Update the iMX watchdog driver functionality to more closely match the Linux driver by controlling the external reset bits according to the device tree settings, and using the immediate reset bits when told to expire now. Robert Hancock (2): watchdog: imx: Add DT ext-reset handling watchdog:

Re: [U-Boot] EFI_PXE_BASE_CODE_PROTOCOL

2019-08-06 Thread Peter Jones
On Tue, Aug 06, 2019 at 09:44:14AM +0100, Leif Lindholm wrote: > +Peter Jones (sorry Peter) + Javier Martinez Canillas > On Tue, Aug 06, 2019 at 08:34:58AM +0200, Heinrich Schuchardt wrote: > > iPXE uses the EFI simple network protocol to execute DHCP. > > OK. > > > Can GRUB already do the

Re: [U-Boot] [PATCH 06/14] net: ti: icssg-prueth: Add ICSSG ethernet driver

2019-08-06 Thread Andreas Dannenberg
On Tue, Aug 06, 2019 at 04:08:36PM +0530, Keerthy wrote: > This is the Ethernet driver for TI SoCs with the > ICSSG PRU Sub-system running EMAC firmware. > This driver caters to either of the slices(pru/rtu pair) > of the icssg subsystem. > > Following are the firmwares needed to run cores: > >

Re: [U-Boot] [PATCH 12/14] arm64: dts: ti: am654-base-board: add ICSSG2 Ethernet support

2019-08-06 Thread Andreas Dannenberg
On Tue, Aug 06, 2019 at 04:08:42PM +0530, Keerthy wrote: > ICSSG2 provide dual Gigabit Ethernet support. > Currently mdio clock is part of this node and also > the icssg2_rgmii_pins_default pinmux node has the > mdio pins as there is no davinci mdio driver. > > Currently icssg2 instances are

[U-Boot] [PATCH v3 1/7] net: mvpp2x: fix traffic stuck after PHY start error

2019-08-06 Thread nhed+uboot
From: Stefan Chulski Issue: - Network stuck if autonegotion fails. Issue root cause: - When autonegotiation fails during port open procedure, the packet processor configuration does not finish and open procedure exits with error. - However, this doesn't prevent u-boot network framework

[U-Boot] [PATCH v3 0/7] Switch MVPP2 to use new MVMDIO

2019-08-06 Thread nhed+uboot
From: Nevo Hed This patchset includes several commits form Marvell's downstream repo including Ken Ma's patch to replace the SMI implementation with his own Marvell MDIO impolementation. That MVMDIO implementation never made it to upstream and has since been re-implemented by Alex Marginean and

[U-Boot] [PATCH v3 4/7] net: mvpp2: no deref null

2019-08-06 Thread nhed+uboot
From: Nevo Hed phy_dev ptr is set from return of phy_connect() and is used before test to see if NULL. Obviously since the test already sxists someone made the determination that this NULL is possible. Signed-off-by: Nevo Hed --- drivers/net/mvpp2.c | 3 ++- 1 file changed, 2 insertions(+),

[U-Boot] [PATCH v3 5/7] arm: dts: armada-cp110-*dtsi: add xmdio nodes

2019-08-06 Thread nhed+uboot
From: Nevo Hed Based on upstream-linux See https://github.com/torvalds/linux/commit/f66b2aff. However made the XSMI register window 0x16 (22) bytes per my reading of the functional spec. Similar commits in Marvels own repo bump it to 0x200 (512) bytes but I did not see the reasoning for that.

[U-Boot] [PATCH v3 6/7] net: mvpp2: use new MVMDIO driver

2019-08-06 Thread nhed+uboot
From: Nevo Hed An earlier commit in this changeset is taken from Marvells repos but was based on an MVMDIO implementation that never made it into U-Boot. With this patch the mvpp2 driver switches to use the new MVMDIO driver that is based on a more universal mdio-uclass implementation.

[U-Boot] [PATCH v3 3/7] net: mvpp2: mark phy as invalid in case of missing appropriate driver

2019-08-06 Thread nhed+uboot
From: Grzegorz Jaszczyk If the phy doesn't match with any existing u-boot drivers, the phy framework will connect it to the generic one which uid == 0x. In this case, act as if the phy wouldn't be declared in dts. Otherwise, in case of 3310 (for which the driver doesn't exist) the link

[U-Boot] [PATCH v3 2/7] net: mvpp2: Replace SMI implementation with marvell MDIO API

2019-08-06 Thread nhed+uboot
From: Ken Ma The availability of the marvell MDIO driver enables us to eliminate the SMI function implementation within the mvpp2 driver. This replacement also fixes 2 old issues: 1. Each pp2 port device now has its own mdio bus field member since some pp2 ports may use SMI mdio bus while

[U-Boot] [PATCH v3 7/7] net: mvpp2: MVPP2 now needs MVMDIO

2019-08-06 Thread nhed+uboot
From: Nevo Hed Changes to mvpp2.c require the MVMDIO module which in turn uses DM_MDIO. Signed-off-by: Nevo Hed --- drivers/net/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 5fd31b03cf..81f39d0928 100644 --- a/drivers/net/Kconfig

Re: [U-Boot] [PATCH 04/14] soc: ti: pruss: add a misc driver for PRUSS in TI SoCs

2019-08-06 Thread Andreas Dannenberg
On Tue, Aug 06, 2019 at 04:08:34PM +0530, Keerthy wrote: > The Programmable Real-Time Unit - Industrial Communication > Subsystem (PRU-ICSS) is present of various TI SoCs such as > AM335x or AM437x or the AM654x family. Each SoC can have > one or more PRUSS instances that may or may not be

Re: [U-Boot] [PATCH 11/14] arm: dts: k3-am65-main: Add pruss nodes for ICSSG2

2019-08-06 Thread Suman Anna
Hi Keerthy, On 8/6/19 5:38 AM, Keerthy wrote: > Add pruss nodes. Add nodes as in the 4.19 integration kernel. > > Signed-off-by: Keerthy > --- > arch/arm/dts/k3-am65-main.dtsi | 183 + > 1 file changed, 183 insertions(+) > > diff --git

Re: [U-Boot] [PATCH] board: amlogic: document alternative libretech-cc installation methods

2019-08-06 Thread Neil Armstrong
Hi Daniel, On 06/08/2019 10:10, Daniel Drake wrote: > As already documented in this README, several binaries must be > glued together in order to boot the device. > > Extend the documentation to cover the prebuilt binaries > (saving you the hassle of installing ancient cross-compilers), > and

[U-Boot] [PATCH v2 6/7] ARM: meson: Add support for fastboot_set_reboot_flag()

2019-08-06 Thread Neil Armstrong
Add support for fastboot_set_reboot_flag() by storing the reboot flag in the common code to be used by the custom PSCI reboot handler. Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/board-common.c | 33 ++ 1 file changed, 33 insertions(+) diff --git

[U-Boot] [PATCH v2 3/7] arm: meson: add sm cmd to retrieve SoC serial

2019-08-06 Thread Neil Armstrong
The Secure Monitor offers multiple services, like returning the SoC unique serial number, already used to generate an unique MAC address. This adds a new, Amlogic specific, "sm" cmd with a "serial" subcommand to write the SoC unique serial to memory. This "cm" command will be extended in further

[U-Boot] [PATCH v2 5/7] boards: meson: add g12a sei510

2019-08-06 Thread Neil Armstrong
From: Jerome Brunet The SEI510 board is based on the Amlogic S905X2 SoC from the Amlogic G12A SoC family. The board has the following specifications : - Amlogic S905X2 ARM Cortex-A53 quad-core SoC - XGB DDR4 SDRAM - 10/100 Ethernet (Internal PHY) - 1 x USB 3.0 Host - eMMC - SDcard - Infrared

[U-Boot] [PATCH v2 7/7] configs: sei510: disable PSCI_RESET to support fastboot reboot_flag

2019-08-06 Thread Neil Armstrong
Disable the PSCI_RESET reboot handler to permit handling the reboot flag and calling the PSCI handler with the flag in parameter. Signed-off-by: Neil Armstrong --- configs/sei510_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sei510_defconfig b/configs/sei510_defconfig

Re: [U-Boot] [PATCH 08/14] arm: dts: k3-am65-main: Add msmc_ram node

2019-08-06 Thread Andreas Dannenberg
On Tue, Aug 06, 2019 at 04:08:38PM +0530, Keerthy wrote: > Add msmc_ram node needed for prueth > > Signed-off-by: Keerthy > --- > arch/arm/dts/k3-am65-main.dtsi | 21 + > arch/arm/dts/k3-am65.dtsi | 4 +++- > 2 files changed, 24 insertions(+), 1 deletion(-) > > diff

[U-Boot] [PATCH v2 2/7] configs: meson64: permit redefining ENV_SIZE

2019-08-06 Thread Neil Armstrong
Permit redefining ENV_SIZE for board specific configs. Signed-off-by: Neil Armstrong --- include/configs/meson64.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/meson64.h b/include/configs/meson64.h index 78b1615d5c..f8d3eee292 100644 --- a/include/configs/meson64.h +++

[U-Boot] [PATCH v2 1/7] ARM: dts: Import Amlogic G12A SEI510 DT from Linux 5.3-rc1

2019-08-06 Thread Neil Armstrong
Import Linux 5.2-rc1 sei510 DT from 5f9e832c1370 ("Linus 5.3-rc1") for the meson-g12a-sei510 board. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 1 + arch/arm/dts/meson-g12a-sei510.dts | 502 + 2 files changed, 503 insertions(+) create

[U-Boot] [PATCH v2 4/7] arm: meson: add sm command to retrieve the reboot reason

2019-08-06 Thread Neil Armstrong
The Secure Monitor offers multiple services, like returning the SoC unique serial number, and can provide the "reboot reason" as set by the previous booted system. This extends the Amlogic specific "sm" cmd with a "reboot_reason" subcommand to print or set a specified environment variable with

[U-Boot] [PATCH v2 0/7] amlogic: add support for the SEI Robotic SEI510

2019-08-06 Thread Neil Armstrong
The SEI510 board is based on the Amlogic S905X2 SoC from the Amlogic G12A SoC family. The board has the following specifications : - Amlogic S905X2 ARM Cortex-A53 quad-core SoC - XGB DDR4 SDRAM - 10/100 Ethernet (Internal PHY) - 1 x USB 3.0 Host - eMMC - SDcard - Infrared receiver - SDIO WiFi

Re: [U-Boot] [PATCH 03/14] misc: uclass: Introduce misc_init_by_ofnode

2019-08-06 Thread Andreas Dannenberg
On Tue, Aug 06, 2019 at 04:08:33PM +0530, Keerthy wrote: > Introduce misc_init_by_ofnode to probe a misc device > using its ofnode. > > Signed-off-by: Keerthy > --- > drivers/misc/misc-uclass.c | 25 + > include/misc.h | 9 + > 2 files changed, 34

Re: [U-Boot] [PATCH 00/14] net: ti: icssg: Add prueth support

2019-08-06 Thread Andreas Dannenberg
Keerthy, On Tue, Aug 06, 2019 at 04:08:30PM +0530, Keerthy wrote: > The series adds support for icssg_prueth functionality > on u-boot. This series is based on top of master branch. > rproc init needs to be done from uboot command prompt. > The pru/rtu firmware loading is done by prueth driver

[U-Boot] [PATCH v3 2/8] phy: mediatek: add MediaTek T-PHY support for PCIe

2019-08-06 Thread Frank Wunderlich
From: Ryder Lee The driver provides PHY for USB2, USB3.0, PCIe and SATA, and now we just enable PCIe. As for the other functionalities will be added gradually in upcoming days. This is adapted from the Linux version. changes since v2: - use clrsetbits_le32 instead of readl/writel - change

[U-Boot] [PATCH v3 1/8] pci: mediatek: add PCIe controller support for MT7623

2019-08-06 Thread Frank Wunderlich
From: Ryder Lee This adds PCIe controller support for MT7623. This is adapted from the Linux version. changes since v2: - rename driver to "MediaTek PCIe Gen2 controller" - use clrsetbits_le32 instead of readl/writel Tested-by: Frank Wunderlich Signed-off-by: Ryder Lee Signed-off-by: Frank

[U-Boot] [PATCH v3 5/8] dt-bindings: pcie: add a document for MT7623 PCIe controller

2019-08-06 Thread Frank Wunderlich
From: Ryder Lee This adds a document for MT7623 PCIe controller. changes since v2: dt-bindings added with v3 Signed-off-by: Ryder Lee Signed-off-by: Frank Wunderlich --- .../pci/mediatek-pcie.txt | 122 ++ 1 file changed, 122 insertions(+) create mode

[U-Boot] [PATCH v3 4/8] arm: dts: split mtk-reset.h into per-chip header

2019-08-06 Thread Frank Wunderlich
From: Ryder Lee This follows the linux header rules to avoid conflict bitfields. changes since v2: none Tested-by: Frank Wunderlich Signed-off-by: Ryder Lee Signed-off-by: Frank Wunderlich --- arch/arm/dts/mt7623.dtsi | 2 +- arch/arm/dts/mt7629.dtsi

[U-Boot] [PATCH v3 6/8] dt-bindings: phy: add a document for MediaTek tphy

2019-08-06 Thread Frank Wunderlich
From: Ryder Lee This adds a document for tphy which supports physical layer functionality for a number of controllers on MediaTek SoCs, such as, USB2.0, USB3.0, PCIe, and SATA. changes since v2: dt-bindings added with v3 Signed-off-by: Ryder Lee Signed-off-by: Frank Wunderlich ---

[U-Boot] [PATCH v3 0/8] add PCIe, its PHY and AHCI support for mt7623

2019-08-06 Thread Frank Wunderlich
This series adds PCIe/PHY drivers which were adapted from Linux version. The related drivers were tested on bpi-r2. To get AHCI (SATA) working on R2 (ASM1061 PCIe2SATA-Controller) 2 addional changes are needed (see Parts 5+6 from Oleksandr Rybalko) changes since v2: - rename pcie-driver to

[U-Boot] [PATCH v3 8/8] ata: ahci: Don't forget to clear upper address regs.

2019-08-06 Thread Frank Wunderlich
From: Oleksandr Rybalko In 32bits mode upper bits need to be set to 0, otherwise controller will try to DMA into not existing memory and stops with error. changes since v2: none Tested-by: Frank Wunderlich Signed-off-by: Frank Wunderlich Signed-off-by: Oleksandr Rybalko ---

[U-Boot] [PATCH v3 3/8] arm: dts: add PCIe controller for MT7623 SoC

2019-08-06 Thread Frank Wunderlich
From: Ryder Lee This adds PCIe and its PHY nodes for MT7623. changes since v2: none Tested-by: Frank Wunderlich Signed-off-by: Ryder Lee Signed-off-by: Frank Wunderlich --- arch/arm/dts/mt7623.dtsi | 128 +++ arch/arm/dts/mt7623n-bananapi-bpi-r2.dts |

[U-Boot] [PATCH v3 7/8] ahci-pci: ASM1061 report wrong class, but support AHCI.

2019-08-06 Thread Frank Wunderlich
From: Oleksandr Rybalko changes since v2: none Tested-by: Frank Wunderlich Signed-off-by: Frank Wunderlich Signed-off-by: Oleksandr Rybalko --- drivers/ata/ahci-pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ata/ahci-pci.c b/drivers/ata/ahci-pci.c index

Re: [U-Boot] [RFC PATCH] cmd: avb: Support A/B slots

2019-08-06 Thread Sam Protsenko
Hi Igor, On Tue, Aug 6, 2019 at 4:07 PM Igor Opaniuk wrote: > > Hi Sam, > > Sorry for the late reply, > > On Fri, Aug 2, 2019 at 9:57 PM Sam Protsenko > wrote: > > > > Hi Igor, Jens, > > > > Can you please comments on next topics: > > 1. With enabled A/B partitions, we have boot_a/boot_b, >

Re: [U-Boot] [RFC PATCH] cmd: avb: Support A/B slots

2019-08-06 Thread Igor Opaniuk
Hi Sam, Sorry for the late reply, On Fri, Aug 2, 2019 at 9:57 PM Sam Protsenko wrote: > > Hi Igor, Jens, > > Can you please comments on next topics: > 1. With enabled A/B partitions, we have boot_a/boot_b, > system_a/system_b, vendor_a/vendor_b partitions. Therefore >

[U-Boot] [PATCH 11/14] arm: dts: k3-am65-main: Add pruss nodes for ICSSG2

2019-08-06 Thread Keerthy
Add pruss nodes. Add nodes as in the 4.19 integration kernel. Signed-off-by: Keerthy --- arch/arm/dts/k3-am65-main.dtsi | 183 + 1 file changed, 183 insertions(+) diff --git a/arch/arm/dts/k3-am65-main.dtsi b/arch/arm/dts/k3-am65-main.dtsi index

[U-Boot] [PATCH 14/14] configs: am65x_evm_a53_defconfig: Enable CONFIG_CMD_REMOTEPROC

2019-08-06 Thread Keerthy
Enable CONFIG_CMD_REMOTEPROC needed to load prueth firmwares. Signed-off-by: Keerthy --- configs/am65x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index dfb5bec794..a127610380 100644 ---

[U-Boot] [PATCH 12/14] arm64: dts: ti: am654-base-board: add ICSSG2 Ethernet support

2019-08-06 Thread Keerthy
ICSSG2 provide dual Gigabit Ethernet support. Currently mdio clock is part of this node and also the icssg2_rgmii_pins_default pinmux node has the mdio pins as there is no davinci mdio driver. Currently icssg2 instances are supported. Either mii0 or mii1 can be enabled at a time. Signed-off-by:

[U-Boot] [PATCH 10/14] arm: dts: k3-am65-main: Add scm_conf node

2019-08-06 Thread Keerthy
Add scm_conf node needed for prueth. Signed-off-by: Keerthy --- arch/arm/dts/k3-am65-main.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/k3-am65-main.dtsi b/arch/arm/dts/k3-am65-main.dtsi index 8e2a506185..0cd3e5e606 100644 --- a/arch/arm/dts/k3-am65-main.dtsi +++

[U-Boot] [PATCH 08/14] arm: dts: k3-am65-main: Add msmc_ram node

2019-08-06 Thread Keerthy
Add msmc_ram node needed for prueth Signed-off-by: Keerthy --- arch/arm/dts/k3-am65-main.dtsi | 21 + arch/arm/dts/k3-am65.dtsi | 4 +++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/k3-am65-main.dtsi b/arch/arm/dts/k3-am65-main.dtsi

[U-Boot] [PATCH 13/14] configs: am65x_evm_a53_defconfig: Enable CONFIG_REMOTEPROC_TI_PRU

2019-08-06 Thread Keerthy
Enable CONFIG_REMOTEPROC_TI_PRU and related configs. With that enable ICSSG_PRUETH config. Signed-off-by: Keerthy --- configs/am65x_evm_a53_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index

[U-Boot] [PATCH 07/14] net: ti: icssg-prueth: Workaround to shutdown the prueth firmware

2019-08-06 Thread Keerthy
Currently shutdown command is yet to be implemented. So work around clearing the task manager of ICSSG. Signed-off-by: Keerthy --- drivers/net/ti/icssg-prueth.c | 8 drivers/soc/ti/pruss.c| 15 +++ include/ti-pruss.h| 1 + 3 files changed, 24

[U-Boot] [PATCH 06/14] net: ti: icssg-prueth: Add ICSSG ethernet driver

2019-08-06 Thread Keerthy
This is the Ethernet driver for TI SoCs with the ICSSG PRU Sub-system running EMAC firmware. This driver caters to either of the slices(pru/rtu pair) of the icssg subsystem. Following are the firmwares needed to run cores: am65x-pru0-prueth-fw.elf for pru0 of slice0 am65x-rtu0-prueth-fw.elf for

[U-Boot] [PATCH 09/14] arm: dts: k3-am654-base-board-u-boot: Add icssg specific msmc_ram carveout nodes

2019-08-06 Thread Keerthy
Add icssg specific msmc_ram carveout nodes Signed-off-by: Keerthy --- Carving out as there is no msmc-ram driver. Suggestions welcome. arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/k3-am654-base-board-u-boot.dtsi

[U-Boot] [PATCH 05/14] remoteproc: pruss: add PRU remoteproc driver

2019-08-06 Thread Keerthy
The Programmable Real-Time Unit Subsystem (PRUSS) consists of dual 32-bit RISC cores (Programmable Real-Time Units, or PRUs) for program execution. This patch adds a remoteproc platform driver for managing the individual PRU RISC cores life cycle. The driver currently supports the AM65xx SoC

[U-Boot] [PATCH 04/14] soc: ti: pruss: add a misc driver for PRUSS in TI SoCs

2019-08-06 Thread Keerthy
The Programmable Real-Time Unit - Industrial Communication Subsystem (PRU-ICSS) is present of various TI SoCs such as AM335x or AM437x or the AM654x family. Each SoC can have one or more PRUSS instances that may or may not be identical. The PRUSS consists of dual 32-bit RISC cores called the

[U-Boot] [PATCH 01/14] net: eth-uclass: eth_get_dev based on SEQ_ALIAS instead of probe order

2019-08-06 Thread Keerthy
In case of multiple eth interfaces currently eth_get_dev fetches the device based on the probe order which can be random hence try with the alias. Signed-off-by: Keerthy --- net/eth-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/eth-uclass.c

[U-Boot] [PATCH 03/14] misc: uclass: Introduce misc_init_by_ofnode

2019-08-06 Thread Keerthy
Introduce misc_init_by_ofnode to probe a misc device using its ofnode. Signed-off-by: Keerthy --- drivers/misc/misc-uclass.c | 25 + include/misc.h | 9 + 2 files changed, 34 insertions(+) diff --git a/drivers/misc/misc-uclass.c

[U-Boot] [PATCH 02/14] net: eth-uclass: call stop only for active devices

2019-08-06 Thread Keerthy
Currently stop is being called unconditionally without even checking if start is called which will result in crash where multiple instances are present and stop gets called even without calling start. Signed-off-by: Keerthy --- net/eth-uclass.c | 3 ++- 1 file changed, 2 insertions(+), 1

[U-Boot] [PATCH 00/14] net: ti: icssg: Add prueth support

2019-08-06 Thread Keerthy
The series adds support for icssg_prueth functionality on u-boot. This series is based on top of master branch. rproc init needs to be done from uboot command prompt. The pru/rtu firmware loading is done by prueth driver soon after config paramters are setup. Currently only slice0/1 of icssg2

Re: [U-Boot] [PATCH] board: amlogic: document alternative libretech-cc installation methods

2019-08-06 Thread Remi Pommarel
Hi Daniel, On Tue, Aug 06, 2019 at 04:10:42PM +0800, Daniel Drake wrote: > As already documented in this README, several binaries must be > glued together in order to boot the device. > > Extend the documentation to cover the prebuilt binaries > (saving you the hassle of installing ancient

[U-Boot] [PATCH] i2c: mxc: add CONFIG_CLK support

2019-08-06 Thread Peng Fan
When CONFIG_CLK enabled, use CLK UCLASS for clk related settings. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/mxc_i2c.h | 6 ++ drivers/i2c/mxc_i2c.c | 17 + 2 files changed, 23 insertions(+) diff --git

[U-Boot] [PATCH] tools: imx8mimage: fix HDMI/FIT parsing

2019-08-06 Thread Peng Fan
Add missed break for HDMI entry. And moving FIT parsing earlier, because it does not have parameter, it will not runs into CFG_REG_SIZE. Signed-off-by: Peng Fan --- tools/imx8mimage.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/imx8mimage.c

[U-Boot] [PATCH] pinctrl: imx: use devfdt_get_addr_size_index

2019-08-06 Thread Peng Fan
fdtdec_get_addr_size could not parse addr/size correctly is using address-cells 2 and size-cells 2 on an ARM32 SoC. So switch to use devfdt_get_addr_size_index. Signed-off-by: Peng Fan --- drivers/pinctrl/nxp/pinctrl-imx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[U-Boot] [PATCH 2/4] clk: imx: add pll14xx driver

2019-08-06 Thread Peng Fan
Add pll14xx driver Signed-off-by: Peng Fan --- drivers/clk/imx/clk-pll14xx.c | 371 ++ drivers/clk/imx/clk.h | 25 +++ 2 files changed, 396 insertions(+) create mode 100644 drivers/clk/imx/clk-pll14xx.c diff --git

[U-Boot] [PATCH 4/4] clk: imx: add i.MX8MM clk driver

2019-08-06 Thread Peng Fan
Add i.MX8MM clk driver support. Signed-off-by: Peng Fan --- drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk-imx8mm.c | 414 +++ 2 files changed, 416 insertions(+) create mode 100644 drivers/clk/imx/clk-imx8mm.c diff --git

[U-Boot] [PATCH 1/4] clk: imx: add Kconfig entry for i.MX8MM

2019-08-06 Thread Peng Fan
Add Kconfig entry for i.MX8MM Signed-off-by: Peng Fan --- drivers/clk/Kconfig | 4 ++-- drivers/clk/imx/Kconfig | 16 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index a3f0171b45..fce595b4b3 100644 ---

[U-Boot] [PATCH 3/4] clk: imx: add i.MX8M composite clk support

2019-08-06 Thread Peng Fan
Import i.MX8M composite clk from Linux Kernel 5.3.0-rc2 Signed-off-by: Peng Fan --- drivers/clk/imx/clk-composite-8m.c | 170 + 1 file changed, 170 insertions(+) create mode 100644 drivers/clk/imx/clk-composite-8m.c diff --git

[U-Boot] [PATCH 0/4] Prepare i.MX8MM clk

2019-08-06 Thread Peng Fan
This is to support i.MX8MM clk driver. i.MX8MM use similar clock design as i.MX7D, but it has use different PLL, so we need to add pll14xx driver. And to simplify the clock usage, import the composite clk driver from Linux Kernel, then we could have simple clk tree. This is to split the previous

Re: [U-Boot] [RESEND PATCH v2 06/15] arm: socfpga: agilex: Add system manager support

2019-08-06 Thread Ley Foon Tan
On Fri, Jul 12, 2019 at 6:50 PM Simon Goldschmidt wrote: > > On Thu, Jul 11, 2019 at 12:56 AM Ley Foon Tan wrote: > > > > On Tue, Jul 9, 2019 at 1:09 PM Simon Goldschmidt > > wrote: > > > > > > Am 04.07.2019 um 10:56 schrieb Ley Foon Tan: > > > > Add system manager support for Agilex. > > > > >

Re: [U-Boot] [RESEND PATCH v2 07/15] clk: agilex: Add clock driver for Agilex.

2019-08-06 Thread Ley Foon Tan
On Fri, Jul 12, 2019 at 6:47 PM Simon Goldschmidt wrote: > > On Thu, Jul 11, 2019 at 1:03 AM Ley Foon Tan wrote: > > > > On Tue, Jul 9, 2019 at 1:13 PM Simon Goldschmidt > > wrote: > > > > > > Am 04.07.2019 um 10:56 schrieb Ley Foon Tan: > > > > Add clock manager driver for Agilex. Provides

Re: [U-Boot] EFI_PXE_BASE_CODE_PROTOCOL

2019-08-06 Thread Leif Lindholm
+Peter Jones (sorry Peter) On Tue, Aug 06, 2019 at 08:34:58AM +0200, Heinrich Schuchardt wrote: > iPXE uses the EFI simple network protocol to execute DHCP. OK. > Can GRUB already do the same when the EFI_PXE_BASE_CODE_PROTOCOL is not > present? Yes. As of very recently (proper* DHCP support

Re: [U-Boot] [PATCH u-boot-marvell 1/1] arm: mvebu: turris_omnia: update defconfig

2019-08-06 Thread Stefan Roese
On 16.07.19 15:50, Marek BehĂșn wrote: Add Macronis SPI flash support - some Omnia routers are shipped with this SPI flash chip. Also add the memtest command to defconfig. Signed-off-by: Marek BehĂșn Reviewed-by: Stefan Roese Thanks, Stefan ___

[U-Boot] [PATCH] board: amlogic: document alternative libretech-cc installation methods

2019-08-06 Thread Daniel Drake
As already documented in this README, several binaries must be glued together in order to boot the device. Extend the documentation to cover the prebuilt binaries (saving you the hassle of installing ancient cross-compilers), and also mention the open source replacements for the encryption tool

Re: [U-Boot] EFI_PXE_BASE_CODE_PROTOCOL

2019-08-06 Thread Heinrich Schuchardt
Hello Leif, iPXE uses the EFI simple network protocol to execute DHCP. Can GRUB already do the same when the EFI_PXE_BASE_CODE_PROTOCOL is not present? What I do not understand about GRUB's grub_net_configure_by_dhcp_ack() is that it silently assumes IPv4 being used without even checking. This

Re: [U-Boot] [PATCH v2 3/3] arm: mvebu: clearfog: update eMMC documentation

2019-08-06 Thread Stefan Roese
On 29.07.19 09:12, Baruch Siach wrote: SPL now automatically selects the correct U-Boot image offset for both eMMC and SD card. No need to tweak CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR anymore. Signed-off-by: Baruch Siach --- board/solidrun/clearfog/README | 6 -- 1 file changed, 6

Re: [U-Boot] [PATCH v2 2/3] arm: mvebu: clearfog: set uboot image SD card offset

2019-08-06 Thread Stefan Roese
On 29.07.19 09:12, Baruch Siach wrote: Armada 38x ROM skips the first SD card offset when loading SPL. This affects the location of the main U-Boot image. SPL MMC code now supports U-Boot image offset based on run-time detection of the boot partition. Use this feature to make the same generated

Re: [U-Boot] [PATCH v2 1/3] spl: mmc: support uboot image offset on main partition

2019-08-06 Thread Stefan Roese
On 29.07.19 09:12, Baruch Siach wrote: On Armada 38x platforms the ROM code loads SPL from offset 0 of eMMC hardware boot partitions. When there are no boot partitions (i.e. SD card) the ROM skips the first sector that usually contains the (logical) partition table. Since the generated .kwb