[U-Boot] [PATCH 1/1] efi_loader: DisconnectController() with no driver

2019-06-01 Thread Heinrich Schuchardt
If DisconnectController() is called and no driver is managing ControllerHandle, return EFI_SUCCESS. UEFI SCT II 2017, 3.3.12 DisconnectController(), 5.1.3.12.4 - 5.1.3.12.6 Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 9 +++-- 1 file changed, 7 insertions(+), 2

Re: [U-Boot] cmd: mdio: Fix access to arbitrary PHY addresses

2019-06-01 Thread Joe Hershberger
Hi Vladimir, https://patchwork.ozlabs.org/patch/1107478/ 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] dm: net: macb: Update macb_linkspd_cb() signature

2019-06-01 Thread Joe Hershberger
Hi Bin, https://patchwork.ozlabs.org/patch/1103219/ 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] clk: sifive: Add clock driver for GEMGXL MGMT

2019-06-01 Thread Joe Hershberger
Hi Bin, https://patchwork.ozlabs.org/patch/1103216/ 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] dm: net: macb: Implement link speed change callback

2019-06-01 Thread Joe Hershberger
Hi Bin, https://patchwork.ozlabs.org/patch/1103218/ 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] riscv: sifive: fu540: Enable GEMGXL MGMT driver

2019-06-01 Thread Joe Hershberger
Hi Bin, https://patchwork.ozlabs.org/patch/1103220/ 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: eth-uclass: Write MAC address to hardware after probe

2019-06-01 Thread Joe Hershberger
Hi Thierry, https://patchwork.ozlabs.org/patch/1102109/ 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: eth-uclass: Support device tree MAC addresses

2019-06-01 Thread Joe Hershberger
Hi Thierry, https://patchwork.ozlabs.org/patch/1102110/ 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] Pull request: u-boot-net.git master

2019-06-01 Thread Joe Hershberger
Hi Tom, Tested on Jenkins at https://travis-ci.org/jhershbe/u-boot/builds/540178505 Basic bug fixes and minor features for 2019.07. The following changes since commit 8a802a2eefd36865eaa3d927d1db7af63bb2d922: Merge tag 'rockchip-for-v2019.07-rc3' of git://git.denx.de/u-boot-rockchip

[U-Boot] [PATCH 1/1] trace: undefined reference to `trace_early_init'

2019-06-01 Thread Heinrich Schuchardt
Compiling with TRACE but without TRACE_EARLY results in an error aarch64-linux-gnu-ld.bfd: common/built-in.o:(.rodata.init_sequence_f+0x10): undefined reference to `trace_early_init' trace_early_init() should not be called if CONFIG_TRACE_EARLY is not defined. Signed-off-by: Heinrich Schuchardt

[U-Boot] [PATCH 1/1] efi_selftest: unit test for OpenProtocolInformation()

2019-06-01 Thread Heinrich Schuchardt
Provide a unit test that checks that the open protocol information is correctly updated when opening and closing protocols. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Makefile | 1 + lib/efi_selftest/efi_selftest_open_protocol.c | 205 ++ 2

[U-Boot] [PATCH 1/1] efi_loader: CloseProtocol() fix open protocol information

2019-06-01 Thread Heinrich Schuchardt
CloseProtocol() must delete all open protocol information records relating to import parameters not only one. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c

Re: [U-Boot] [PATCH] net: introduce MDIO DM class for MDIO devices

2019-06-01 Thread Alex Marginean
On 6/1/2019 9:42 PM, Joe Hershberger wrote: Hi Bin, Thanks for the review. I shouldn't have tried to look at this while falling asleep in the airport. :( -Joe I guess I should have double checked the comments and the other things too, sorry for that.. I'll send a v2 on Monday. Thank you!

Re: [U-Boot] [PATCH] net: introduce MDIO DM class for MDIO devices

2019-06-01 Thread Joe Hershberger
Hi Bin, Thanks for the review. I shouldn't have tried to look at this while falling asleep in the airport. :( -Joe On Sat, Jun 1, 2019 at 12:16 PM Bin Meng wrote: > > Hi Alex, > > On Sat, Jun 1, 2019 at 12:27 AM Alex Marginean > wrote: > > > > Adds UCLASS_MDIO DM class supporting MDIO buses

