[U-Boot] [PATCH 1/1] test: provide unit test for memory functions

2019-01-23 Thread Heinrich Schuchardt
Memory functions may have architecture specific implementations. These should be tested. Provide unit tests for memset(), memcpy(), memmove(). Signed-off-by: Heinrich Schuchardt --- Hello Alex, you already picked up the patch correcting memmove for x86_64. x86: do not use i386 code for x86_64

Re: [U-Boot] [PATCH] ARM: socfpga: Increase Malloc pool size to support FAT filesystem in SPL

2019-01-23 Thread Chee, Tien Fong
On Fri, 2019-01-18 at 07:23 +0100, Marek Vasut wrote: > On 1/17/19 7:57 AM, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > This is minimum memory pool size required to get SPL booting to U- > > Boot, > > such as FPGA program and loading U-Boot image from FAT. > Rather,

Re: [U-Boot] [PATCH 2/2] fs: fat: Reduce default max clustersize 64KiB from malloc pool

2019-01-23 Thread Chee, Tien Fong
On Thu, 2019-01-17 at 14:52 +0800, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Release cluster block immediately when no longer use would help to > reduce > 64KiB memory allocated to the memory pool. > > Signed-off-by: Tien Fong Chee > --- >  fs/fat/fat.c |   11 +-- >  1

Re: [U-Boot] [PATCH 1/2] fs: fat: dynamically allocate memory for temporary buffer

2019-01-23 Thread Chee, Tien Fong
On Fri, 2019-01-18 at 07:26 +0100, Marek Vasut wrote: > On 1/17/19 7:52 AM, tien.fong.c...@intel.com wrote: > > > > From: Stefan Agner > > > > Drop the statically allocated get_contents_vfatname_block and > > dynamically allocate a buffer only if required. This saves > > 64KiB of memory. > > >

Re: [U-Boot] [PATCH v2 1/3] net: phy: ar803x: Use phy_read_mmd and phy_write_mmd functions

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 5:46 PM Vladimir Oltean wrote: > > Signed-off-by: Vladimir Oltean > --- > Changes in v2: > * Patch added in this version. > > drivers/net/phy/atheros.c | 8 +++- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/drivers/net/phy/atheros.c

Re: [U-Boot] [PATCH v2 2/3] net: phy: ar803x: Address packet drops at low traffic rate due to SmartEEE feature

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 5:45 PM Vladimir Oltean wrote: > > * According to the AR8031 and AR8035 datasheets, smartEEE mode > (active by default) makes the PHY enter sleep after a configurable > idle time. It does this autonomously, without LPI (Low Power Idle) > signals coming from MAC.

Re: [U-Boot] [PATCH v2 3/3] net: phy: ar803x: Use common functions for RGMII internal delays

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 5:47 PM Vladimir Oltean wrote: > > Signed-off-by: Vladimir Oltean > --- > Changes in v2: > * Patch added in this version. > > drivers/net/phy/atheros.c | 76 > --- > 1 file changed, 45 insertions(+), 31 deletions(-) > > diff

Re: [U-Boot] [PATCH] rsa: read out public_exponent value based on 32-bit alignment

2019-01-23 Thread Ooi, Joyce
> -Original Message- > From: Simon Goldschmidt [mailto:simon.k.r.goldschm...@gmail.com] > Sent: Friday, January 4, 2019 5:46 PM > To: Ooi, Joyce > Cc: Marek Vasut ; Michal Simek ; > Siva Durga Prasad Paladugu ; u- > b...@lists.denx.de; Chee, Tien Fong ; See, Chin > Liang > Subject: Re:

Re: [U-Boot] [PATCH][v3] board/lx2160ardb: Add distro boot support

2019-01-23 Thread Ashish Kumar
> -Original Message- > From: U-Boot On Behalf Of Priyanka Jain > Sent: Thursday, January 24, 2019 10:52 AM > To: u-boot@lists.denx.de; York Sun > Cc: Priyanka Jain > Subject: [U-Boot] [PATCH][v3] board/lx2160ardb: Add distro boot support > > Add u-boot enviroments to support distro

[U-Boot] [PATCH][v3] board/lx2160ardb: Add distro boot support

2019-01-23 Thread Priyanka Jain
Add u-boot enviroments to support distro boot which scan boot.scr from external storage devices (e.g. SD/USB/SCSI disk) and execute autoboot script Signed-off-by: Priyanka Jain --- Depends on https://patchwork.ozlabs.org/patch/990094/ Changes for v3: Add USB as boot target device Changes for

[U-Boot] [PATCH v1] mmc: fsl_esdhc: make get_cd work well in dm_mmc_ops

2019-01-23 Thread Yinbo Zhu
From: Yinbo Zhu This patch is to make get_cd work well when DM_MMC enabled Signed-off-by: Yinbo Zhu --- drivers/mmc/fsl_esdhc.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 5437910..4ec49bc 100644 ---

Re: [U-Boot] [PATCH 2/3] rockchip: Add TPL_MAX_SIZE for RK3288【请注意,邮件由tom.r...@gmail.com代发】

2019-01-23 Thread Kever Yang
Hi Tom, On 01/23/2019 06:09 AM, Tom Rini wrote: > Per Kever Yang, 32768 is a reasonable max size for TPL on RK3288. > > Cc: Kever Yang > Cc: Philipp Tomsich > Signed-off-by: Tom Rini Reviewed-by: Kever Yang > --- > arch/arm/mach-rockchip/Kconfig | 3 +++ > 1 file changed, 3 insertions(+) >

Re: [U-Boot] [PULL] u-boot-mips

