Re: [U-Boot] [PATCH v1 0/2] Allow platform specific service handling on PSCI

2019-03-04 Thread Ang, Chee Hong
On Tue, 2019-02-12 at 00:27 -0800, chee.hong@intel.com wrote: > From: "Ang, Chee Hong" Hi Tom/Albert,        Any comment on this patch ? Best Regards, Ang > > Currently u-boot only support standard PSCI functions for power > management > and lack of convenient method to allow the users to

[U-Boot] PULL request for the UEFI subsystem for v2019.04-rc4

2019-03-04 Thread Heinrich Schuchardt
The following changes since commit cfba74d0bef350d81241b059180bcc5a1e93bdfa: Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2019-02-28 18:57:32 -0500) are available in the Git repository at: https://github.com/xypron2/u-boot.git efi-2019-04-rc4 for you to fetch changes up to

Re: [U-Boot] [PATCH v1] mmc: dwmmc: Enable small delay before returning error

2019-03-04 Thread Ang, Chee Hong
On Fri, 2019-02-22 at 17:02 +0100, Marek Vasut wrote: > On 2/22/19 4:19 PM, Ang, Chee Hong wrote: > > > > On Thu, 2019-02-21 at 11:06 +0100, Marek Vasut wrote: > > > > > > On 2/20/19 2:57 PM, Ang, Chee Hong wrote: > > > > > > > > > > > > On Mon, 2019-02-18 at 21:38 +0100, Marek Vasut wrote: >

[U-Boot] [U-Boot, V2, PATCH 3/3] mips: fix erros on registers macros of pll-ddr-config1-nfrac for QCA956X

2019-03-04 Thread rosysong
From: Rosy Song See details in chapter 8.6.2 and 8.6.4 (page 140-141) of qca9563 datasheet, NFRAC[17:0] So the mask of [17:5] is 0x1fff not 0x3fff. Signed-off-by: Rosy Song --- arch/mips/mach-ath79/include/mach/ar71xx_regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[U-Boot] [U-Boot, V2, PATCH 2/3] mips: add initial support for qca956x referenced board

2019-03-04 Thread rosysong
From: Rosy Song Signed-off-by: Rosy Song --- arch/mips/dts/Makefile| 1 + arch/mips/dts/ap152.dts | 48 ++ arch/mips/dts/qca956x.dtsi| 87 arch/mips/mach-ath79/Kconfig | 14 +

[U-Boot] [U-Boot, V2, PATCH 1/3] ag7xxx: add initial support for s17

2019-03-04 Thread rosysong
From: Rosy Song Signed-off-by: Rosy Song --- drivers/net/ag7xxx.c | 140 ++- 1 file changed, 124 insertions(+), 16 deletions(-) diff --git a/drivers/net/ag7xxx.c b/drivers/net/ag7xxx.c index 403eb64895..b3b53205fa 100644 --- a/drivers/net/ag7xxx.c +++

[U-Boot] [RFC 3/8] efi_loader: bootmgr: return pointer and size of buffer in loading

2019-03-04 Thread AKASHI Takahiro
We need to know the size of image loaded so as to be able to use load_image() API at do_bootefi_exec() in a later patch. So change the interface of efi_bootmgr_load(). Signed-off-by: AKASHI Takahiro --- include/efi_loader.h | 5 +++-- lib/efi_loader/efi_bootmgr.c | 41

[U-Boot] [RFC 6/8] cmd: bootefi: carve out efi_selftest code from do_bootefi()

2019-03-04 Thread AKASHI Takahiro
This is a preparatory patch for reworking do_bootefi() in a later patch. Efi_selftest code is unusual in terms of execution path in do_bootefi(), which make that function complicated and hard to understand. With this patch, all efi_selftest related code will be put in a separate function. The

[U-Boot] [RFC 8/8] cmd: add efibootmgr command

2019-03-04 Thread AKASHI Takahiro
Add CONFIG_CMD_STANDALONE_EFIBOOTMGR. Signed-off-by: AKASHI Takahiro --- cmd/Kconfig | 8 cmd/bootefi.c | 35 +++ 2 files changed, 43 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 4bcc5c45579d..aa27b21956b3 100644 --- a/cmd/Kconfig +++

[U-Boot] [RFC 7/8] cmd: bootefi: rework do_bootefi(), using load_image API

2019-03-04 Thread AKASHI Takahiro
In this patch, do_bootefi() and do_bootefi_exec() will be reworked, without any functional change so that load_image() API as well as start_image() are used in the implementation. Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 252 ++

[U-Boot] [RFC 4/8] cmd: bootefi: move do_bootefi_bootmgr_exec() forward

2019-03-04 Thread AKASHI Takahiro
This is a preparatory patch. Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c index 3619a20e6433..1d90e7b4b575 100644 --- a/cmd/bootefi.c +++

[U-Boot] [RFC 2/8] efi_loader: boottime: export efi_[un]load_image()

2019-03-04 Thread AKASHI Takahiro
Those two functions will be used later to re-implement do_bootefi_exec(). Signed-off-by: AKASHI Takahiro --- include/efi_loader.h | 9 + lib/efi_loader/efi_boottime.c | 14 +++--- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/include/efi_loader.h

[U-Boot] [RFC 1/8] efi_loader: boottime: don't add device path protocol to image handle

2019-03-04 Thread AKASHI Takahiro
It is just wrong to add devcie path protocol to image handle. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_boottime.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index

