[U-Boot] [PATCH v2 1/4] phy: sun4i-usb: Call phy_passby even for PHY#0

2018-07-20 Thread Jagan Teki
On newer Allwinner SoC, there is a pair of EHCI/OHCI USB hosts for OTG host mode. USB PHY passby must be configured for its corresponding PHY. so we can call for PHY#0. on the other hand in past usb-phy code the same thing can be restricted for Lower SoC's, other than H3/H5/A64. Now there is no ne

[U-Boot] [PATCH v2 3/4] phy: sun4i-usb: Update PHY#3 rst_mask only for H3_H5

2018-07-20 Thread Jagan Teki
Only H3 and H5 have 4 PHYS so restrict rst_mask only for them by checking PHY id as 3 and update the proper bits. Signed-off-by: Jagan Teki --- Changes for v2: - update rst_mask value for H3_H5 drivers/phy/allwinner/phy-sun4i-usb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) dif

[U-Boot] [PATCH v2 2/4] phy: sun4i-usb: Remove usb_clk_cfg set in probe

2018-07-20 Thread Jagan Teki
usb_clk_cfg is setting CTRL_PHYGATE bit value in probe which is BIT 0 for sun4i, 6i and 8 for a83t but all these were handling in phy ops init exit calls. Signed-off-by: Jagan Teki --- Changes for v2: - none drivers/phy/allwinner/phy-sun4i-usb.c | 2 -- 1 file changed, 2 deletions(-) diff --gi

[U-Boot] [PATCH v2 4/4] configs: sunxi: Drop CONFIG_SUNXI_USB_PHYS

2018-07-20 Thread Jagan Teki
Now number of PHY on Allwinner is handling via dt data, drivers at phy/allwinner/phy-sun4i-usb.c Signed-off-by: Jagan Teki --- Changes for v2: - new patch include/configs/sun4i.h | 2 -- include/configs/sun50i.h | 2 -- include/configs/sun5i.h | 2 -- include/configs/sun6i.h

Re: [U-Boot] [PATCH 2/2] arm: zynq: add support for the zybo z7 board

2018-07-20 Thread Michal Simek
On 13.7.2018 17:44, Luis Araneda wrote: > The board is manufactured by Digilent > Main features: > - Soc: XC7Z010 (Z7-10) or XC7Z020 (Z7-20) > - RAM: 1 GB DDR3L > - FLASH: 16 MB QSPI > - 1 Gbps Ethernet > - USB 2.0 > - microSD slot > - Pcam camera connector > - HDMI Tx and Rx > - Audio codec: stere

[U-Boot] [PATCH v2 0/6] musb-new: Improve shutdown code

2018-07-20 Thread Jagan Teki
This is v2 for previous series[1], by excluding sunxi phy changes. One patch mark it as 'RFC' about "including UCLASS_USB_DEV_GENERIC into shutdown caller" so expecting some inputs on the same [1] https://patchwork.ozlabs.org/cover/941588/ Jagan Teki (6): usb: musb-new: Fix improper musb host

[U-Boot] [PATCH v2 1/6] usb: musb-new: Fix improper musb host pointer

2018-07-20 Thread Jagan Teki
When MUSB is operating in peripheral mode, probe registering musb core using musb_register which intern return int value for validation. so there is no scope to preserve struct musb pointer but the same can be used in .remove musb_stop. So fix this by return musb_register with struct musb pointer.

[U-Boot] [RFC PATCH v2 3/6] dm: usb: Add UCLASS_USB_DEV_GENERIC shutdown

2018-07-20 Thread Jagan Teki
Some OTG controllers which operates on Peripheral mode are registered as UCLASS_USB_DEV_GENERIC. So add support to shutdown them as well. shutdown happened during 'usb reset' and U-Boot handoff code for Linux boot. controller restarting in 'usb reset' like probing again is still missing for this

[U-Boot] [PATCH v2 2/6] usb: musb-new: sunxi: Allocate struct phy in private

2018-07-20 Thread Jagan Teki
Allocate struct phy in private structure instead of allocating locally and assign it to a pointer. This eventually fix miss alignment phy which is used in another functions. Signed-off-by: Jagan Teki --- Changes for v2: - none drivers/usb/musb-new/sunxi.c | 24 +++- 1 file c

[U-Boot] [PATCH v2 5/6] usb: musb-new: sunxi: Add proper musb exit support

2018-07-20 Thread Jagan Teki
musb have platform ops to do proper graceful exit, so add the exit call and move musb platform exit code instead of keeping it in driver remove. This make proper shutdown of musb where .remove will call disable, exit serially via musb_stop. Signed-off-by: Jagan Teki --- Changes for v2: - use driv

[U-Boot] [PATCH v2 4/6] musb-new: sunxi: Access ahb_reset0_cfg via ccm offset

2018-07-20 Thread Jagan Teki
reset0 is not available for sun4i, 5i and 7i so access the reset0 offset from ccm via driver data for relevant Allwinner SoC. this will eventually drop the existing ifdef for SUN6I. Signed-off-by: Jagan Teki --- Changes for v2: - new patch drivers/usb/musb-new/sunxi.c | 40 +

[U-Boot] [PATCH v2 6/6] usb: musb-new: Call musb_platform_exit from musb_stop

2018-07-20 Thread Jagan Teki
musb stop is musb core call during unregister or shutting down gadget or host musb. For graceful exit add musb_platform_exit on musb_stop so-that it can exit the musb platform driver as well. Signed-off-by: Jagan Teki --- Changes for v2: - update proper commit message drivers/usb/musb-new/musb_

