[U-Boot] [PATCH] fdt: fix fdtdec_setup_memory_banksize()

2018-07-13 Thread Jens Wiklander
Prior to this patch is fdtdec_setup_memory_banksize() incorrectly ignoring the "status" field. This patch fixes that by testing the status with fdtdec_get_is_enabled() before using a memory node. Signed-off-by: Jens Wiklander --- lib/fdtdec.c | 20 +++- 1 file changed, 15

[U-Boot] [PATCH] arm64: a37xx: add CONFIG_MTD_DEVICE and CONFIG_MTD_PARTITIONS

2018-07-13 Thread Vladimir Vid
CONFIG_MTD_DEVICE is required for the mtdparts command and but it is missing from the mvebu_armada-37xx.h CONFIG_MTD_PARTITIONS is needed for the ubi support. Some of the Marvell based devices may require this as well. Signed-off-by: Vladimir Vid Signed-off-by: Luka Perkov ---

Re: [U-Boot] [PATCH v4] u-boot: remove driver lookup loop from env_save()

2018-07-13 Thread Simon Goldschmidt
On 13.07.2018 13:57, Nicholas Faustini wrote: When called with ENVOP_SAVE, env_get_location() only returns the gd->env_load_location variable without actually checking for the environment location and priority. This behaviour causes env_save() to fall into an infinite loop when the low-level

[U-Boot] [PATCH v4] u-boot: remove driver lookup loop from env_save()

2018-07-13 Thread Nicholas Faustini
When called with ENVOP_SAVE, env_get_location() only returns the gd->env_load_location variable without actually checking for the environment location and priority. This behaviour causes env_save() to fall into an infinite loop when the low-level drv->save() call fails. The env_save() function

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
2018-07-13 19:58 GMT+09:00 Marek Vasut : > On 07/13/2018 12:52 PM, Masahiro Yamada wrote: >> 2018-07-13 19:35 GMT+09:00 Marek Vasut : >>> On 07/13/2018 12:22 PM, Masahiro Yamada wrote: 2018-07-13 19:18 GMT+09:00 Marek Vasut : > On 07/13/2018 12:09 PM, Masahiro Yamada wrote: >> Hi

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Marek Vasut
On 07/13/2018 12:52 PM, Masahiro Yamada wrote: > 2018-07-13 19:35 GMT+09:00 Marek Vasut : >> On 07/13/2018 12:22 PM, Masahiro Yamada wrote: >>> 2018-07-13 19:18 GMT+09:00 Marek Vasut : On 07/13/2018 12:09 PM, Masahiro Yamada wrote: > Hi Marek > > 2018-07-13 17:56 GMT+09:00 Marek

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
2018-07-13 19:35 GMT+09:00 Marek Vasut : > On 07/13/2018 12:22 PM, Masahiro Yamada wrote: >> 2018-07-13 19:18 GMT+09:00 Marek Vasut : >>> On 07/13/2018 12:09 PM, Masahiro Yamada wrote: Hi Marek 2018-07-13 17:56 GMT+09:00 Marek Vasut : > On 07/13/2018 10:23 AM, Masahiro Yamada

Re: [U-Boot] [U-Boot, v3, 3/4] rockchip: veyron: Set vcc33_sd regulator value

2018-07-13 Thread Philipp Tomsich
> From: Carlo Caione > > On the veyron board the vcc33_sd regulator is used as vmmc-supply for > the SD card. This regulator is powered in the MMC core during power on > but its value is never actually set. > > In the veyron platform the reset value for the LDO output is 1.8V while > the

Re: [U-Boot] [U-Boot, v3, 2/4] rk3288: Disable JTAG function from sdmmc0 IO

2018-07-13 Thread Philipp Tomsich
> From: Carlo Caione > > The GRF_SOC_CON0.grf_force_jtag bit is automatically set at boot and it > is preventing the SDMMC to work correctly. Disable the JTAG function on > the assumption that a working SD has higher priority over JTAG. > > Signed-off-by: Carlo Caione > Reviewed-by: Simon