[U-Boot] [RFC 5/8] cmd: bootefi: carve out fdt handling

2019-03-04 Thread AKASHI Takahiro
This is a preparatory patch for reworking do_bootefi() in later patch. Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 53 --- 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c index

[U-Boot] [RFC 0/8] efi_loader: rework bootefi/bootmgr

2019-03-04 Thread AKASHI Takahiro
There are several reasons that I want to rework/refactor bootefi command as well as bootmgr: * Some previous commits on bootefi.c have made the code complicated and a bit hard to understand. * Contrary to the other part, efi_selftest part of the code is unusal in terms of loading/execution

Re: [U-Boot] [PATCH 6/6] ARM: rmobile: Sync Gen3 defconfigs

2019-03-04 Thread Marek Vasut
On 3/5/19 12:40 AM, Eugeniu Rosca wrote: > cc: Masahiro (due to Kconfig topic) > > Hi Marek, Hi, > On Mon, Mar 04, 2019 at 11:03:56PM +0100, Marek Vasut wrote: >> On 3/4/19 10:36 PM, Eugeniu Rosca wrote: >>> Hello Marek, > > <-snip-> > >>> Do you think it would make sense to relocate the

[U-Boot] [PATCH 3/4] ARM: renesas: Save boot parameters passed in by ATF

2019-03-04 Thread Marek Vasut
The ATF can pass additional information via the first four registers, x0...x3. The R-Car Gen3 with mainline ATF, register x1 contains pointer to a device tree with platform information. Save these registers for future use. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu ---

[U-Boot] [PATCH 4/4] ARM: renesas: Configure DRAM size from ATF DT fragment

2019-03-04 Thread Marek Vasut
The ATF can pass additional information via the first four registers, x0...x3. The R-Car Gen3 with mainline ATF, register x1 contains pointer to a device tree with platform information. Parse this device tree and extract DRAM size information from it. This is useful on systems where the DRAM size

[U-Boot] [PATCH 2/4] lib: fdt: Split fdtdec_setup_memory_banksize()

2019-03-04 Thread Marek Vasut
Split fdtdec_setup_memory_banksize() into fdtdec_setup_memory_banksize_fdt(), which allows the caller to pass custom blob into the function and the original fdtdec_setup_memory_banksize(), which uses the gd->fdt_blob. This is useful when configuring the DRAM properties from a FDT blob fragment

[U-Boot] [PATCH 1/4] lib: fdt: Split fdtdec_setup_mem_size_base()

2019-03-04 Thread Marek Vasut
Split fdtdec_setup_mem_size_base() into fdtdec_setup_mem_size_base_fdt(), which allows the caller to pass custom blob into the function and the original fdtdec_setup_mem_size_base(), which uses the gd->fdt_blob. This is useful when configuring the DRAM properties from a FDT blob fragment passed in

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

2019-03-04 Thread Tom Rini
On Mon, Mar 04, 2019 at 10:33:59PM +0100, Marek Vasut wrote: > Assorted PFC fixes below ... > > The following changes since commit cfba74d0bef350d81241b059180bcc5a1e93bdfa: > > Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2019-02-28 > 18:57:32 -0500) > > are available in the

[U-Boot] [ANN] U-Boot v2019.04-rc3 released

2019-03-04 Thread Tom Rini
Hey all, So it's release day and I've put up v2019.04-rc3, I've updated git and the tarballs are also up now. Thanks again to having signed tags, between -rc2 and -rc3 we have a good changelog under 'git log --merges v2019.04-rc2..v2019.04-rc3' We're looking at release on April 8th, 2019.

Re: [U-Boot] [PULL] U-boot-atmel 2019.04-a

2019-03-04 Thread Tom Rini
On Mon, Mar 04, 2019 at 11:35:31AM +, eugen.hris...@microchip.com wrote: > Hello Tom, > > Please pull tag u-boot-atmel-2019.04-a , the first set of fixes for > u-boot-atmel for 2019.04 release. > > There are two fixes with changes to defconfigs. > > Travis CI:

Re: [U-Boot] Please pull u-boot-fsl-qoriq master

2019-03-04 Thread Tom Rini
On Mon, Mar 04, 2019 at 08:57:35AM +, Prabhakar Kushwaha wrote: > Hi Tom, > > The following changes since commit cfba74d0bef350d81241b059180bcc5a1e93bdfa: > > Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2019-02-28 > 18:57:32 -0500) > > are available in the git repository

Re: [U-Boot] Please pull u-boot-mpc85xx.git master

2019-03-04 Thread Tom Rini
On Sun, Mar 03, 2019 at 04:41:29AM +, Prabhakar Kushwaha wrote: > The following changes since commit cfba74d0bef350d81241b059180bcc5a1e93bdfa: > > Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2019-02-28 > 18:57:32 -0500) > > are available in the git repository at: > >

Re: [U-Boot] [PATCH v2 5/5] cmd: run: add "-e" option to run an EFI application

2019-03-04 Thread AKASHI Takahiro
Heinrich, On Fri, Mar 01, 2019 at 10:22:13AM +0900, AKASHI Takahiro wrote: > On Thu, Feb 28, 2019 at 06:13:39AM +0100, Heinrich Schuchardt wrote: > > On 2/28/19 6:06 AM, AKASHI Takahiro wrote: > > > On Thu, Feb 28, 2019 at 05:53:17AM +0100, Heinrich Schuchardt wrote: > > >> On 2/28/19 5:45 AM,