2019-01-23 Thread Tom Rini
On Wed, Jan 23, 2019 at 10:51:25PM +0100, Daniel Schwierzeck wrote: > Hi Tom, > > please pull updates for MIPS > > https://travis-ci.org/danielschwierzeck/u-boot/builds/483510787 > > > The following changes since commit 7794fe2c8c1303d303dbc515955c6c5be706da88: > > Merge

Re: [U-Boot] [PATCH v2 0/9] Add common pinctrl driver support for rockchip

2019-01-23 Thread David Wu
Ping Philipp... 在 2019/1/22 上午2:50, Simon Glass 写道: Hi, On Thu, 3 Jan 2019 at 01:51, David Wu wrote: The common pinctrl driver for rockchip Socs, it depends the PINCTRL_FULL config. If use it, the default pinctrl setup from DTS could be configured at device probe. Changes in v2: - Remove

Re: [U-Boot] [PATCH v5 1/7] cmd: add efidebug command

2019-01-23 Thread AKASHI Takahiro
On Wed, Jan 23, 2019 at 10:52:38AM +0100, Alexander Graf wrote: > On 01/23/2019 05:47 AM, AKASHI Takahiro wrote: > >On Tue, Jan 22, 2019 at 10:18:58AM +0100, Alexander Graf wrote: > >> > >>On 22.01.19 02:02, AKASHI Takahiro wrote: > >>>Alex, > >>> > >>>On Mon, Jan 21, 2019 at 02:07:31PM +0100,

Re: [U-Boot] [PATCH v2 2/3] efi_loader: enumerate disk devices every time

2019-01-23 Thread AKASHI Takahiro
Simon, On Thu, Jan 24, 2019 at 10:58:53AM +1300, Simon Glass wrote: > Hi Heinrich, > > On Wed, 23 Jan 2019 at 10:05, Heinrich Schuchardt wrote: > > > > On 1/22/19 8:39 PM, Simon Glass wrote: > > > Hi Alex, > > > > > > On Tue, 22 Jan 2019 at 22:08, Alexander Graf wrote: > > >> > > >> > > >> > >

[U-Boot] [PATCH v2 3/3] net: phy: ar803x: Use common functions for RGMII internal delays