Re: [U-Boot] [PATCH] net: introduce MDIO DM class for MDIO devices

2019-06-01 Thread Alex Marginean
Hi Bin, On 6/1/2019 8:16 PM, Bin Meng wrote: Hi Alex, On Sat, Jun 1, 2019 at 12:27 AM Alex Marginean wrote: Adds UCLASS_MDIO DM class supporting MDIO buses that are probed as stand-alone devices. Useful in particular for systems that support DM_ETH and have a stand-alone MDIO hardware

Re: [U-Boot] [PATCH] net: mvpp2: support setting hardware addresses from ethernet core

2019-06-01 Thread Joe Hershberger
On Wed, May 8, 2019 at 2:36 PM Matt Pelland wrote: > > mvpp2 already has support for setting MAC addresses but this > functionality was not exposed to the ethernet core. This commit exposes > this functionality so that MAC address assignments stored in U-Boot's > environment are correctly applied

[U-Boot] [PATCH 1/1] efi_loader: open protocol information

2019-06-01 Thread Heinrich Schuchardt
When a protocol is opened the open protocol information must be updated. The key fields of the open protocol information records are ImageHandle, ControllerHandle, and Attributes. Consider the Attributes field when determining if an open protocol information record has to be updated or a new one

[U-Boot] [PATCH] configs: Migrate the various SPL_BOOT_xxx choices for PowerPC

2019-06-01 Thread Tom Rini
The non-CONFIG_SPL_FRAMEWORK SPL used on some PowerPC platforms have a choice between CONFIG_SPL_NAND_BOOT, CONFIG_SPL_MMC_BOOT and CONFIG_SPL_SPI_BOOT. Migrate this to Kconfig Signed-off-by: Tom Rini --- README | 7 --- common/spl/Kconfig

Re: [U-Boot] [PATCH] net: mscc: serval: Remove delay when serdes is configured

2019-06-01 Thread Daniel Schwierzeck
Am 23.05.19 um 21:45 schrieb Horatiu Vultur: > When serdes configuration was written in hardware there was a delay > of 100ms to be sure that configuration was written. But the delay is not > needed because already the function serdes_write it is checking that the > operation finished. > >

[U-Boot] [PATCH 1/1] efi_loader: correct HandleProtocol()

2019-06-01 Thread Heinrich Schuchardt
The UEFI specification requires that when a protocol is opened via HandleProtocol() the agent handle is the image handle of the EFI firmware (see chapter on EFI_BOOT_SERVICES.OpenProtocol()). Let efi_handle_protocol() pass efi_root as agent handle to efi_open_protocol(). Signed-off-by: Heinrich

Re: [U-Boot] [PATCH] net: introduce MDIO DM class for MDIO devices

2019-06-01 Thread Bin Meng
Hi Alex, On Sat, Jun 1, 2019 at 12:27 AM Alex Marginean wrote: > > Adds UCLASS_MDIO DM class supporting MDIO buses that are probed as > stand-alone devices. Useful in particular for systems that support > DM_ETH and have a stand-alone MDIO hardware block shared by multiple > Ethernet

[U-Boot] [PATCH v3 6/6] doc: rockchip: Add note for Pine64 Rock64 board

2019-06-01 Thread Matwey V. Kornilov
Add build notes for Pine64 Rock64 board. Signed-off-by: Matwey V. Kornilov --- doc/README.rockchip | 30 -- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index ca4d6473b0..eacedbddf4 100644 ---

[U-Boot] [PATCH v3 3/6] rockchip: Kconfig: enable SPL support for rk3328

