Re: [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT

2019-03-29 Thread Faiz Abbas
Tom, On 28/03/19 6:33 PM, Tom Rini wrote: > On Thu, Mar 28, 2019 at 02:21:03PM +0530, Faiz Abbas wrote: > >> With U-boot supporting environment in multiple places, enable only >> ENV_IS_IN_EMMC. >> >> Signed-off-by: Faiz Abbas >> --- >> configs/am57xx_evm_defconfig| 1 + >> configs/am57xx_h

Re: [U-Boot] [PATCH v4] arm: dts: Stratix10: Add QSPI node

2019-03-29 Thread Ley Foon Tan
On Fri, Mar 29, 2019 at 2:57 PM Simon Goldschmidt wrote: > > On Fri, Mar 29, 2019 at 7:39 AM Ley Foon Tan wrote: > > > > On Wed, Mar 27, 2019 at 7:31 PM Simon Goldschmidt > > wrote: > > > > > > On Wed, Mar 27, 2019 at 9:44 AM Ley Foon Tan > > > wrote: > > > > > > > > Add QSPI device tree to St

Re: [U-Boot] [PATCH v2] fastboot: Improve error reporting on 'getvar partition-{size, type}'

2019-03-29 Thread Alex Kiernan
On Thu, Mar 28, 2019 at 1:32 PM Eugeniu Rosca wrote: > > Currently U-Boot reports the same error message in all below cases: > [A] host> fastboot getvar partition-type > [B] host> fastboot getvar partition-size > [C] host> fastboot getvar partition-type: > [D] host> fastboot getvar partition-size:

Re: [U-Boot] [PATCH] drivers/net/phy: implement fallback mechanism for negative phy adresses

2019-03-29 Thread Michal Simek
Please fix subject net: phy: should be fine. On 29. 03. 19 7:03, Hannes Schmelzer wrote: > Negative phy-addresses can occour if the caller function was not able to > determine a valid phy address (from device-tree for example). In this > case we catch this here and search for ANY phy device on the

[U-Boot] [PATCH] net: gem: Remove phy autodetection code

2019-03-29 Thread Michal Simek
There is no reason to detect phy when core is doing it for us. Signed-off-by: Michal Simek --- Based on https://lists.denx.de/pipermail/u-boot/2019-March/363225.html --- drivers/net/zynq_gem.c | 48 1 file changed, 48 deletions(-) diff --git a/

Re: [U-Boot] [PATCH] powerpc: Simplify processor.h

2019-03-29 Thread Mario Six
On Mon, Jan 28, 2019 at 9:34 AM Mario Six wrote: > > Lots of stuff in processor.h was taken verbatim from the Linux kernel. > It was never synced, so most of it was removed or changed in the kernel > since it was imported. > > Remove all the stuff that is unused in the current U-Boot sources; > sh

Re: [U-Boot] [PATCH] mpc83xx: Define _end symbol

2019-03-29 Thread Mario Six
On Mon, Jan 28, 2019 at 9:37 AM Mario Six wrote: > > To support OF_EMBED, the MPC83xx architecture has to define the "_end" > symbol to correctly access the appended DT. > > Fortunately, MPC8xx already defines the symbol, and the linker script is > quite similar to that of MPC83xx, so copy this ap

Re: [U-Boot] [PATCH 32/36] rockchip: remove rk_timer

2019-03-29 Thread Alexander Kochetkov
Hello, Kever! Please keep rk_timer.c for rk3188 and other legacy chips. There is no ARM generic timer in this SoC. This SoC only have private timers. see https://community.arm.com/developer/ip-products/processors/f/cortex-a-forum/1449/generic-timer-on-cortex-a7-cortex-a9 > 27 марта 2018 г., в

Re: [U-Boot] [PATCH] mpc83xx_clk: Add enable method

2019-03-29 Thread Mario Six
On Mon, Jan 28, 2019 at 9:41 AM Mario Six wrote: > > Some DM drivers have hardcoded clk_enable calls when handling > clocks (for example the fsl_esdhc driver). > > To work with these drivers, add an enable method to the MCP83xx clock > driver (which does nothing, because the clocks are always enab

Re: [U-Boot] [PATCH 1/2] cmd: binop: Use new environment api

2019-03-29 Thread Mario Six
On Thu, Jan 31, 2019 at 11:05 AM Simon Glass wrote: > > On Mon, 28 Jan 2019 at 01:44, Mario Six wrote: > > > > Since the binop command was introduced, the environment API was changed. > > Use the new API to make the command work again. > > > > Signed-off-by: Mario Six > > --- > > cmd/binop.c |

Re: [U-Boot] [PATCH v3 3/7] common: Implement A/B metadata

2019-03-29 Thread Eugeniu Rosca
Hello, On Thu, Mar 28, 2019 at 03:58:48PM -0400, Tom Rini wrote: > On Thu, Mar 28, 2019 at 05:30:30PM +0100, Eugeniu Rosca wrote: > > Hello Igor, All, > > > > On Thu, Mar 21, 2019 at 05:39:36PM +0200, Igor Opaniuk wrote: > > > Hi Eugeniu, > > > > > > On Fri, Mar 8, 2019 at 7:29 PM Eugeniu Rosca

Re: [U-Boot] [PATCH 2/2] cmd: binop: Use hex2bin

2019-03-29 Thread Mario Six
On Thu, Jan 31, 2019 at 11:04 AM Simon Glass wrote: > > On Mon, 28 Jan 2019 at 01:44, Mario Six wrote: > > > > Use the new hex2bin function in the binop command instead of converting > > the data manually. > > > > Signed-off-by: Mario Six > > --- > > cmd/binop.c | 28 +++

Re: [U-Boot] [PATCH 2/2] i2c: ihs: Improve error handling

2019-03-29 Thread Mario Six
On Thu, Feb 7, 2019 at 6:26 AM Heiko Schocher wrote: > > Hello Mario, > > Am 28.01.2019 um 09:45 schrieb Mario Six: > > Improve the error handling and reporting of the IHS I2C driver. > > > > Signed-off-by: Mario Six > > --- > > drivers/i2c/ihs_i2c.c | 67 +++

Re: [U-Boot] [PATCH 1/2] i2c: ihs: Get rid of fpgamap

2019-03-29 Thread Mario Six
On Thu, Feb 7, 2019 at 6:24 AM Heiko Schocher wrote: > > Hello Mario, > > Am 28.01.2019 um 09:45 schrieb Mario Six: > > Since the IHS I2C driver want upstream, the surrounding infrastructure > > has changed quite a bit (notably, the fpgamap driver was replaced with a > > regmap driver). > > > > Up

Re: [U-Boot] [PATCH 1/2] gdsys_rxaui_ctrl: Return old state

2019-03-29 Thread Mario Six
On Mon, Jan 28, 2019 at 9:48 AM Mario Six wrote: > > Make the gdsys_rxaui_ctrl polarity setting function return the old > state to comply with the API requirements. > > Signed-off-by: Mario Six > --- > drivers/misc/gdsys_rxaui_ctrl.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-)

Re: [U-Boot] [PATCH 2/2] gdsys_rxaui_ctrl: Use new regmap interface

2019-03-29 Thread Mario Six
On Mon, Jan 28, 2019 at 9:48 AM Mario Six wrote: > > For the DM case, use the proper parameter for the regmap_init_mem call > (which is the ofnode, not the udevice). > > Signed-off-by: Mario Six > --- > drivers/misc/gdsys_rxaui_ctrl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > d

Re: [U-Boot] [PATCH] ihs_mdio: Use new regmap interface

2019-03-29 Thread Mario Six
On Thu, Jan 31, 2019 at 11:04 AM Simon Glass wrote: > > On Mon, 28 Jan 2019 at 01:49, Mario Six wrote: > > > > For the DM case, use the proper parameter for the regmap_init_mem call > > (which is the ofnode, not the udevice). > > > > Signed-off-by: Mario Six > > --- > > board/gdsys/common/ihs_m

[U-Boot] [PATCH v2] net: phy: implement fallback mechanism for negative phy adresses

2019-03-29 Thread Hannes Schmelzer
Negative phy-addresses can occour if the caller function was not able to determine a valid phy address (from device-tree for example). In this case we catch this here and search for ANY phy device on the given mdio- bus. Signed-off-by: Hannes Schmelzer tr...@konsulko.com, lu...@denx.de --- Cha

Re: [U-Boot] [PATCH v2] net: phy: implement fallback mechanism for negative phy adresses

2019-03-29 Thread Michal Simek
On 29. 03. 19 9:47, Hannes Schmelzer wrote: > Negative phy-addresses can occour if the caller function was not able to > determine a valid phy address (from device-tree for example). In this > case we catch this here and search for ANY phy device on the given mdio- > bus. > > Signed-off-by: Hannes

[U-Boot] [PATCH v3] net: phy: implement fallback mechanism for negative phy adresses

2019-03-29 Thread Hannes Schmelzer
Negative phy-addresses can occour if the caller function was not able to determine a valid phy address (from device-tree for example). In this case we catch this here and search for ANY phy device on the given mdio- bus. Signed-off-by: Hannes Schmelzer --- Changes in v3: - fix commit message C

[U-Boot] Antwort: Re: [PATCH v2] net: phy: implement fallback mechanism for negative phy adresses

2019-03-29 Thread Hannes Schmelzer
Michal Simek wrote on 29.03.2019 09:51:57: > Von: Michal Simek > An: Hannes Schmelzer , > Kopie: , , Pankaj > Bansal , Michal Simek , > Grygorii Strashko , Siva Durga Prasad Paladugu > , Joe Hershberger > Datum: 29.03.2019 09:52 > Betreff: Re: [PATCH v2] net: phy: implement fallback mec

Re: [U-Boot] [PATCH v3] net: phy: implement fallback mechanism for negative phy adresses

2019-03-29 Thread Michal Simek
On 29. 03. 19 9:54, Hannes Schmelzer wrote: > Negative phy-addresses can occour if the caller function was not able to > determine a valid phy address (from device-tree for example). In this > case we catch this here and search for ANY phy device on the given mdio- > bus. > > Signed-off-by: Hannes

Re: [U-Boot] [PATCH v2 09/22] configs: colibri_vf: disable obscure options

2019-03-29 Thread Marcel Ziswiler
On Thu, 2019-03-28 at 16:58 +, Igor Opaniuk wrote: > Hi Marcel, > > The actual line which does have impact is `CONFIG_DFU_MMC=y`. Vybrid is using raw NAND and not eMMC. > Not sure I understand the reason of adding "# ... is not set" lines > in > this defconfig. Could you please explain? Tha

Re: [U-Boot] [PATCH v1] apalis/colibri_imx6: add device trees to makefile

2019-03-29 Thread Marcel Ziswiler
Hi Igor On Thu, 2019-03-28 at 16:49 +, Igor Opaniuk wrote: > Hi Marcel, > > Could you please provide steps to reproduce this issue? I've double > checked on the latest master of u-boot-imx, and can sucessfully build > U-boot for Colibri iMX6DL (as an example). To be honest I don't remember e

[U-Boot] [PATCH 02/16] gdsys: Post ppc4xx removal cleanup

2019-03-29 Thread Mario Six
The ppc4xx architecture was removed, and with it several old gdsys 44x boards, but some "debris" from these purged boards was left over. This patch removes these remnants (mostly entries in Makefiles, some now superfluous data structures and some now obsolete config variables from the whitelist).

[U-Boot] [PATCH 01/16] gdsys: phy: Adapt fixup_88e1518() to latest Release Notes

2019-03-29 Thread Mario Six
From: Dirk Eibach The initialization sequence in the newest release notes of the 88e1518 phy omits two commands. Remove them from the sequence. Signed-off-by: Dirk Eibach --- board/gdsys/common/phy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/gdsys/common/phy.c b/board/gdsys/c

[U-Boot] [PATCH 03/16] gdsys: mpc8308: Fix style violations

2019-03-29 Thread Mario Six
Fix some style violations in the gdsys MPC8308 board files, and make the code more readable. Signed-off-by: Mario Six --- board/gdsys/mpc8308/hrcon.c | 55 ++- board/gdsys/mpc8308/mpc8308.c | 12 board/gdsys/mpc8308/strider.c | 49 --

[U-Boot] [PATCH 04/16] gdsys: mpc8308: Use shadow register for output GPIO values

2019-03-29 Thread Mario Six
Since the gpio output status on MPC8xxx cannot be read back, it has to be buffered locally. Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- board/gdsys/mpc8308/hrcon.c | 4 ++-- board/gdsys/mpc8308/mpc8308.c | 19 +++ board/gdsys/mpc8308/mpc8308.h | 3 +++ board/gdsy

[U-Boot] [PATCH 05/16] gdsys: mpc8308: Migrate SYS_FPGA{0, 1}_{BASE, SIZE} to Kconfig

2019-03-29 Thread Mario Six
Move CONFIG_SYS_FPGA0_BASE, CONFIG_SYS_FPGA0_SIZE, CONFIG_SYS_FPGA1_BASE, and CONFIG_SYS_FPGA1_SIZE to Kconfig. Signed-off-by: Mario Six --- board/gdsys/mpc8308/Kconfig | 22 ++ include/configs/hrcon.h | 8 include/configs/strider.h | 8 3 files chan

Re: [U-Boot] [PATCH v2 1/7] riscv: Add a SYSCON driver for Andestech's PLIC

2019-03-29 Thread Bin Meng
Hi Rick, On Mon, Mar 25, 2019 at 3:39 PM Andes wrote: > > From: Rick Chen > > The Platform-Level Interrupt Controller(PLIC) nits: it should have a space before (PLIC) > block holds memory-mapped claim and pending registers > associated with software interrupt. It is required > for handling IPI

[U-Boot] [PATCH 08/16] gdsys: mpc8308: Add FPGA flavor option

2019-03-29 Thread Mario Six
More recent versions of IHS FPGAs feature a different memory layout. Add a Kconfig option to differentiate between the legacy layout, and the new layout (which is used on the upcoming "Gazerbeam" and later boards). Signed-off-by: Mario Six --- board/gdsys/mpc8308/Kconfig | 20 ++

[U-Boot] [PATCH 07/16] gdsys: Introduce GDSYS_LEGACY_DRIVERS

2019-03-29 Thread Mario Six
Future gdsys boards will switch from the legacy drivers in board/gdsys/common to DM-based drivers. Define a Kconfig option that disables the legacy drivers. Signed-off-by: Mario Six --- board/gdsys/common/adv7611.c | 4 board/gdsys/common/ch7301.c| 4 board/gdsys/common/dp501.

[U-Boot] [PATCH 06/16] gdsys: mpc8308: Don't use manual RAM config if RAM driver is active

2019-03-29 Thread Mario Six
The "manual" RAM configuration should not be used if the DM RAM driver is active, hence, disable the code if the CONFIG_MPC83XX_SDRAM config variable is defined. Signed-off-by: Mario Six --- board/gdsys/mpc8308/sdram.c | 4 1 file changed, 4 insertions(+) diff --git a/board/gdsys/mpc8308/s

[U-Boot] [PATCH 09/16] gdsys: cmd_ioloop: Fix style violations

2019-03-29 Thread Mario Six
Fix some style violations in the ioloop command, and make the code more readable where possible. Signed-off-by: Mario Six --- board/gdsys/common/cmd_ioloop.c | 78 - 1 file changed, 38 insertions(+), 40 deletions(-) diff --git a/board/gdsys/common/cmd_ioloop.c b/

[U-Boot] [PATCH 10/16] gdsys: cmd_ioloop: Introduce commenting enum

2019-03-29 Thread Mario Six
Replace the boolean parameter of io_check_status that controls whether the status is printed or not with a documenting enum. Signed-off-by: Mario Six --- board/gdsys/common/cmd_ioloop.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/board/gdsys/common/cmd_ioloo

Re: [U-Boot] [PATCH v2 2/7] riscv: Add a SYSCON driver for Andestech's PLMT

2019-03-29 Thread Bin Meng
On Mon, Mar 25, 2019 at 3:39 PM Andes wrote: > > From: Rick Chen > > The platform-Level Machine Timer(PLMT) block nits: should have a space before (PLMT) > holds memory-mapped mtime register associated > with timer tick. > > This driver implements the riscv_get_time() which > is required by the

[U-Boot] [PATCH 15/16] gazerbeam: Add u-boot specific dts include file

2019-03-29 Thread Mario Six
Add a U-Boot specific dts file, which encapsulates the needed modifications to the Gazerbeam Linux device tree. Signed-off-by: Mario Six --- arch/powerpc/dts/gazerbeam.dts | 2 + arch/powerpc/dts/gdsys/gazerbeam-uboot.dtsi | 250 2 files changed, 252 insertion

[U-Boot] [PATCH 11/16] gdsys: cmd_ioloop: Make DM compatible

2019-03-29 Thread Mario Six
Make the ioloop command DM compatible, while keeping the old functionality for not-yet-converted boards. Signed-off-by: Mario Six --- board/gdsys/common/cmd_ioloop.c | 293 +++- 1 file changed, 288 insertions(+), 5 deletions(-) diff --git a/board/gdsys/common/cmd_iol

[U-Boot] [PATCH 12/16] gdsys: ioep-fpga: Switch to gazerbeam-style reporting

2019-03-29 Thread Mario Six
Use a more extensive FPGA feature reporting style in the gdsys ioep-fpga driver. Signed-off-by: Mario Six --- board/gdsys/common/ioep-fpga.c | 629 + 1 file changed, 489 insertions(+), 140 deletions(-) diff --git a/board/gdsys/common/ioep-fpga.c b/board/gdsys/com

[U-Boot] [PATCH 13/16] board: gazerbeam: Fix SC detection

2019-03-29 Thread Mario Six
The single channel detection in the gazerbeam board driver was not implemented correctly. Fix the detection. Signed-off-by: Mario Six --- drivers/board/gazerbeam.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers/board/gazerbeam.c b/drivers/bo

[U-Boot] [PATCH 14/16] gazerbeam: Import Linux DT

2019-03-29 Thread Mario Six
Import the Linux device tree for the Gazerbeam board. Signed-off-by: Mario Six --- arch/powerpc/dts/.gitignore | 1 + arch/powerpc/dts/Makefile | 1 + arch/powerpc/dts/gazerbeam.dts| 600 ++ arch/powerpc/dts/gdsys/gazerbea

[U-Boot] [PATCH 16/16] mpc83xx: Add gazerbeam board

2019-03-29 Thread Mario Six
From: Dirk Eibach The gdsys gazerbeam board is based on a Freescale MPC8308 SOC. It boots from NOR-Flash, kernel and rootfs are stored on SD-Card. On board peripherals include: - 2x 10/100 Mbit/s Ethernet (optional) Signed-off-by: Dirk Eibach Signed-off-by: Mario Six --- arch/powerpc/cpu/mpc

Re: [U-Boot] [PATCH v2 6/7] riscv: dts: ae350 support SMP

2019-03-29 Thread Bin Meng
Hi Rick, On Mon, Mar 25, 2019 at 3:40 PM Andes wrote: > > From: Rick Chen > > Signed-off-by: Rick Chen > Cc: Greentime Hu > --- > arch/riscv/dts/ae350_32.dts | 81 > + > arch/riscv/dts/ae350_64.dts | 47 +++--- > 2 files changed

Re: [U-Boot] [PATCH v2 6/7] riscv: dts: ae350 support SMP

2019-03-29 Thread Bin Meng
Two more comments regarding ae350_64.dts On Mon, Mar 25, 2019 at 3:40 PM Andes wrote: > > From: Rick Chen > > Signed-off-by: Rick Chen > Cc: Greentime Hu > --- > arch/riscv/dts/ae350_32.dts | 81 > + > arch/riscv/dts/ae350_64.dts | 47 +

Re: [U-Boot] [PATCHv4 11/12] pci: ls_pcie_g4: Add Workaround for A-011451

2019-03-29 Thread Bin Meng
Hi Zhiqiang, On Wed, Mar 13, 2019 at 10:54 PM Z.q. Hou wrote: > > Hi All, > > Please ignore this patch, rev1.0 will not be production. > OK, thanks for the update. So let's not touch the generic PCI codes this time. Regards, Bin ___ U-Boot mailing li

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

2019-03-29 Thread Keerthy
On 27/02/19 11:17 AM, Keerthy wrote: On 22/02/19 12:08 AM, Joe Hershberger wrote: On Wed, Feb 20, 2019 at 6:33 AM Keerthy wrote: Currently stop is being called unconditionally without even checking if start is called. In case of multiple instances eth being present many devices might just

Re: [U-Boot] [PATCH 03/12 v2] serial: atmel_usart: Use fixed clock value in SPL version with DM_SERIAL

2019-03-29 Thread Eugen.Hristev
On 26.03.2019 14:16, Stefan Roese wrote: > This patch adds an alterative SPL version of atmel_serial_enable_clk(). > This enables the usage of this driver without full clock support (in > drivers and DT nodes). This saves some space in the SPL image. > > Please note that this fixed clock suppor

Re: [U-Boot] [PATCH 09/12 v2] Makefile: Add Kconfig option CONFIG_SPL_IMAGE to select the SPL binary

2019-03-29 Thread Eugen.Hristev
On 26.03.2019 14:16, Stefan Roese wrote: > > This patch adds the CONFIG_SPL_IMAGE option to select the SPL image that > shall be used to generate the combined SPL + U-Boot image. The default > value is the current value "spl/u-boot-spl.bin". > > This patch also sets CONFIG_SPL_IMAGE to "spl/boo

Re: [U-Boot] [PATCH 01/12 v2] arm: at91: Makefile: Compile lowlevel_init only when really necessary

2019-03-29 Thread Heiko Schocher
Hello Stefan, Am 26.03.2019 um 13:16 schrieb Stefan Roese: Make sure that lowlevel_init is not compiled when CONFIG_SKIP_LOWLEVEL_INIT_ONLY is configured. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc: Eugen Hristev --- v2: - No change arch/arm/mach-at91/arm926ej

Re: [U-Boot] [PATCH v2 03/10] rockchip: rk3036: add board_debug_uart_init()

2019-03-29 Thread Jack Mitchell
On 29/03/2019 01:09, Kever Yang wrote: > Use board_debug_uart_init() for UART iomux init instead of > do it in board_init_f, and move the function to soc file so > that we can find all the soc/board setting in soc file and > use a common board file. > > Signed-off-by: Kever Yang > --- > > arc

Re: [U-Boot] [PATCH v2 10/10] rockchip: rk3399: add board_debug_uart_init()

2019-03-29 Thread Jack Mitchell
On 29/03/2019 01:09, Kever Yang wrote: > Use board_debug_uart_init() for UART iomux init instead of > do it in board_init_f, and move the function to soc file so > that we can find all the soc/board setting in soc file and > use a common board file for all rockchip SoCs later. > > Signed-off-by:

Re: [U-Boot] [PATCH 02/12 v2] arm: at91: spl_at91.c: Call spl_early_init() if OF_CONTROL is enabled

2019-03-29 Thread Heiko Schocher
Hello Stefan, Am 26.03.2019 um 13:16 schrieb Stefan Roese: This patch adds a call to spl_early_init() to board_init_f() which is needed when CONFIG_SPL_OF_CONTROL is configured. This is necessary for the early SPL setup including the DTB setup for later usage. Please note that this call might a

Re: [U-Boot] [PATCH 03/12 v2] serial: atmel_usart: Use fixed clock value in SPL version with DM_SERIAL

2019-03-29 Thread Heiko Schocher
Hello Stefan, Am 26.03.2019 um 13:16 schrieb Stefan Roese: This patch adds an alterative SPL version of atmel_serial_enable_clk(). This enables the usage of this driver without full clock support (in drivers and DT nodes). This saves some space in the SPL image. Please note that this fixed cloc

Re: [U-Boot] [PATCH 05/12 v2] watchdog: at91sam9_wdt: Fix WDT setup in at91_wdt_start()

2019-03-29 Thread Heiko Schocher
Hello Stefan, Am 26.03.2019 um 13:16 schrieb Stefan Roese: This patch fixes the timer register setup in at91_wdt_start() to correctly configure the register again. The input timeout value is now in milli-seconds instead of seconds with the new watchdog API. Make sure to take this into account an

Re: [U-Boot] [PATCH 04/12 v2] watchdog: Handle SPL build with watchdog disabled

2019-03-29 Thread Heiko Schocher
Hello Stefan, Am 26.03.2019 um 13:16 schrieb Stefan Roese: This patch adds some checks, so that the watchdog can be enabled in main U-Boot proper but can be disabled in SPL. This will be used by some AT91SAM based boards, which might enable the watchdog in the main U-Boot proper and not in SPL.

Re: [U-Boot] [PATCH 06/12 v2] arm: at91: Enable watchdog support

2019-03-29 Thread Heiko Schocher
Hello Stefan, Am 26.03.2019 um 13:16 schrieb Stefan Roese: This patch enables and starts the watchdog on the AT91 platform if configured. Currently the WD timeout is configured to 16 seconds, which is the longest value for this timer. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas

Re: [U-Boot] [PATCH 07/12 v2] arm: at91: arm926ejs/u-boot-spl.lds: Add _image_binary_end to SPL lds

2019-03-29 Thread Heiko Schocher
Hello Stefan, Am 26.03.2019 um 13:16 schrieb Stefan Roese: This patch adds _image_binary_end to the SPL linker script. This will be used be the upcoming GARDENA AT91SAM based platform, which uses DT in SPL and configures CONFIGURE_SPL_SEPARATE_BSS. Signed-off-by: Stefan Roese Cc: Heiko Schoche

Re: [U-Boot] [PATCH 08/12 v2] Makefile.spl: Move generated AT91SAM NAND image boot.bin to spl directory

2019-03-29 Thread Heiko Schocher
Hello Stefan, Am 26.03.2019 um 13:16 schrieb Stefan Roese: This patch moves the AT91SAM NAND booting SPL image "boot.bin" which includes the ECC values from the root directory into the spl directory, where all SPL related images are located. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc:

Re: [U-Boot] [PATCH] socfpga: add Simon Goldschmidt as co-custodian

2019-03-29 Thread Marek Vasut
On 3/28/19 10:27 PM, Simon Goldschmidt wrote: > This updates MAINTAINERS and git-mailrc to add me as a > co-custodian for socfpga. > > Signed-off-by: Simon Goldschmidt Acked-by: Marek Vasut -- Best regards, Marek Vasut ___ U-Boot mailing list U-Boot

Re: [U-Boot] [PATCH 09/12 v2] Makefile: Add Kconfig option CONFIG_SPL_IMAGE to select the SPL binary

2019-03-29 Thread Heiko Schocher
Hello Stefan, Am 26.03.2019 um 13:16 schrieb Stefan Roese: This patch adds the CONFIG_SPL_IMAGE option to select the SPL image that shall be used to generate the combined SPL + U-Boot image. The default value is the current value "spl/u-boot-spl.bin". This patch also sets CONFIG_SPL_IMAGE to "s

Re: [U-Boot] [PATCH 10/12 v2] arm: at91: siemens: Add support to generate combined SPL+U-Boot image

2019-03-29 Thread Heiko Schocher
Hello Stefan, Am 26.03.2019 um 13:16 schrieb Stefan Roese: This patch adds the necessary defines to the Siemens AT91SAM based boards (smartweb, corvus and taurus) to generate the combined binary image with SPL and main U-Boot image combined (u-boot-with-spl.bin). Signed-off-by: Stefan Roese Cc

Re: [U-Boot] [PATCH 11/12 v2] arm: at91: at91sam9x5.dtsi: Add watchdog handle

2019-03-29 Thread Heiko Schocher
Hello Stefan, Am 26.03.2019 um 13:16 schrieb Stefan Roese: This makes it possible to reference the watchdog DT node via "&watchdog" from board dts files. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc: Eugen Hristev --- v2: - New patch arch/arm/dts/at91sam9x5.dtsi

Re: [U-Boot] [PATCH 12/12 v2] arm: at91: Add gardena-gateway-at91sam support

2019-03-29 Thread Heiko Schocher
Hello Stefan, Am 26.03.2019 um 13:16 schrieb Stefan Roese: The GARDENA smart Gateway boards are equipped with an Atmel / Microchip AT91SAM9G25 SoC and with 128 MiB of RAM and 256 MiB of NAND storage. This patch adds support for this board including SPL support. Therefore the AT91Boostrap is not

Re: [U-Boot] [PATCH v2 10/10] rockchip: rk3399: add board_debug_uart_init()

2019-03-29 Thread Kever Yang
Hi Jack, On 03/29/2019 06:12 PM, Jack Mitchell wrote: > > On 29/03/2019 01:09, Kever Yang wrote: >> Use board_debug_uart_init() for UART iomux init instead of >> do it in board_init_f, and move the function to soc file so >> that we can find all the soc/board setting in soc file and >> use a comm

Re: [U-Boot] [PATCH v2 03/10] rockchip: rk3036: add board_debug_uart_init()

2019-03-29 Thread Kever Yang
Hi Jack, On 03/29/2019 06:10 PM, Jack Mitchell wrote: > > On 29/03/2019 01:09, Kever Yang wrote: >> Use board_debug_uart_init() for UART iomux init instead of >> do it in board_init_f, and move the function to soc file so >> that we can find all the soc/board setting in soc file and >> use a comm

Re: [U-Boot] [RFC PATCH v1 0/9] Add support for applications of overlays in SPL

2019-03-29 Thread Jean-Jacques Hiblot
On 28/03/2019 14:54, Michal Simek wrote: On 25. 03. 19 9:08, Michal Simek wrote: On 22. 03. 19 15:39, Jean-Jacques Hiblot wrote: The purpose of this series is to provide the SPL with ability to apply overlays for u-boot. this is only a RFC so far, to get a feedback on the approach. Our use-ca

[U-Boot] Fit image

2019-03-29 Thread snathick techno
sir, i am working with fit image, my question is should i write one more dts file or should i add cryptographic information to the existig myboard.dts file.what is the path should i keep my fit-image.its file in u-boot source tree. Thanking you snathicktechno ___

Re: [U-Boot] [RFC PATCH v1 0/9] Add support for applications of overlays in SPL

2019-03-29 Thread Michal Simek
On 29. 03. 19 11:13, Jean-Jacques Hiblot wrote: > > On 28/03/2019 14:54, Michal Simek wrote: >> On 25. 03. 19 9:08, Michal Simek wrote: >>> On 22. 03. 19 15:39, Jean-Jacques Hiblot wrote: The purpose of this series is to provide the SPL with ability to apply overlays for u-boot. this is

Re: [U-Boot] [PATCH 32/36] rockchip: remove rk_timer

2019-03-29 Thread Kever Yang
Hi Alexander,     Thanks for your comment, don't worry, I got this info and have solution for it.     rk3188 has moved to use DM timer instead of rk_timer.c, the patch has been mered at last April and works pretty well, see: fd9e0fe0e3 rockchip: rk3188: use DM timer instead of rk_timer f9ef54478

Re: [U-Boot] [PATCH] configs: am57xx_evm: Remove ENV_IS_IN_FAT

2019-03-29 Thread Tom Rini
On Fri, Mar 29, 2019 at 01:09:25PM +0530, Faiz Abbas wrote: > Tom, > > On 28/03/19 6:33 PM, Tom Rini wrote: > > On Thu, Mar 28, 2019 at 02:21:03PM +0530, Faiz Abbas wrote: > > > >> With U-boot supporting environment in multiple places, enable only > >> ENV_IS_IN_EMMC. > >> > >> Signed-off-by: Fai

[U-Boot] [PATCH] optee: support rockchip optee binary release

2019-03-29 Thread Kever Yang
Rockchip provide tee binary release in 'rkbin' repository: https://github.com/rockchip-linux/rkbin For some historical reason, rockchip optee binary is using 'r1' instead of 'lr' as U-Boot entry. Signed-off-by: Kever Yang --- common/spl/spl_optee.S | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [U-Boot] [PATCH v1] colibri_vf: fix ethernet by adding explicit phy node

2019-03-29 Thread Igor Opaniuk
Reviewed-by: Igor Opaniuk On Fri, Mar 29, 2019 at 12:25 AM Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > The implicit fallback mechanism for searching the whole MDIO bus for at > least one PHY has been gone with the following commit b882005a18de > ("drivers/net/fec: phy_init: remove redu

Re: [U-Boot] [PATCH] optee: support rockchip optee binary release

2019-03-29 Thread Philipp Tomsich
Kever, > On 29.03.2019, at 12:21, Kever Yang wrote: > > Rockchip provide tee binary release in 'rkbin' repository: > https://github.com/rockchip-linux/rkbin > For some historical reason, rockchip optee binary is using > 'r1' instead of 'lr' as U-Boot entry. > > Signed-off-by: Kever Yang > ---

Re: [U-Boot] [PATCH v1] colibri_vf: fix tab vs. spaces

2019-03-29 Thread Igor Opaniuk
Reviewed-by: Igor Opaniuk On Fri, Mar 29, 2019 at 12:25 AM Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > Fix indentation using tab vs. spaces. > > Signed-off-by: Marcel Ziswiler > > --- > > board/toradex/colibri_vf/MAINTAINERS | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

[U-Boot] [PATCH] Fix ext4 block group descriptor sizing

2019-03-29 Thread Tom Rini
From: Benjamin Lim Signed-off-by: Benjamin Lim --- fs/ext4/ext4_common.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c index 67e2471bd3..8638ef3b68 100644 --- a/fs/ext4/ext4_common.c +++ b/fs/ext4/ext4_comm

[U-Boot] [PATCH 1/1] hush: provide help for 'if', 'for', and 'while'

2019-03-29 Thread Heinrich Schuchardt
Provide online help for hush commands 'if', 'for', and 'while'. Signed-off-by: Heinrich Schuchardt --- common/cli_hush.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/common/cli_hush.c b/common/cli_hush.c index 955e8fe536..d7dfa8a75a 100644 --- a/common/cli_hush.c +++

Re: [U-Boot] saveenv corrupts QSPI flash with latest commit U-Boot 2019.04-rc4-00047-gcfb3e102c4

2019-03-29 Thread Ashish Kumar
> -Original Message- > From: Vignesh Raghavendra > Sent: Friday, March 29, 2019 12:17 PM > To: Ashish Kumar ; Jagan Teki > ; u-boot@lists.denx.de > Cc: Kuldeep Singh > Subject: Re: saveenv corrupts QSPI flash with latest commit U-Boot > 2019.04-rc4- > 00047-gcfb3e102c4 > > > > On 28

[U-Boot] [PATCH v5 00/11] rockchip: add tpl and OPTEE support for rk3229

2019-03-29 Thread Kever Yang
Add some generic options for TPL support for arm 32bit, and then and TPL support for rk3229(cortex-A7), and then add OPTEE support in SPL. Version 5 rebase on master branch with 'SYS_SOC name correct' patch set, remove the patches for OP-TEE which has been mergerd. Kever Yang (11): Revert "r

[U-Boot] [PATCH v5 01/11] Revert "rockchip: rk322x: ram: enable DRAM init in SPL instead of TPL"

2019-03-29 Thread Kever Yang
This reverts commit f338cca1d2bce906b049722d2fdbf527a4963b61. Signed-off-by: Kever Yang --- drivers/ram/rockchip/sdram_rk322x.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/ram/rockchip/sdram_rk322x.c b/drivers/ram/rockchip/sdram_rk322x.c index c5965

[U-Boot] [PATCH v5 02/11] arm: add option for TPL support in arm 32bit

2019-03-29 Thread Kever Yang
Some options like TPL_SYS_THUMB_BUILD, TPL_USE_ARCH_MEMCPY and TPL_USE_ARCH_MEMCPY are needed for TPL build in 32bit arm. Signed-off-by: Kever Yang --- arch/arm/Kconfig | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index a

[U-Boot] [PATCH v5 04/11] rockchip: rk322x: add CLK_EMMC_SAMPLE clock support

2019-03-29 Thread Kever Yang
Signed-off-by: Kever Yang --- drivers/clk/rockchip/clk_rk322x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk322x.c b/drivers/clk/rockchip/clk_rk322x.c index 48ed14b2af..4b599fbb24 100644 --- a/drivers/clk/rockchip/clk_rk322x.c +++ b/drivers/clk/rockchip/clk_

[U-Boot] [PATCH v5 06/11] rockchip: rk322x: add tpl support

2019-03-29 Thread Kever Yang
Move original spl to tpl, and add spl to load next stage firmware, adapt all the address and option for them. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 26 +++ arch/arm/mach-rockchip/Makefile | 3 +- arch/arm/mach-rockchip/rk322x-board-spl.c |

[U-Boot] [PATCH v5 09/11] rockchip: evb-rk3229: remove unnecessary defines

2019-03-29 Thread Kever Yang
Prefer to use default setting like other SoCs. Signed-off-by: Kever Yang --- include/configs/evb_rk3229.h | 44 +--- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/include/configs/evb_rk3229.h b/include/configs/evb_rk3229.h index 369b0bc68a..6a91a8

[U-Boot] [PATCH v5 05/11] rockchip: clk: rk322x: fix assert clock value

2019-03-29 Thread Kever Yang
BUS_PCLK_HZ and BUS_HCLK_HZ are from BUS_ACLK_HZ, not from GPLL_HZ. Signed-off-by: Kever Yang --- drivers/clk/rockchip/clk_rk322x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk_rk322x.c b/drivers/clk/rockchip/clk_rk322x.c index 4b599fbb24..f0

[U-Boot] [PATCH v5 10/11] rockchip: evb-rk3229: add README file for OP-TEE support

2019-03-29 Thread Kever Yang
Detail of step by step to bring up the board with OP-TEE support. Signed-off-by: Kever Yang --- board/rockchip/evb_rk3229/README | 72 1 file changed, 72 insertions(+) create mode 100644 board/rockchip/evb_rk3229/README diff --git a/board/rockchip/evb_rk3229/R

[U-Boot] [PATCH v5 08/11] rockchip: rk322x: dts: enable uart2 for SPL/TPL

2019-03-29 Thread Kever Yang
When we use DM_SERIAL for serial driver, we need enable the dts node for the debug console. Signed-off-by: Kever Yang --- arch/arm/dts/rk3229-evb.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/rk3229-evb.dts b/arch/arm/dts/rk3229-evb.dts index bfb367ac99..632cdc9bc3 100644

[U-Boot] [PATCH v5 03/11] arm: add a separate stack for TPL

2019-03-29 Thread Kever Yang
TPL stack may different from SPL and sys stack, add support for separate one when the board defines it. Signed-off-by: Kever Yang --- arch/arm/lib/crt0.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S index fe312db690..30fba20e1b

[U-Boot] [PATCH v5 07/11] sysreset: enable driver support in SPL/TPL

2019-03-29 Thread Kever Yang
SPL/TPL also need use sysreset for some feature like panic callback. Signed-off-by: Kever Yang --- drivers/sysreset/Kconfig | 18 ++ drivers/sysreset/Makefile | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/sysreset/Kconfig b/drivers/sysreset/Kco

[U-Boot] [PATCH v5 11/11] rockchip: evb-rk322x: update defconfig with tpl and optee support

2019-03-29 Thread Kever Yang
Enable all the options for TPL/SPL and OPTEE. Signed-off-by: Kever Yang --- configs/evb-rk3229_defconfig | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/configs/evb-rk3229_defconfig b/configs/evb-rk3229_defconfig index 14ff54af20..8ad48bad68 100644

Re: [U-Boot] [PATCH 06/12 v2] arm: at91: Enable watchdog support

2019-03-29 Thread Wolfgang Denk
Dear Heiko, In message <81e69dec-21e7-7b34-a261-e22ae9bef...@denx.de> you wrote: > > The big question is, how many places do we have in code, where we access > BSS before relocation ? Hopefully none. > May we better clear BSS very early (at last may possible on arm)? You cannot. There is no s

Re: [U-Boot] [PATCH 1/1] hush: provide help for 'if', 'for', and 'while'

2019-03-29 Thread Wolfgang Denk
Dear Heinrich, In message <20190329113408.2168-1-xypron.g...@gmx.de> you wrote: > Provide online help for hush commands 'if', 'for', and 'while'. > > Signed-off-by: Heinrich Schuchardt Why for these, and not for the rest of the shell syntax? This does not make sense to me. Shell syntax is way

Re: [U-Boot] [PATCH] optee: support rockchip optee binary release

2019-03-29 Thread Kever Yang
Philipp, On 03/29/2019 07:25 PM, Philipp Tomsich wrote: > Kever, > >> On 29.03.2019, at 12:21, Kever Yang wrote: >> >> Rockchip provide tee binary release in 'rkbin' repository: >> https://github.com/rockchip-linux/rkbin >> For some historical reason, rockchip optee binary is using >> 'r1' instea

Re: [U-Boot] [RFC v2 2/2] arm64: zynqmp: spl: install a PMU firmware config object at runtime

2019-03-29 Thread Luca Ceresoli
Hi Michal, thanks for the feedback. On 27/03/19 16:03, Michal Simek wrote: > On 21. 03. 19 16:48, Luca Ceresoli wrote: >> Optionally allow U-Boot to load at the PMU firmware configuration object >> into the Power Management Unit (PMU) on Xilinx ZynqMP. >> >> The configuration object is required b

Re: [U-Boot] [RFC v2 1/2] zynqmp: add minimal include files to build a pm_cfg_obj.c

2019-03-29 Thread Luca Ceresoli
Hi Michal, On 27/03/19 16:10, Michal Simek wrote: > On 21. 03. 19 16:48, Luca Ceresoli wrote: >> A following commit will allow U-Boot to pass a configuration object to >> the ZynqMP PMU firmware. This configuration object is generated by >> Xilinx tools in the form of a C file (pm_cfg_obj.c), whic

[U-Boot] [PATCH v1 01/14] tdx-cfg-block: add support for new colibri iMX6ull skus

2019-03-29 Thread Marcel Ziswiler
From: Gerard Salvatella Add support for new Colibri iMX6ULL SKUs. While at it also checkpatch fix the whole files. Signed-off-by: Gerard Salvatella Acked-by: Marcel Ziswiler --- board/toradex/common/tdx-cfg-block.c | 62 +--- board/toradex/common/tdx-cfg-block.h |

[U-Boot] [PATCH v1 02/14] tdx-cfg-block: simplify i.MX 6 module detection

2019-03-29 Thread Marcel Ziswiler
From: Stefan Agner Use CONFIG_TARGET_... at compile time to differentiate between Apalis iMX6, Colibri iMX6 and Colibri iMX6ULL. Avoid code duplication by moving question about Wi-Fi / Bluetooth before IT/non-IT decision. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- board/torad

[U-Boot] [PATCH v1 03/14] colibri-imx6ull: set module variant depending on config block

2019-03-29 Thread Marcel Ziswiler
From: Stefan Agner Using CPU temperature grading as a discriminator if the Wi-Fi / Bluetooth chip is populated is no longer possible due to upcoming SKUs. Set variant to -wifi only if a valid config block is present and the product id mentions a SKU with Wi-Fi / Bluetooth. Signed-off-by: Stefan

[U-Boot] [PATCH v1 00/14] colibri-imx6ull device tree enablement and driver model conversion

2019-03-29 Thread Marcel Ziswiler
This series addresses some shortcomings, enables/introduces device tree support and converts all except video to using the driver model. This is fully tested both running our latest downstream BSP as well as the mainline Linux kernel. This series is available together with my previous series addr

[U-Boot] [PATCH v1 04/14] apalis/colibri_imx6/imx6ull: make sure loadaddr does not collide

2019-03-29 Thread Marcel Ziswiler
From: Stefan Agner Currently $loadaddr and $fdt_addr_r point to the same address. This might be not ideal for some distro boot scripts which make use of $loadaddr after loading the device tree. Make sure the two variables point to two different addresses. Moving $loadaddr is not entirly trivial

[U-Boot] [PATCH v1 09/14] colibri-imx6ull: migrate mmc to using driver model

2019-03-29 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate MMC to using driver model. Migrate USDHC to using pinctrl. While at it also add GPIO1_IO03__OSC32K_32K_OUT pin muxing. While at it also update copyright period. Signed-off-by: Marcel Ziswiler --- arch/arm/dts/imx6ull-colibri.dts | 15 +++- .../torad

  1   2   >