Re: [U-Boot] [PATCH 21/25] fastboot: sunxi: Update fastboot mmc default device

2018-07-20 Thread Maxime Ripard
On Thu, Jul 19, 2018 at 07:43:24PM +0100, Alex Kiernan wrote: > On Thu, Jul 19, 2018 at 2:26 PM Maxime Ripard > wrote: > > > > On Wed, Jul 18, 2018 at 08:15:23PM +0100, Alex Kiernan wrote: > > > On Tue, Jul 17, 2018 at 12:57 PM Maxime Ripard > > > wrote: > > > > > > > > On Mon, Jul 16, 2018 at 1

Re: [U-Boot] [PATCH 21/25] fastboot: sunxi: Update fastboot mmc default device

2018-07-20 Thread Maxime Ripard
On Thu, Jul 19, 2018 at 11:41:10PM +0530, Jagan Teki wrote: > On Thu, Jul 19, 2018 at 6:56 PM, Maxime Ripard > wrote: > > On Wed, Jul 18, 2018 at 08:15:23PM +0100, Alex Kiernan wrote: > >> On Tue, Jul 17, 2018 at 12:57 PM Maxime Ripard > >> wrote: > >> > > >> > On Mon, Jul 16, 2018 at 12:11:59PM

Re: [U-Boot] [PATCH] env: Merge Rockchip, Sunxi, Zynq and ZynqMP

2018-07-20 Thread Maxime Ripard
On Fri, Jul 20, 2018 at 08:28:07AM +0200, Michal Simek wrote: > On 19.7.2018 17:50, Maxime Ripard wrote: > > On Thu, Jul 19, 2018 at 10:53:44AM -0400, Tom Rini wrote: > >> On Thu, Jul 19, 2018 at 03:45:11PM +0200, Michal Simek wrote: > >>> On 19.7.2018 13:13, Maxime Ripard wrote: > Hi, >

[U-Boot] [PATCH v1 0/6] Add support of CONFIG_BLK for STM32Fx platforms

2018-07-20 Thread Patrice Chotard
This series : _ adds support of CONFIG_BLK flag to STM32Fx platforms _ enables CONFIG_BLK flag for STM32Fx based boards _ adds missing clk_free() call in error path _ adds read of "cd_inverted" DT property Patrice Chotard (6): configs: stm32f429-evaluation: Enable CONFIG_BLK configs:

[U-Boot] [PATCH v1 2/6] configs: stm32f746-disco: Enable CONFIG_BLK

2018-07-20 Thread Patrice Chotard
CONFIG_BLK config flag becomes mandatory, enable it. Signed-off-by: Patrice Chotard --- configs/stm32f746-disco_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/stm32f746-disco_defconfig b/configs/stm32f746-disco_defconfig index aa7403f3c516..6f07ff155862 100644 --- a/confi

[U-Boot] [PATCH v1 3/6] configs: stm32f769-disco: Enable CONFIG_BLK

2018-07-20 Thread Patrice Chotard
CONFIG_BLK config flag becomes mandatory, enable it. Signed-off-by: Patrice Chotard --- configs/stm32f469-discovery_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/stm32f469-discovery_defconfig b/configs/stm32f469-discovery_defconfig index 4de03edcc2ca..a55476f2f323 100644

[U-Boot] [PATCH v1 1/6] configs: stm32f429-evaluation: Enable CONFIG_BLK

2018-07-20 Thread Patrice Chotard
Signed-off-by: Patrice Chotard --- configs/stm32f429-evaluation_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/stm32f429-evaluation_defconfig b/configs/stm32f429-evaluation_defconfig index 1b14a4964067..3ddd5c50fb1d 100644 --- a/configs/stm32f429-evaluation_defconfig +++ b

[U-Boot] [PATCH v1 4/6] mmc: arm_pl180_mmci: Update to support CONFIG_BLK

2018-07-20 Thread Patrice Chotard
Config flag CONFIG_BLK becomes mandatory, update arm_pl180_mmci to support this config. This driver is used by STM32Fx and by Vexpress platforms. Only STM32Fx are DM ready. No DM code is isolated and will be removed easily when wexpress will be converted to DM. Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH v1 6/6] mmc: arm_pl180_mmci: Add "cd_inverted" DT property read

2018-07-20 Thread Patrice Chotard
Add missing read of "cd_inverted" property in DT. Signed-off-by: Patrice Chotard --- drivers/mmc/arm_pl180_mmci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c index 29a05ea0c39a..7341f2f78581 100644 --- a/drivers/mmc/arm_pl180_m

[U-Boot] [PATCH v1 5/6] mmc: arm_pl180_mmci: Add missing clk_free

2018-07-20 Thread Patrice Chotard
Add missing clk_free() call in case of failure when enabling the clock. Signed-off-by: Patrice Chotard --- drivers/mmc/arm_pl180_mmci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c index e988bac62298..29a05ea0c39a 100644 --- a/d

[U-Boot] [UBOOT PATCH] gpio: zynq: Used platdata structure for storing static data instead of priv

2018-07-20 Thread Vipul Kumar
This patch used platdata structure instead of priv for storing static information read from DT. Signed-off-by: Vipul Kumar --- drivers/gpio/zynq_gpio.c | 67 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/drivers/gpio/zynq_gpio.c