2019-01-23 Thread Vladimir Oltean
Signed-off-by: Vladimir Oltean --- Changes in v2: * Patch added in this version. drivers/net/phy/atheros.c | 76 --- 1 file changed, 45 insertions(+), 31 deletions(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index

[U-Boot] [PATCH v2 1/3] net: phy: ar803x: Use phy_read_mmd and phy_write_mmd functions

2019-01-23 Thread Vladimir Oltean
Signed-off-by: Vladimir Oltean --- Changes in v2: * Patch added in this version. drivers/net/phy/atheros.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 3783d15..b4066e3 100644 ---

[U-Boot] [PATCH v2 0/3] net: phy: allow disabling SmartEEE for Atheros PHYs

2019-01-23 Thread Vladimir Oltean
Changes in v2: * Removed patch 1/2 (promote phy_{read,write}_mmd_indirect from ti.c to generic code) * Adapted to PHY API changes introduced by Carlo Caione * Cleaned up Atheros PHY driver to remove duplicated code and use macros where possible Vladimir Oltean (3): net: phy: ar803x: Use

[U-Boot] [PATCH v2 2/3] net: phy: ar803x: Address packet drops at low traffic rate due to SmartEEE feature

2019-01-23 Thread Vladimir Oltean
* According to the AR8031 and AR8035 datasheets, smartEEE mode (active by default) makes the PHY enter sleep after a configurable idle time. It does this autonomously, without LPI (Low Power Idle) signals coming from MAC. AR8021 does not appear to support this. * This patch allows disabling

Re: [U-Boot] [BUG] efi_loader: GetNextVariableName() fails on qemu-x86_64

2019-01-23 Thread Simon Glass
Hi Heinrich, On Wed, 23 Jan 2019 at 14:21, Heinrich Schuchardt wrote: > > Hello Simon, hello Bin, > > on qemu-x86_64 (and not any other architecture) we received an error in > a unit test. > > Once I undefined __HAVE_ARCH_MEMMOVE the error disappeared. Same happens > if I use my own memmove()

Re: [U-Boot] [PATCH v2 2/3] efi_loader: enumerate disk devices every time

2019-01-23 Thread Simon Glass
Hi Alex, On Wed, 23 Jan 2019 at 22:51, Alexander Graf wrote: > > On 01/22/2019 08:39 PM, Simon Glass wrote: > > Hi Alex, > > > > On Tue, 22 Jan 2019 at 22:08, Alexander Graf wrote: > >> > >> > >> On 22.01.19 09:29, AKASHI Takahiro wrote: > >>> Alex, Simon, > >>> > >>> Apologies for my slow

Re: [U-Boot] [PATCH v2 2/3] efi_loader: enumerate disk devices every time

2019-01-23 Thread Simon Glass
Hi Heinrich, On Wed, 23 Jan 2019 at 10:05, Heinrich Schuchardt wrote: > > On 1/22/19 8:39 PM, Simon Glass wrote: > > Hi Alex, > > > > On Tue, 22 Jan 2019 at 22:08, Alexander Graf wrote: > >> > >> > >> > >> On 22.01.19 09:29, AKASHI Takahiro wrote: > >>> Alex, Simon, > >>> > >>> Apologies for my

[U-Boot] [PATCH 1/1] efi_loader: debug output for HII protocols

2019-01-23 Thread Heinrich Schuchardt
For correct indention use EFI_PRINT() instead of debug(). For printing efi_uintn_t or size_t use the %zu or %zx format code. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_hii.c| 50 - lib/efi_loader/efi_hii_config.c | 2 +- 2 files changed,

[U-Boot] [PULL] u-boot-mips

2019-01-23 Thread Daniel Schwierzeck
Hi Tom, please pull updates for MIPS https://travis-ci.org/danielschwierzeck/u-boot/builds/483510787 The following changes since commit 7794fe2c8c1303d303dbc515955c6c5be706da88: Merge git://git.denx.de/u-boot-nds32 (2019-01-22 22:00:20 -0500) are available in the Git repository at:

Re: [U-Boot] [RFC] ARM: omap3_logic_somlv: Enable OF_CONTROL in SPL

2019-01-23 Thread Tom Rini
On Wed, Jan 23, 2019 at 03:13:52PM -0600, Adam Ford wrote: > By removing EXT support from SPL, it makes room for the extra > overhead of enabling OF_CONTROL in SPL. With SPL_OF_CONTROL > enabled, extra options need to be added to the device tree to > tell it which portions of the tree are needed

[U-Boot] [RFC] ARM: omap3_logic_somlv: Enable OF_CONTROL in SPL

2019-01-23 Thread Adam Ford
By removing EXT support from SPL, it makes room for the extra overhead of enabling OF_CONTROL in SPL. With SPL_OF_CONTROL enabled, extra options need to be added to the device tree to tell it which portions of the tree are needed early in boot time Unfortunately, with these options as-is, the

Re: [U-Boot] [RFC 0/9] Convert Pico-Pi i.MX7D to DM

2019-01-23 Thread Joris Offouga
Le 22/01/2019 à 10:47, Lukasz Majewski a écrit : On Sun, 20 Jan 2019 23:38:32 +0100 Joris Offouga wrote: Hi all, Pinctrl, GPIO, I2C, MMC, ETH are converted. Convert PMIC is the same of warp7 but i have a some erros, si this log : U-Boot SPL 2019.01-00197-ga524e5d-dirty (Jan 20 2019 -

Re: [U-Boot] Test failures in u-boot/master on NVIDIA HW with recent push

2019-01-23 Thread Simon Goldschmidt
Am Mi., 23. Jan. 2019, 19:20 hat Stephen Warren geschrieben: > On 1/22/19 1:12 AM, Simon Goldschmidt wrote: > > Hi Stephen, > > On Fri, Jan 18, 2019 at 7:29 AM Stephen Warren > wrote: > >> > >> On 1/17/19 6:15 PM, Tom Rini wrote: > >>> On Thu, Jan 17, 2019 at 05:50:27PM -0700, Stephen Warren

Re: [U-Boot] [PATCH 3/3] linker: Modify linker scripts to be more generic

2019-01-23 Thread Adam Ford
On Tue, Jan 22, 2019 at 4:09 PM Tom Rini wrote: > > Make use of "IMAGE_MAX_SIZE" and "IMAGE_TEXT_BASE" rather than > CONFIG_SPL_MAX_SIZE and CONFIG_SPL_TEXT_BASE. This lets us re-use the > same script for both SPL and TPL. Add logic to scripts/Makefile.spl to > pass in the right value when

Re: [U-Boot] [PATCH 0/5] MSCC: Add Serval SoC family.

2019-01-23 Thread Daniel Schwierzeck
Am 23.01.19 um 16:39 schrieb Horatiu Vultur: > This patch series adds support for MSCC Serval SoC family. In this > family there are the following boards: pcb105 and pcb106. > > This is based off the patch series[1]. > > [1] https://lists.denx.de/pipermail/u-boot/2019-January/355031.html > >

Re: [U-Boot] [PATCH v2 0/3] MSCC: Add Servalt SoC family

2019-01-23 Thread Daniel Schwierzeck
Am 17.01.19 um 15:33 schrieb Horatiu Vultur: > This patch series adds support for MSCC Servalt SoC family. In this > family there is only one board: Servalt(pcb116). > > This is based off the u-boot-mips/next repository > > v2-changes: > - rename label for gpio in dts. > > Horatiu Vultur

Re: [U-Boot] [PATCH v3 0/4] Add network support for Ocelots SoCs

2019-01-23 Thread Daniel Schwierzeck
Am 17.01.19 um 17:07 schrieb Gregory CLEMENT: > Hello, > > this the third version of a series allowing to use the switch > component of the Ocelots SoC as a network interface. > > The binding used is exactly the same of the one already used by Linux. > > There is also a patch adding a

[U-Boot] [PATCH 1/1] efi_selftest: fix HII tests

2019-01-23 Thread Heinrich Schuchardt
efi_st_printf() does not support format code %ld. Anyway the format code for size_t would be %zu which isn't supported either. We do not want any divisions to avoid invalid references to integer arithmetic routines, cf. https://gcc.gnu.org/onlinedocs/gccint/Integer-library-routines.html. As a

[U-Boot] [PATCH 4/6] doc: imx: habv4: Add Secure Boot guide for i.MX6 and i.MX7 SPL targets

2019-01-23 Thread Breno Matheus Lima
The current U-Boot implementation includes SPL targets for some NXP development boards: - mx6sabreauto_defconfig - mx6sabresd_defconfig - mx6ul_14x14_evk_defconfig - mx6ul_9x9_evk_defconfig Add additional steps needed to completly secure the bootloader image. Signed-off-by: Breno Lima ---

[U-Boot] [PATCH 5/6] doc: imx: habv4: Move encrypted boot guide

2019-01-23 Thread Breno Matheus Lima
All guides are currently located at doc/imx/habv4/guides/ directory. Move encrypted_boot.txt document to guides directory. Signed-off-by: Breno Lima --- doc/imx/habv4/{ => guides}/encrypted_boot.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename doc/imx/habv4/{ =>

[U-Boot] [PATCH 6/6] doc: imx: habv4: Remove secure_boot.txt guide

2019-01-23 Thread Breno Matheus Lima
The secure_boot.txt guide was replaced by mx6_mx7_secure_boot.txt and mx6_mx7_spl_secure_boot.txt documents. Both documents covers all steps needed for SPL and non-SPL tagets, so remove secure_boot.txt file to avoid duplicated content. Signed-off-by: Breno Lima ---

[U-Boot] [PATCH 2/6] doc: imx: habv4: Add HABv4 introduction

2019-01-23 Thread Breno Matheus Lima
The HABv4 is supported in i.MX50, i.MX53, i.MX6, i.MX7, series and i.MX 8M, i.MX8MM devices. Add an introductory document containing the following topics: - HABv4 Introduction - HABv4 Secure Boot - HABv4 Encrypted Boot - HAB PKI tree generation - HAB Fast Authentication PKI tree generation - SRK

[U-Boot] [PATCH 3/6] doc: imx: habv4: Add Secure Boot guide for i.MX6 and i.MX7 non-SPL targets

2019-01-23 Thread Breno Matheus Lima
Add HABv4 documentation for non-SPL targets covering the following topics: - How to sign an securely boot an u-boot-dtb.imx image. - How to extend the root of trust for additional boot images. - Add 3 CSF examples. - Add IVT generation script example. Reviewed-by: Ye Li Reviewed-by: Utkarsh

[U-Boot] [PATCH 1/6] doc: imx: habv4: Remove extra hab directory for a cleaner documentation structure

2019-01-23 Thread Breno Matheus Lima
There is no need to have an extra hab directory under doc/imx/. Habv4 and AHAB documentation can be added directly in doc/imx/ for a cleaner documentation structure. Signed-off-by: Breno Lima --- doc/imx/{hab => }/habv4/encrypted_boot.txt | 0 doc/imx/{hab => }/habv4/secure_boot.txt| 0 2

[U-Boot] [PATCH 0/6] doc: imx: habv4: Improve iMX6 and iMX7 secure boot documentation

2019-01-23 Thread Breno Matheus Lima
Hi All, This series is improving the current HABv4 U-Boot documentation for iMX6 and iMX7 families devices. The patch set is adding a complete step-by-step procedure on how to securely boot an U-Boot image using HABv4: habv4 ├── csf_examples │   ├── additional_images │   │   └──

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-01-23 Thread Atish Patra
On 1/22/19 1:30 AM, Andreas Schwab wrote: On Jan 21 2019, Anup Patel wrote: On Mon, Jan 21, 2019 at 10:40 PM Andreas Schwab wrote: On Jan 21 2019, Anup Patel wrote: There is a fix required in BBL for real board. We have not send this fix to riscv-pk. Just to clarify, we hacked

[U-Boot] [PATCH] ARM: DTS: Resync am3517-evm.dts with Linux 5.0-rc3

2019-01-23 Thread Adam Ford
The chosen node was added in the kernel. This may come in handy in the future, so resync with 5.0-rc3 Signed-off-by: Adam Ford diff --git a/arch/arm/dts/am3517-evm.dts b/arch/arm/dts/am3517-evm.dts index 1e2bb68231..3527c0f2df 100644 --- a/arch/arm/dts/am3517-evm.dts +++

[U-Boot] [PATCH] ARM: dts: da850-evm: Re-sync with Kernel 5.0

2019-01-23 Thread Adam Ford
Resync with Kernel 5.0-rc3 Signed-off-by: Adam Ford diff --git a/arch/arm/dts/da850-evm.dts b/arch/arm/dts/da850-evm.dts index a3c9b34672..f04bc3e153 100644 --- a/arch/arm/dts/da850-evm.dts +++ b/arch/arm/dts/da850-evm.dts @@ -94,6 +94,28 @@ regulator-boot-on; }; +

Re: [U-Boot] [PATCH 1/2] net: phy: Move fixed link code to separate routine

2019-01-23 Thread Joe Hershberger
On Tue, Nov 27, 2018 at 12:20 AM Siva Durga Prasad Paladugu wrote: > > This patch moves fixed-link functionality code to a separate > routine inorder to make it more modular and cleaner. > > Signed-off-by: Siva Durga Prasad Paladugu > Signed-off-by: Michal Simek Acked-by: Joe Hershberger

Re: [U-Boot] Test failures in u-boot/master on NVIDIA HW with recent push

2019-01-23 Thread Stephen Warren
On 1/22/19 1:12 AM, Simon Goldschmidt wrote: Hi Stephen, On Fri, Jan 18, 2019 at 7:29 AM Stephen Warren wrote: On 1/17/19 6:15 PM, Tom Rini wrote: On Thu, Jan 17, 2019 at 05:50:27PM -0700, Stephen Warren wrote: On 1/17/19 5:42 PM, Tom Rini wrote: On Thu, Jan 17, 2019 at 05:34:57PM -0700,

Re: [U-Boot] [PATCH 2/2] net: phy: Add gmiitorgmii converter support

2019-01-23 Thread Joe Hershberger
On Tue, Nov 27, 2018 at 12:20 AM Siva Durga Prasad Paladugu wrote: > > This patch adds support for gmiitorgmii converter. > This converter sits between the MAC and the external phy > MAC <==> GMII2RGMII <==> RGMII_PHY. > The ethernet driver probes this bridge and this bridge driver > probes real

[U-Boot] [PATCH] efi_loader: Patch non-runtime code out at ExitBootServices already

2019-01-23 Thread Alexander Graf
While discussing something compeltely different, Ard pointed out that it might be legal to omit calling SetVirtualAddressMap altogether. While that sounds great, we currently rely on that call to remove all function pointers to code that we do not support outside of boot services. So let's patch

Re: [U-Boot] [PATCH 3/3] linker: Modify linker scripts to be more generic

2019-01-23 Thread Daniel Schwierzeck
Am 22.01.19 um 23:09 schrieb Tom Rini: > Make use of "IMAGE_MAX_SIZE" and "IMAGE_TEXT_BASE" rather than > CONFIG_SPL_MAX_SIZE and CONFIG_SPL_TEXT_BASE. This lets us re-use the > same script for both SPL and TPL. Add logic to scripts/Makefile.spl to > pass in the right value when preprocessing

Re: [U-Boot] [PATCH 5/5] MSCC: Add board support for Serval SoC family.

2019-01-23 Thread Daniel Schwierzeck
Am 23.01.19 um 16:39 schrieb Horatiu Vultur: > Add board support and configuration for Jaguar2 SoC family. > The detection of the board type is based on the phy ids. > > Signed-off-by: Horatiu Vultur > --- > arch/mips/dts/Makefile| 1 + > arch/mips/mach-mscc/Makefile | 1 + >

Re: [U-Boot] [PATCH] net: phy: realtek: Introduce quirk to mark RXC not stoppable

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 10:39 AM Carlo Caione wrote: > > On 23/01/19 16:19, Joe Hershberger wrote: > > /cut > >> + transitions to/from a lower power consumption level (Low > >> Power Idle > >> + mode) based on link utilization. When no packets are being > >> + transmitted,

Re: [U-Boot] [PATCH 2/5] MSCC: Add support for Serval SoC family.

2019-01-23 Thread Daniel Schwierzeck
Am 23.01.19 um 16:39 schrieb Horatiu Vultur: > As Ocelot, Servalt, Luton and Jaguar2, this family of SoCs are > found in Microsemi Switches solution. > > Signed-off-by: Horatiu Vultur > --- > arch/mips/mach-mscc/Kconfig| 9 + > arch/mips/mach-mscc/cpu.c

Re: [U-Boot] [PATCH 1/5] pinctrl: mscc: Add gpio and pinctrl for Serval SoC family.

2019-01-23 Thread Daniel Schwierzeck
Am 23.01.19 um 16:39 schrieb Horatiu Vultur: > The Serval SoC family has 32 pins. Currently there is no > support for Serval in Linux kernel. > > Signed-off-by: Horatiu Vultur > --- > drivers/pinctrl/mscc/Kconfig | 10 ++ > drivers/pinctrl/mscc/Makefile | 1 + >

Re: [U-Boot] [PATCH v3 3/3] cmd: mdio: Add new parameter to access MMD PHY registers

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 10:58 AM Carlo Caione wrote: > > On 23/01/19 16:31, Joe Hershberger wrote: > >On Wed, Jan 23, 2019 at 10:23 AM Joe Hershberger > >wrote: > >> > >> On Wed, Jan 23, 2019 at 10:07 AM Carlo Caione wrote: > >> > > >> > Two new parameters (rmmd and wmmd) are added to allow

Re: [U-Boot] [PATCH 0/5] MSCC: Add Serval SoC family.

2019-01-23 Thread Daniel Schwierzeck
Am 23.01.19 um 17:47 schrieb Horatiu Vultur: > Hi Daniel, > > The 01/23/2019 17:38, Daniel Schwierzeck wrote: >> >> >> Am 23.01.19 um 16:39 schrieb Horatiu Vultur: >>> This patch series adds support for MSCC Serval SoC family. In this >>> family there are the following boards: pcb105 and

[U-Boot] [PATCH v4 13/15] cpu: Bind timer driver for boot hart

2019-01-23 Thread Anup Patel
From: Atish Patra Currently, timer driver is bound only for hart0. There is no mandatory requirement that hart0 should always come up. In fact, HiFive Unleashed SoC hart0 doesn't boot in S-mode because it only has M-mode. The timer driver should be bound for boot hart. Signed-off-by: Atish

Re: [U-Boot] [PATCH v3 3/3] cmd: mdio: Add new parameter to access MMD PHY registers

2019-01-23 Thread Carlo Caione
On 23/01/19 16:31, Joe Hershberger wrote: On Wed, Jan 23, 2019 at 10:23 AM Joe Hershberger wrote: On Wed, Jan 23, 2019 at 10:07 AM Carlo Caione wrote: > > Two new parameters (rmmd and wmmd) are added to allow the `mdio` command > to access the content of the MMD PHY registers. > >

[U-Boot] [PATCH v4 14/15] riscv: Add SiFive FU540 board support

2019-01-23 Thread Anup Patel
This patch adds SiFive FU540 board support. For now, only SiFive serial, SiFive PRCI, and Cadance MACB drivers are only enabled. The SiFive FU540 defconfig by default builds U-Boot for S-Mode because U-Boot on SiFive FU540 will run in S-Mode as payload of BBL or OpenSBI. Signed-off-by: Atish

[U-Boot] [PATCH v4 11/15] drivers: serial_sifive: Fix baud rate calculation

2019-01-23 Thread Anup Patel
From: Atish Patra Compute the baud rate multipler with more precision. Signed-off-by: Atish Patra Signed-off-by: Anup Patel Reviewed-by: Alexander Graf Reviewed-by: Lukas Auer --- drivers/serial/serial_sifive.c | 28 ++-- 1 file changed, 26 insertions(+), 2

[U-Boot] [PATCH v4 10/15] clk: Add fixed-factor clock driver

2019-01-23 Thread Anup Patel
This patch adds fixed-factor clock driver which derives clock rate by dividing (div) and multiplying (mult) fixed factors to a parent clock. Signed-off-by: Atish Patra Signed-off-by: Anup Patel --- drivers/clk/Makefile | 4 +- drivers/clk/clk_fixed_factor.c | 72

[U-Boot] [PATCH v4 15/15] doc: Add a readme guide for SiFive FU540

2019-01-23 Thread Anup Patel
From: Atish Patra The readme guide describes the procedure to build, flash and boot Linux using U-boot on HiFive Unleashed. It also explains the current state of U-boot support and future action items. Signed-off-by: Atish Patra Signed-off-by: Anup Patel --- doc/README.sifive-fu540 | 302

Re: [U-Boot] [PATCH V2 2/6] watchdog: bcm6345: allow to use this driver on arm

2019-01-23 Thread Daniel Schwierzeck
Am 22.01.19 um 15:13 schrieb Philippe Reynes: > This IP is also used on some arm SoC, so we allow to > use it on arm too. > > Signed-off-by: Philippe Reynes > --- > drivers/watchdog/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Changelog: > v2: > - add a commit message

[U-Boot] [PATCH v4 12/15] drivers: serial_sifive: Skip baudrate config if no input clock

2019-01-23 Thread Anup Patel
From: Atish Patra It is possible that input clock is not available because clk device was not available and 'clock-frequency' DT property is also not available. In this case, instead of failing we should just skip baudrate config by returning zero. Signed-off-by: Atish Patra Signed-off-by:

[U-Boot] [PATCH v4 08/15] net: macb: Fix GEM hardware detection

2019-01-23 Thread Anup Patel
From: Atish Patra Fix MID bit field check to correctly identify all GEM hardwares. The check is updated as per macb driver in Linux location: /drivers/net/ethernet/cadence/macb_main.c:259 Signed-off-by: Atish Patra Signed-off-by: Anup Patel Reviewed-by: Alexander Graf Reviewed-by: Lukas

[U-Boot] [PATCH v4 05/15] riscv: Add place-holder asm/arch/clk.h for driver compilation

2019-01-23 Thread Anup Patel
Some of the drivers expect asm/arch/clk.h to be provided by arch support code so we add place-holder asm/arch/clk.h for RISC-V support. Signed-off-by: Anup Patel --- arch/riscv/include/asm/arch/clk.h | 14 ++ 1 file changed, 14 insertions(+) create mode 100644

[U-Boot] [PATCH v4 07/15] net: macb: Fix clk API usage for RISC-V systems

2019-01-23 Thread Anup Patel
Don't fail in macb_enable_clk() if clk_enable() returns -ENOSYS because we get -ENOSYS for fixed-rate clocks. Signed-off-by: Anup Patel Reviewed-by: Bin Meng --- drivers/net/macb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index

[U-Boot] [PATCH v4 09/15] clk: Add SiFive FU540 PRCI clock driver

2019-01-23 Thread Anup Patel
Add driver code for the SiFive FU540 PRCI IP block. This IP block handles reset and clock control for the SiFive FU540 device and implements SoC-level clock tree controls and dividers. Based on code written by Wesley Terpstra found in commit 999529edf517ed75b56659d456d221b2ee56bb60 of:

[U-Boot] [PATCH v4 04/15] riscv: Add asm/dma-mapping.h for DMA mappings

2019-01-23 Thread Anup Patel
This patch adds asm/dma-mapping.h for Linux-like DMA mappings APIs required by some of the drivers (such as, Cadance MACB Ethernet driver). Signed-off-by: Anup Patel Reviewed-by: Bin Meng Reviewed-by: Alexander Graf Reviewed-by: Lukas Auer --- arch/riscv/include/asm/dma-mapping.h | 38

[U-Boot] [PATCH v4 02/15] Makefile: Fix mrproper make target

2019-01-23 Thread Anup Patel
Currently, the mrproper make target tries to force remove all "arch/*/include/asm/arch" paths assuming they are symlinks but this prevents us from adding place-holder headers under the arch/riscv/include/asm/arch directory. To solve this, we fix mrproper make target to only remove

[U-Boot] [PATCH v4 06/15] riscv: generic: Ensure that U-Boot runs within 4GB for 64bit systems

2019-01-23 Thread Anup Patel
On 64bit systems, the DRAM top can be easily beyond 4GB and U-Boot DMA mapping APIs will generate DMA addresses beyond 4GB. This breaks DMA programming in 32bit DMA capable devices (such as Cadence MACB ethernet). For example, If DRAM is more then 2GB on QEMU sifive_u machine then Cadence MACB

[U-Boot] [PATCH v4 01/15] .gitignore: Don't ignore arch/riscv/include/asm/arch

2019-01-23 Thread Anup Patel
We will be adding place-holder headers under include/asm/arch for RISC-V so this patch updates .gitignore to not consider files under arch/riscv/include/asm/arch Signed-off-by: Anup Patel --- arch/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/.gitignore b/arch/.gitignore

[U-Boot] [PATCH v4 03/15] riscv: Rename cpu/qemu to cpu/generic

2019-01-23 Thread Anup Patel
The QEMU CPU support under arch/riscv is pretty much generic and works fine for SiFive Unleashed as well. In fact, there will be quite a few RISC-V SOCs for which QEMU CPU support will work fine. This patch renames cpu/qemu to cpu/generic to indicate the above fact. If there are SOC specific

[U-Boot] [PATCH v4 00/15] SiFive FU540 Support

2019-01-23 Thread Anup Patel
This patchset adds SiFive Freedom Unleashed (FU540) support to RISC-V U-Boot. The patches are based upon latest RISC-V U-Boot tree (git://git.denx.de/u-boot-riscv.git) at commit id 91882c472d8c0aef4db699d3f2de55bf43d4ae4b All drivers namely: SiFive PRCI, SiFive Serial, and Cadance MACB Ethernet

Re: [U-Boot] [PATCH 0/5] MSCC: Add Serval SoC family.

2019-01-23 Thread Horatiu Vultur
Hi Daniel, The 01/23/2019 17:38, Daniel Schwierzeck wrote: > > > Am 23.01.19 um 16:39 schrieb Horatiu Vultur: > > This patch series adds support for MSCC Serval SoC family. In this > > family there are the following boards: pcb105 and pcb106. > > > > This is based off the patch series[1]. > >

Re: [U-Boot] [PATCH V2 1/6] watchdog: bcm6345: switch to raw I/O functions

2019-01-23 Thread Daniel Schwierzeck
Am 22.01.19 um 15:13 schrieb Philippe Reynes: > This driver is used on several big endian mips board. > So we could use raw I/O function instead of forcing > big endian access. > > Signed-off-by: Philippe Reynes > --- > drivers/watchdog/bcm6345_wdt.c | 10 +- > 1 file changed, 5

Re: [U-Boot] [PATCH] net: phy: realtek: Introduce quirk to mark RXC not stoppable

2019-01-23 Thread Carlo Caione
On 23/01/19 16:19, Joe Hershberger wrote: /cut + transitions to/from a lower power consumption level (Low Power Idle + mode) based on link utilization. When no packets are being + transmitted, the system goes to Low Power Idle mode to save power. + + Under

Re: [U-Boot] [PATCH 0/5] MSCC: Add Serval SoC family.

2019-01-23 Thread Daniel Schwierzeck
Am 23.01.19 um 16:39 schrieb Horatiu Vultur: > This patch series adds support for MSCC Serval SoC family. In this > family there are the following boards: pcb105 and pcb106. > > This is based off the patch series[1]. > > [1] https://lists.denx.de/pipermail/u-boot/2019-January/355031.html > >

Re: [U-Boot] [PATCH v3 3/3] cmd: mdio: Add new parameter to access MMD PHY registers

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 10:23 AM Joe Hershberger wrote: > > On Wed, Jan 23, 2019 at 10:07 AM Carlo Caione wrote: > > > > Two new parameters (rmmd and wmmd) are added to allow the `mdio` command > > to access the content of the MMD PHY registers. > > > > Signed-off-by: Carlo Caione > > Acked-by:

Re: [U-Boot] [PATCH v3 1/3] net: phy: Add support for accessing MMD PHY registers

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 10:21 AM Joe Hershberger wrote: > > On Wed, Jan 23, 2019 at 10:07 AM Carlo Caione wrote: > > > > Two new helper functions (phy_read_mmd() and phy_write_mmd()) are added > > to allow access to the MMD PHY registers. > > > > The MMD PHY registers can be accessed by two

Re: [U-Boot] [PATCH v3 3/3] cmd: mdio: Add new parameter to access MMD PHY registers

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 10:07 AM Carlo Caione wrote: > > Two new parameters (rmmd and wmmd) are added to allow the `mdio` command > to access the content of the MMD PHY registers. > > Signed-off-by: Carlo Caione Acked-by: Joe Hershberger ___ U-Boot

Re: [U-Boot] [PATCH v3 1/3] net: phy: Add support for accessing MMD PHY registers

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 10:07 AM Carlo Caione wrote: > > Two new helper functions (phy_read_mmd() and phy_write_mmd()) are added > to allow access to the MMD PHY registers. > > The MMD PHY registers can be accessed by two means: > > 1. Using two new MMD access function hooks in the PHY driver.

Re: [U-Boot] [PATCH] net: phy: realtek: Introduce quirk to mark RXC not stoppable

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 7:57 AM Carlo Caione wrote: > > When EEE is supported by the PHY and the driver allows it, libphy in the > kernel is configuring the PHY to stop receiving the xMII clock while it > is signaling LPI. While this (usually) works fine in the kernel this is > causing issues in

[U-Boot] [PATCH 5/5] MSCC: Add board support for Serval SoC family.

2019-01-23 Thread Horatiu Vultur
Add board support and configuration for Jaguar2 SoC family. The detection of the board type is based on the phy ids. Signed-off-by: Horatiu Vultur --- arch/mips/dts/Makefile| 1 + arch/mips/mach-mscc/Makefile | 1 + board/mscc/serval/Kconfig | 14

[U-Boot] [PATCH 4/5] MSCC: Add device tree for Serval pcb106 board

2019-01-23 Thread Horatiu Vultur
Add device tree based on evaluation board pcb106. Signed-off-by: Horatiu Vultur --- arch/mips/dts/serval_pcb106.dts | 56 + 1 file changed, 56 insertions(+) create mode 100644 arch/mips/dts/serval_pcb106.dts diff --git a/arch/mips/dts/serval_pcb106.dts

[U-Boot] [PATCH 3/5] MSCC: add device tree for Serval pcb105 board

2019-01-23 Thread Horatiu Vultur
Add device tree based on evaluation board pcb105. Signed-off-by: Horatiu Vultur --- arch/mips/dts/mscc,serval.dtsi | 149 arch/mips/dts/serval_pcb105.dts | 56 +++ 2 files changed, 205 insertions(+) create mode 100644

[U-Boot] [PATCH 2/5] MSCC: Add support for Serval SoC family.

2019-01-23 Thread Horatiu Vultur
As Ocelot, Servalt, Luton and Jaguar2, this family of SoCs are found in Microsemi Switches solution. Signed-off-by: Horatiu Vultur --- arch/mips/mach-mscc/Kconfig| 9 + arch/mips/mach-mscc/cpu.c | 2 +- arch/mips/mach-mscc/dram.c

[U-Boot] [PATCH 1/5] pinctrl: mscc: Add gpio and pinctrl for Serval SoC family.

2019-01-23 Thread Horatiu Vultur
The Serval SoC family has 32 pins. Currently there is no support for Serval in Linux kernel. Signed-off-by: Horatiu Vultur --- drivers/pinctrl/mscc/Kconfig | 10 ++ drivers/pinctrl/mscc/Makefile | 1 + drivers/pinctrl/mscc/pinctrl-serval.c | 233

[U-Boot] [PATCH 0/5] MSCC: Add Serval SoC family.

2019-01-23 Thread Horatiu Vultur
This patch series adds support for MSCC Serval SoC family. In this family there are the following boards: pcb105 and pcb106. This is based off the patch series[1]. [1] https://lists.denx.de/pipermail/u-boot/2019-January/355031.html Horatiu Vultur (5): pinctrl: mscc: Add gpio and pinctrl for

[U-Boot] [PATCH v3 2/3] net: phy: ti: use generic helpers to access MMD registers

2019-01-23 Thread Carlo Caione
Now that generic helpers are available, use those instead of relying on ti specific functions. Signed-off-by: Carlo Caione Signed-off-by: Vladimir Oltean Acked-by: Joe Hershberger --- drivers/net/phy/ti.c | 130 +-- 1 file changed, 25 insertions(+), 105

[U-Boot] [PATCH v3 3/3] cmd: mdio: Add new parameter to access MMD PHY registers

2019-01-23 Thread Carlo Caione
Two new parameters (rmmd and wmmd) are added to allow the `mdio` command to access the content of the MMD PHY registers. Signed-off-by: Carlo Caione --- cmd/mdio.c | 51 --- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git

[U-Boot] [PATCH v3 1/3] net: phy: Add support for accessing MMD PHY registers

2019-01-23 Thread Carlo Caione
Two new helper functions (phy_read_mmd() and phy_write_mmd()) are added to allow access to the MMD PHY registers. The MMD PHY registers can be accessed by two means: 1. Using two new MMD access function hooks in the PHY driver. These functions can be implemented when the PHY driver does not

[U-Boot] [PATCH v3 0/3] Add MMD PHY helpers

2019-01-23 Thread Carlo Caione
Introduce phy_(read|write)_mmd() generic 802.3 clause 45 register accessors for Clause 22 PHYs, using the indirect method. Allow this behaviour to be overriden by PHY drivers where necessary. Carlo Caione (3): net: phy: Add support for accessing MMD PHY registers net: phy: ti: use generic

Re: [U-Boot] [PATCH u-boot 1/2] net: phy: Add support for accessing MMD PHY registers

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 8:32 AM Vladimir Oltean wrote: > > On 23.01.2019 11:59, Carlo Caione wrote: > > On 23/01/19 00:04, Joe Hershberger wrote: > >> > >> If we have to override the access then probably so. Maybe it would > >> make more sense to have a v2 from you that removes the duplicate code

Re: [U-Boot] [PATCH v3 04/12] net: macb: Fix clk API usage for RISC-V systems

2019-01-23 Thread Anup Patel
> -Original Message- > From: Joe Hershberger [mailto:joe.hershber...@ni.com] > Sent: Wednesday, January 23, 2019 7:30 PM > To: Anup Patel > Cc: Rick Chen ; Bin Meng ; > Joseph Hershberger ; Michal Simek > ; Michal Simek ; Lukas Auer > ; Masahiro Yamada > ; Simon Glass ; > Palmer Dabbelt

[U-Boot] [PATCH] ARM: am3517_evm: Enable DM_SPI and DM_USB

2019-01-23 Thread Adam Ford
To comply with pending requirements, this sets the flags to enable DM_SPI and DM_USB. Signed-off-by: Adam Ford diff --git a/configs/am3517_evm_defconfig b/configs/am3517_evm_defconfig index 0fe3f7ef09..38cad9cf4e 100644 --- a/configs/am3517_evm_defconfig +++ b/configs/am3517_evm_defconfig @@

Re: [U-Boot] [PATCH u-boot 1/2] net: phy: Add support for accessing MMD PHY registers

2019-01-23 Thread Vladimir Oltean
On 23.01.2019 11:59, Carlo Caione wrote: > On 23/01/19 00:04, Joe Hershberger wrote: >> >> If we have to override the access then probably so. Maybe it would >> make more sense to have a v2 from you that removes the duplicate code >> from the ti phy driver and then have Vlad's smartEEE patch be

Re: [U-Boot] [PATCH v2 2/3] net: phy: ti: use generic helpers to access MMD registers

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 7:15 AM Carlo Caione wrote: > > Now that generic helpers are available, use those instead of relying on > ti specific functions. > > Signed-off-by: Carlo Caione > Signed-off-by: Vladimir Oltean Acked-by: Joe Hershberger ___

Re: [U-Boot] [PATCH v3 3/7] dfu: Remove dependency on HUSH parser in SPL

2019-01-23 Thread Andrew F. Davis
On 1/23/19 12:54 AM, Lukasz Majewski wrote: > Hi Tom, > >> On Tue, Jan 22, 2019 at 11:43:33PM +0100, Lukasz Majewski wrote: >>> On Thu, 17 Jan 2019 13:43:04 -0600 >>> "Andrew F. Davis" wrote: >>> CLI support with the HUSH parser is not currently SPL safe due to it's use of realloc.

Re: [U-Boot] [PATCH v2 1/3] net: phy: Add support for accessing MMD PHY registers

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 7:14 AM Carlo Caione wrote: > > Two new helper functions (phy_read_mmd() and phy_write_mmd()) are added > to allow access to the MMD PHY registers. > > The MMD PHY registers can be accessed by two means: > > 1. Using two new MMD access function hooks in the PHY driver.

Re: [U-Boot] [PATCH v2 3/3] cmd: mdio: Add new parameter to access MMD PHY registers

2019-01-23 Thread Joe Hershberger
On Wed, Jan 23, 2019 at 7:15 AM Carlo Caione wrote: > > Two new parameters (rmmd and wmmd) are added to allow the `mdio` command > to access the content of the MMD PHY registers. > > Signed-off-by: Carlo Caione > --- > cmd/mdio.c | 33 +++-- > 1 file changed, 27

  1   2   >