Re: [U-Boot] [U-Boot, v3, 1/4] rk3288: veyron: Init boot-on regulators

2018-07-13 Thread Philipp Tomsich
> From: Carlo Caione > > Use regulators_enable_boot_on() to init all the regulators with > regulator-boot-on property. > > Signed-off-by: Carlo Caione > Reviewed-by: Simon Glass > Reviewed-by: Philipp Tomsich > Acked-by: Philipp Tomsich > --- > arch/arm/mach-rockchip/rk3288-board.c | 6

Re: [U-Boot] [U-Boot,v1] rockchip: utilize CONFIG_DEFAULT_FDT_FILE

2018-07-13 Thread Philipp Tomsich
> Currently the fdtfile environment variable is set to > CONFIG_DEFAULT_DEVICE_TREE which is іnternally used as U-Boot devicetree > source. The OS can use a different filename and Kconfig gives us the > ability to select a default devicetree via CONFIG_DEFAULT_FDT_FILE. > This also gives user

Re: [U-Boot] [PATCH 03/12] net: gmac_rockchip: Fix a register write in rk3328_gmac_set_to_rgmii

2018-07-13 Thread Dr. Philipp Tomsich
Joe, > On 14 Jun 2018, at 20:26, Joe Hershberger wrote: > > On Thu, Jun 14, 2018 at 1:12 PM, Dr. Philipp Tomsich > wrote: >> >>> On 14 Jun 2018, at 19:39, Joe Hershberger wrote: >>> >>> On Thu, Jun 14, 2018 at 4:48 AM, Janine Hagemann >>> wrote: We have to use

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Marek Vasut
On 07/13/2018 12:22 PM, Masahiro Yamada wrote: > 2018-07-13 19:18 GMT+09:00 Marek Vasut : >> On 07/13/2018 12:09 PM, Masahiro Yamada wrote: >>> Hi Marek >>> >>> 2018-07-13 17:56 GMT+09:00 Marek Vasut : On 07/13/2018 10:23 AM, Masahiro Yamada wrote: > Hi Marek, > > 2018-07-13 16:59

Re: [U-Boot] [PATCH 2/3] rockchip: add support for veyron-speedy (ASUS Chromebook C201)

2018-07-13 Thread Dr. Philipp Tomsich
> On 7 May 2018, at 02:20, Marty E. Plummer wrote: > > On Mon, May 07, 2018 at 12:12:54AM +0200, klaus.go...@theobroma-systems.com > wrote: >> >>> On 06.05.2018, at 16:25, Marty E. Plummer wrote: >>> >>> This adds support for the ASUS C201, a

Re: [U-Boot] [U-Boot, 1/1] rockchip: evb-rk3399: correct README for board bring up

2018-07-13 Thread Philipp Tomsich
> %s/rkflashtool/rkdeveloptool/ > > We are using rkdeveloptool not rkflashtool. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Philipp Tomsich > Acked-by: Philipp Tomsich > Reviewed-by: Kever Yang > --- > board/rockchip/evb_rk3399/README | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [U-Boot] [PATCH v3 4/4] rk3288: Convert register defines to const uintptr_t

2018-07-13 Thread Dr. Philipp Tomsich
> On 9 Jul 2018, at 05:05, Simon Glass wrote: > > On 11 June 2018 at 13:00, Carlo Caione wrote: >> From: Carlo Caione >> >> No functional change but at least we can now guarantee type safety. >> >> Signed-off-by: Carlo Caione >> --- >> arch/arm/mach-rockchip/rk3288-board.c | 5 ++--- >> 1

Re: [U-Boot] [U-Boot, 1/1] rockchip: rk3399: spl: add missing \n to output

2018-07-13 Thread Philipp Tomsich
> Without the patch SPL (in case of an error) creates an output like: > > U-Boot SPL board initMissing DTB > > The patch adds the missing line feed. So now we get: > > U-Boot SPL board init > Missing DTB > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, v1, 4/4] rockchip: rk3399: change boot_target based on u-boot, spl-boot-device

