Re: [U-Boot] [PATCH u-boot-marvell v2 09/12] board: turris_mox: Setup Linux's device tree before boot

2018-09-19 Thread Stefan Roese
On 17.08.2018 12:58, Marek Behún wrote: Patch Linux's device tree according to which Mox modules are connected. Linux's device tree is supposed to have some nodes already preprogrammed. If user wants to use different device tree, they should disable CONFIG_OF_BOARD_SETUP in U-Boot's config, so

Re: [U-Boot] [PATCH u-boot-marvell v2 08/12] board: turris_mox: Check and configure modules

2018-09-19 Thread Stefan Roese
On 17.08.2018 12:58, Marek Behún wrote: Check if Mox modules are connected in supported mode, then configure the MDIO addresses of switch modules. Signed-off-by: Marek Behun --- arch/arm/dts/armada-3720-turris-mox.dts | 11 ++ board/CZ.NIC/turris_mox/turris_mox.c| 235

Re: [U-Boot] [PATCH u-boot-marvell v2 07/12] board: turris_mox: Change SERDES map depending on module topology

2018-09-19 Thread Stefan Roese
On 17.08.2018 12:58, Marek Behún wrote: When SFP module is connected directly to CPU module we want the SGMII lane speed at 1.25 Gbps. Signed-off-by: Marek Behun --- board/CZ.NIC/turris_mox/turris_mox.c | 33 + 1 file changed, 33 insertions(+) diff --git

Re: [U-Boot] [PATCH u-boot-marvell v2 06/12] board: turris_mox: Cosmetic restructurization

2018-09-19 Thread Stefan Roese
On 17.08.2018 12:58, Marek Behún wrote: Restructure the board initialization source. Remove the module_topology environment variable since it won't be needed. Signed-off-by: Marek Behun --- board/CZ.NIC/turris_mox/turris_mox.c | 153 --- 1 file changed, 106

Re: [U-Boot] [PATCH u-boot-marvell v2 05/12] board: turris_mox: Enable PCI in defconfig

2018-09-19 Thread Stefan Roese
On 17.08.2018 12:58, Marek Behún wrote: Enable the pci-aardvark driver in defconfig for Turris Mox and also enable the pci command. Signed-off-by: Marek Behun --- configs/turris_mox_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/turris_mox_defconfig

Re: [U-Boot] [PATCH u-boot-marvell v2 04/12] board: turris_mox: Fixup U-Boot's device tree if PCIe connected

2018-09-19 Thread Stefan Roese
On 17.08.2018 12:58, Marek Behún wrote: If PCIe Mox module is connected we want to have PCIe node enabled in U-Boot's device tree. Signed-off-by: Marek Behun --- arch/arm/dts/armada-3720-turris-mox.dts | 7 +++ board/CZ.NIC/turris_mox/turris_mox.c| 80 +

Re: [U-Boot] [PATCH u-boot-marvell v2 02/12] clk: armada-37xx-periph: Support changing clock parent and rate

2018-09-19 Thread Stefan Roese
On 17.08.2018 12:58, Marek Behún wrote: Add support for changing clock rate and parent clock for Armada 37xx peripheral clocks. Only clocks which can be disabled (.can_gate is true) can have parent or rate changed. This is needed so that Turris Mox can change SPI clock in device tree.

Re: [U-Boot] [PATCH u-boot-marvell v2 03/12] board: turris_mox: Fix watchdog macro name

2018-09-19 Thread Stefan Roese
On 17.08.2018 12:58, Marek Behún wrote: The macro name CONFIG_WDT_ARMADA_3720 is called CONFIG_WDT_ARMADA_37XX instead. Fix this so that watchdog really is enabled in board_init. Signed-off-by: Marek Behun --- board/CZ.NIC/turris_mox/turris_mox.c | 6 +++--- 1 file changed, 3 insertions(+),

Re: [U-Boot] [PATCH u-boot-marvell v2 01/12] phy: marvell: Support changing SERDES map in board file

2018-09-19 Thread Stefan Roese
On 17.08.2018 12:58, Marek Behún wrote: This adds a weak definition of comphy_update_map to comphy_core, which does nothing. If this function is defined elsewhere, for example in board file, the board file can change some parameters of SERDES configuration. This is needed on Turris Mox, where