[U-Boot] [PATCH RESEND 09/10] misc: imx8: scu: add i.MX8QM support

2019-03-04 Thread Peng Fan
According to IMX8QXP/8QM config option, choose the clk/iomuxc compatible. Signed-off-by: Peng Fan --- drivers/misc/imx8/scu.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c index 1b9c49c99c..9ec00457b8

[U-Boot] [PATCH RESEND 10/10] imx: support i.MX8QM MEK board

2019-03-04 Thread Peng Fan
Add i.MX8QM MEK board support. Included a basic dts, enabled SPL FIT Boot log as below: U-Boot SPL 2019.01-rc1-00029-gf002213219 (Dec 24 2018 - 10:28:30 +0800) Normal Boot Trying to boot from MMC2_2 U-Boot 2019.01-rc1-00029-gf002213219 (Dec 24 2018 - 10:28:30 +0800) CPU: NXP i.MX8QM RevB A53

[U-Boot] [PATCH RESEND 06/10] clk: imx8: split code into common and soc specific part

2019-03-04 Thread Peng Fan
To make it easy to add new clk driver for i.MX8, split the code into common part and SoC specific part. Make the get/set/enable non static and introduce a num_clks for soc_clk_dump, because the arrays are moved to clk-imx8qxp.c. Signed-off-by: Peng Fan --- drivers/clk/imx/Makefile | 4 +

[U-Boot] [PATCH RESEND 08/10] imx8: imx8-pins: add i.MX8QM

2019-03-04 Thread Peng Fan
Add i.MX8QM entry Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/imx8-pins.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/arch-imx8/imx8-pins.h b/arch/arm/include/asm/arch-imx8/imx8-pins.h index dcced1010b..2130298163 100644 ---

[U-Boot] [PATCH RESEND 07/10] clk: imx8: add i.MX8QM clk driver

2019-03-04 Thread Peng Fan
Add i.MX8QM clk driver, SDHC/FEC/UART/I2C supported. Signed-off-by: Peng Fan --- drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx8.c | 1 + drivers/clk/imx/clk-imx8qm.c | 307 +++ 3 files changed, 309 insertions(+) create mode 100644

[U-Boot] [PATCH RESEND 05/10] imx8: add cpu support

2019-03-04 Thread Peng Fan
Add cpu type and Kconfig entry Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 1 + arch/arm/mach-imx/imx8/Kconfig | 5 + arch/arm/mach-imx/imx8/cpu.c| 3 +++ 3 files changed, 9 insertions(+) diff --git a/arch/arm/include/asm/arch-imx/cpu.h

[U-Boot] [PATCH RESEND 04/10] arm: dts: introduce dtsi for i.MX8QM

2019-03-04 Thread Peng Fan
Introduce basic dtsi for i.MX8QM, only support SDHC/FEC/LPUART. Signed-off-by: Peng Fan --- arch/arm/dts/fsl-imx8qm.dtsi | 400 +++ 1 file changed, 400 insertions(+) create mode 100644 arch/arm/dts/fsl-imx8qm.dtsi diff --git

[U-Boot] [PATCH RESEND 03/10] dt-bindings: clock: dt-bindings: pinctrl: add i.MX8QM clocks definition

2019-03-04 Thread Peng Fan
Add i.MX8QM clocks definition Signed-off-by: Peng Fan --- include/dt-bindings/clock/imx8qm-clock.h | 846 +++ 1 file changed, 846 insertions(+) create mode 100644 include/dt-bindings/clock/imx8qm-clock.h diff --git a/include/dt-bindings/clock/imx8qm-clock.h

[U-Boot] [PATCH RESEND 02/10] dt-bindings: pinctrl: add i.MX8QM pads definition

2019-03-04 Thread Peng Fan
Add i.MX8QM pads definition Signed-off-by: Peng Fan --- include/dt-bindings/pinctrl/pads-imx8qm.h | 961 ++ 1 file changed, 961 insertions(+) create mode 100644 include/dt-bindings/pinctrl/pads-imx8qm.h diff --git a/include/dt-bindings/pinctrl/pads-imx8qm.h

[U-Boot] [PATCH RESEND 01/10] pinctrl: imx8: add i.MX8QM compatible

2019-03-04 Thread Peng Fan
Add i.MX8QM compatible Signed-off-by: Peng Fan --- drivers/pinctrl/nxp/pinctrl-imx8.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/nxp/pinctrl-imx8.c b/drivers/pinctrl/nxp/pinctrl-imx8.c index 0738da0ebe..c1b0ca438a 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8.c +++

[U-Boot] [PATCH v2 1/1] efi_loader: bootmgr: support BootNext and BootCurrent variable behavior

2019-03-04 Thread AKASHI Takahiro
See UEFI v2.7, section 3.1.2 for details of the specification. With efidebug command, you can run any EFI boot option as follows: => efi boot add 1 SHELL ... => efi boot add 2 HELLO ... => efi boot order 1 2 => efi bootmgr (starting SHELL ...) => efi boot next 2 => efi bootmgr

[U-Boot] [PATCH v2 0/1] efi_loader: support BootNext and BootCurrent

2019-03-04 Thread AKASHI Takahiro
This patch was originally posted as a single one, but then was merged in my "run -e." Now I would like to post it on its own. With this patch, EFI Boot Manager will handles BootNext and BootCurrent variable as UEFI specification describes. Changes in v2 (Mar 5, 2019) * extract this patch from my