[U-Boot] [PATCH] spi: Kconfig: Create ISSI Kconfig entry

2018-07-20 Thread Michal Simek
Add ISSI to Kconfig to make it selectable via menuconfig. Also convert all current platforms. Signed-off-by: Michal Simek --- configs/stmark2_defconfig | 1 + configs/zynq_cc108_defconfig | 1 + configs/zynq_cse_qspi_defconfig| 1 + configs/zynq_zc702_defconfig | 1 + c

[U-Boot] [PATCH] arm: zynqmp: Move NR_DRAM_BANKS for mini confiration

2018-07-20 Thread Michal Simek
There is no reason to have the same setting in subsequent config if we can have it only once in shared. Signed-off-by: Michal Simek --- include/configs/xilinx_zynqmp_mini.h | 1 + include/configs/xilinx_zynqmp_mini_emmc.h | 1 - include/configs/xilinx_zynqmp_mini_nand.h | 1 - include/conf

[U-Boot] [PATCH] arm: zynqmp: Fix sdhci clock in emmc1 mini configuration

2018-07-20 Thread Michal Simek
Add missing clocks property with fix clock-names property to be aligned with emmc0 configuration and binding doc. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-mini-emmc1.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/zynqmp-mini-emmc1.dts b/arch/a

[U-Boot] [UBOOT PATCH] Kconfig: Move config SYS_MALLOC_LEN to Kconfig for zynq

2018-07-20 Thread Vipul Kumar
From: Siva Durga Prasad Paladugu This patch moves the the config SYS_MALLOC_LEN to Kconfig. It will be just for Zynq arch and to do will be for all other archs. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Vipul Kumar --- Kconfig | 7 +++ arch/arm/mach-

[U-Boot] [PATCH 2/2] arm: zynq: Fix indentation for zynq-cse targets

2018-07-20 Thread Michal Simek
Trivial DT style fixes. Signed-off-by: Michal Simek --- arch/arm/dts/zynq-cse-nand.dts | 3 +-- arch/arm/dts/zynq-cse-nor.dts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/dts/zynq-cse-nand.dts b/arch/arm/dts/zynq-cse-nand.dts index 9b1dd19a85df..1e16d7fab97d 10

[U-Boot] [PATCH 1/2] arm: zynq: Remove fclk-enable property for cse-nor target

2018-07-20 Thread Michal Simek
Mini cse NOR configuration is running without PL that's why there is no reason to enable clock to PL. Signed-off-by: Michal Simek --- arch/arm/dts/zynq-cse-nor.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/zynq-cse-nor.dts b/arch/arm/dts/zynq-cse-nor.dts index ba6f9a1a79e3

Re: [U-Boot] [PATCH v2 0/6] musb-new: Improve shutdown code

2018-07-20 Thread Marek Vasut
On 07/20/2018 09:13 AM, Jagan Teki wrote: > This is v2 for previous series[1], by excluding sunxi phy changes. > > One patch mark it as 'RFC' about "including UCLASS_USB_DEV_GENERIC > into shutdown caller" so expecting some inputs on the same > > [1] https://patchwork.ozlabs.org/cover/941588/ >

Re: [U-Boot] [PATCH 00/17] fs: fat: extend FAT write operations

2018-07-20 Thread Heinrich Schuchardt
On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: This patch series is an attempt to address FAT write related issues in an effort of running UEFI SCT (Self-Certification Test) to verify UEFI support on u-boot. SCT is a test platform as well as an extentisive collection of test cases for UEFI spec

[U-Boot] [PATCH] mkimage: fit_image: Use macros from image.h

2018-07-20 Thread Michal Simek
There is no reason not to use macros which are already defined. It is also much easier for grepping. Signed-off-by: Michal Simek --- tools/fit_image.c | 53 + 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/tools/fit_image.c b/

Re: [U-Boot] [RFC PATCH 4/4] arm: zynq: spl: implement FPGA load from FIT

2018-07-20 Thread Michal Simek
On 19.7.2018 19:22, Luis Araneda wrote: > Hi Michal, > > On Thu, Jul 19, 2018 at 2:16 AM Michal Simek wrote: >> Also on zc706 without FULL_FIT my path in spl_load_fit_image is not >> jumping to "if (external_data) {" branch where spl_load_fpga_image is >> which is kind of interesting because it l

Re: [U-Boot] [RFC PATCH 0/4] arm: zynq: implement FPGA load from SPL

2018-07-20 Thread Michal Simek
Hi, On 20.7.2018 01:37, Luis Araneda wrote: > Hi Michal, > > On Thu, Jul 19, 2018 at 2:23 AM Michal Simek wrote: >> On 18.7.2018 20:02, Luis Araneda wrote: >>> [...] >>> I didn't send them because just changing the defconfig isn't enough, >> >> It should be enough. It is configuration option and

Re: [U-Boot] [PATCH 4/4] arm: zynq: use i2c cadence DM driver

2018-07-20 Thread Michal Simek
On 9.7.2018 07:00, Luis Araneda wrote: > Migrate most boards to the Cadence I2C driver and > use DM functions to read the MAC address from EEPROM > > Additionally, remove the legacy eeprom command from > defconfig since it was only used to provide the functions > to read the MAC address > > Board

Re: [U-Boot] [PATCH 0/4] arm: zynq: migrate to DM I2C driver