Re: [U-Boot] [PATCH v2 2/2] ARM: mach-mvebu: handle fall-back to UART boot

2018-09-19 Thread Stefan Roese
On 17.08.2018 10:47, Chris Packham wrote: The bootROM in the Armada-38x (and similar) SoC has two modes for UART boot. The first is when the normal boot media is blank (or otherwise missing the kwb header). The second is when the boot sequence has been interrupted with the magic byte sequence on

Re: [U-Boot] [PATCH v2 1/2] Revert "arm: mvebu: fix boot from UART when in fallback mode"

2018-09-19 Thread Stefan Roese
On 17.08.2018 10:47, Chris Packham wrote: This reverts commit e83e2b390038c9075642cb243a6292241beb8d73. This prevents kwboot from overriding the hardware strapped boot source. Signed-off-by: Chris Packham --- Changes in v2: None arch/arm/mach-mvebu/include/mach/soc.h | 6 --

Re: [U-Boot] [PATCH] arm64: mvebu: armada-8k: support environment in SD/eMMC

2018-09-19 Thread Stefan Roese
On 14.08.2018 17:05, Baruch Siach wrote: Detect the SD/eMMC boot device at run-time. Load the environment from the boot deice, as well as save to it. Leave the environment offset the same as in the SPI flash. Make SD/eMMC 0 the default environment device when the boot device is not detected.

Re: [U-Boot] [PATCH] tools: kwboot: Make kwboot more robust on a38x

2018-09-19 Thread Stefan Roese
On 13.08.2018 17:24, Baruch Siach wrote: From: Jon Nettleton This patch accomplishes 2 things to make the kwboot procedure on the a38x more reliable. 1) We fill the tty with 1K of the magic bootparam. This helps with the timing of where the microcode picks up in the read of the line to

Re: [U-Boot] [PATCH] doc/git-mailrc: add Stefan Roese to the kirkwood alias

2018-09-19 Thread Stefan Roese
On 13.08.2018 16:57, Baruch Siach wrote: Stefan is listed as a kirkwood maintainer since commit f822d8578ba3 (MAINTAINERS: Update Marvell custodianship). Signed-off-by: Baruch Siach --- doc/git-mailrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/git-mailrc

Re: [U-Boot] [PATCH v3 1/3] configs: kirkwood: ds109: switch to DM_I2C

2018-09-19 Thread Stefan Roese
On 07.08.2018 09:41, Chris Packham wrote: Enable DM_I2C and I2C_MVTSWI for the ds109 board. Signed-off-by: Chris Packham --- Changes in v3: None Changes in v2: - new configs/ds109_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/ds109_defconfig

Re: [U-Boot] [PATCH] Kirkwood: NAS220: remove bootdelay from CONFIG_EXTRA_ENV_SETTINGS

2018-09-19 Thread Stefan Roese
On 05.08.2018 21:56, Evgeni Dobrev wrote: The default bootdelay of 3 seconds is good enough and there is no need to duplicate it in CONFIG_EXTRA_ENV_SETTINGS. Signed-off-by: Evgeni Dobrev --- include/configs/nas220.h | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [U-Boot] [PATCH 2/2] colibri_imx7: prime get_ram_size() using imx_ddr_size()

2018-09-19 Thread Fabio Estevam
Hi Marcel, On Wed, Sep 19, 2018 at 8:01 AM, Marcel Ziswiler wrote: > From: Fabio Estevam > > Rather than passing a hardcoded maxsize to the generic get_ram_size() > function use the i.MX 7 specific imx_ddr_size() function, which extracts > the memory size at runtime by reading the DDR

Re: [U-Boot] [PATCH 1/2] imx: mx7: fix potential overflow in imx_ddr_size()

2018-09-19 Thread Fabio Estevam
Hi Marcel, On Wed, Sep 19, 2018 at 8:01 AM, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > The imx_ddr_size() function may overflow as it is possible to kind of > over provision the DDR controller. Fix this by capping it to 2 GB which > is the maximum allowed size as per reference manual. >