Re: [U-Boot] [PATCH 6/6] ARM: rmobile: Sync Gen3 defconfigs

2019-03-04 Thread Eugeniu Rosca
cc: Masahiro (due to Kconfig topic) Hi Marek, On Mon, Mar 04, 2019 at 11:03:56PM +0100, Marek Vasut wrote: > On 3/4/19 10:36 PM, Eugeniu Rosca wrote: > > Hello Marek, <-snip-> > > Do you think it would make sense to relocate the common parts into > > rcar{3,-gen3}_defconfig and the unique

Re: [U-Boot] [PATCH 2/2] board: stm32f746-disco: Get MII/RMII phy_mode from DT

2019-03-04 Thread Joe Hershberger
On Fri, Feb 22, 2019 at 8:06 AM Patrice Chotard wrote: > > This is needed to make ethernet work on stm32f746-eval which > uses MII mode. > > Signed-off-by: Patrice Chotard Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v4 22/22] pcm052: bk4: Add board_phy_config() for BK4 to setup ksz8081 phy

2019-03-04 Thread Lukasz Majewski
Hi Joe, > On Wed, Feb 13, 2019 at 3:51 PM Lukasz Majewski wrote: > > > > BK4 requires setup of 50MHz reference clock for its KSZ8081 PHY > > devices. > > > > Signed-off-by: Lukasz Majewski > > Acked-by: Joe Hershberger > > > --- > > > > Changes in v4: None > > Changes in v3: None > >

Re: [U-Boot] [PATCH] board: fsl: lx2160aqds: modify the phy fixup code

2019-03-04 Thread Joe Hershberger
On Thu, Feb 28, 2019 at 2:13 AM Pankaj Bansal wrote: > > Now that we are representing the MDIO mux in LX2160AQDS board in > producer/consumer terms, the consumer nodes' has been changed. > > Therefore, modify the device tree fixups according to change in device > tree. > > Signed-off-by: Pankaj

Re: [U-Boot] [PATCH v4 22/22] pcm052: bk4: Add board_phy_config() for BK4 to setup ksz8081 phy

2019-03-04 Thread Joe Hershberger
On Wed, Feb 13, 2019 at 3:51 PM Lukasz Majewski wrote: > > BK4 requires setup of 50MHz reference clock for its KSZ8081 PHY devices. > > Signed-off-by: Lukasz Majewski Acked-by: Joe Hershberger > --- > > Changes in v4: None > Changes in v3: None > Changes in v2: None > >

Re: [U-Boot] [PATCH] drivers/net/fec: phy_init: remove redundant logic

2019-03-04 Thread Joe Hershberger
On Fri, Feb 15, 2019 at 3:30 AM Hannes Schmelzer wrote: > > The phy_connect_dev(...) function from phy.c does all the handling > (inclusive catching fixed-link). > > So we drop here the single steps and call just phy_connect_dev(...). > > Signed-off-by: Hannes Schmelzer Acked-by: Joe

Re: [U-Boot] [PATCH 6/6] ARM: rmobile: Sync Gen3 defconfigs

2019-03-04 Thread Marek Vasut
On 3/4/19 10:36 PM, Eugeniu Rosca wrote: > Hello Marek, Hi, > Thanks to great maintenance, the R-Car3 defconfigs look strikingly similar. That's the goal for this release, to make them look similar. > Do you think it would make sense to relocate the common parts into > rcar{3,-gen3}_defconfig

Re: [U-Boot] [PATCH 2/2] net: phy: micrel: Find Micrel PHY node correctly

2019-03-04 Thread Joe Hershberger
On Mon, Mar 4, 2019 at 11:47 AM James Byrne wrote: > > In some of the device trees that specify skew values for KSZ90x1 PHYs > the values are stored (incorrectly) in the MAC node, whereas in others > it is in an 'ethernet-phy' subnode. Previously the code would fail to > find and program these

Re: [U-Boot] [PATCH 1/2] net: phy: micrel: Use correct skew values on KSZ9021

2019-03-04 Thread Joe Hershberger
On Mon, Mar 4, 2019 at 11:46 AM James Byrne wrote: > > Commit ff7bd212cb8a ("net: phy: micrel: fix divisor value for KSZ9031 > phy skew") fixed the skew value divisor for the KSZ9031, but left the > code using the same divisor for the KSZ9021, which is incorrect. > > The preceding commit

Re: [U-Boot] [PATCH 6/6] ARM: rmobile: Sync Gen3 defconfigs

2019-03-04 Thread Eugeniu Rosca
Hello Marek, Thanks to great maintenance, the R-Car3 defconfigs look strikingly similar. Do you think it would make sense to relocate the common parts into rcar{3,-gen3}_defconfig and the unique per-board options into config fragments resembling the current R-Car3 defconfig structure? $>

Re: [U-Boot] [PATCH v2 4/5] arm: socfpga: imply/default common config options

2019-03-04 Thread Marek Vasut
On 3/4/19 10:23 PM, Simon Goldschmidt wrote: > > > Marek Vasut mailto:ma...@denx.de>> schrieb am Mo., 4. > März 2019, 22:19: > > On 3/4/19 9:53 PM, Simon Goldschmidt wrote: > > This commit moves common config options used in all socfpga boards > > to select/imply in Kconfig. This

[U-Boot] [PULL] u-boot-sh/master