2018-07-20 Thread Michal Simek
On 20.7.2018 08:12, Luis Araneda wrote: > Hi Michal, > > On Thu, Jul 19, 2018 at 3:28 AM Michal Simek wrote: >> Please take a look at >> https://lists.denx.de/pipermail/u-boot/2016-November/274068.html which >> was the series which should replace all these boards setting in a >> generic way. Unfo

[U-Boot] [PATCH 1/2] common: Log should depends on DM not be selected by DM

2018-07-20 Thread Michal Simek
Better use depends on instead of select. Signed-off-by: Michal Simek --- I found this in connection to setup imply CMD_DM and it seems to not standard that it is selecting DM which is not used anywhere else. --- common/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [U-Boot] [PATCH v3 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line

2018-07-20 Thread Michal Simek
On 17.7.2018 05:44, Simon Glass wrote: > Hi Michal, > > On 16 July 2018 at 02:33, Michal Simek wrote: >> On 11.7.2018 22:13, Simon Glass wrote: >>> Hi, >>> >>> On 11 July 2018 at 07:40, Tom Rini wrote: On Wed, Jul 11, 2018 at 03:31:39PM +0200, Michal Simek wrote: > On 11.7.2018 14:

Re: [U-Boot] test: Add ut_assertnull macro

2018-07-20 Thread Tom Rini
On Thu, Jun 21, 2018 at 05:47:16PM +0300, Ramon Fried wrote: > Add ut_assertnull macro to include/test/ut.h > For testing of functions that returns NULL on errors. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] hush: Remove default CONFIG_SYS_PROMPT_HUSH_PS2 setting from board files

2018-07-20 Thread Tom Rini
On Fri, Jun 22, 2018 at 08:13:10AM +0200, Michal Simek wrote: > There is no reason to define default option for this macro which is > already done in common/cli_hush.c. > > 86 #ifndef CONFIG_SYS_PROMPT_HUSH_PS2 > 87 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " > 88 #endif > > Signed-off-by

Re: [U-Boot] cmd: fit_image: Add default property for FIT format scripts

2018-07-20 Thread Tom Rini
On Fri, Jun 22, 2018 at 02:58:02PM +, Alex Kiernan wrote: > When sourcing a FIT format script, if we've not been told the unit name > to use, look for a default property at the root of /images to work out > which unit we should use. > > Signed-off-by: Alex Kiernan > Reviewed-by: Simon Glass

Re: [U-Boot] [U-Boot, 1/4] cmd: nvedit: rename flags in do_env_default

2018-07-20 Thread Tom Rini
On Sun, Jun 24, 2018 at 07:16:54PM +0300, Yaniv Levinsky wrote: > The naming convention for flags in nvedit.c is: > * The hashtable flag (defined in search.h) is named "env_flag" > * The command flag argument (defined in command.h) is named "flag" > > This convention is kept in functions like do_

Re: [U-Boot] [U-Boot, 4/4] env: common: accept flags on reset to default env

2018-07-20 Thread Tom Rini
On Sun, Jun 24, 2018 at 07:16:57PM +0300, Yaniv Levinsky wrote: > The function set_default_env() sets the hashtable flags for import_r(). > Formally set_default_env() doesn't accept flags from its callers. In > practice the caller can (un)set the H_INTERACTIVE flag, but it has to be > done using t

Re: [U-Boot] gpio: omap_gpio: Convert to auto-alloc feature when DT is supported

2018-07-20 Thread Tom Rini
On Mon, Jun 25, 2018 at 10:31:35AM -0500, Adam Ford wrote: > The omap_gpio driver has a TODO that says when every board is converted > to DM and DT, the omap_gpio_bind can stop using calloc and switch > to auto-alloc. > > This patch converts this driver to auto-calloc when DT is enabled. > > Sig

Re: [U-Boot] [U-Boot, v4, 1/3] x86: Remove unused _relocate arguments

2018-07-20 Thread Tom Rini
On Thu, Jun 28, 2018 at 02:49:46PM -0700, Ivan Gorinov wrote: > EFI image handle and system table are not used in _relocate(). > > Signed-off-by: Ivan Gorinov Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-

Re: [U-Boot] [U-Boot, 2/4] cmd: nvedit: propagate envflag to set_default_vars

2018-07-20 Thread Tom Rini
On Sun, Jun 24, 2018 at 07:16:55PM +0300, Yaniv Levinsky wrote: > The env_flag in do_env_default() doesn't get propagated and therefore > gets ignored by himport_r(). This breaks to ability to "forcibly" reset > variables to their default values using the environment command. > > Scenario example

Re: [U-Boot] [U-Boot, u-boot, 2/2] boards: amlogic: Add FriendlyElec NanoPi K2 board support

2018-07-20 Thread Tom Rini
On Mon, Jun 25, 2018 at 04:50:17PM +0200, Neil Armstrong wrote: > From: Thomas McKahan > > This adds platform code for the FriendlyElec NanoPi K2 board based on a > Meson GXBB (S905) SoC with the Meson GXBB configuration. > > This initial submission only supports: > - UART > - MMC/SDCard > - Et

Re: [U-Boot] [U-Boot,v5,3/6] dts: db410c: added smem nodes

2018-07-20 Thread Tom Rini
On Mon, Jul 02, 2018 at 02:57:57AM +0300, Ramon Fried wrote: > Added necessary nodes for Qualcomm smem driver. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [U-Boot,u-boot] boards: amlogic: Fix boards README