2019-06-01 Thread Matwey V. Kornilov
From: Kever Yang Enable SPL support and some related option in Kconfig. Signed-off-by: Kever Yang [cherry picked from https://github.com/rockchip-linux/u-boot/commit/430b01462bf3f24aaf7920ae2587a6943c39ab5d with minor modifications] Signed-off-by: Matwey V. Kornilov ---

[U-Boot] [PATCH v3 5/6] rockchip: rk3328: add rock64-rk3328_defconfig

2019-06-01 Thread Matwey V. Kornilov
The ROCK64 is a credit card size SBC based on Rockchip RK3328 Quad-Core ARM Cortex A53. This series allow building u-boot SPL and u-boot.itb for Rock64 board. The proprietary TPL is stil required for deploy: ./tools/mkimage -n rk3328 -T rksd \ -d

[U-Boot] [PATCH v3 4/6] rockchip: dts: rk3328: add rk3328-rock64.dts

2019-06-01 Thread Matwey V. Kornilov
rk3328-rock64.dts has been taken from Linux kernel commit cff6d1d6f88b ("arm64: dts: rockchip: enable HS200 for eMMC on rock64") with minor modifications (drop nodes not known by rk3328.dtsi). Signed-off-by: Matwey V. Kornilov Reviewed-by: Kever Yang --- arch/arm/dts/Makefile

[U-Boot] [PATCH v3 2/6] rockchip: rk3328: add SPL support

2019-06-01 Thread Matwey V. Kornilov
From: Kever Yang Add SPL support for rk3328, default with of-platdata enabled. Signed-off-by: Kever Yang [cherry picked from https://github.com/rockchip-linux/u-boot/commit/cb2b7a1bc75ebb116b1eb9b0ae0223e84d86fc4b with minor modifications] Signed-off-by: Matwey V. Kornilov Reviewed-by:

[U-Boot] [PATCH v3 1/6] rockchip: rk3328: add SPL board file support

2019-06-01 Thread Matwey V. Kornilov
From: Kever Yang rk3328 SPL is locate at dram, so do not have strict size limit, suppose to enable storage media controller driver, load ATF and U-Boot, then boot into ATF. Signed-off-by: Kever Yang [cherry picked from

[U-Boot] [PATCH v3 0/6] Add initial support for Pine64 Rock64 board

2019-06-01 Thread Matwey V. Kornilov
This series adds initial basic support for Pine64 Rock64 board. The ROCK64 is a credit card size SBC based on Rockchip RK3328 Quad-Core ARM Cortex A53. This series allow building u-boot SPL and u-boot.itb for Rock64 board. Unfortunately, proprietary TPL is stil required for deploy:

Re: [U-Boot] [PATCH] cmd: mdio: Fix access to arbitrary PHY addresses

2019-06-01 Thread Joe Hershberger
On Wed, May 29, 2019 at 8:53 PM Vladimir Oltean wrote: > > Alex reported the following: > > " > I'm doing some MDIO work on a freescale/NXP platform and I bumped into > errors with this command: > => mdio r emdio#3 5 3 > Reading from bus emdio#3 > "Synchronous Abort" handler, esr

Re: [U-Boot] [PATCH] net: introduce MDIO DM class for MDIO devices

2019-06-01 Thread Joe Hershberger
On Fri, May 31, 2019 at 11:27 AM Alex Marginean wrote: > > Adds UCLASS_MDIO DM class supporting MDIO buses that are probed as > stand-alone devices. Useful in particular for systems that support > DM_ETH and have a stand-alone MDIO hardware block shared by multiple > Ethernet interfaces. > >

Re: [U-Boot] [PATCH v1] net: use block layer in net driver

2019-06-01 Thread Joe Hershberger
On Thu, May 9, 2019 at 3:02 PM Joe Hershberger wrote: > > On Wed, Apr 17, 2019 at 4:02 AM Yinbo Zhu wrote: > > > > From: Yinbo Zhu > > > > At present the MMC subsystem maintains its own list > > of MMC devices. This cannot work with driver model > > when CONFIG_BLK is enabled, use blk_dread to

Re: [U-Boot] [PATCH v4 2/2] net: eth-uclass: Support device tree MAC addresses

2019-06-01 Thread Joe Hershberger
On Tue, May 28, 2019 at 10:26 AM Thierry Reding wrote: > > On Mon, May 20, 2019 at 05:59:57PM +0200, Thierry Reding wrote: > > From: Thierry Reding > > > > Add the standard Ethernet device tree bindings (imported from v5.0 of > > the Linux kernel) and implement support for reading the MAC

Re: [U-Boot] [PATCH v2 2/4] dm: net: macb: Update macb_linkspd_cb() signature

2019-06-01 Thread Joe Hershberger
On Wed, May 22, 2019 at 2:13 AM Bin Meng wrote: > > This updates DM version macb_linkspd_cb() signature for future > expansion, eg: adding an implementation for link speed changes. > > Signed-off-by: Bin Meng > Reviewed-by: Lukas Auer Acked-by: Joe Hershberger

Re: [U-Boot] [PATCH v2 3/4] dm: net: macb: Implement link speed change callback

2019-06-01 Thread Joe Hershberger
On Wed, May 22, 2019 at 2:12 AM Bin Meng wrote: > > At present the link speed change callback is a nop. According to > macb device tree bindings, an optional "tx_clk" is used to clock > the ethernet controller's TX_CLK under different link speed. > > In 10/100 MII mode, transmit logic must be

Re: [U-Boot] [PATCH v2 3/6] net: dwc_eth_qos: add Ethernet stm32mp1 support

2019-06-01 Thread Joe Hershberger
On Fri, May 17, 2019 at 8:17 AM Christophe Roullier wrote: > > Synopsys GMAC 4.20 is used. And Phy mode for eval and disco is RMII > with PHY Realtek RTL8211 (RGMII) > We also support some other PHY config on stm32mp157c > PHY_MODE(MII,GMII, RMII, RGMII) and in normal, > PHY wo crystal

Re: [U-Boot] [PATCH v2 6/6] configs: stm32mp15: Enable Ethernet feature

2019-06-01 Thread Joe Hershberger
On Fri, May 17, 2019 at 8:19 AM Christophe Roullier wrote: > > This allows to enable Ethernet and use driver for > Synopsys Ethernet QoS device > > Signed-off-by: Christophe Roullier Acked-by: Joe Hershberger ___ U-Boot mailing list

[U-Boot] [PATCH v2 1/5] rtc: export rtc_month_days()

2019-06-01 Thread Heinrich Schuchardt
Export function rtc_month_days() for reuse in the UEFI subsystem. Signed-off-by: Heinrich Schuchardt --- v2 no change --- drivers/rtc/rtc-lib.c | 2 +- include/rtc.h | 8 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-lib.c

[U-Boot] [PATCH v2 4/5] efi_loader: handling of daylight saving time

2019-06-01 Thread Heinrich Schuchardt
If SetTime() is meant to set daylight saving time it will be called with Time.Daylight == EFI_TIME_ADJUST_DAYLIGHT | EFI_TIME_IN_DAYLIGHT. Return 0 from GetTime() if time is not in daylight because we cannot determine if we are in a time zone with daylight saving time. Signed-off-by: Heinrich

[U-Boot] [PATCH v2 5/5] efi_loader: Kconfig entries for GetTime(), SetTime()

2019-06-01 Thread Heinrich Schuchardt
The GetTime() and the SetTime() runtime services are not obligatory. So let's make them customizable. Signed-off-by: Heinrich Schuchardt --- v2 new patch --- lib/efi_loader/Kconfig | 16 lib/efi_loader/efi_runtime.c| 6 +++---

[U-Boot] [PATCH v2 0/5] efi_loader: parameter checks in SetTime()

2019-06-01 Thread Heinrich Schuchardt
The UEFI spec requires to check the validity of the time stamp passed to SetTime(). For the runtime version of SetTime() defined a weak implementation. Put the definition into include/efi_loader.h to make it available to implementors. v2: Make the handling of daylight saving times more

[U-Boot] [PATCH v2 3/5] efi_loader: export efi_set_time()

2019-06-01 Thread Heinrich Schuchardt
To let a board implement the runtime version of SetTime() we have to provide the definition of the weak function in an include. Signed-off-by: Heinrich Schuchardt --- v2 no change --- include/efi_loader.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/efi_loader.h

[U-Boot] [PATCH v2 2/5] efi_loader: check time in SetTime()

2019-06-01 Thread Heinrich Schuchardt
The UEFI spec prescribes that we check that the timestamp passed to SetTime() is checked for validity. Signed-off-by: Heinrich Schuchardt --- v2 avoid unused function warning if CONFIG_DM_RTC is not set --- lib/efi_loader/efi_runtime.c | 26 +- 1 file changed, 25