2019-03-04 Thread Marek Vasut
Assorted PFC fixes below ... The following changes since commit cfba74d0bef350d81241b059180bcc5a1e93bdfa: Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2019-02-28 18:57:32 -0500) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch

Re: [U-Boot] [PATCH v2 4/5] arm: socfpga: imply/default common config options

2019-03-04 Thread Simon Goldschmidt
Marek Vasut schrieb am Mo., 4. März 2019, 22:19: > On 3/4/19 9:53 PM, Simon Goldschmidt wrote: > > This commit moves common config options used in all socfpga boards > > to select/imply in Kconfig. This both cleans up the defconfig files > > as well as makes future changes easier. > > > >

Re: [U-Boot] [PATCH v2 4/5] arm: socfpga: imply/default common config options

2019-03-04 Thread Marek Vasut
On 3/4/19 9:53 PM, Simon Goldschmidt wrote: > This commit moves common config options used in all socfpga boards > to select/imply in Kconfig. This both cleans up the defconfig files > as well as makes future changes easier. > > Options implied/defaulted for all sub-arches: > - SPL, SPL_DM,

[U-Boot] [PATCH v2 5/5] arm: socfpga: gen5: reduce SPL pre-reloc malloc

2019-03-04 Thread Simon Goldschmidt
By enabling debug prints in malloc_simple, we can see that SPL for socfpga gen5 does by far not need the 8 KiB malloc pool currently allocated for SPL in pre-reloc phase. On socfpga_socrates, 1304 bytes are currently used (and this increases by ~200 bytes only for the sdram/reset fixes in

[U-Boot] [PATCH v2 4/5] arm: socfpga: imply/default common config options

2019-03-04 Thread Simon Goldschmidt
This commit moves common config options used in all socfpga boards to select/imply in Kconfig. This both cleans up the defconfig files as well as makes future changes easier. Options implied/defaulted for all sub-arches: - SPL, SPL_DM, USE_TINY_PRINTF, NR_DRAM_BANKS Options implied/defaulted for

[U-Boot] [PATCH v2 3/5] arm: socfpga: put initial U-Boot stack into DDR

2019-03-04 Thread Simon Goldschmidt
If SPL post-reloc stage puts the stack into DDR, U-Boot should be able to do that, too. The reason to do so is that this way, U-Boot initial stack can be larger than SPL initial stack. In situations where we want to save the SPL in SRAM for next boot without reloading, this prevents overwriting

[U-Boot] [PATCH v2 2/5] arm: socfpga: a10: move SPL stack size to Kconfig

2019-03-04 Thread Simon Goldschmidt
Instead of fixing the SPL stack to 64 KiB in the board config header via CONFIG_SYS_SPL_MALLOC_SIZE, let's just use CONFIG_SPL_SYS_MALLOC_F_LEN in the defconfig. This also has the advandage that it removes sub-mach specific ifdefs in socfpga_common.h. Signed-off-by: Simon Goldschmidt ---

[U-Boot] [PATCH v2 0/5] arm: socfpga: stack and Kconfig cleanups

2019-03-04 Thread Simon Goldschmidt
This series cleans up stack definitions in socfpga_common.h as well as cleans up defconfig files by implying/defaulting common things in Kconfig files. Finally, it reduces the malloc pool size used in first stage of gen5 SPL (without ddr available) in order to have more space available for code.

[U-Boot] [PATCH v2 1/5] arm: socfpga: fix comment about SPL memory layout

2019-03-04 Thread Simon Goldschmidt
The comment about SPL memory layout for socfpga gen5 is outdated: the initial malloc memory is now at the end of the SRAM, gd is below it (see board_init_f_alloc_reserve). Signed-off-by: Simon Goldschmidt --- Changes in v2: None include/configs/socfpga_common.h | 6 +++--- 1 file changed, 3

Re: [U-Boot] [RFC/RESEND 01/22] arm: introduce ARCH_THUNDERX

2019-03-04 Thread Chandrakala Chavva
We will be submitting OcteonTX/OcteonTX2 support soon to mainline, these are very old changes, please wait till then. Chandra From: Tim Harvey Sent: Monday, March 4, 2019 9:34:16 AM To: Aaron Williams; Chris Packham; Alexander Graf; Zi Shen Lim; Maen Suleiman;

Re: [U-Boot] [RFC/RESEND 01/22] arm: introduce ARCH_THUNDERX

2019-03-04 Thread Tim Harvey
On Mon, Mar 4, 2019 at 11:05 AM Chandrakala Chavva wrote: > > We will be submitting OcteonTX/OcteonTX2 support soon to mainline, these are > very old changes, please wait till then. > > > Chandra Chandra, Thanks for the reply. Can you elaborate on what 'soon' might be... weeks or months?

Re: [U-Boot] [PATCH 6/6] i2c: rcar_i2c: Move FSDA check to rcar_i2c_recover

2019-03-04 Thread Marek Vasut
On 3/4/19 3:19 PM, Ismael Luceno Cortes wrote: Why is this change needed ? A commit message explaining it would help a lot. > Signed-off-by: Ismael Luceno > --- > drivers/i2c/rcar_i2c.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/drivers/i2c/rcar_i2c.c

Re: [U-Boot] [PATCH 5/6] i2c: rcar_i2c: Set the slave address from rcar_i2c_xfer

2019-03-04 Thread Marek Vasut
On 3/4/19 3:19 PM, Ismael Luceno Cortes wrote: > Signed-off-by: Ismael Luceno > --- > drivers/i2c/rcar_i2c.c | 14 +- > 1 file changed, 5 insertions(+), 9 deletions(-) > > diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c > index b4cc0c55b1..5e04b68d95 100644 > ---

Re: [U-Boot] [PATCH 1/6] i2c: rcar_i2c: Fix u32 cast warnings

2019-03-04 Thread Marek Vasut
On 3/4/19 3:19 PM, Ismael Luceno Cortes wrote: Hello Ismael, the patch is missing commit message, please fix globally. I sent this patch [1] two days ago, I believe it fixes the same issue, can you rebase the series on top of it ? [1] http://patchwork.ozlabs.org/patch/1050650/ >

Re: [U-Boot] [PATCH] drivers: net: ls1088ardb: Fix EC1 and EC2 RCW offset

2019-03-04 Thread Joe Hershberger
On Thu, Feb 28, 2019 at 3:06 AM Pramod Kumar wrote: > > Fix EC1 and EC2 read from correct offset 26, instead of 25 > > Signed-off-by: Pramod Kumar Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH] driver: net: fsl-mc: Fix DPC MAC address fixup