2018-07-20 Thread Tom Rini
On Wed, Jun 27, 2018 at 05:19:02PM +0200, Neil Armstrong wrote: > Fix typos and update the supported devices for all Amlogic boards. > > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [U-Boot, 06/12] board/BuR/common: fix PMIC mpu-pll setup

2018-07-20 Thread Tom Rini
On Fri, Jul 06, 2018 at 03:41:23PM +0200, Hannes Schmelzer wrote: > If a board-code calls the pmicsetup(u32 mpupll) with a mpupll value > != 0 it wants to force some frequency with the value provided by mpupll. > Setting up 1 GHz is wrong here. > > Nobody did take notice about that yet, since ev

Re: [U-Boot] [U-Boot,v5,1/6] dm: SMEM (Shared memory) uclass

2018-07-20 Thread Tom Rini
On Mon, Jul 02, 2018 at 02:57:55AM +0300, Ramon Fried wrote: > This is a uclass for Shared memory manager drivers. > > A Shared Memory Manager driver implements an interface for allocating > and accessing items in the memory area shared among all of the > processors. > > Signed-off-by: Ramon Fri

Re: [U-Boot] mmc: stm32_sdmmc2: update pwron management

2018-07-20 Thread Tom Rini
On Wed, Jun 27, 2018 at 10:49:31AM +0200, Patrice Chotard wrote: > From: Patrick Delaunay > > Correctly manage the SDMMC reset and card cycle power > to fully handle the power cycle added in the MMC uclass > and avoid issue with level-shifter with some uSDCARD. > > 3 states managed in driver: >

Re: [U-Boot] [U-Boot, 3/4] cmd: nvedit: set H_INTERACTIVE in do_env_default

2018-07-20 Thread Tom Rini
On Sun, Jun 24, 2018 at 07:16:56PM +0300, Yaniv Levinsky wrote: > The function set_default_vars() in common.c adds H_INTERACTIVE to the > h_import() flag, but the function has no way of telling if the command > actually was user directed like this flag suggest. The flag should be > set by the call

Re: [U-Boot] [U-Boot, 01/12] board/BuR: drop devicetree loading and lcd setup for linux-targets

2018-07-20 Thread Tom Rini
On Fri, Jul 06, 2018 at 03:41:18PM +0200, Hannes Schmelzer wrote: > This patch drops the lcd-screen setup, the summary screen and getting > mac-addresses based on a previous loaded device-tree for linux targets. > Selecting those linux target is simple, since we have only the brppt1. > > In deta

Re: [U-Boot] [U-Boot,v5,5/6] drivers: smem: sandbox

2018-07-20 Thread Tom Rini
On Mon, Jul 02, 2018 at 02:57:59AM +0300, Ramon Fried wrote: > Add Sandbox driver for SMEM. mostly stub operations. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [U-Boot, v4, 2/3] arm: Remove unused _relocate arguments

2018-07-20 Thread Tom Rini
On Thu, Jun 28, 2018 at 02:50:04PM -0700, Ivan Gorinov wrote: > EFI image handle and system table are not used in _relocate(). > > Signed-off-by: Ivan Gorinov Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-

Re: [U-Boot] power: regulator: stpmu1: add power off delay

2018-07-20 Thread Tom Rini
On Wed, Jun 27, 2018 at 11:59:47AM +0200, Patrice Chotard wrote: > From: Christophe Kerello > > This patch adds a delay when regulators are disabled. > This delay is set to 5 ms to cover all use cases. > The worst use case actually seen is during a SD card power cycle. > > Signed-off-by: Christ

Re: [U-Boot] [U-Boot, 05/12] board/BuR/common: remove interface Label from summary screen

2018-07-20 Thread Tom Rini
On Fri, Jul 06, 2018 at 03:41:22PM +0200, Hannes Schmelzer wrote: > This interface names may vary over different products, to consider this > fact we replace the interface label "IF1" and "IF2" on the summary > screen with some more generic wording "MAC1" and "MAC2". > > Signed-off-by: Hannes Sch

Re: [U-Boot] [U-Boot, u-boot, 1/2] ARM: dts: sync meson-gxbb-nanopi-k2 from Linux 4.17

2018-07-20 Thread Tom Rini
On Mon, Jun 25, 2018 at 04:50:16PM +0200, Neil Armstrong wrote: > Get the meson-gxbb-nanopi-k2.dts file from Linux 4.17. > > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot

Re: [U-Boot] [U-Boot,1/1] ARM: qemu-arm: enable RTC

2018-07-20 Thread Tom Rini
On Fri, Jun 29, 2018 at 12:34:16AM +0200, Heinrich Schuchardt wrote: > QEMU provides an emulated ARM AMBA PrimeCell PL031 RTC. > > The patch sets the base address in the board include file according to the > definition in hw/arm/virt.c of the QEMU source. It defines the Kconfig > option for the e

Re: [U-Boot] [U-Boot, v2, 1/6] drivers: rtc: resolve year 2038 problem in rtc_to_tm

2018-07-20 Thread Tom Rini
On Sat, Jul 07, 2018 at 11:39:11PM +0200, Heinrich Schuchardt wrote: > Our implementation of rtc_to_tm() cannot handle dates of more than > 0x7fff seconds after 1970-01-01. > > Adopt the Linux kernel implementation. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks!

Re: [U-Boot] phy: Be able to get phy from PHY provider