Re: [U-Boot] [PATCH v1 1/1] spi: lpc32xx_ssp: DM conversion

2018-09-19 Thread Vladimir Zapolskiy
On 09/04/2018 09:33 AM, Jagan Teki wrote: > On Wed, May 9, 2018 at 12:37 PM, Akash Gajjar wrote: >> From: Akash Gajjar >> >> This patch adds support for DM to the LPC32xx SSP SPI driver. >> >> Some TODOs are left over for later, These would be enhancements to the >> original functionality, and

[U-Boot] Unsubscribe

2018-09-19 Thread Jenkins, Clive
___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH 2/2] colibri_imx7: prime get_ram_size() using imx_ddr_size()

2018-09-19 Thread Marcel Ziswiler
From: Fabio Estevam Rather than passing a hardcoded maxsize to the generic get_ram_size() function use the i.MX 7 specific imx_ddr_size() function, which extracts the memory size at runtime by reading the DDR controller registers. This is a purely cosmetic change as the generic get_ram_size()

[U-Boot] [PATCH 1/2] imx: mx7: fix potential overflow in imx_ddr_size()

2018-09-19 Thread Marcel Ziswiler
From: Marcel Ziswiler The imx_ddr_size() function may overflow as it is possible to kind of over provision the DDR controller. Fix this by capping it to 2 GB which is the maximum allowed size as per reference manual. Signed-off-by: Marcel Ziswiler -- arch/arm/mach-imx/mx7/ddr.c | 4 1

Re: [U-Boot] [RFC] colibri_imx7: Do not hardcode the memory size

2018-09-19 Thread Marcel Ziswiler
Hi Fabio On Tue, 2018-09-18 at 14:28 +0200, Marcel Ziswiler wrote: > Stefan is currently at Linaro Connect and may not have access to > hardware. > > On Mon, 2018-09-17 at 14:09 -0300, Fabio Estevam wrote: > > Instead of hardcoding the memory size, use the generic > > imx_ddr_size() function,

[U-Boot] misspelled "BOARD_LATE_INIT" in armadillo-800eva.h

2018-09-19 Thread rpjday
apologies in that i am not in front of a mailer that can reliably transmit a patch that it won't mangle, but just noticed: include/configs/armadillo-800eva.h:#define BOARD_LATE_INIT i'm guessing that should say "CONFIG_BOARD_LATE_INIT". i did a quick search, that's the only example i found

Re: [U-Boot] [PATCH V2 1/2] pci: Support parsing PCI controller DT subnodes

2018-09-19 Thread Bin Meng
Hi Marek, On Wed, Sep 19, 2018 at 5:34 PM Marek Vasut wrote: > > On 09/19/2018 11:26 AM, Bin Meng wrote: > > Hi Marek, > > > > On Wed, Sep 19, 2018 at 4:21 PM Marek Vasut wrote: > >> > >> On 09/18/2018 03:52 PM, Simon Glass wrote: > >>> Hi Marek, > >>> > >>> On 18 September 2018 at 13:36, Marek

Re: [U-Boot] [PATCH V2 1/2] pci: Support parsing PCI controller DT subnodes

2018-09-19 Thread Marek Vasut
On 09/19/2018 11:26 AM, Bin Meng wrote: > Hi Marek, > > On Wed, Sep 19, 2018 at 4:21 PM Marek Vasut wrote: >> >> On 09/18/2018 03:52 PM, Simon Glass wrote: >>> Hi Marek, >>> >>> On 18 September 2018 at 13:36, Marek Vasut wrote: On 09/14/2018 06:41 AM, Simon Glass wrote: > Hi

Re: [U-Boot] [PATCH V2 1/2] pci: Support parsing PCI controller DT subnodes

2018-09-19 Thread Bin Meng
Hi Marek, On Wed, Sep 19, 2018 at 4:21 PM Marek Vasut wrote: > > On 09/18/2018 03:52 PM, Simon Glass wrote: > > Hi Marek, > > > > On 18 September 2018 at 13:36, Marek Vasut wrote: > >> > >> On 09/14/2018 06:41 AM, Simon Glass wrote: > >>> Hi Marek, > >>> > >>> On 10 September 2018 at 01:38,