2019-03-04 Thread Joe Hershberger
On Tue, Feb 26, 2019 at 9:51 AM Ioana Ciocoi Radulescu wrote: > > If node /board_info/ports does not exist in the DPC file, > function mc_fixup_dpc() will skip not only MAC address fixup, > but also the cache flush at the end. This may cause the other > fixup changes (e.g. ICID relatd ones) to be

Re: [U-Boot] [RESEND PATCH] net: phy: Reloc next and prev pointers inside phy_drivers

2019-03-04 Thread Joe Hershberger
On Mon, Mar 4, 2019 at 9:01 AM Michal Simek wrote: > > From: Siva Durga Prasad Paladugu > > This patch relocates the pointers inside phy_drivers incase > of manual reloc. Without this reloc, these points to invalid > pre relocation address and hence causes exception or hang. > > Signed-off-by:

Re: [U-Boot] [RESEND PATCH] net: phy: Fix return value check phy_probe

2019-03-04 Thread Joe Hershberger
On Mon, Mar 4, 2019 at 9:02 AM Michal Simek wrote: > > From: Siva Durga Prasad Paladugu > > Don't ignore return value of phy_probe() call as > the probe may fail and it needs to be reported. > > Signed-off-by: Siva Durga Prasad Paladugu > Signed-off-by: Michal Simek Acked-by: Joe Hershberger

[U-Boot] [PATCH 0/2] Apply correct skew values to KSZ9021 PHYs

2019-03-04 Thread James Byrne
I have been having problems making the Gigabit Ethernet interface work on the SAMA5D3xEK board with recent versions of U-Boot. After much debugging it eventually transpired that this was because the PHY's skew registers were not being programmed, and it has never worked since this board was

[U-Boot] [PATCH 2/2] net: phy: micrel: Find Micrel PHY node correctly

2019-03-04 Thread James Byrne
In some of the device trees that specify skew values for KSZ90x1 PHYs the values are stored (incorrectly) in the MAC node, whereas in others it is in an 'ethernet-phy' subnode. Previously the code would fail to find and program these skew values, so this commit changes it to look for an

[U-Boot] [RFC/RESEND 20/22] thunderx_81xx: add AHCI support

2019-03-04 Thread Tim Harvey
Signed-off-by: Tim Harvey --- include/configs/thunderx_81xx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/thunderx_81xx.h b/include/configs/thunderx_81xx.h index dbca775699..c32aa7844c 100644 --- a/include/configs/thunderx_81xx.h +++

[U-Boot] [RFC/RESEND 19/22] ahci: add support for ThunderX AHCI

2019-03-04 Thread Tim Harvey
Signed-off-by: Tim Harvey --- configs/thunderx_81xx_defconfig | 7 +++ drivers/ata/ahci.c | 12 +--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/configs/thunderx_81xx_defconfig b/configs/thunderx_81xx_defconfig index bb374b741a..dbdadde5fc 100644 ---

[U-Boot] [PATCH 1/2] net: phy: micrel: Use correct skew values on KSZ9021