2018-07-20 Thread Tom Rini
On Wed, Jun 27, 2018 at 11:55:42AM +0200, Patrice Chotard wrote: > In case of phy are provided from a PHY provider nodes as following: > > usbphyc: usb-phy@5a006000 { > compatible = "st,stm32mp1-usbphyc"; > reg = <0x5a006000 0x1000>; > clocks = <&rcc_clk USBPHY_K>; > reset

Re: [U-Boot] [U-Boot,1/2] spl: nor: Add FIT support

2018-07-20 Thread Tom Rini
On Tue, Jun 26, 2018 at 10:10:03AM -0700, York Sun wrote: > Add support of loading FIT image from NOR flash. > > Signed-off-by: York Sun Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Bo

Re: [U-Boot] arm/arm64: bitops: fix find_next_zero_bit to be compat with arm64

2018-07-20 Thread Tom Rini
On Thu, Jun 28, 2018 at 02:25:52PM -0500, Grygorii Strashko wrote: > Current implementation of find_next_zero_bit() is incompatible with arm64. > Hence fix it by using BITS_PER_LONG define instead of constants and > use generic ffz() implementation. > > Signed-off-by: Grygorii Strashko Applied

Re: [U-Boot] [U-Boot, 02/12] board/BuR/common: drop simple-framebuffer setup

2018-07-20 Thread Tom Rini
On Fri, Jul 06, 2018 at 03:41:19PM +0200, Hannes Schmelzer wrote: > The linux systems running on the brppt1 targets are using modern DRM > drivers since long time ago. Further we are going to drop the LCD > support completely on this board, so the simple-framebuffer setup > becomes obsolete. > >

Re: [U-Boot] [U-Boot, 07/12] board/BuR/brppt1: drop dead code (CONFIG_SPL_OS_BOOT)

2018-07-20 Thread Tom Rini
On Fri, Jul 06, 2018 at 03:41:24PM +0200, Hannes Schmelzer wrote: > The falcon mode was never used on this board, there is also no plan to > use it. So drop this dead code. > > Signed-off-by: Hannes Schmelzer Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot,v5,4/6] dts: db820c: added smem nodes

2018-07-20 Thread Tom Rini
On Mon, Jul 02, 2018 at 02:57:58AM +0300, Ramon Fried wrote: > Added necessary nodes for Qualcomm smem driver. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [U-Boot, 2/2] spl: nor: Skip CONFIG_SYS_FDT_BASE if not defined

2018-07-20 Thread Tom Rini
On Tue, Jun 26, 2018 at 10:10:04AM -0700, York Sun wrote: > If FIT image is used, CONFIG_SYS_FDT_BASE is not needed. > > Signed-off-by: York Sun Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing l

Re: [U-Boot] [U-Boot, 09/12] board/BuR/brppt1: implement more flexible boot process

2018-07-20 Thread Tom Rini
On Fri, Jul 06, 2018 at 03:41:26PM +0200, Hannes Schmelzer wrote: > With this commit we do: > > - set the bootdelay in all brppt1 defconfigs to 0, this makes > development easier, since we can break into serial console. > > - move CONFIG_BOOTCOMMAND from header file to defconfig > > - introduce

Re: [U-Boot] [U-Boot, v5, 2/6] soc: qualcomm: Add Shared Memory Manager driver

2018-07-20 Thread Tom Rini
On Mon, Jul 02, 2018 at 02:57:56AM +0300, Ramon Fried wrote: > The Shared Memory Manager driver implements an interface for allocating > and accessing items in the memory area shared among all of the > processors in a Qualcomm platform. > > Adapted from the Linux driver (4.17) > > Changes from t

Re: [U-Boot] [U-Boot,v5,6/6] test: smem: add basic smem test

2018-07-20 Thread Tom Rini
On Mon, Jul 02, 2018 at 02:58:00AM +0300, Ramon Fried wrote: > Add basic smem sandbox testing. > > Signed-off-by: Ramon Fried > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot

Re: [U-Boot] [U-Boot, 12/12] board/BuR/brppt1: add makerule for generating production files

2018-07-20 Thread Tom Rini
On Fri, Jul 06, 2018 at 03:41:29PM +0200, Hannes Schmelzer wrote: > Signed-off-by: Hannes Schmelzer Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de

Re: [U-Boot] [U-Boot, 03/12] board/BuR/common: make CONFIG_LCD optional

2018-07-20 Thread Tom Rini
On Fri, Jul 06, 2018 at 03:41:20PM +0200, Hannes Schmelzer wrote: > Since we're going to drop LCD-support on brppt1 boards, we have to make > this stuff here optional and remove the #error path. > > We also move out the ft_board_setup(...) from this #ifdef because > there's no relationship with t

[U-Boot] [PATCH 2/2] dm: Change CMD_DM enabling

2018-07-20 Thread Michal Simek
CMD_DM is used for debug purpose and it shouldn't be enabled by default via Kconfig. Unfortunately this is in the tree for quite a long time that's why solution is to use imply DM for all targets which are enabling DM. Signed-off-by: Michal Simek --- Based on this discussion: https://lists.denx.

[U-Boot] [PATCH] ARM: uniphier: enable distro boot

2018-07-20 Thread Masahiro Yamada
Switch to the distro boot for UniPhier platform. - Remove the environment vairalbes used to load images from raw block devices. - Keep the command to download images via tftp. This will be useful to boot the kernel when no valid kernel image is ready yet in the file system. - Use ro

Re: [U-Boot] [U-Boot, 10/12] dts: am33xx: add u-boot, dm-spl to ocp bus