Re: [U-Boot] [PATCH V2 1/2] pci: Support parsing PCI controller DT subnodes

2018-09-19 Thread Bin Meng
Hi Marek, On Wed, Sep 19, 2018 at 4:19 PM Marek Vasut wrote: > > On 09/18/2018 03:52 PM, Bin Meng wrote: > > Hi Marek, > > > > On Tue, Sep 18, 2018 at 8:01 PM Marek Vasut wrote: > >> > >> On 09/14/2018 06:41 AM, Simon Glass wrote: > >>> Hi Marek, > >>> > >>> On 10 September 2018 at 01:38, Marek

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-09-19 Thread Marek Vasut
On 09/18/2018 09:55 PM, Simon Goldschmidt wrote: > On 18.09.2018 12:37, Marek Vasut wrote: >> On 09/18/2018 12:29 PM, Simon Goldschmidt wrote: >>> On Tue, Sep 18, 2018 at 12:12 PM Marek Vasut wrote: On 09/17/2018 10:44 PM, Simon Goldschmidt wrote: > OK, so I got more than 2 weeks off of

Re: [U-Boot] [PATCH v2] spi: designware_spi: Disable and free clock when remove driver

2018-09-19 Thread Marek Vasut
On 09/19/2018 10:27 AM, Ley Foon Tan wrote: > Disable and free clock when remove driver. > > Signed-off-by: Ley Foon Tan > > --- > v2: > - Check return value from clk_free() and return 0 when exit function > --- > drivers/spi/designware_spi.c | 16 +++- > 1 file changed, 15

Re: [U-Boot] [PATCH v3] gpio: dwapb_gpio: Change to use devm_kcalloc()

2018-09-19 Thread Marek Vasut
On 09/19/2018 10:26 AM, Ley Foon Tan wrote: > Change to use managed resource function devm_kcalloc(), > so it will auto free memory when driver is removed. > > Signed-off-by: Ley Foon Tan > > --- > v3: > - Remove goto and return directly. > > v2: > - Remove free() function. > --- >

[U-Boot] [PATCH v2] spi: designware_spi: Disable and free clock when remove driver

2018-09-19 Thread Ley Foon Tan
Disable and free clock when remove driver. Signed-off-by: Ley Foon Tan --- v2: - Check return value from clk_free() and return 0 when exit function --- drivers/spi/designware_spi.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/spi/designware_spi.c

[U-Boot] [PATCH v3] gpio: dwapb_gpio: Change to use devm_kcalloc()

2018-09-19 Thread Ley Foon Tan
Change to use managed resource function devm_kcalloc(), so it will auto free memory when driver is removed. Signed-off-by: Ley Foon Tan --- v3: - Remove goto and return directly. v2: - Remove free() function. --- drivers/gpio/dwapb_gpio.c | 11 ++- 1 file changed, 2 insertions(+), 9

Re: [U-Boot] [PATCH V2 1/2] pci: Support parsing PCI controller DT subnodes

2018-09-19 Thread Marek Vasut
On 09/18/2018 03:52 PM, Simon Glass wrote: > Hi Marek, > > On 18 September 2018 at 13:36, Marek Vasut wrote: >> >> On 09/14/2018 06:41 AM, Simon Glass wrote: >>> Hi Marek, >>> >>> On 10 September 2018 at 01:38, Marek Vasut wrote: On 09/02/2018 03:07 AM, Simon Glass wrote: > Hi

Re: [U-Boot] [PATCH V2 1/2] pci: Support parsing PCI controller DT subnodes

2018-09-19 Thread Marek Vasut
On 09/18/2018 03:52 PM, Bin Meng wrote: > Hi Marek, > > On Tue, Sep 18, 2018 at 8:01 PM Marek Vasut wrote: >> >> On 09/14/2018 06:41 AM, Simon Glass wrote: >>> Hi Marek, >>> >>> On 10 September 2018 at 01:38, Marek Vasut wrote: On 09/02/2018 03:07 AM, Simon Glass wrote: > Hi

<    1   2