Re: [U-Boot] [linux-sunxi] [PATCH v2 00/13] Allwinner H6 support (w/ SPL)

2018-07-26 Thread Jagan Teki
On Sat, Jul 21, 2018 at 1:50 PM, Icenowy Zheng wrote: > This patchset trys to add support for Allwinner H6 SoC to U-Boot. > > Allwinner H6 is a quite new Allwinner SoC, with several parts changed a > lot (memory map, DRAM controller, CCU, so on). The position which SPL > will be loaded (SRAM A1) a

Re: [U-Boot] [linux-sunxi] [PATCH v2 00/13] Allwinner H6 support (w/ SPL)

2018-07-26 Thread Icenowy Zheng
于 2018年7月26日 GMT+08:00 下午3:02:50, Jagan Teki 写到: >On Sat, Jul 21, 2018 at 1:50 PM, Icenowy Zheng wrote: >> This patchset trys to add support for Allwinner H6 SoC to U-Boot. >> >> Allwinner H6 is a quite new Allwinner SoC, with several parts changed >a >> lot (memory map, DRAM controller, CCU, s

Re: [U-Boot] [PATCH v2 1/8] Enable CONFIG_BLK and CONFIG_DM_MMC to Kconfig

2018-07-26 Thread Yinbo Zhu
-Original Message- From: York Sun Sent: 2018年7月17日 22:52 To: Yinbo Zhu ; u-boot@lists.denx.de Cc: Y.b. Lu ; Xiaobo Xie Subject: Re: [PATCH v2 1/8] Enable CONFIG_BLK and CONFIG_DM_MMC to Kconfig On 07/17/2018 03:50 AM, Yinbo Zhu wrote: > > > -Original Message- > From: York Sun

[U-Boot] [PATCH] Makefile: Fix make clean with DocBook

2018-07-26 Thread Jagan Teki
doc/DocBook has removed in below commit "doc: Replace DocBook with sphinx-based docs" (sha1: 78a88f7930becb78afef09c1237a8e4edc1b01e1) and missed to remove it from clean-dirs, otherwise 'make clean' shows an error as below. $ make clean scripts/Makefile.clean:15: doc/DocBook/Makefile: No such fil

Re: [U-Boot] [PATCH v4 00/27] SPI-NAND support

2018-07-26 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Thu, 26 Jul 2018 11:00:56 +0530: > On Fri, Jul 13, 2018 at 6:01 PM, Miquel Raynal > wrote: > > During the last months, Boris Brezillon shared his work to support > > serial flashes within Linux. First, he delivered (and merged) a new > > layer called spi-mem. He al

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

2018-07-26 Thread Marek Vasut
The following changes since commit 323a73adc9a1bf2de43fe03bdd9c3038ce7c2784: mtd: nand: add new enum for storing ECC algorithm (2018-07-23 14:33:21 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to a6759e3dfca217ba8cc518edcd

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

2018-07-26 Thread Marek Vasut
The following changes since commit 323a73adc9a1bf2de43fe03bdd9c3038ce7c2784: mtd: nand: add new enum for storing ECC algorithm (2018-07-23 14:33:21 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to 67f1c59f40fde73cb2cbb51eb

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

2018-07-26 Thread Marek Vasut
The following changes since commit 323a73adc9a1bf2de43fe03bdd9c3038ce7c2784: mtd: nand: add new enum for storing ECC algorithm (2018-07-23 14:33:21 -0400) are available in the Git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetch changes up to 64eeb1585428b71e29022

[U-Boot] [PATCH 0/3] Example of using generic FS loader with FPGA manager

2018-07-26 Thread tien . fong . chee
From: Tien Fong Chee The purpose of this patchset provides example of using the generic FS loader which is currently under review at /data/tfchee/a10_upstreaming/mainstream/17_1_18/patches/firmware_loader_usage . Basically, the whole machanism is working in two ways: 1. SPL -> spl_board_init ->

[U-Boot] [PATCH 1/3] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA loadfs

2018-07-26 Thread tien . fong . chee
From: Tien Fong Chee Add FPGA drivers to support FPGA loadfs to program FPGA. The drivers are designed based on generic firmware loader framework, specific firmware loader handling is defined in fpga_manager_arria10.c. These drivers can handle FPGA program operation from loading RBF image in flas

[U-Boot] [PATCH 3/3] arm: socfpga: Add Arria 10 SoCFPGA programming interface

2018-07-26 Thread tien . fong . chee
From: Tien Fong Chee Add code necessary into the FPGA driver framework in U-Boot so it can be used via the 'fpga' command for programing Arria 10 SoCFPGA. Signed-off-by: Tien Fong Chee --- cmd/fpga.c|2 +- drivers/fpga/altera.c | 41 +

[U-Boot] [PATCH 2/3] enable fpga loadfs

2018-07-26 Thread tien . fong . chee
From: Tien Fong Chee Signed-off-by: Tien Fong Chee --- arch/arm/dts/socfpga_arria10.dtsi| 12 arch/arm/dts/socfpga_arria10_socdk_sdmmc.dts |6 ++ configs/socfpga_arria10_defconfig| 12 3 files changed, 30 insertions(+), 0 deletions(-

Re: [U-Boot] [PATCH 2/3] enable fpga loadfs

2018-07-26 Thread Marek Vasut
On 07/26/2018 09:54 AM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Signed-off-by: Tien Fong Chee > --- > arch/arm/dts/socfpga_arria10.dtsi| 12 > arch/arm/dts/socfpga_arria10_socdk_sdmmc.dts |6 ++ > configs/socfpga_arria10_defconfig

Re: [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-26 Thread Michal Simek
On 25.7.2018 21:17, Stefan Herbrechtsmeier wrote: > Hi Michal, > > Am 25.07.2018 um 08:07 schrieb Michal Simek: >> On 24.7.2018 21:39, Stefan Herbrechtsmeier wrote: >>> Am 24.07.2018 um 10:37 schrieb Michal Simek: On 23.7.2018 20:29, Stefan Herbrechtsmeier wrote: > Am 23.07.2018 um 11:08

Re: [U-Boot] [U-Boot, 1/2] env: Include bootdelay in environment if negative

2018-07-26 Thread Alex Kiernan
On Fri, Jul 20, 2018 at 11:34 PM Tom Rini wrote: > > On Thu, Jul 05, 2018 at 12:38:15PM +, Alex Kiernan wrote: > > > The test for (CONFIG_BOOTDELAY >= 0) has been in U-Boot since the > > beginning, but the meaning of it has changed over time. Allow the > > default to be set for any value, incl

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Not read output values via regs

2018-07-26 Thread Michal Simek
On 25.7.2018 20:21, Stefan Herbrechtsmeier wrote: > Am 25.07.2018 um 08:39 schrieb Michal Simek: >> On 24.7.2018 21:56, Stefan Herbrechtsmeier wrote: >>> Am 24.07.2018 um 12:31 schrieb Michal Simek: On 23.7.2018 20:42, Stefan Herbrechtsmeier wrote: > Am 23.07.2018 um 13:43 schrieb Michal S

Re: [U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-26 Thread Michal Simek
On 25.7.2018 18:03, Tom Rini wrote: > On Wed, Jul 25, 2018 at 09:47:17AM -0600, Simon Glass wrote: >> Hi, >> >> On 25 July 2018 at 03:48, Michal Simek wrote: >>> >>> On 25.7.2018 08:31, Chee, Tien Fong wrote: On Wed, 2018-07-18 at 16:48 +0200, Michal Simek wrote: > On 6.7.2018 10:28, tien

Re: [U-Boot] [PATCH v4 8/8] armv8: ls1046a: setup SEC ICIDs and fix up device tree

2018-07-26 Thread Laurentiu Tudor
Hi Horia, Thanks for having a look. Comments inline. On 25.07.2018 20:55, Horia Geanta wrote: > On 7/24/2018 5:05 PM, laurentiu.tu...@nxp.com wrote: >> From: Laurentiu Tudor >> >> Add support for SEC ICID configuration and apply it for ls1046a. >> Also add code to make the necessary device tree

Re: [U-Boot] [PATCH 3/3] arm: socfpga: Add Arria 10 SoCFPGA programming interface

2018-07-26 Thread Michal Simek
On 26.7.2018 09:54, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Add code necessary into the FPGA driver framework in U-Boot > so it can be used via the 'fpga' command for programing Arria 10 > SoCFPGA. > > Signed-off-by: Tien Fong Chee > --- > cmd/fpga.c|2 +- >

Re: [U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-26 Thread Chee, Tien Fong
On Wed, 2018-07-25 at 11:48 +0200, Michal Simek wrote: > On 25.7.2018 08:31, Chee, Tien Fong wrote: > > > > On Wed, 2018-07-18 at 16:48 +0200, Michal Simek wrote: > > > > > > On 6.7.2018 10:28, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee > > > > > > > > This i

[U-Boot] [PATCH 1/2] linux/mii.h: Sync with Linux kernel v4.17

2018-07-26 Thread Bin Meng
This syncs U-Boot's include/linux/mii.h with Linux kernel v4.17 include/uapi/linux/mii.h. While we are here, this also fixes some style issues. Signed-off-by: Bin Meng --- include/linux/mii.h | 126 1 file changed, 69 insertions(+), 57 delet

[U-Boot] [PATCH 2/2] linux/mdio.h: Sync with Linux kernel v4.17

2018-07-26 Thread Bin Meng
This syncs U-Boot's include/linux/mdio.h with Linux kernel v4.17 include/uapi/linux/mdio.h. Signed-off-by: Bin Meng --- include/linux/mdio.h | 34 ++ 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/include/linux/mdio.h b/include/linux/mdio.h index

[U-Boot] [PATCH] linux/compat.h: Add netdev_### log macros

2018-07-26 Thread Bin Meng
Currently there are two ethernet drivers (mvneta.c and mvpp2.c) that has netdev_### (eg: netdev_dbg) log macros defined in its own driver file. This adds these log macros in a common place linux/compat.h. Signed-off-by: Bin Meng --- drivers/net/mvneta.c | 8 drivers/net/mvpp2.c|

Re: [U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-26 Thread Michal Simek
On 26.7.2018 11:23, Chee, Tien Fong wrote: > On Wed, 2018-07-25 at 11:48 +0200, Michal Simek wrote: >> On 25.7.2018 08:31, Chee, Tien Fong wrote: >>> >>> On Wed, 2018-07-18 at 16:48 +0200, Michal Simek wrote: On 6.7.2018 10:28, tien.fong.c...@intel.com wrote: > > > From: Tien

Re: [U-Boot] [PATCH 1/3] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA loadfs

2018-07-26 Thread Michal Simek
On 26.7.2018 09:54, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Add FPGA drivers to support FPGA loadfs to program FPGA. > The drivers are designed based on generic firmware loader framework, > specific firmware loader handling is defined in fpga_manager_arria10.c. > These drivers

Re: [U-Boot] [PATCH 3/3] rockchip: fix incorrect detection of ram size

2018-07-26 Thread Carlo Caione
On Tue, 2018-07-24 at 10:07 +0200, Dr. Philipp Tomsich wrote: > > I have a patchset for changing the relevant fields in U-Boot to allow > for 33bits (i.e. using u64) for the RAM size and it finally passes > Travis cleanly. > It will be another round or two of cleanup before I can submit the > seri

[U-Boot] [PATCH 0/3] Prepare for net: phy: prevent uclass_eth device "node" field overwriting

2018-07-26 Thread Joe Hershberger
Prepare for [1] so that it doesn't break the build for a bunch of boards. There are a number of reasons this series broke the build but none of them depend on changes in the series, so fix up those situations ahead of applying that series. [1] https://patchwork.ozlabs.org/cover/940104/ Joe Hersh

Re: [U-Boot] [PATCH v4 8/8] armv8: ls1046a: setup SEC ICIDs and fix up device tree

2018-07-26 Thread Horia Geanta
On 7/24/2018 5:05 PM, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > Add support for SEC ICID configuration and apply it for ls1046a. > Also add code to make the necessary device tree fixups. > Also included in this patch, while adding the new required JR > defines sanitize the preexi

Re: [U-Boot] [PATCH v3 5/5] sandbox: led: use new function to configure default state

2018-07-26 Thread Patrick Brünn
>From: Patrick Delaunay [mailto:patrick.delau...@st.com] >Sent: Dienstag, 24. Juli 2018 10:59 >Subject: [PATCH v3 5/5] sandbox: led: use new function to configure default >state > >Initialize the led with the default state defined in device tree >in board_init and solve issue with test for led defa

Re: [U-Boot] [PATCH v3 3/5] dm: led: move default state support in led uclass

2018-07-26 Thread Patrick Brünn
Hi Patrick, sorry, for responding so late, I am in the middle of a vacation at the moment. >From: Patrick Delaunay [mailto:patrick.delau...@st.com] >Sent: Dienstag, 24. Juli 2018 10:59 >Subject: [PATCH v3 3/5] dm: led: move default state support in led uclass > >This patch save common LED property

[U-Boot] [PATCH v2] rsa: Fix LibreSSL before v2.7.0

2018-07-26 Thread nomble
From: Caliph Nomble Fix LibreSSL compilation for versions before v2.7.0. Signed-off-by: Caliph Nomble --- Tested compilation on LibreSSL v2.7.4 and v2.6.4 with no new errors or warnings. Changes for v2: - fixed commit message conventions - fixed coding style lib/rsa/rsa-sign.c | 18 +

[U-Boot] [PATCH v3] mtd: add spi flash id s25fl128l

2018-07-26 Thread Clément Laigle
Add support for SPANSION s25fl128l Changes for v2: - Fix EXT_ID Changes for v3: - s25fl128l have only one version and no EXT_ID Signed-off-by: Clément Laigle Cc: Jagan Teki --- drivers/mtd/spi/spi_flash_ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi_flas

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

2018-07-26 Thread Tom Rini
On Wed, Jul 25, 2018 at 08:52:40AM +0900, Masahiro Yamada wrote: > Hi Tom, > > Please pull UniPhier updates + Kconfig warning fix. > > Thanks. > > > > The following changes since commit 323a73adc9a1bf2de43fe03bdd9c3038ce7c2784: > > mtd: nand: add new enum for storing ECC algorithm (2018-07

Re: [U-Boot] [PATCH] Makefile: Fix 'clean' target

2018-07-26 Thread Tom Rini
On Wed, Jul 25, 2018 at 11:40:30AM -0400, Tom Rini wrote: > Now that we have removed the DocBook files we need to not try and clean > that directory. > > Reported-by: ericywl > Fixes: 78a88f7930be ("doc: Replace DocBook with sphinx-based docs") > Signed-off-by: Tom Rini Applied to u-boot/maste

[U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, off-on-delay-us

2018-07-26 Thread Peng Fan
Add u-boot,off-on-delay-us for fixed regulator. Depends on board design, the gpio regulator sometimes connects with a big capacitance. When need to off, then on the regulator, if there is no enough delay, the voltage does not drop to 0, so introduce this property to handle such case. Signed-off-b

Re: [U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, off-on-delay-us

2018-07-26 Thread Fabio Estevam
Hi Tom, On Wed, Jul 25, 2018 at 12:25 PM, Tom Rini wrote: > I just yesterday consolidated into just doc/device-tree-bindings/ as > everything else was already in there. Excellent, I saw that Breno's patch has been applied. Thanks ___ U-Boot mailing l

[U-Boot] [PATCH] clk: clk_set_default: accept no-op skip fields

2018-07-26 Thread Neil Armstrong
The Assigned Clock parents and rates misses the fact that a "0" entry can be passed to skip setting a parent or rate of an assigned clock as described in the Linux clock bindings at [1]. This patch simply skips the clock reparenting if the DT parsing returns -ENOENT and the clock rate setting if "

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

2018-07-26 Thread Wolfgang Denk
Dear Sam, In message you wrote: > > Does this series look ok to you? Can you please review? Sorry for the delay. Hm... I wonder if we should handle patch 1/2 in the same way as done in 2/2, i. e. not remove the printf() in the error case, but turn it into a debug() ? Best regards, Wolfgang D

Re: [U-Boot] ext4: massive corruption with ext4write

2018-07-26 Thread Wolfgang Denk
Dear Aaron, In message <610.LK6WS1oxaM@awilliams-suse> you wrote: > ... > While mainline U-Boot does not support Octeon, we have our own fork of it > that > I maintain. I am using the 2018.07 release with only a few minor changes > around the periphery to support the older version of U-Boot

[U-Boot] [PATCH u-boot 1/2] power: domain: Add the VPU Power Domain driver

2018-07-26 Thread Neil Armstrong
The Amlogic Meson SoCs embeds a specific Power Domain dedicated to the Video Processing Unit. This patch implements support for this power domain in preparation of the future support for the Video display support in U-Boot. This driver will depend on changes in the clock driver to handle the setup

[U-Boot] [PATCH u-boot 0/2] Add the VPU Power Domain support

2018-07-26 Thread Neil Armstrong
The Amlogic Meson SoCs embeds a specific Power Domain dedicated to the Video Processing Unit. The first patch implements support for this power domain in preparation of the future support for the Video display support in U-Boot. The second patch adds changes in the clock driver to handle the setup

[U-Boot] [PATCH u-boot 2/2] clk: clk_meson: Add mux and div support for reparent and rate setting

2018-07-26 Thread Neil Armstrong
This patch adds support for : - Rate calculation through muxes and generic dividers - Basic gate setting propagation - Reparenting for muxes - Clock rate setting through generic dividers without reparenting Support is only added to the Composite VPU and VAPB clocks in order to support the Video Pr

Re: [U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, off-on-delay-us

2018-07-26 Thread Peng Fan
> -Original Message- > From: Peng Fan > Sent: 2018年7月26日 19:47 > To: s...@chromium.org; tr...@konsulko.com > Cc: yamada.masah...@socionext.com; u-boot@lists.denx.de; Peng Fan > > Subject: [PATCH V2] drivers: regulator: fixed: add u-boot,off-on-delay-us > > Add u-boot,off-on-delay-us for

[U-Boot] [PATCH 1/9] dm: allow 4GB of DRAM on 32bit systems

2018-07-26 Thread Philipp Tomsich
Even on 32bit systems a full 4GB of DRAM may be installed and reported by the DRAM controller. Whether these 4GB are larger available depends on the size/configuration of address decoding windows and architectural features (e.g. consider a hypothetical architecture that uses dedicated instructions

[U-Boot] [PATCH 0/9] Support 4GB of memory on 32bit systems

2018-07-26 Thread Philipp Tomsich
Even on 32bit systems a full 4GB of DRAM may be installed and reported by the DRAM controller. Whether these 4GB are larger available depends on the size/configuration of address decoding windows and architectural features. This increases the fields holding the RAM size to have at least 33bits (

[U-Boot] [PATCH 4/9] MIPS: use PRIx64 macros for printing ram size

2018-07-26 Thread Philipp Tomsich
With the recent changes of the underlying types for the ram size, we need to adjust the formatting. Use PRIx64 to print the (now) u64 field. Signed-off-by: Philipp Tomsich --- arch/mips/mach-bmips/dram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/mach-bmips/d

[U-Boot] [PATCH 9/9] mpc85xx: add casts for ram size in min() calculation.

2018-07-26 Thread Philipp Tomsich
With the change of the ram size fields to u64, we need to use explicit casts to ensure that min()-implementation sees the same type for both its arguments. Signed-off-by: Philipp Tomsich --- arch/powerpc/cpu/mpc85xx/cpu.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a

[U-Boot] [PATCH 5/9] rockchip: rk3368: change type of ram-size field for a min()-calculation

2018-07-26 Thread Philipp Tomsich
With the recent changes of the underlying types for the ram size, we need to cast the constant used in clamping to u64 instead of size_t. Signed-off-by: Philipp Tomsich --- drivers/ram/rockchip/dmc-rk3368.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ram/rockchip

[U-Boot] [PATCH 7/9] board: keymile: add explicit cast to truncate the 64bit ram size field

2018-07-26 Thread Philipp Tomsich
With the change to a 64bit ram size field for 32bit architectures, we need to add an explicit cast to truncate when converting to a pointer. This casts to 'void*' through 'uintptr_t'. Signed-off-by: Philipp Tomsich --- board/keymile/km_arm/km_arm.c | 6 -- 1 file changed, 4 insertions(+), 2

[U-Boot] [PATCH 8/9] board: cm_fx6: use PRIx64 macros for printing ram size

2018-07-26 Thread Philipp Tomsich
With the recent changes of the underlying types for the ram size, we need to adjust the formatting. Use PRIx64 to print the (now) u64 field. Signed-off-by: Philipp Tomsich --- board/compulab/cm_fx6/cm_fx6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/compulab/cm

[U-Boot] [PATCH 3/9] common: include always

2018-07-26 Thread Philipp Tomsich
With the ram-size variable changed to u64, we'll need appropriate macros for printing u64 values correctly either in 32bit builds (i.e. ILP32 models) or in 64bit builds (i.e. LP64 models). Best to make the PRIx64 macro available everywhere. This include inttypes.h from common.h to make the variou

[U-Boot] [PATCH 6/9] ram: stm32mp1: use PRIx64 macros for printing ram size

2018-07-26 Thread Philipp Tomsich
With the recent changes of the underlying types for the ram size, we need to adjust the formatting. Use PRIx64 to print the (now) u64 field. Signed-off-by: Philipp Tomsich --- arch/arm/mach-stm32mp/dram_init.c | 2 +- drivers/ram/stm32mp1/stm32mp1_ram.c | 2 +- 2 files changed, 2 insertions(

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

2018-07-26 Thread Maxime Ripard
On Thu, Jul 26, 2018 at 07:16:36AM +0200, Simon Goldschmidt wrote: > Simon, Maxime, > > any input on this? Via which tree would this be pushed? Should we CC Tom? > > It would be nice if 2018.09 had this bug fixed (endless loop in env_save() > on error). This looks good to me but Tom will probabl

[U-Boot] [PATCH 2/9] rockchip: support 4GB DRAM on 32bit systems

2018-07-26 Thread Philipp Tomsich
The calculation in `rockchip_sdram_size` would overflow for 4GB on 32bit systems (i.e. when PHYS_64BIT is not defined). This makes the internal variables and the signature prototype use a u64 to ensure that we can represent the 33rd bit (as in '4GB'). Signed-off-by: Philipp Tomsich --- arch/ar

[U-Boot] [PATCH v1 00/17] cmd: fpga: Fix fpga command handling and add some fpga tests

2018-07-26 Thread Michal Simek
Hi, We are using this framework for a while and by adding more and more features it requires small redesigned how commands are handled. This is something what I have put together to improve readability of this code and also remove code which is bogus and completely untested. The patch https://lis

[U-Boot] [PATCH v1 01/17] cmd: fpga: Remove fit image support passed without fpga device

2018-07-26 Thread Michal Simek
The patch applied in 2010 "cmd_fpga: cleanup help and check parameters" (sha1: a790b5b2326be9d7c9ad9e3d9b51a8bfabc62d07" was adding this checking + if (dev == FPGA_INVALID_DEVICE) { + puts("FPGA device not specified\n"); + op = FPGA_NONE; + } which simply b

[U-Boot] [PATCH v1 03/17] cmd: fpga: Move error handling to do_fpga()

2018-07-26 Thread Michal Simek
Clean fpga_get_op() error handling by moving checking/print to do_fpga. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v1: None cmd/fpga.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/fpga.c b/cmd/fpga.c index 791fe5cb7718..abe683720285 10

[U-Boot] [PATCH v1 04/17] cmd: fpga: Move fpga_get_op to avoid local function declaration

2018-07-26 Thread Michal Simek
Move fpga_get_op() to top of file to remove local function declaration and also remove useless retyping. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v1: None cmd/fpga.c | 85 ++ 1 file changed, 41 insertions(+

[U-Boot] [PATCH v1 06/17] cmd: fpga: Move parameter checking for loadfs/loads

2018-07-26 Thread Michal Simek
There is no reason to check parameters in separate switch before main one. This patch is simplifying error path and checking parameters right after assignment. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v1: None cmd/fpga.c | 44 +---

[U-Boot] [PATCH v1 07/17] cmd: fpga: Remove parameter checking from fpga loadfs command

2018-07-26 Thread Michal Simek
Parameter checking is dead code because all the time there must be all params assigned. If they are not assigned there is no 9th parameters passed and checking before return CMD_RET_USAGE. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v1: None cmd/fpga.c | 7 --- 1 f

[U-Boot] [PATCH v1 13/17] cmd: fpga: Fix loadmk command

2018-07-26 Thread Michal Simek
Convert loadmk command to fpga subcommands. Not all combinations are working but they have never worked properly. This will be fixed later. Signed-off-by: Michal Simek --- Changes in v1: None cmd/fpga.c | 238 - 1 file changed, 123 in

[U-Boot] [PATCH v1 17/17] MAINTAINERS: Add myself as the FPGA maintainer

2018-07-26 Thread Michal Simek
FPGA subsystem requires special care that's why it should be maintained via one tree. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v1: None MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b2c9717cb764..3d3cd855cc6a

[U-Boot] [PATCH v1 10/17] cmd: fpga: Extract fpga info command to separate function

2018-07-26 Thread Michal Simek
Move fpga info to U_BOOT_CMD_MKENT subcommand. Also use strtol instead of simple_strtoul. The reason is that if -1 is passed (or fpga info without "fpga" variable) the list of all fpgas is shown. This functionality is in the fpga core but it couldn't be performed. Signed-off-by: Michal Simek Revi

[U-Boot] [PATCH v1 09/17] cmd: fpga: Create new do_fpga_wrapper for using u-boot subcommands

2018-07-26 Thread Michal Simek
Create command wrapper to clean fpga subcommands. The function logic is taken from cmd_dm.c Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v1: None cmd/fpga.c | 42 -- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/c

[U-Boot] [PATCH v1 08/17] cmd: fpga: Clean wrong_parms handling

2018-07-26 Thread Michal Simek
There is no reason to check parameters in separate switch. Check them directly when they are read. Also there is no reason to check loadmk case separately because fpga_data address must be non zero too. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v1: None cmd/fpga.c |

[U-Boot] [PATCH v1 02/17] test/py: Extend fpga command to test all fpga load types

2018-07-26 Thread Michal Simek
Add support for info, load, loadp, loadb, loadbp, loadmk_legacy, loadmk_legacy_gz, loadmk_fit, loadfs also with variable support. There are probably missing failed tests. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v1: - Remove debug message checking (unfortunatelly we

[U-Boot] [PATCH v1 05/17] cmd: fpga: Cleanup error handling in connection to FPGA_NONE

2018-07-26 Thread Michal Simek
Incorrect command is already handled and FPGA_NONE should be used only one. In case of error CMD_RET_USAGE can be returned directly without any addition logic around. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v1: None cmd/fpga.c | 8 ++-- 1 file changed, 2 insert

[U-Boot] [PATCH v1 14/17] cmd: fpga: Add support for missing fpga loadmk commands

2018-07-26 Thread Michal Simek
Not all 4 fpga loadmk FIT image commands Signed-off-by: Michal Simek - New patch from RFC --- Changes in v1: None cmd/fpga.c | 55 +++ 1 file changed, 35 insertions(+), 20 deletions(-) diff --git a/cmd/fpga.c b/cmd/fpga.c index 9cb0116af734

[U-Boot] [PATCH v1 15/17] cmd: fpga: Use CMD_RET_FAILURE instead of simple 1

2018-07-26 Thread Michal Simek
Use standard return command failure macro. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v1: None cmd/fpga.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/fpga.c b/cmd/fpga.c index de9d19dd8e91..89fae86b8253 100644 --- a/cmd/fpga.

[U-Boot] [PATCH v1 11/17] cmd: fpga: Fix dump and all direct fpga load commands

2018-07-26 Thread Michal Simek
Separate dump, load, loadb, loadp and loadbp commands to separate functions to make it clear how they are called and what parameters they need. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v1: None Maybe they can be still groupped together with one switch/case but it can

[U-Boot] [PATCH v1 16/17] cmd: fpga: Fix loads command

2018-07-26 Thread Michal Simek
Convert last loads command to fpga subcommands. Signed-off-by: Michal Simek --- Changes in v1: None cmd/fpga.c | 148 +++-- 1 file changed, 36 insertions(+), 112 deletions(-) diff --git a/cmd/fpga.c b/cmd/fpga.c index 89fae86b8253..88a8e

[U-Boot] [PATCH v1 12/17] cmd: fpga: Fix loadfs command

2018-07-26 Thread Michal Simek
Convert loadfs command to fpga subcommands. Signed-off-by: Michal Simek --- Changes in v1: None cmd/fpga.c | 58 -- 1 file changed, 28 insertions(+), 30 deletions(-) diff --git a/cmd/fpga.c b/cmd/fpga.c index 9c715db80512..826f63371a66 1

Re: [U-Boot] [PATCH v2] rsa: Fix LibreSSL before v2.7.0

2018-07-26 Thread Jonathan Gray
On Wed, Jul 25, 2018 at 10:13:03PM -0400, nom...@palism.com wrote: > From: Caliph Nomble > > Fix LibreSSL compilation for versions before v2.7.0. > > Signed-off-by: Caliph Nomble > --- > Tested compilation on LibreSSL v2.7.4 and v2.6.4 with no new errors or > warnings. Builds on OpenBSD -curre

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

2018-07-26 Thread Tom Rini
On Thu, Jul 26, 2018 at 09:35:54AM +0200, Marek Vasut wrote: > The following changes since commit 323a73adc9a1bf2de43fe03bdd9c3038ce7c2784: > > mtd: nand: add new enum for storing ECC algorithm (2018-07-23 14:33:21 > -0400) > > are available in the Git repository at: > > git://git.denx.de/u

Re: [U-Boot] [PATCH v1 9/9] ARM: Odroid XU3: Modify Odroid XU3 config to boot by default from SD card

2018-07-26 Thread Anand Moon
Hi Lukasz, On 26 July 2018 at 03:55, Lukasz Majewski wrote: > This commit allows by default booting Odroid XU3 from the SD card (when > e.g. eMMC module is not present). > > Signed-off-by: Lukasz Majewski > > --- > > include/configs/odroid_xu3.h | 7 +-- > 1 file changed, 5 insertions(+), 2

[U-Boot] [PATCH] cmd/ubi.c: Fix format warning

2018-07-26 Thread Tom Rini
On 64bit platforms we would otherwise see: ../cmd/ubi.c: In function 'ubi_volume_read': ../cmd/ubi.c:359:16: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=] Fixes: 68c7025d99db ("cmd: ubi: print load size after est

Re: [U-Boot] [PATCH] cmd/ubi.c: Fix format warning

2018-07-26 Thread Martin Husemann
On Thu, Jul 26, 2018 at 11:32:25AM -0400, Tom Rini wrote: > - printf("Read %u bytes from volume %s to %p\n", size, volume, buf); > + printf("Read %zd bytes from volume %s to %p\n", size, volume, buf); Why make it signed? "%zu bytes" should be better. Martin ___

Re: [U-Boot] [PATCH] cmd/ubi.c: Fix format warning

2018-07-26 Thread Tom Rini
On Thu, Jul 26, 2018 at 05:36:01PM +0200, Martin Husemann wrote: > On Thu, Jul 26, 2018 at 11:32:25AM -0400, Tom Rini wrote: > > - printf("Read %u bytes from volume %s to %p\n", size, volume, buf); > > + printf("Read %zd bytes from volume %s to %p\n", size, volume, buf); > > Why make it signed

[U-Boot] [PATCHv2] cmd/ubi.c: Fix format warning

2018-07-26 Thread Tom Rini
On 64bit platforms we would otherwise see: ../cmd/ubi.c: In function 'ubi_volume_read': ../cmd/ubi.c:359:16: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=] Fixes: 68c7025d99db ("cmd: ubi: print load size after est

Re: [U-Boot] [PATCH v1 9/9] ARM: Odroid XU3: Modify Odroid XU3 config to boot by default from SD card

2018-07-26 Thread Lukasz Majewski
Hi Anand, > Hi Lukasz, > > On 26 July 2018 at 03:55, Lukasz Majewski wrote: > > This commit allows by default booting Odroid XU3 from the SD card > > (when e.g. eMMC module is not present). > > > > Signed-off-by: Lukasz Majewski > > > > --- > > > > include/configs/odroid_xu3.h | 7 +-- > >

[U-Boot] [PATCH] MAINTAINERS: Mark NAND as Orphaned

2018-07-26 Thread Tom Rini
Scott is no longer maintaining the NAND subsystem, mark as orphaned for now. Cc: Scott Wood Signed-off-by: Tom Rini --- Thanks again for your time and contributions Scott! --- MAINTAINERS| 4 ++-- doc/git-mailrc | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/MAINTAI

Re: [U-Boot] [PATCH 9/9] mpc85xx: add casts for ram size in min() calculation.

2018-07-26 Thread York Sun
On 07/26/2018 07:00 AM, Philipp Tomsich wrote: > With the change of the ram size fields to u64, we need to use explicit > casts to ensure that min()-implementation sees the same type for both > its arguments. > > Signed-off-by: Philipp Tomsich > --- > > arch/powerpc/cpu/mpc85xx/cpu.c | 6 --

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-26 Thread York Sun
On 07/25/2018 11:52 PM, Michal Simek wrote: > On 25.7.2018 23:18, York Sun wrote: >> On 07/24/2018 10:58 PM, Michal Simek wrote: >>> On 24.7.2018 18:26, York Sun wrote: On 07/24/2018 06:07 AM, Michal Simek wrote: > There is no reason to limit gzip usage only for OS_BOOT and kernel image >>

Re: [U-Boot] [PATCH] MAINTAINERS: Mark NAND as Orphaned

2018-07-26 Thread Scott Wood
On Thu, 2018-07-26 at 12:03 -0400, Tom Rini wrote: > Scott is no longer maintaining the NAND subsystem, mark as orphaned for > now. > > Cc: Scott Wood > Signed-off-by: Tom Rini > --- > Thanks again for your time and contributions Scott! > --- > MAINTAINERS| 4 ++-- > doc/git-mailrc | 3 +--

Re: [U-Boot] [PATCH] armv8: layerscape: Enable EHCI access for LS1012A

2018-07-26 Thread York Sun
On 07/25/2018 10:27 PM, Ran Wang wrote: > Hi York, > >> -Original Message- >> From: York Sun >> Sent: Tuesday, July 24, 2018 23:40 >> To: Ran Wang ; Albert Aribaud >> >> Cc: u-boot@lists.denx.de >> Subject: Re: [PATCH] armv8: layerscape: Enable EHCI access for LS1012A >> >> On 07/10/2018

Re: [U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, off-on-delay-us

2018-07-26 Thread Tom Rini
On Thu, Jul 26, 2018 at 01:59:20PM +, Peng Fan wrote: > > -Original Message- > > From: Peng Fan > > Sent: 2018年7月26日 19:47 > > To: s...@chromium.org; tr...@konsulko.com > > Cc: yamada.masah...@socionext.com; u-boot@lists.denx.de; Peng Fan > > > > Subject: [PATCH V2] drivers: regulator

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-26 Thread Tom Rini
On Thu, Jul 26, 2018 at 04:23:14PM +, York Sun wrote: > On 07/25/2018 11:52 PM, Michal Simek wrote: > > On 25.7.2018 23:18, York Sun wrote: > >> On 07/24/2018 10:58 PM, Michal Simek wrote: > >>> On 24.7.2018 18:26, York Sun wrote: > On 07/24/2018 06:07 AM, Michal Simek wrote: > > There

Re: [U-Boot] doc: Replace DocBook with sphinx-based docs

2018-07-26 Thread York Sun
On 07/24/2018 05:44 AM, Tom Rini wrote: > On Tue, Jul 10, 2018 at 08:40:17AM +0200, Mario Six wrote: > >> The Linux kernel moved to sphinx-based documentation and got rid of the >> DocBook based documentation quite a while ago. Hence, the DocBook >> documentation for U-Boot should be converted as

Re: [U-Boot] doc: Replace DocBook with sphinx-based docs

2018-07-26 Thread Tom Rini
On Thu, Jul 26, 2018 at 05:58:24PM +, York Sun wrote: > On 07/24/2018 05:44 AM, Tom Rini wrote: > > On Tue, Jul 10, 2018 at 08:40:17AM +0200, Mario Six wrote: > > > >> The Linux kernel moved to sphinx-based documentation and got rid of the > >> DocBook based documentation quite a while ago. H

Re: [U-Boot] doc: Replace DocBook with sphinx-based docs

2018-07-26 Thread York Sun
On 07/26/2018 10:58 AM, York Sun wrote: > On 07/24/2018 05:44 AM, Tom Rini wrote: >> On Tue, Jul 10, 2018 at 08:40:17AM +0200, Mario Six wrote: >> >>> The Linux kernel moved to sphinx-based documentation and got rid of the >>> DocBook based documentation quite a while ago. Hence, the DocBook >>> do

Re: [U-Boot] [PATCH] linux/compat.h: Add netdev_### log macros

2018-07-26 Thread Joe Hershberger
On Thu, Jul 26, 2018 at 5:15 AM, Bin Meng wrote: > Currently there are two ethernet drivers (mvneta.c and mvpp2.c) that > has netdev_### (eg: netdev_dbg) log macros defined in its own driver > file. This adds these log macros in a common place linux/compat.h. > > Signed-off-by: Bin Meng Acked-by

Re: [U-Boot] [PATCH 1/2] linux/mii.h: Sync with Linux kernel v4.17

2018-07-26 Thread Joe Hershberger
On Thu, Jul 26, 2018 at 4:39 AM, Bin Meng wrote: > This syncs U-Boot's include/linux/mii.h with Linux kernel v4.17 > include/uapi/linux/mii.h. > > While we are here, this also fixes some style issues. > > Signed-off-by: Bin Meng Acked-by: Joe Hershberger

Re: [U-Boot] [PATCH 2/2] linux/mdio.h: Sync with Linux kernel v4.17

2018-07-26 Thread Joe Hershberger
On Thu, Jul 26, 2018 at 4:39 AM, Bin Meng wrote: > This syncs U-Boot's include/linux/mdio.h with Linux kernel v4.17 > include/uapi/linux/mdio.h. > > Signed-off-by: Bin Meng Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https:/

Re: [U-Boot] [PATCH] kconfig: Replace spaces with tabs

2018-07-26 Thread Joe Hershberger
On Tue, Jul 24, 2018 at 7:47 AM, Michal Simek wrote: > Trivial Kconfig cleanup. Use tabs instead of spaces. > > Signed-off-by: Michal Simek Reviewed-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 2/5] Kconfig: Replace spaces with tabs and missing newline

2018-07-26 Thread Joe Hershberger
On Mon, Jul 23, 2018 at 8:55 AM, Michal Simek wrote: > Trivial Kconfig cleanup. Use tabs instead of spaces and every Kconfig > entry should be separated by newline. > > Signed-off-by: Michal Simek Reviewed-by: Joe Hershberger ___ U-Boot mailing list U

Re: [U-Boot] [PATCH v2 4/5] dm: Change CMD_DM enabling

2018-07-26 Thread Joe Hershberger
On Mon, Jul 23, 2018 at 8:55 AM, 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. > > Signed-off-by:

Re: [U-Boot] [PATCH v2 5/5] Kconfig: Sort bool, default, select and imply options

2018-07-26 Thread Joe Hershberger
On Mon, Jul 23, 2018 at 8:55 AM, Michal Simek wrote: > Another round of sorting Kconfig entries aplhabetically. > > Signed-off-by: Michal Simek Reviewed-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-

[U-Boot] Pull request: u-boot-net.git master

2018-07-26 Thread Joe Hershberger
Hi Tom, All tests are passing: https://travis-ci.org/jhershbe/u-boot/builds/408198713 The following changes since commit 08fcdd332f3d6bc7842e21a97c80789d9233e147: Makefile: Fix 'clean' target (2018-07-26 07:12:31 -0400) are available in the git repository at: git://git.denx.de/u-boot-net.g

Re: [U-Boot] console: Remember if ctrlc is disabled in console_tstc()

2018-07-26 Thread Joe Hershberger
Hi Joe, https://patchwork.ozlabs.org/patch/938298/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] sandbox: eth-raw: Correct valid socket test in send/recv

2018-07-26 Thread Joe Hershberger
Hi Joe, https://patchwork.ozlabs.org/patch/938157/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git Thanks! -Joe ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

  1   2   3   >