2018-07-20 Thread Tom Rini
On Fri, Jul 06, 2018 at 03:41:27PM +0200, Hannes Schmelzer wrote: > This is needed for having access to the devices below this bus, most > important is uart and boot-device (spi, mmc, ...) in SPL stage. > > Signed-off-by: Hannes Schmelzer Applied to u-boot/master, thanks! -- Tom signature.a

Re: [U-Boot] [U-Boot, v4, 3/3] riscv: Remove unused _relocate arguments

2018-07-20 Thread Tom Rini
On Thu, Jun 28, 2018 at 02:50:17PM -0700, Ivan Gorinov wrote: > EFI image handle and system table are not used in _relocate(). > > Signed-off-by: Ivan Gorinov Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-

Re: [U-Boot] [U-Boot, 08/12] board/BuR/common: refactor ft_board_setup(...)

2018-07-20 Thread Tom Rini
On Fri, Jul 06, 2018 at 03:41:25PM +0200, Hannes Schmelzer wrote: > On other OS, not one provided by B&R, it is not guaranteed that there > are factory-settings within a devicetree. So we must not treat the > absence of them as error. > Further we've the fact that on different version of the devic

Re: [U-Boot] [U-Boot,04/12] board/BuR/brppt1: drop LCD-support

2018-07-20 Thread Tom Rini
On Fri, Jul 06, 2018 at 03:41:21PM +0200, Hannes Schmelzer wrote: > On this linux target long time ago the OS is using DRM driver for > handling video output, the pre initialization of u-boot and the display > summary screen is obsolete. With this patch we drop the LCD-support from > thisd board.

Re: [U-Boot] [U-Boot, 11/12] board/BuR/brppt1: convert brppt1 boards to driver model

2018-07-20 Thread Tom Rini
On Fri, Jul 06, 2018 at 03:41:28PM +0200, Hannes Schmelzer wrote: > - add a devicetree for each variant (mmc, spi, nand) > - drop unneeded code from board and bur/common > - drop unneeded stuff from config header files > - minor adaptions to be compliant with driver model (requesting gpio,..) > -

Re: [U-Boot] [PATCH 1/2] common: Log should depends on DM not be selected by DM

2018-07-20 Thread Tom Rini
On Fri, Jul 20, 2018 at 02:05:06PM +0200, Michal Simek wrote: > Better use depends on instead of select. > > Signed-off-by: Michal Simek Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.de

Re: [U-Boot] [PATCH 2/2] dm: Change CMD_DM enabling

2018-07-20 Thread Tom Rini
On Fri, Jul 20, 2018 at 02:05:07PM +0200, Michal Simek wrote: > CMD_DM is used for debug purpose and it shouldn't be enabled by default > via Kconfig. Unfortunately this is in the tree for quite a long time > that's why solution is to use imply DM for all targets which are > enabling DM. > > Sign

Re: [U-Boot] [U-Boot, u-boot, 2/2] boards: amlogic: Add FriendlyElec NanoPi K2 board support

2018-07-20 Thread Neil Armstrong
Hi Tom, On 20/07/2018 14:35, Tom Rini wrote: > On Mon, Jun 25, 2018 at 04:50:17PM +0200, Neil Armstrong wrote: > >> From: Thomas McKahan >> >> This adds platform code for the FriendlyElec NanoPi K2 board based on a >> Meson GXBB (S905) SoC with the Meson GXBB configuration. >> >> This initial su

[U-Boot] [PATCH] board/imgtec/boston: Add new defconfigs to the MAINTAINERS list

2018-07-20 Thread Tom Rini
Signed-off-by: Tom Rini --- board/imgtec/boston/MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/board/imgtec/boston/MAINTAINERS b/board/imgtec/boston/MAINTAINERS index 81f067d6907b..07f6156ffcbe 100644 --- a/board/imgtec/boston/MAINTAINERS +++ b/board/imgtec/boston/MAINTAINERS

Re: [U-Boot] [RFC PATCH v3 2/2] disk: part: Remove redundant error message

2018-07-20 Thread Sam Protsenko
On Fri, Jul 20, 2018 at 1:53 AM, Tom Rini wrote: > On Fri, Jul 20, 2018 at 01:28:43AM +0300, Sam Protsenko wrote: > >> Underlying API should already print some meaningful error message, so >> this one is just brings more noise. E.g. we can see log like this: >> >> MMC: no card present >> *

[U-Boot] [PATCH 0/2] env: Make environment loading log more clear

2018-07-20 Thread Sam Protsenko
This patch series intended to make boot log better. Basically here we just remove unwanted error messages, relying on the message from most deep API to be printed (like mmc subsystem). At the moment this looks like most clean solution to cluttered log problem, as any other solution will be hackish.

[U-Boot] [PATCH 2/2] disk: part: Don't show redundant error message

2018-07-20 Thread Sam Protsenko
Underlying API should already print some meaningful error message, so this one is just brings more noise. E.g. we can see log like this: MMC: no card present ** Bad device mmc 0 ** Obviously, second error message is unwanted. Let's only print it in case when DEBUG is defined to keep log s

[U-Boot] [PATCH 1/2] env: Don't print "Failed" error message

2018-07-20 Thread Sam Protsenko
"Failed" error message from env_load() only clutters the log with unnecessary details, as we already have all needed warnings by that time. Example: Loading Environment from FAT... MMC: no card present ** Bad device mmc 0 ** Failed (-5) Remove this "Failed" message to keep log short a