2019-03-04 Thread James Byrne
Commit ff7bd212cb8a ("net: phy: micrel: fix divisor value for KSZ9031 phy skew") fixed the skew value divisor for the KSZ9031, but left the code using the same divisor for the KSZ9021, which is incorrect. The preceding commit c16e69f702b1 ("net: phy: micrel: add documentation for Micrel KSZ90x1

[U-Boot] [RFC/RESEND 10/22] arm: include 64bit io accessors

2019-03-04 Thread Tim Harvey
Signed-off-by: Tim Harvey --- arch/arm/include/asm/io.h | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 5df74728de..5699e6f23a 100644 --- a/arch/arm/include/asm/io.h +++ b/arch/arm/include/asm/io.h @@ -172,6 +172,14 @@

[U-Boot] [RFC/RESEND 15/22] thunderx_81xx: add support for XHCI

2019-03-04 Thread Tim Harvey
Signed-off-by: Tim Harvey --- configs/thunderx_81xx_defconfig | 5 + include/configs/thunderx_81xx.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configs/thunderx_81xx_defconfig b/configs/thunderx_81xx_defconfig index 48f57ecf1b..8538f63181 100644 ---

[U-Boot] [RFC/RESEND 17/22] ahci: support 64bit systems

2019-03-04 Thread Tim Harvey
Signed-off-by: Tim Harvey --- drivers/ata/ahci.c | 26 +- include/ahci.h | 3 +++ 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index d6753f140d..81d16925dd 100644 --- a/drivers/ata/ahci.c +++

[U-Boot] [RFC/RESEND 22/22] pci: auto probe thunderx NIC devices

2019-03-04 Thread Tim Harvey
For boards with soc peripherals via the pci devices some devices require probing during config to be available (ie VNIC on ThunderX SoCs). Signed-off-by: Tim Harvey --- drivers/pci/pci_auto.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/pci/pci_auto.c

[U-Boot] [RFC/RESEND 18/22] ahci: set n_ports from host caps

2019-03-04 Thread Tim Harvey
Instead of assuming 2 devices, get the max from the host controller. Signed-off-by: Tim Harvey --- drivers/ata/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 81d16925dd..e7d590f69a 100644 --- a/drivers/ata/ahci.c +++

[U-Boot] [RFC/RESEND 13/22] spi: add thunderx SPI driver

2019-03-04 Thread Tim Harvey
Signed-off-by: Tim Harvey --- configs/thunderx_81xx_defconfig | 4 + drivers/spi/Kconfig | 6 + drivers/spi/Makefile| 1 + drivers/spi/thunderx_spi.c | 448 4 files changed, 459 insertions(+) create mode 100755

[U-Boot] [RFC/RESEND 11/22] gpio: add thunderx gpio driver

2019-03-04 Thread Tim Harvey
Signed-off-by: Tim Harvey --- configs/thunderx_81xx_defconfig | 4 + drivers/gpio/Kconfig| 7 ++ drivers/gpio/Makefile | 1 + drivers/gpio/thunderx_gpio.c| 189 4 files changed, 201 insertions(+) create mode 100644

[U-Boot] [RFC/RESEND 09/22] pci: fix pce enumeration on thunderx

2019-03-04 Thread Tim Harvey
TODO: - determine proper workaround for disabling found_multi - determine proper workaround for decode_regions Signed-off-by: Tim Harvey --- drivers/pci/pci-uclass.c | 12 include/pci.h| 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git

[U-Boot] [RFC/RESEND 16/22] thunderx_81xx: enable usb mass storage and usb ethernet

2019-03-04 Thread Tim Harvey
--- configs/thunderx_81xx_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/thunderx_81xx_defconfig b/configs/thunderx_81xx_defconfig index 8538f63181..bb374b741a 100644 --- a/configs/thunderx_81xx_defconfig +++ b/configs/thunderx_81xx_defconfig @@ -48,3 +48,6 @@

[U-Boot] [RFC/RESEND 08/22] pci: add thunderx pci/ecam driver

2019-03-04 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/cavium/thunderx/Kconfig| 4 + board/cavium/thunderx/thunderx.c | 16 ++-- configs/thunderx_81xx_defconfig | 6 ++ configs/thunderx_88xx_defconfig | 6 ++ drivers/pci/Kconfig | 9 ++ drivers/pci/Makefile | 1 +

[U-Boot] [RFC/RESEND 05/22] thunderx: move DRAM prints to debug

2019-03-04 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/cavium/thunderx/thunderx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/cavium/thunderx/thunderx.c b/board/cavium/thunderx/thunderx.c index 57dce5aee0..0cc03a463f 100644 --- a/board/cavium/thunderx/thunderx.c +++

[U-Boot] [RFC/RESEND 12/22] i2c: add thunderx I2C driver

2019-03-04 Thread Tim Harvey
Signed-off-by: Tim Harvey --- configs/thunderx_81xx_defconfig | 2 + drivers/i2c/Kconfig | 7 + drivers/i2c/Makefile| 1 + drivers/i2c/thunderx_i2c.c | 878 include/configs/thunderx_81xx.h | 2 + 5 files changed, 890

[U-Boot] [RFC/RESEND 07/22] fdt: add fdtdec_get_pci_bus_range

2019-03-04 Thread Tim Harvey
Signed-off-by: Tim Harvey --- include/fdtdec.h | 11 +++ lib/fdtdec.c | 13 + 2 files changed, 24 insertions(+) diff --git a/include/fdtdec.h b/include/fdtdec.h index c26df50543..b56be097eb 100644 --- a/include/fdtdec.h +++ b/include/fdtdec.h @@ -460,6 +460,17 @@ int

[U-Boot] [RFC/RESEND 14/22] xhci: add support for cavium thunderx XHCI

2019-03-04 Thread Tim Harvey
Signed-off-by: Tim Harvey --- drivers/usb/host/xhci-pci.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index d42f06bc32..3605357d33 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c

[U-Boot] [RFC/RESEND 03/22] thunderx: add FDT support

2019-03-04 Thread Tim Harvey
The thunderx boards use the Cavium Bringup and Diagnostics Kit (BDK) as a secondary program loader (SPL). This initial boot firmware loads the device-tree and passes it to the next layer of software in X1. Signed-off-by: Tim Harvey --- arch/arm/mach-thunderx/Makefile| 2 +-

[U-Boot] [RFC/RESEND 04/22] thunderx: add thunderx register definitions and misc functions

2019-03-04 Thread Tim Harvey
Add Cavium Thunderx common registers, structures, and helper functions Signed-off-by: Tim Harvey --- arch/arm/include/asm/arch-thunderx/thunderx.h | 300 ++ arch/arm/mach-thunderx/Makefile | 2 +- arch/arm/mach-thunderx/misc.c | 33 ++ 3 files

[U-Boot] [RFC/RESEND 06/22] dm: pci: add PCI SR-IOV EA support

2019-03-04 Thread Tim Harvey
Add Single Root I/O Virtualization (SR-IOV) and Enhanced Allocation support Signed-off-by: Tim Harvey --- arch/x86/cpu/baytrail/cpu.c | 3 +- drivers/ata/ahci.c | 8 +- drivers/i2c/designware_i2c.c | 4 +- drivers/i2c/intel_i2c.c | 3 +- drivers/mmc/pci_mmc.c|

[U-Boot] [RFC/RESEND 02/22] arm: add thunderx_81xx

2019-03-04 Thread Tim Harvey
The thunderx-81xx is a device-tree implementation supporting the Cavium Octeon-TX CN80xx/CN81xx SoC which combines 64bit ARM cores with thunderx peripherals. Signed-off-by: Tim Harvey --- arch/arm/dts/Makefile | 1 + arch/arm/dts/thunderx-81xx.dts | 36 +++

[U-Boot] [RFC/RESEND 01/22] arm: introduce ARCH_THUNDERX

2019-03-04 Thread Tim Harvey
Signed-off-by: Tim Harvey --- arch/arm/Kconfig | 6 +++--- arch/arm/Makefile | 1 + arch/arm/dts/Makefile | 2 +- .../arm/include/asm/arch-thunderx}/atf.h | 2 +-