2018-07-13 Thread Philipp Tomsich
> From: Klaus Goger > > The order distroboot searches for a boot.scr is fixed at compile time. > To make BIOS_DISABLE work as expected and boot from mmc1 instead of > mmc0 if enabled, we need to change the environment at runtime. > Especially as commit: 482cf22333 ("rockchip: rk3399-puma: add

Re: [U-Boot] [U-Boot, 1/1] rockchip: doc: clarify usage of CONFIG_SPL_ROCKCHIP_BACK_TO_BROM

2018-07-13 Thread Philipp Tomsich
> Change the description relating to CONFIG_SPL_ROCKCHIP_BACK_TO_BROM to > clarify that both RK3288 and RK3036 use > > CONFIG_SPL_ROCKCHIP_BACK_TO_BROM=y > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass > --- > doc/README.rockchip | 8 > 1 file changed, 4

Re: [U-Boot] [U-Boot, v1, 1/4] spl: record boot_device into spl_image and call spl_perform_fixups

2018-07-13 Thread Philipp Tomsich
> On some boards, we want to give the board/architecture-specific code a > chance to look at where the next image has been loaded from and > perform fixups before starting the next image. This is of particular > importance, when we probe multiple devices for bootable payloads and > boot the first

Re: [U-Boot] [U-Boot, v1, 2/4] spl: document 'chosen/u-boot, spl-boot-device'

2018-07-13 Thread Philipp Tomsich
> To let the full U-Boot know where it was booted from (i.e. which of > the entries in /chosen/u-boot,spl-boot-order' contained a valid > image), we define (and document) /chosen/u-boot,spl-boot-device as the > property that could/should automatically be injected by SPL. > > This commit only

Re: [U-Boot] [U-Boot, v1, 3/4] rockchip: rk3399: inject 'u-boot, spl-boot-device' for next-stage

2018-07-13 Thread Philipp Tomsich
> This implements the new 'spl_perform_fixups' hook for RK3399-based > boards and injects the /chosen/u-boot,spl-boot-device with an ofpath > corresponding to the boot device used. > > The intended usage is for the full U-Boot stage to evaluate this in > scripts and then adapt its boot-order when

Re: [U-Boot] rockchip: board: lion-rk3368: increase phy autonegotiation timeout

2018-07-13 Thread Philipp Tomsich
> The first dhcp command consistently fails with a timeout when > the lion-rk3368 board is connected to a Zyxel GS1100-24E > Gigabit Ethernet switch: > > ethernet@ff29 Waiting for PHY auto negotiation to complete. > TIMEOUT ! > > Increasing PHY_ANEG_TIMEOUT from the default 4000

Re: [U-Boot] [U-Boot, v2] rockchip: i2c: enable new I2C controller for rk3066 and rk3188

2018-07-13 Thread Philipp Tomsich
> rk3066 and rk3188 has two I2C controller implementations. > Current I2C driver wan't work with legacy implementation. > Switching between controllers is performed using a bit inside > GFR_SOC_CON1 register. The bit setting is performed by pinctrl > driver. The patch ask pinctrl to do settings. >

Re: [U-Boot] rockchip: rk3188: add rk_board_late_init() hook

2018-07-13 Thread Philipp Tomsich
> All other rockchip boards have rk_board_late_init() hook, > so add it to rk3188 boards also. > > Signed-off-by: Alexander Kochetkov > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > arch/arm/mach-rockchip/rk3188-board.c |7 ++- > 1 file changed, 6 insertions(+), 1

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
2018-07-13 19:18 GMT+09:00 Marek Vasut : > On 07/13/2018 12:09 PM, Masahiro Yamada wrote: >> Hi Marek >> >> 2018-07-13 17:56 GMT+09:00 Marek Vasut : >>> On 07/13/2018 10:23 AM, Masahiro Yamada wrote: Hi Marek, 2018-07-13 16:59 GMT+09:00 Marek Vasut : > On 07/13/2018 07:13 AM,

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Marek Vasut
On 07/13/2018 12:09 PM, Masahiro Yamada wrote: > Hi Marek > > 2018-07-13 17:56 GMT+09:00 Marek Vasut : >> On 07/13/2018 10:23 AM, Masahiro Yamada wrote: >>> Hi Marek, >>> >>> 2018-07-13 16:59 GMT+09:00 Marek Vasut : On 07/13/2018 07:13 AM, Masahiro Yamada wrote: > 2018-07-12 21:51

Re: [U-Boot] [Bug & Question] ubifs does not understand ".." in file path ?

2018-07-13 Thread Richard Weinberger
Marek, Am Freitag, 13. Juli 2018, 10:53:48 CEST schrieb Marek Vasut: > On 07/13/2018 10:15 AM, Richard Weinberger wrote: > > Am Freitag, 13. Juli 2018, 10:00:23 CEST schrieb Marek Vasut: > >> CCing Richard, btw ubifs in U-Boot is completely broken. > > > > BTW: Can you please define "completely

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
Hi Marek 2018-07-13 17:56 GMT+09:00 Marek Vasut : > On 07/13/2018 10:23 AM, Masahiro Yamada wrote: >> Hi Marek, >> >> 2018-07-13 16:59 GMT+09:00 Marek Vasut : >>> On 07/13/2018 07:13 AM, Masahiro Yamada wrote: 2018-07-12 21:51 GMT+09:00 Marek Vasut : > On 06/20/2018 09:14 AM, Masahiro

Re: [U-Boot] [PATCH 1/3] dfu: Fix data abort in dfu_free_entities()

2018-07-13 Thread Lukasz Majewski
Hi Sam, > The story of this change goes further... Just checked the reason, the > bug was introduced here [1]. So we can either use my patch (which adds > corresponding comment to ensure we won't "fix" it later), or the whole > design of dfu_config_entities() vs dfu_free_entities() should be >

Re: [U-Boot] [PATCH 3/3] dfu: Provide more verbose error message

2018-07-13 Thread Lukasz Majewski
Hi Sam, > It might be useful for user to see some human-readable root cause > message in addition to "configuration failed" message, so that the > issue can be fixed quickly. > > Signed-off-by: Sam Protsenko > --- > drivers/dfu/dfu.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [U-Boot] [PATCH v2 1/1] Fix README for Khadas VIM board

2018-07-13 Thread Neil Armstrong
On 13/07/2018 11:36, Loic Devulder wrote: > Explicitly add 'python' call for 'acs_tool.pyc', to avoid failed > execution on some OSes. > > Signed-off-by: Loic Devulder > > diff --git a/board/amlogic/khadas-vim/README b/board/amlogic/khadas-vim/README > index 7eaca724f8..2f30831436 100644 > ---

Re: [U-Boot] [PATCH 2/3] dfu: Fix memory leak in dfu_init_env_entities()

2018-07-13 Thread Lukasz Majewski
Hi Sam, > In case of error in dfu_init_env_entities(), env_bkp will leak. Fix it > by providing single return path. > > Signed-off-by: Sam Protsenko > --- > drivers/dfu/dfu.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c

Re: [U-Boot] [PATCH 1/3] dfu: Fix data abort in dfu_free_entities()

2018-07-13 Thread Lukasz Majewski
Hi Sam, > In case of error in dfu_config_entities(), it frees "dfu" array, which > leads to "data abort" in dfu_free_entities(), which tries to free the > same array (and even tries to access it from linked list first). The > issue occurs e.g. when partition table on device does not match >

[U-Boot] [PATCH v2 0/1] Fix README for Khadas VIM board

2018-07-13 Thread Loic Devulder
This patch explicitly add 'python' call for 'acs_tool.pyc', to avoid failed execution on some OSes. Change since v1: - remove USB addition, already done by Neil Armstrong - only let the 'python' addition in the README file Loic Devulder (1): Fix README for Khadas VIM board

[U-Boot] [PATCH v2 1/1] Fix README for Khadas VIM board

2018-07-13 Thread Loic Devulder
Explicitly add 'python' call for 'acs_tool.pyc', to avoid failed execution on some OSes. Signed-off-by: Loic Devulder diff --git a/board/amlogic/khadas-vim/README b/board/amlogic/khadas-vim/README index 7eaca724f8..2f30831436 100644 --- a/board/amlogic/khadas-vim/README +++

Re: [U-Boot] [PATCH 4/4 v2] arm64: ls1012a: enable DM support for sata

2018-07-13 Thread Andy Tang
Hi York, Sorry it is my fault. I resent this patch set with this issue fixed. I also found 1/4 patch can't be applied probably because the code base has changed. The new patch set I sent is based on the latest code. Please reapply them, thanks. Regards, Andy -Original Message- From:

[U-Boot] [PATCH 4/4 v3] arm64: ls1012a: enable DM support for sata

2018-07-13 Thread andy . tang
From: Yuantian Tang Enable related configs to support sata DM feature. Signed-off-by: Tang Yuantian --- v3: - no changes v2: - add 2g5rdb and qds board support configs/ls1012a2g5rdb_qspi_defconfig |6 +- configs/ls1012aqds_qspi_defconfig |7 ++-

[U-Boot] [PATCH 2/4 v3] armv8: dts: fsl-ls1012a: add sata node support

2018-07-13 Thread andy . tang
From: Yuantian Tang One ls1012a, there is one SATA 3.0 advanced host controller interface which is a high-performance SATA solution that delivers comprehensive and fully-compliant generation 3 (1.5 Gb/s - 6.0 Gb/s) serial ATA capabilities, in accordance with the serial ATA revision 3.0 of Serial

[U-Boot] [PATCH 3/4 v3] scsi: ceva: add ls1012a soc support

2018-07-13 Thread andy . tang
From: Yuantian Tang Make the code structure more general so that more socs can be added easily and also remove speed limitation restriction. Add the ls1012a sata support as well. Signed-off-by: Tang Yuantian Reviewed-by: Michal Simek Tested-by: Michal Simek (with and without

[U-Boot] [PATCH 1/4 v3] armv8: fsl: remove sata support

2018-07-13 Thread andy . tang
From: Yuantian Tang Remove the old implementation in order to enable DM for sata Signed-off-by: Tang Yuantian --- v3: - rebase to latest code v2: - no changes arch/arm/cpu/armv8/fsl-layerscape/soc.c| 54

Re: [U-Boot] [PATCH v3] u-boot: remove driver lookup loop from env_save()

2018-07-13 Thread Nicholas
On ven, 2018-07-13 at 11:15 +0200, Simon Goldschmidt wrote: > > On 13.07.2018 11:03, Nicholas Faustini wrote: > > > > When called with ENVOP_SAVE, env_get_location() only returns the > > gd->env_load_location variable without actually checking for > > the environment location and priority. > >

Re: [U-Boot] [PATCH v3] u-boot: remove driver lookup loop from env_save()

2018-07-13 Thread Simon Goldschmidt
On 13.07.2018 11:03, Nicholas Faustini wrote: When called with ENVOP_SAVE, env_get_location() only returns the gd->env_load_location variable without actually checking for the environment location and priority. This behaviour causes env_save() to fall into an infinite loop when the low-level

[U-Boot] [PATCH] sysreset: Add support for gpio-restart

2018-07-13 Thread Michal Simek
The Linux kernel has binding for gpio-restart node. This patch is adding basic support without supporting any optional properties. This driver was tested on Microblaze system where gpio is connected to SoC reset logic. Output value is handled via gpios cells values. In gpio_reboot_request()

Re: [U-Boot] [PATCH v6 6/6] configs: Bananapi_M2_Ultra: enable gigabit ethernet

2018-07-13 Thread Maxime Ripard
On Fri, Jul 13, 2018 at 10:45:30AM +0200, Lothar Felten wrote: > Enable the gigabit ethernet for the Bananapi M2 Ultra board. > Tested on BananaPi M2 Berry (R40), custom board (V40) > > Reviewed-by: Joe Hershberger > Signed-off-by: Lothar Felten Acked-by: Maxime Ripard Maxime -- Maxime

[U-Boot] [PATCH 5/6] driver: net: fsl-mc: initialize dpmac irrespective of phy

2018-07-13 Thread Pankaj Bansal
The dpmac initalization should not depend on phy. As the phy is not necessary to be present for dpmac to function. Therefore, remove dpmac initialization dependency from phy. Signed-off-by: Pankaj Bansal --- drivers/net/fsl-mc/mc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-)

[U-Boot] [PATCH 4/6] driver: net: fsl-mc: Modify the dpmac link detection method

2018-07-13 Thread Pankaj Bansal
when there is no phy present for a dpmac, a dummy phy device is created. when we move to multiple phy method, we need to create as many dummy phy devices. Change this method so that we don't need to create dummy phy devices. We always report linkup if no phy is present. Signed-off-by: Pankaj

[U-Boot] [PATCH 6/6] driver: net: fsl-mc: Add support of multiple phys for dpmac

2018-07-13 Thread Pankaj Bansal
Till now we have had cases where we had one phy device per dpmac. Now, with the upcoming products (LX2160AQDS), we have cases, where there are sometimes two phy devices for one dpmac. One phy for TX lanes and one phy for RX lanes. to handle such cases, add the support for multiple phys in ethernet

[U-Boot] [PATCH 3/6] driver: net: fsl-mc: fix error handing in init_phy

2018-07-13 Thread Pankaj Bansal
if an error occurs during init_phy, we should free the phydev structure which has been allocated by phy_connect. Signed-off-by: Pankaj Bansal --- drivers/net/ldpaa_eth/ldpaa_eth.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c

[U-Boot] [PATCH 1/6] driver: net: fsl-mc: modify the label name

2018-07-13 Thread Pankaj Bansal
The goto label name is misspelled it should be DPMAC not DPAMC Signed-off-by: Pankaj Bansal --- drivers/net/ldpaa_eth/ldpaa_eth.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c index

[U-Boot] [PATCH v3 2/6] driver: net: fsl-mc: remove unused strcture elements

2018-07-13 Thread Pankaj Bansal
The phydev structure is present in both ldpaa_eth_priv and wriop_dpmac_info. the phydev in wriop_dpmac_info is not being used As the phydev is created based on phy_addr and bus members of wriop_dpmac_info, it is appropriate to keep phydev in wriop_dpmac_info. Also phy_regs is not being used,

[U-Boot] [PATCH 0/6] driver: net: fsl-mc: Add support of multiple phys for dpmac

2018-07-13 Thread Pankaj Bansal
This patch set adds support of multiple phys for one dpmac Till now we have had cases where we had one phy device per dpmac. Now, with the upcoming products (LX2160AQDS), we have cases, where there are sometimes two phy devices for one dpmac. One phy for TX lanes and one phy for RX lanes. To

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

2018-07-13 Thread Marek Vasut
The following changes since commit 1612ff0dfba57b1002d8c7a54778eb553ace98f4: Merge branch 'master' of git://git.denx.de/u-boot-mips (2018-07-11 21:55:20 -0400) are available in the Git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetch changes up to

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Marek Vasut
On 07/13/2018 10:23 AM, Masahiro Yamada wrote: > Hi Marek, > > 2018-07-13 16:59 GMT+09:00 Marek Vasut : >> On 07/13/2018 07:13 AM, Masahiro Yamada wrote: >>> 2018-07-12 21:51 GMT+09:00 Marek Vasut : On 06/20/2018 09:14 AM, Masahiro Yamada wrote: > Hi Marek, Hi! >

[U-Boot] [PATCH v3] u-boot: remove driver lookup loop from env_save()

2018-07-13 Thread Nicholas Faustini
When called with ENVOP_SAVE, env_get_location() only returns the gd->env_load_location variable without actually checking for the environment location and priority. This behaviour causes env_save() to fall into an infinite loop when the low-level drv->save() call fails. The env_save() function

Re: [U-Boot] [Bug & Question] ubifs does not understand ".." in file path ?

2018-07-13 Thread Marek Vasut
On 07/13/2018 10:15 AM, Richard Weinberger wrote: > Am Freitag, 13. Juli 2018, 10:00:23 CEST schrieb Marek Vasut: >> CCing Richard, btw ubifs in U-Boot is completely broken. > > BTW: Can you please define "completely broken"? > > Last week it used to work here. ;) Did you fix it ? Last time we

[U-Boot] [PATCH v6 6/6] configs: Bananapi_M2_Ultra: enable gigabit ethernet

2018-07-13 Thread Lothar Felten
Enable the gigabit ethernet for the Bananapi M2 Ultra board. Tested on BananaPi M2 Berry (R40), custom board (V40) Reviewed-by: Joe Hershberger Signed-off-by: Lothar Felten --- Changelog: new in v2 v2 -> v3 remove unused CONFIG_SUN7I_GMAC v3 -> v4 include device tree node, enable ALDO2 v4

[U-Boot] [PATCH v6 4/6] net: sun8i-emac: support R40 GMAC

2018-07-13 Thread Lothar Felten
Add support for the GMAC found in the Allwinner R40/V40 SoC. The R40 GMAC interface is not controlled by the syscon register but has a separate configuration register in the CCU. The clock gate and reset bits are in a different register compared to the other SoCs supported by this driver. The

[U-Boot] [PATCH v6 5/6] sunxi: R40: add gigabit ethernet devicetree node

2018-07-13 Thread Lothar Felten
Add a device tree node for the Allwinner R40/V40 GMAC gigabit ethernet interface. The R40 SoC does not use the syscon register for GMAC settings. The gigabit ethernet interface can only be routed to a fixed set of pins. Updated to match the Linux kernel's device tree. Signed-off-by: Lothar Felten

[U-Boot] [PATCH v6 2/6] net: sun8i-emac: fix printing NULL character

2018-07-13 Thread Lothar Felten
If the variant is not set and therefore NULL, do not attempt to print the variant. Signed-off-by: Lothar Felten Acked-by: Maxime Ripard Acked-by: Joe Hershberger Reviewed-by: Jagan Teki Tested-by: Jagan Teki --- Changelog: new in v4 v4->v5->v6 none --- drivers/net/sun8i_emac.c | 3 +--

[U-Boot] [PATCH v6 3/6] net: sun8i-emac: set mux and clock by driver data

2018-07-13 Thread Lothar Felten
Use driver data->variant information to select device specific pin mux and phy clock settings. Suggested by Jagan Teki Reviewed-by: Jagan Teki Tested-by: Jagan Teki Signed-off-by: Lothar Felten --- Changelog: new in v3 v3 -> v4 use driver data to distinguish between variants v4 -> v5 ->

[U-Boot] [PATCH v6 1/6] sunxi: R40: add gigabit ethernet clocks

2018-07-13 Thread Lothar Felten
Add clock control entries for the gigabit interface of the Allwinner R40/V40 CPU Acked-by: Maxime Ripard Reviewed-by: Joe Hershberger Reviewed-by: Jagan Teki Tested-by: Jagan Teki Signed-off-by: Lothar Felten --- Changelog: new in v2 v2->v3->4->v5->v6: none ---

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Masahiro Yamada
Hi Marek, 2018-07-13 16:59 GMT+09:00 Marek Vasut : > On 07/13/2018 07:13 AM, Masahiro Yamada wrote: >> 2018-07-12 21:51 GMT+09:00 Marek Vasut : >>> On 06/20/2018 09:14 AM, Masahiro Yamada wrote: Hi Marek, >>> >>> Hi! >>> 2018-06-20 13:43 GMT+09:00 Marek Vasut : > On 06/19/2018 08:39

Re: [U-Boot] [Bug & Question] ubifs does not understand ".." in file path ?

2018-07-13 Thread Richard Weinberger
Am Freitag, 13. Juli 2018, 10:00:23 CEST schrieb Marek Vasut: > CCing Richard, btw ubifs in U-Boot is completely broken. BTW: Can you please define "completely broken"? Last week it used to work here. ;) Thanks, //richard ___ U-Boot mailing list

Re: [U-Boot] [Bug & Question] ubifs does not understand ".." in file path ?

2018-07-13 Thread Richard Weinberger
Am Freitag, 13. Juli 2018, 10:00:23 CEST schrieb Marek Vasut: > On 07/13/2018 09:44 AM, Heiko Schocher wrote: > > Hello Masahiro, > > > > Am 13.07.2018 um 06:44 schrieb Masahiro Yamada: > >> Hi. > >> > >> > >> I was playing around with the ditro-boot on NAND + UBI. > >> > >> I was hit by a

[U-Boot] [PATCH] mx25: fix the offset between the USB ports' registers

2018-07-13 Thread Martin Kaiser
From: Martin Kaiser The USBOH module on imx25 chips contains two USB controllers, which are called USB OTG Controller and USB Host Controller. Each one has its EHCI root hub. The OTG Controller's EHCI registers start at offset 0, the Host Controller's registers start at offset 0x400. We set

Re: [U-Boot] [Bug & Question] ubifs does not understand ".." in file path ?

2018-07-13 Thread Marek Vasut
On 07/13/2018 09:44 AM, Heiko Schocher wrote: > Hello Masahiro, > > Am 13.07.2018 um 06:44 schrieb Masahiro Yamada: >> Hi. >> >> >> I was playing around with the ditro-boot on NAND + UBI. >> >> I was hit by a problem when loading files from ubifs. >> >> >> My 'extlinux.conf' script looks like

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-13 Thread Marek Vasut
On 07/13/2018 07:13 AM, Masahiro Yamada wrote: > 2018-07-12 21:51 GMT+09:00 Marek Vasut : >> On 06/20/2018 09:14 AM, Masahiro Yamada wrote: >>> Hi Marek, >> >> Hi! >> >>> 2018-06-20 13:43 GMT+09:00 Marek Vasut : On 06/19/2018 08:39 AM, Masahiro Yamada wrote: > Hi Marek, Hi,

Re: [U-Boot] [Bug & Question] ubifs does not understand ".." in file path ?

2018-07-13 Thread Heiko Schocher
Hello Masahiro, Am 13.07.2018 um 06:44 schrieb Masahiro Yamada: Hi. I was playing around with the ditro-boot on NAND + UBI. I was hit by a problem when loading files from ubifs. My 'extlinux.conf' script looks like this: - menu title UniPhier Boot Options.

Re: [U-Boot] [RFC PATCH v2] u-boot: remove driver lookup loop from env_save()

2018-07-13 Thread Simon Goldschmidt
On 12.07.2018 14:32, Nicholas wrote: On gio, 2018-07-12 at 13:02 +0200, Simon Goldschmidt wrote: On 12.07.2018 12:52, Nicholas Faustini wrote: When called with ENVOP_SAVE, env_get_location() only returns the gd->env_load_location variable without actually checking for the environment

Re: [U-Boot] [PATCH 01/11] fdt: Add device tree memory bindings

2018-07-13 Thread Michal Simek
Hi Simon, On 9.7.2018 21:50, Simon Glass wrote: > On 11 June 2018 at 13:07, Simon Glass wrote: >> >> From: Michael Pratt >> >> Support a default memory bank, specified in reg, as well as >> board-specific memory banks in subtree board-id nodes. >> >> This allows memory information to be

Re: [U-Boot] [PATCH v3 1/4] lib: fdtdec: Add new variable ram_start to global data

2018-07-13 Thread Michal Simek
On 18.6.2018 08:18, Siva Durga Prasad Paladugu wrote: > Added new variable ram_start to global data structure for holding > the start address of first bank of RAM, and then use this ram_start > for calculating ram_top properly. This patch fixes the erroneous > calculation of ram_top incase of non

<    1   2