[U-Boot] [PATCH] configs: imx6q_logic: Cleanup ramdiskaddr and fdtaddr

2018-07-20 Thread Adam Ford
There are already definitions for ramdisk_addr_r and fdt_addr_r, so having a duplicate copy called ramdiskaddr and fdtaddr is confusing. This patch converts any references to ramdisk_addr_r and fdt_addr_r and removes the duplicates. Signed-off-by: Adam Ford diff --git a/include/configs/imx6_logi

Re: [U-Boot] [RFC PATCH v3 0/2] env: Make environment loading log more clear

2018-07-20 Thread Wolfgang Denk
Dear Sam, In message <20180719222843.28316-1-semen.protse...@linaro.org> you wrote: > > 1. With no "Failed" message, at some point we *can* end up with no > error messages printed at all That would mean that we did not check the whole call tree as needed. It is not that complicated, or is it

Re: [U-Boot] [PATCH 1/2] env: Don't print "Failed" error message

2018-07-20 Thread Wolfgang Denk
Dear Sam, In message <20180720131421.7136-2-semen.protse...@linaro.org> you wrote: > > + if (!ret) > printf("OK\n"); > > if (!ret) Now we have two "if (!ret)" in sequence. Make this one block, please. Best regards, Wolfgang Denk -- DENX Softw

Re: [U-Boot] [U-Boot, 3/4] dm: led: move default state support in led uclass

2018-07-20 Thread Tom Rini
On Fri, Jul 13, 2018 at 05:21:10PM +0200, Patrick Delaunay wrote: > This patch save common LED property "default-state" value > in post bind of LED uclass. > The configuration for this default state is only performed when > led_default_state() is called; > It can be called in your board_init() > o

Re: [U-Boot] [PATCH 3/3] rockchip: rk3399: Add more instructions to the README

2018-07-20 Thread Ezequiel Garcia
On Wed, 2018-07-18 at 19:32 -0600, Simon Glass wrote: > On 16 July 2018 at 13:41, Ezequiel Garcia wrote: > > This commit adds a content section and also instructions > > on how to create a bootable SD/MMC device for RK3399 boards. > > > > Signed-off-by: Ezequiel Garcia > > --- > > board/rockchi

Re: [U-Boot] [PATCH 11/20] w1: enumerate sandbox driver if configured

2018-07-20 Thread Lukasz Majewski
Hi Eugen, Thanks for (re-)bringing the One wire support to u-boot. > Add a sandbox eeprom on the bus as a device, if sandbox driver is > configured. > > Signed-off-by: Eugen Hristev > --- > drivers/w1/w1-uclass.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/drivers/w1/w1-ucla

Re: [U-Boot] [PATCH] ARM: mx6ul: Apply ERR011115 errata workaround

2018-07-20 Thread Sébastien Szymanski
Hi, On 07/19/2018 01:37 PM, Marcin Niestroj wrote: > ERR05 in IMX6UL errata says to use OCRAM memory above > 0x908000 (instead of 0x907000) for silicon revision 1.2 shipped > prior date code 1740. > > As we cannot check affected targets in runtime, apply that > workaround by default for all I

Re: [U-Boot] [PATCH 04/20] W1-EEPROM: Add an W1-EEPROM uclass for 1 wire EEPROMs

2018-07-20 Thread Maxime Ripard
Hi Eugen, Thanks for giving those patches another shot. On Thu, Jul 19, 2018 at 12:57:52PM +0300, Eugen Hristev wrote: > From: Maxime Ripard > > We might want to access data stored onto one wire EEPROMs. > Create a framework to provide a consistent API. > > Signed-off-by: Maxime Ripard > [eug

Re: [U-Boot] [RFC PATCH v3 0/2] env: Make environment loading log more clear

2018-07-20 Thread Sam Protsenko
On Fri, Jul 20, 2018 at 4:27 PM, Wolfgang Denk wrote: > Dear Sam, > > In message <20180719222843.28316-1-semen.protse...@linaro.org> you wrote: >> >> 1. With no "Failed" message, at some point we *can* end up with no >> error messages printed at all > > That would mean that we did not check t

Re: [U-Boot] [PATCH 1/2] env: Don't print "Failed" error message

2018-07-20 Thread Sam Protsenko
On Fri, Jul 20, 2018 at 4:29 PM, Wolfgang Denk wrote: > Dear Sam, > > In message <20180720131421.7136-2-semen.protse...@linaro.org> you wrote: >> >> + if (!ret) >> printf("OK\n"); >> >> if (!ret) > > Now we have two "if (!ret)" in sequence. Make thi

[U-Boot] [PATCH] smartweb: use SPL_TINY_MEMSET

2018-07-20 Thread Philipp Tomsich
The SPL code for smartweb is close to its limit and adding a few extra instructions to SPL will cause it to overrun its sram allotement (thus causing build failures). To allow adding the 'spl_perform_fixups' extension point to SPL, we'll enable SPL_TINY_MEMSET for smartweb. Signed-off-by: Philipp

[U-Boot] [PATCH v2 0/2] env: Make environment loading log more clear

2018-07-20 Thread Sam Protsenko
This patch series intended to make boot log better. Basically here we just remove unwanted error messages, relying on the message from most deep API to be printed (like mmc subsystem). At the moment this looks like most clean solution to cluttered log problem, as any other solution will be hackish.

  1   2   >