[U-Boot] [RFC/RESEND 00/22] Add support for Cavium Octeon-TX CN80XX/CN81XX

2019-03-04 Thread Tim Harvey
The Cavium Octeon-TX 64-bit ARM based SoCs include the CN80XX and CN81XX. These SoC's have peripheral drivers based on PCI ECAM. This series has been tested on the the following Gateworks SBC's: - GW6100 - CN8021 dual A53 800MHz - GW6104 - CN8031 quad A53 1500MHz - GW6300 - CN8020 dual A53

Re: [U-Boot] [swupdate] Re: SWUpdate - U-Boot environment library dependency

2019-03-04 Thread Stefano Babic
Hi Simon, reviving an old (dead) thread: On 20/11/18 22:11, Simon Goldschmidt wrote: > On 04.09.2018 12:30, Andreas Reichel wrote: >> Hi all, >> >> as Stefano Babic was so friendly and pointed out a few things already, >> we come the following problematic points: >> >> For SWupdate to access

[U-Boot] tools: board config CONFIG_SYS_BOOTM_LEN is being ignored

2019-03-04 Thread Philipp Puschmann
Hi, i noticed that CONFIG_SYS_BOOTM_LEN, set in board config, and used in common/bootm.c is ignored when compiling the tools like mkimage and fit_check_sign. The default 8MB is used and fit_check_sign may fail with "Loading Kernel Image ... Image too large: increase CONFIG_SYS_BOOTM_LEN".

[U-Boot] [RESEND PATCH] net: phy: Fix return value check phy_probe

2019-03-04 Thread Michal Simek
From: Siva Durga Prasad Paladugu Don't ignore return value of phy_probe() call as the probe may fail and it needs to be reported. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- Joe asked for it. --- drivers/net/phy/phy.c | 5 - 1 file changed, 4

[U-Boot] [RESEND PATCH] net: phy: Reloc next and prev pointers inside phy_drivers

2019-03-04 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch relocates the pointers inside phy_drivers incase of manual reloc. Without this reloc, these points to invalid pre relocation address and hence causes exception or hang. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- Joe

[U-Boot] [PATCH 4/6] i2c: rcar_i2c: Don't mask errors with EREMOTEIO at rcar_i2c_xfer

2019-03-04 Thread Ismael Luceno Cortes
Signed-off-by: Ismael Luceno --- drivers/i2c/rcar_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c index 8cdd37c006..b4cc0c55b1 100644 --- a/drivers/i2c/rcar_i2c.c +++ b/drivers/i2c/rcar_i2c.c @@ -207,7 +207,7 @@ static int

[U-Boot] [PATCH 6/6] i2c: rcar_i2c: Move FSDA check to rcar_i2c_recover

2019-03-04 Thread Ismael Luceno Cortes
Signed-off-by: Ismael Luceno --- drivers/i2c/rcar_i2c.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c index 5e04b68d95..b829e8b20d 100644 --- a/drivers/i2c/rcar_i2c.c +++ b/drivers/i2c/rcar_i2c.c @@ -68,7 +68,7 @@

[U-Boot] [PATCH 5/6] i2c: rcar_i2c: Set the slave address from rcar_i2c_xfer

2019-03-04 Thread Ismael Luceno Cortes
Signed-off-by: Ismael Luceno --- drivers/i2c/rcar_i2c.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c index b4cc0c55b1..5e04b68d95 100644 --- a/drivers/i2c/rcar_i2c.c +++ b/drivers/i2c/rcar_i2c.c @@ -144,10

[U-Boot] [PATCH 3/6] i2c: rcar_i2c: Fix sending of slave addresses

2019-03-04 Thread Ismael Luceno Cortes
Do the reset before clearing the MSR, otherwise it may result in a read or write operation instead if the start condition is repeated. Signed-off-by: Ismael Luceno --- drivers/i2c/rcar_i2c.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/rcar_i2c.c

  1   2   >