[U-Boot] [PATCH 1/2] arm: dra7xx: Fix error path in iodelay recalibration

2019-09-30 Thread Lokesh Vutla
When an error is reported in __recalibrate_iodelay_start(), de-isolation of IO doesn't happen. Because of this, undefined behaviour is observed on many peripherals without any error. So make sure io is out of isolation at the end of iodelay recalibration. Reported-by: Richard Woodruff

Re: [U-Boot] [PATCH RFT v2 2/3] spi-nor: spi-nor-ids: Add entries for mt25q variants

2019-09-30 Thread Tudor.Ambarus
On 09/27/2019 07:43 AM, Vignesh Raghavendra wrote: > External E-Mail > > > Newer variants of mt25q* flashes support 4 Byte addressing opcodes. Add nit: "drop newer variants of" > entries for the same. These flashes have bit 6 set in 5th byte of READ ID > response. > > Signed-off-by: Vignesh

[U-Boot] [PATCH 2/2] arm: dra7xx: Hang on any failure during IOdelay recalibration

2019-09-30 Thread Lokesh Vutla
If there is any failure during IOdelay recalibration sequence, IOs are not guaranteed to behave as expected. So hang on any failure during the sequence. Signed-off-by: Lokesh Vutla --- arch/arm/mach-omap2/omap5/dra7xx_iodelay.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [U-Boot] [PATCH v2 3/3] spi-nor: spi-nor-ids: Add USE_FSR flag for mt25qu512a entry

2019-09-30 Thread Tudor.Ambarus
On 09/27/2019 07:43 AM, Vignesh Raghavendra wrote: > External E-Mail > > > mt25qu512a flash has Flag status register that indicates various errors > that may be encountered during erase/write operations. Therefore add > USE_FSR flag to the entry > n25q256 & 512 support flag status register

Re: [U-Boot] [PATCH RFT v2 1/3] spi-nor: spi-nor-ids: Disable SPI_NOR_4B_OPCODES for n25q512* and n25q256*

2019-09-30 Thread Tudor.Ambarus
On 09/27/2019 07:43 AM, Vignesh Raghavendra wrote: > External E-Mail > > > Older variants of n25q256* and n25q512* do not support 4 Byte stateless nit: drop "older variants of". Looks like the latest datasheet still require ENTER and EXIT 4-byte address mode commands. > addressing opcodes.

[U-Boot] [PATCH 22/41] common: Move mii_init() function out of common.h

2019-09-30 Thread Simon Glass
This function belongs in mii.h so move it over. Signed-off-by: Simon Glass --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 1 + drivers/net/fsl_mcdmafec.c | 1 + drivers/net/ldpaa_eth/ls1088a.c | 1 + drivers/net/ldpaa_eth/lx2160a.c | 1 + drivers/net/mcffec.c

[U-Boot] [PATCH 39/41] common: Move trap_init() out of common.h

2019-09-30 Thread Simon Glass
Move this function into the irq_legacy.h header file. Signed-off-by: Simon Glass --- arch/m68k/lib/traps.c | 1 + arch/mips/lib/traps.c | 1 + include/common.h | 1 - include/irq_legacy.h | 2 ++ 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/m68k/lib/traps.c

[U-Boot] [PATCH 36/41] common: Move board_get_usable_ram_top() out of common.h

2019-09-30 Thread Simon Glass
Move this function into init.h which seems to be designed for this sort of thing. Also update the header to declare struct global_data so that it can be included without global_data.h being needed. Signed-off-by: Simon Glass --- arch/arm/mach-mvebu/arm64-common.c| 1 +

[U-Boot] [PATCH 40/41] common: Drop get_endaddr()

2019-09-30 Thread Simon Glass
This is not used in U-Boot. Drop it. Signed-off-by: Simon Glass --- include/common.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/common.h b/include/common.h index e946e4d9b7f..64d0cf542e8 100644 --- a/include/common.h +++ b/include/common.h @@ -144,7 +144,6 @@ void

[U-Boot] [PATCH 33/41] common: Move enable/disable_interrupts out of common.h

2019-09-30 Thread Simon Glass
Move these two functions into the irq_legacy.h header file. Also move interrupt_handler_t as this is used by the irq_install_handler() function. Signed-off-by: Simon Glass --- arch/arc/lib/bootm.c | 1 + arch/arm/cpu/arm11/cpu.c | 1 +

[U-Boot] [PATCH v2 11/16] stm32mp1: activate DFU support and command MTD

2019-09-30 Thread Patrick Delaunay
Add support of DFU for MMC, MTD, RAM and MTD command. Signed-off-by: Patrick Delaunay --- Changes in v2: None configs/stm32mp15_basic_defconfig | 4 configs/stm32mp15_optee_defconfig | 4 configs/stm32mp15_trusted_defconfig | 4 3 files changed, 12 insertions(+) diff --git

[U-Boot] [PATCH v2 08/16] dfu: add partition support for MTD backend

2019-09-30 Thread Patrick Delaunay
Add the support of MTD partition for the MTD backend. The expected dfu_alt_info for one alternate on the mtd device : part partubi "partubi" also erase up to the end of the partition after write operation. For example: dfu_alt_info = "spl part 1;u-boot part 2; UBI partubi 3"

[U-Boot] [PATCH v1 0/3] reset: Add a managed API

2019-09-30 Thread Jean-Jacques Hiblot
This is the 3rd of a few series, the goal of which is to facilitate porting drivers from the linux kernel. Most of the series will be about adding managed API to existing infrastructure (GPIO, reset, phy,...) This particular series is about reset controllers. It adds a managed API, close to that

[U-Boot] [PATCH v1 2/3] drivers: reset: Add a managed API to get reset controllers from the DT

2019-09-30 Thread Jean-Jacques Hiblot
Add managed functions to get a reset_ctl from the device-tree, based on a name or an index. Also add a managed functions to get a reset_ctl_bulk (array of reset_ctl) from the device-tree. When the device is unbound, the reset controllers are automatically released and the data structure is freed.

[U-Boot] [PATCH v1 3/3] test: reset: Add tests for the managed API

2019-09-30 Thread Jean-Jacques Hiblot
The tests are basically the same as for the regular API. Except that the reset are initialized using the managed API, and no freed manually. Signed-off-by: Jean-Jacques Hiblot --- arch/sandbox/include/asm/reset.h | 1 + drivers/reset/sandbox-reset-test.c | 50 ++---

[U-Boot] [PATCH v1 1/3] drivers: reset: Handle gracefully NULL pointers

2019-09-30 Thread Jean-Jacques Hiblot
Prepare the way for a managed reset API by handling NULL pointers without crashing nor failing. Signed-off-by: Jean-Jacques Hiblot --- drivers/reset/reset-uclass.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/drivers/reset/reset-uclass.c

[U-Boot] [PATCH 16/41] common: Move serial functions out of common.h

2019-09-30 Thread Simon Glass
These functions belong in serial.h so move them over. Signed-off-by: Simon Glass --- arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 1 + board/amarula/vyasa-rk3288/vyasa-rk3288.c | 1 + board/astro/mcf5373l/mcf5373l.c| 1 + board/birdland/bav335x/board.c | 1 +

[U-Boot] [PATCH 13/41] common: Move env_get_ip() to net.h

2019-09-30 Thread Simon Glass
This function relates to networking, so move it out of the common.h header file. Signed-off-by: Simon Glass --- include/common.h | 4 include/net.h| 21 - 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/include/common.h b/include/common.h index

[U-Boot] [PATCH 28/41] common: Move some cache and MMU functions out of common.h

2019-09-30 Thread Simon Glass
These functions belong in cpu_legacy.h. Another option would be cache.h but that code uses driver model and we have not moved these cache functions to use driver model. Since they are CPU-related it seems reasonable to put them here. Move them over. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 07/41] crc: Fix code style with crc functions

2019-09-30 Thread Simon Glass
Some of these have a space before the bracket. Drop it to fix the style. Add some missing function comments while here. Note that u32 and u8 cannot be used here since crc.h is included on the host side. Signed-off-by: Simon Glass --- cmd/i2c.c| 2 +- include/u-boot/crc.h | 75

[U-Boot] [PATCH 23/41] common: Move some CPU functions out of common.h

2019-09-30 Thread Simon Glass
These functions belong in cpu_legacy.h since they do not use driver model. Move them over. Don't bother adding comments since these functions should be deleted. Signed-off-by: Simon Glass --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 1 + .../armv8/fsl-layerscape/fsl_lsch2_speed.c|

[U-Boot] [PATCH 21/41] common: Move get_ticks() function out of common.h

2019-09-30 Thread Simon Glass
This function belongs in time.h so move it over and add a comment. Signed-off-by: Simon Glass --- arch/arm/cpu/arm920t/ep93xx/timer.c| 1 + arch/arm/cpu/arm920t/imx/timer.c | 1 + arch/arm/cpu/arm926ejs/armada100/timer.c | 1 + arch/arm/cpu/arm926ejs/lpc32xx/timer.c

[U-Boot] [PATCH 26/41] common: Move some SMP functions out of common.h

2019-09-30 Thread Simon Glass
These functions belong in cpu_legacy.h so move them over. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/ls102xa/cpu.c| 1 + arch/arm/cpu/armv7/virt-v7.c| 1 + arch/arm/lib/bootm.c| 1 + arch/arm/mach-uniphier/arm32/psci.c | 1 +

[U-Boot] [PATCH 29/41] common: Drop checkicache() and checkdcache()

2019-09-30 Thread Simon Glass
These are used by only one arch and only within a single file. Drop the declarations from the common file. Signed-off-by: Simon Glass --- arch/powerpc/cpu/mpc8xx/cpu.c | 130 +- include/common.h | 2 - 2 files changed, 65 insertions(+), 67

[U-Boot] [PATCH 41/41] common: Move old EEPROM functions into a new header

2019-09-30 Thread Simon Glass
These functions do not use driver model but are still used. Move them to a new eeprom_legacy.h header file. Signed-off-by: Simon Glass --- board/atmel/common/mac_eeprom.c | 1 + board/compulab/common/eeprom.c| 1 + board/corscience/tricorder/tricorder-eeprom.c |

[U-Boot] [PATCH 3/3] video: mxsfb: set gd->fb_base

2019-09-30 Thread Sébastien Szymanski
Set gd->fb_base so it can be shown with bdinfo command. Signed-off-by: Sébastien Szymanski --- drivers/video/mxsfb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 6922a130c6..ce67f3f32b 100644 --- a/drivers/video/mxsfb.c +++

[U-Boot] [PATCH] imx: add support for i.MX8MQ power domain controller

2019-09-30 Thread Patrick Wildt
Add support for the power domain controller that's used on the i.MX8MQ. This will be needed to be able to power on the PCIe controller. Bindings taken from Linux, driver implementation taken from the i.MX8 power domain controller and adjusted for the i.MX8M SoC. Signed-off-by: Patrick Wildt

[U-Boot] Error when replacing SPI NOR Flash IC

2019-09-30 Thread RUSSELL Ryan
Hello All, We are currently having issues with a product after we replaced an obsolete SPI Flash IC with what we thought was a drop-in replacement part. Unfortunately we had this product designed by a third part company so I don't have all of the important details but I will try to get any

Re: [U-Boot] [PATCH 39/41] common: Move trap_init() out of common.h

2019-09-30 Thread Daniel Schwierzeck
On Mon, Sep 30, 2019 at 5:37 PM Simon Glass wrote: > > Hi Daniel, > > On Mon, 30 Sep 2019 at 09:13, Daniel Schwierzeck > wrote: > > > > On Mon, Sep 30, 2019 at 4:58 PM Simon Glass wrote: > > > > > > Move this function into the irq_legacy.h header file. > > > > > > Signed-off-by: Simon Glass >

Re: [U-Boot] [PATCH v2] arm: dts: sync dts for Allwinner H6

2019-09-30 Thread Jagan Teki
On Sat, Sep 28, 2019 at 2:54 AM Maxime Ripard wrote: > > Hi, > > On Fri, Sep 06, 2019 at 09:53:33AM +0200, Clément Péron wrote: > > Hi, > > > > On Sun, 25 Aug 2019 at 18:04, Clément Péron wrote: > > > > > > Sync Kernel DTS for Allwinner H6 boards. > > > > This sync avoid the random mac on the

Re: [U-Boot] [PATCH 39/41] common: Move trap_init() out of common.h

2019-09-30 Thread Tom Rini
On Mon, Sep 30, 2019 at 05:43:29PM +0200, Daniel Schwierzeck wrote: > On Mon, Sep 30, 2019 at 5:37 PM Simon Glass wrote: > > > > Hi Daniel, > > > > On Mon, 30 Sep 2019 at 09:13, Daniel Schwierzeck > > wrote: > > > > > > On Mon, Sep 30, 2019 at 4:58 PM Simon Glass wrote: > > > > > > > > Move

[U-Boot] [PATCH 37/41] common: Move some board functions out of common.h

2019-09-30 Thread Simon Glass
A number of board function belong in init.h with the others. Move them. Signed-off-by: Simon Glass --- arch/arm/cpu/armv8/fsl-layerscape/soc.c | 1 + arch/arm/mach-imx/mx6/opos6ul.c | 1 + arch/arm/mach-imx/mx6/soc.c | 1

[U-Boot] [PATCH 35/41] common: Drop board_show_dram()

2019-09-30 Thread Simon Glass
This function is not defined by any boards so the feature is not used. Drop it. Signed-off-by: Simon Glass --- cmd/mem.c| 9 ++--- include/common.h | 9 - 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/cmd/mem.c b/cmd/mem.c index c6b8038fc9d..545534b1fc7

[U-Boot] [PATCH 34/41] common: Move command functions out of common.h

2019-09-30 Thread Simon Glass
Move these functions into the command.h header file which is a better fit. Signed-off-by: Simon Glass --- arch/arm/mach-kirkwood/cpu.c| 1 + arch/sandbox/cpu/start.c| 1 + board/engicam/common/board.c| 1 + board/gdsys/a38x/keyprogram.c | 1

[U-Boot] [PATCH 25/41] common: Move checkcpu() out of common.h

2019-09-30 Thread Simon Glass
This function belongs in cpu.h so move it over. Signed-off-by: Simon Glass --- arch/powerpc/cpu/mpc83xx/cpu.c | 1 + arch/powerpc/cpu/mpc8xx/cpu.c| 1 + arch/sh/cpu/sh4/cpu.c| 1 + arch/x86/cpu/broadwell/cpu_from_spl.c| 1 +

[U-Boot] [PATCH 20/41] common: Move timer_get_us() function out of common.h

2019-09-30 Thread Simon Glass
This function belongs in time.h so move it over and update the comment style. Signed-off-by: Simon Glass --- include/common.h | 3 --- include/time.h | 7 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/common.h b/include/common.h index 091b54787f7..e68bed64078

[U-Boot] [PATCH] imx: add support for i.MX7/i.MX8MQ reset controller

2019-09-30 Thread Patrick Wildt
Add support for the reset controller that's used on the i.MX7D and i.MX8MQ. This will be needed to be able to assert the PCIe reset pins. Bindings taken from Linux, driver implementation mostly taken from Linux and adjusted to U-Boot infrastructure. Signed-off-by: Patrick Wildt diff --git

Re: [U-Boot] [PATCH 39/41] common: Move trap_init() out of common.h

2019-09-30 Thread Daniel Schwierzeck
On Mon, Sep 30, 2019 at 4:58 PM Simon Glass wrote: > > Move this function into the irq_legacy.h header file. > > Signed-off-by: Simon Glass > --- > > arch/m68k/lib/traps.c | 1 + > arch/mips/lib/traps.c | 1 + > include/common.h | 1 - > include/irq_legacy.h | 2 ++ > 4 files changed, 4

[U-Boot] [PATCH 2/3] opos6uldev: migrate to DM_VIDEO

2019-09-30 Thread Sébastien Szymanski
Migrate to DM_VIDEO, update the device tree and remove code that is no longer necessary. Signed-off-by: Sébastien Szymanski --- arch/arm/dts/imx6ul-opos6uldev-u-boot.dtsi | 10 ++ arch/arm/dts/imx6ul-opos6uldev.dts | 4 +-- board/armadeus/opos6uldev/board.c | 36

[U-Boot] [PATCH 1/3] imx6ul: opos6ul: migrate to DM_ETH

2019-09-30 Thread Sébastien Szymanski
Migrate to DM_ETH and remove code that is no longer necessary. Signed-off-by: Sébastien Szymanski --- arch/arm/mach-imx/mx6/opos6ul.c | 76 +++-- configs/opos6uldev_defconfig| 2 + include/configs/opos6uldev.h| 8 3 files changed, 8 insertions(+), 78

Re: [U-Boot] [PATCH 39/41] common: Move trap_init() out of common.h

2019-09-30 Thread Simon Glass
Hi Daniel, On Mon, 30 Sep 2019 at 09:13, Daniel Schwierzeck wrote: > > On Mon, Sep 30, 2019 at 4:58 PM Simon Glass wrote: > > > > Move this function into the irq_legacy.h header file. > > > > Signed-off-by: Simon Glass > > --- > > > > arch/m68k/lib/traps.c | 1 + > > arch/mips/lib/traps.c | 1

[U-Boot] [PATCH v2 00/16] dfu: update dfu stack and add MTD backend

2019-09-30 Thread Patrick Delaunay
This serie based on v2019.10-rc3 propose updates on the DFU stack: - add capability to have several DFU backend running in parallel - add MTD backend for update of NAND, NOR or SPI-NAND - add VIRTUAL backend for board/command specific behavior - add some weak callback It is the same content that

[U-Boot] [PATCH v2 09/16] dfu: add DFU virtual backend

2019-09-30 Thread Patrick Delaunay
Add a virtual DFU backend to allow board specific read and write (for OTP update for example). Acked-by: Lukasz Majewski Signed-off-by: Patrick Delaunay --- Changes in v2: - Update dfu documentation for virtual backend doc/README.dfu | 32 ++-

[U-Boot] [PATCH v2 04/16] dfu: prepare the support of multiple interface

2019-09-30 Thread Patrick Delaunay
Split the function dfu_config_entities with 2 new functions - dfu_alt_init - dfu_alt_add Signed-off-by: Patrick Delaunay --- Changes in v2: None drivers/dfu/dfu.c | 51 --- include/dfu.h | 2 ++ 2 files changed, 41 insertions(+), 12

[U-Boot] [PATCH 32/41] common: Move interrupt functions into a new header

2019-09-30 Thread Simon Glass
These functions do not use driver model but are fairly widely used in U-Boot. Move them to a new irq_legacy.h header file. Signed-off-by: Simon Glass --- arch/arc/lib/interrupts.c | 1 + arch/arm/lib/interrupts.c | 1 + arch/arm/lib/interrupts_64.c | 1 +

[U-Boot] [PATCH v2 05/16] dfu: allow to manage DFU on several devices

2019-09-30 Thread Patrick Delaunay
Add support of DFU for several interface/device with one command. The format for "dfu_alt_info" in this case is : - '='alternate list (';' separated) - each interface is separated by '&' The previous behavior is always supported. One example for NOR (bootloaders) + NAND (rootfs in UBI):

[U-Boot] [PATCH v2 01/16] dfu: cosmetic: cleanup sf to avoid checkpatch error

2019-09-30 Thread Patrick Delaunay
Signed-off-by: Patrick Delaunay Acked-by: Lukasz Majewski --- Changes in v2: None drivers/dfu/dfu.c| 7 --- drivers/dfu/dfu_sf.c | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index d2b67b18cf..e9db7f8d66 100644 ---

[U-Boot] [PATCH 03/41] common: Drop global inclusion of status_led.h

2019-09-30 Thread Simon Glass
This is only used by a few files so it should not be in the common header. Move it out. Signed-off-by: Simon Glass --- board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c | 1 + board/atmel/at91sam9261ek/led.c | 1 + board/atmel/at91sam9263ek/led.c | 1 +

[U-Boot] [PATCH 05/41] common: Move random-number functions into their own header

2019-09-30 Thread Simon Glass
Create a new rand.h header file and move functions into it, to reduce the size of common.h Signed-off-by: Simon Glass --- include/common.h | 6 -- include/net.h| 1 + include/rand.h | 40 lib/rand.c | 1 + net/link_local.c | 1 + 5

[U-Boot] [PATCH 06/41] common: Drop linux/crc8.h

2019-09-30 Thread Simon Glass
We have an existing U-Boot header for the one function that this defines. Use that instead of the linux/ one. Move over the nice comment. Signed-off-by: Simon Glass --- board/theadorable/theadorable.c | 2 +- drivers/tpm/tpm2_tis_sandbox.c | 2 +- drivers/tpm/tpm_tis_sandbox.c | 2 +-

[U-Boot] [PATCH 18/41] common: Move some time functions out of common.h

2019-09-30 Thread Simon Glass
These functions belong in time.h so move them over and add comments. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/ls102xa/timer.c| 1 + arch/arm/cpu/armv8/generic_timer.c| 1 + arch/arm/mach-imx/syscounter.c| 1 + arch/arm/mach-imx/timer.c

[U-Boot] [PATCH 09/41] spl: bootcount: Move code out of header file

2019-09-30 Thread Simon Glass
It is not good practice to write code in a header file. If it is included multiple times then the code can cause duplicate functions. Move the bootcount_store() and bootcount_load() functions into SPL. Note: bootcount is a bit strange in that it uses driver model but does not define proper

[U-Boot] [PATCH 19/41] common: Move wait_ticks functions out of common.h

2019-09-30 Thread Simon Glass
This function belongs in time.h so move it over and add a comment. Signed-off-by: Simon Glass --- arch/arm/cpu/pxa/pxa2xx.c | 1 + drivers/timer/mpc83xx_timer.c | 1 + include/common.h | 1 - include/time.h| 9 + 4 files changed, 11 insertions(+), 1

[U-Boot] [PATCH 12/41] Move strtomhz() to vsprintf.h

2019-09-30 Thread Simon Glass
At present this function sits in its own file but it does not really justify it. There are similar string functions in vsprintf.h, so move it there. Also add the missing function comment. Use the vsprintf.h include file explicitly where needed. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 04/41] status_led: Tidy up the code style

2019-09-30 Thread Simon Glass
There are a few whitespace problems with this code. Tidy them up. Signed-off-by: Simon Glass --- arch/powerpc/lib/interrupts.c | 2 +- drivers/misc/status_led.c | 8 include/status_led.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git

[U-Boot] [PATCH 14/41] serial: usb: Correct the usbtty_...() prototypes

2019-09-30 Thread Simon Glass
The function declarations in serial.h are not in sync with what is currently used in usbtty. Fix this by updating the header and including it, to help catch future such problems. Signed-off-by: Simon Glass --- drivers/serial/usbtty.c | 1 + include/serial.h| 18 ++ 2

[U-Boot] [PATCH 31/41] arm: powerpc: Tidy up code style for interrupt functions

2019-09-30 Thread Simon Glass
Remove the unwanted space before the bracket. Signed-off-by: Simon Glass --- arch/arm/cpu/arm11/cpu.c | 2 +- arch/arm/cpu/arm920t/cpu.c| 2 +- arch/arm/cpu/arm926ejs/cpu.c | 2 +- arch/arm/cpu/arm946es/cpu.c | 2 +- arch/arm/cpu/sa1100/cpu.c

[U-Boot] [PATCH] configs: am43xx_evm: Enable USB support

2019-09-30 Thread Lokesh Vutla
spl_dm_init is failing as usb to be probed with the following error: "omap_dwc3@483c: ret=-2" Enable usb to make spl boot on am43xx devices Reported-by: Tero Kristo Signed-off-by: Lokesh Vutla --- configs/am43xx_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v2 03/16] dfu: sf: add partition support for nor backend

2019-09-30 Thread Patrick Delaunay
Copy the partition support from NAND backend to SF, support part and partubi option. In case of ubi partition, erase the rest of the partition as it is mandatory for UBI. for example: U-Boot> env set dfu_alt_info "spl part 0 1;\ u-boot part 0 2;u-boot-env part 0 3;UBI partubi 0 4" U-Boot> dfu 0

[U-Boot] [PATCH v2 14/16] stm32mp1: board: add spi nand support

2019-09-30 Thread Patrick Delaunay
This patch adds the support of the spi nand device in mtdparts command and in dfu_alt_info. Signed-off-by: Patrick Delaunay --- Changes in v2: None board/st/stm32mp1/stm32mp1.c | 32 +--- include/configs/stm32mp1.h | 10 -- 2 files changed, 37

[U-Boot] [PATCH v2 02/16] doc: dfu: Add dfu documentation

2019-09-30 Thread Patrick Delaunay
Add documentation for dfu stack and "dfu" command. Signed-off-by: Patrick Delaunay --- Changes in v2: - Add dfu documentation doc/README.dfu | 144 + 1 file changed, 144 insertions(+) create mode 100644 doc/README.dfu diff --git

[U-Boot] [PATCH v2 13/16] stm32mp1: configs: activate CONFIG_MTD_SPI_NAND

2019-09-30 Thread Patrick Delaunay
Activate the support of SPI NAND in stm32mp1 U-Boot. Signed-off-by: Patrick Delaunay --- Changes in v2: None configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_optee_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + 3 files changed, 3 insertions(+) diff --git

[U-Boot] [PATCH 30/41] common: Move ARM cache operations out of common.h

2019-09-30 Thread Simon Glass
These functions are CPU-related and do not use driver model. Move them to cpu_legacy.h Signed-off-by: Simon Glass --- arch/arm/cpu/arm926ejs/lpc32xx/cpu.c | 1 + arch/arm/cpu/armv7/cache_v7.c | 1 + arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c | 1 +

[U-Boot] [PATCH 24/41] common: Drop cpu_init()

2019-09-30 Thread Simon Glass
This function is not defined anywhere. Drop it. Signed-off-by: Simon Glass --- include/common.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/common.h b/include/common.h index 4de05032b2b..ce08bfe11fe 100644 --- a/include/common.h +++ b/include/common.h @@ -64,8 +64,6 @@ typedef

[U-Boot] [PATCH 17/41] common: Add a new lz4.h header file

2019-09-30 Thread Simon Glass
Add a header file to house the lz4 compression function. Add a comment while we are here, since it not even clear from the name what the function actuall does. Signed-off-by: Simon Glass --- common/image.c | 1 + include/common.h | 3 --- include/lz4.h | 24

[U-Boot] [PATCH v2 16/16] board: stm32mp1: fixup the usb product id for USB download gadget

2019-09-30 Thread Patrick Delaunay
Select the correct USB product id used by the download gadget for ST stm32mp1 boards. The board stm32mp1 select the correct product id, as defined in http://www.linux-usb.org/usb.ids for the STMicroelectronics vendor id = 0x0483 (CONFIG_USB_GADGET_VENDOR_NUM): - dfu = 0xdf11 : STM Device in DFU

[U-Boot] [PATCH v2 06/16] dfu: allow read with no data without error for EOF indication

2019-09-30 Thread Patrick Delaunay
This patch allows the DFU backend to indicate that that it can't provide no more data to fill the DFU buffer, by setting b_left =0 without error, even if the size of received data is lower of the expected total size indicated by get_medium_size. For USB DFU stack point of view, it is acceptable:

[U-Boot] [PATCH v2 10/16] dfu: add callback for flush and initiated operation

2019-09-30 Thread Patrick Delaunay
Add weak callback to allow board specific behavior - flush - initiated This patch prepare usage of DFU back end for communication with STM32CubeProgrammer on stm32mp1 platform with stm32prog command. Signed-off-by: Patrick Delaunay --- Changes in v2: - Update dfu documentation for callbacks -

[U-Boot] [PATCH v2 12/16] stm32mp1: activate SET_DFU_ALT_INFO

2019-09-30 Thread Patrick Delaunay
Generate automatically dfu_alt_info for the supported device. The simple command "dfu 0" allows to start the dfu stack on usb 0 for the supported devices: - dfu mtd for nand0 - dfu mtd for nor0 - dfu mmc for SDCard - dfu mmc for eMMC - dfu ram for images in DDR The DUF alternate use the "part",

[U-Boot] [PATCH v2 07/16] dfu: add backend for MTD device

2019-09-30 Thread Patrick Delaunay
Add DFU backend for MTD device: allow to read and write on all MTD device (NAND, SPI-NOR, SPI-NAND,...) For example : > set dfu_alt_info "nand_raw raw 0x0 0x10" > dfu 0 mtd nand0 This MTD backend provides the same level than dfu nand backend for NAND and dfu sf backend for SPI-NOR; So it can

[U-Boot] [PATCH v2 15/16] stm32mp1: add support for virtual partition read

2019-09-30 Thread Patrick Delaunay
Add read for OTP and PMIC NVM with alternates on virtual DFU device. Serie-cc: Boris Brezillon Signed-off-by: Patrick Delaunay --- Changes in v2: - Update after Lukasz Majewski comments board/st/stm32mp1/stm32mp1.c| 83 + configs/stm32mp15_basic_defconfig

[U-Boot] [PATCH 00/41] common: Further reduce common.h

2019-09-30 Thread Simon Glass
(I meant to send this a few months ago but forgot about it) This series drops the size of common.h down further, by moving things out into existing and new header files. It is now down to about 200 lines. Simon Glass (41): common: Move legacy CPU functions to their own header Drop

[U-Boot] [PATCH 01/41] common: Move legacy CPU functions to their own header

2019-09-30 Thread Simon Glass
These should be moved to driver model, but in the meantime, move them out of the common header to help reduce its size. Signed-off-by: Simon Glass --- README | 2 +- arch/arm/cpu/armv8/fsl-layerscape/mp.c | 1 + arch/arm/mach-imx/mx6/mp.c | 1 +

[U-Boot] [PATCH 02/41] Drop CONFIG_SHOW_ACTIVITY

2019-09-30 Thread Simon Glass
This feature is not enabled by any board. Drop it. Signed-off-by: Simon Glass --- arch/powerpc/lib/interrupts.c | 13 - common/cli_readline.c | 6 -- drivers/timer/mpc83xx_timer.c | 4 include/common.h | 4 net/net.c | 3

[U-Boot] [PATCH 11/41] common: Move sorting functions to their own header file

2019-09-30 Thread Simon Glass
These don't need to be in common.h so move them out into a new header. Also add some missing comments. Signed-off-by: Simon Glass --- cmd/efi.c | 1 + common/bootstage.c | 1 + env/common.c| 1 + fs/yaffs2/yaffs_qsort.c | 1 + include/common.h| 5

[U-Boot] [PATCH 27/41] arm: powerpc: Tidy up code style for cache functions

2019-09-30 Thread Simon Glass
Remove the unwanted space before the bracket. Signed-off-by: Simon Glass --- arch/arm/lib/cache-cp15.c| 12 ++-- arch/microblaze/cpu/cache.c | 18 +++--- board/armltd/integrator/integrator.c | 2 +- board/cobra5272/flash.c | 12

[U-Boot] [PATCH 08/41] crc32: Use the crc.h header for crc functions

2019-09-30 Thread Simon Glass
Drop inclusion of crc.h in common.h and use the correct header directly instead. With this we can drop the conflicting definition in fw_env.h and rely on the crc.h header, which is already included. Signed-off-by: Simon Glass --- api/api.c | 1 +

[U-Boot] [PATCH 10/41] common: Move bootcount functions to their header file

2019-09-30 Thread Simon Glass
These don't need to be in common.h so move them out. Signed-off-by: Simon Glass --- board/BuR/brppt1/board.c | 1 + include/bootcount.h | 10 ++ include/common.h | 4 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/board/BuR/brppt1/board.c

[U-Boot] [PATCH 38/41] common: Move pci_init_board() out of common.h

2019-09-30 Thread Simon Glass
This function can be dropped when all boards use driver model for PCI. For now, move it into init.h with a comment. Signed-off-by: Simon Glass --- board/armltd/integrator/pci.c | 1 + board/cavium/thunderx/thunderx.c| 1 + board/esd/vme8349/pci.c |

[U-Boot] [PATCH 15/41] common: Move serial_printf() to the serial header

2019-09-30 Thread Simon Glass
Move this function header to serial.h since this function is clearly related to serial. The function itself stays in console.c since we don't have a single serial file. DM and non-DM each has a separate file so we would have to either create a new common serial file, or repeat the function in both

Re: [U-Boot] Pull request: u-boot-rockchip-20190828

2019-09-30 Thread Tom Rini
On Sun, Sep 29, 2019 at 02:50:54PM +0800, Kever Yang wrote: > Hi Tom, > > Please pull the rockchip update: > - Fix efuse read data number for rk3399 > - make_fit_atf.py: fix .its generation for a single atf image > > Travis: > https://travis-ci.org/keveryang/u-boot/builds/590954707 > > Thanks,

Re: [U-Boot] [PULL] u-boot-atmel-fixes-2019.10-a

2019-09-30 Thread Tom Rini
On Mon, Sep 30, 2019 at 09:07:55AM +, eugen.hris...@microchip.com wrote: > Hello Tom, > > Please pull tag u-boot-atmel-fixes-2019.10-a , the first set (hopefully > the only one) of fixes for the 2019.10 release. > > This includes only tiny cleanups on env changes related to 2019.10 new >

[U-Boot] [PATCH v2] tao3530: Fix usage of mmc rescan

2019-09-30 Thread Jarkko Nikula
Currently "bootcmd" does not work as intended but instead prints MMC usage information and goes directly to "nandboot". Follow what the commit 669681104daa ("configs: Fix usage of mmc rescan") does for other boards prior to support for TechNexion TAO3530 SoM was added. Signed-off-by: Jarkko

Re: [U-Boot] [PATCH] tao3530: Fix usage of mmc rescan

2019-09-30 Thread Jarkko Nikula
On 9/29/19 8:33 PM, Jarkko Nikula wrote: > Currently "bootcmd" does not work as intended but instead prints MMC usage > information and goes directly to "nandboot". > > Follow what the commit 669681104daa ("configs: Fix usage of mmc rescan") > does for other boards prior to support for TechNexion

Re: [U-Boot] Vulnerability in UBOOT ping_reveive()

2019-09-30 Thread Simon Goldschmidt
Hi, Jordy schrieb am Mo., 30. Sep. 2019, 19:02: > Hey Joe & U-BOOT-lists, > > > I think I found a security vulnerability in U-BOOT and I figured I'd > report it to you, if this is the wrong channel please let me know. > > > So in https://github.com/u-boot/u-boot/blob/master/net/ping.c#L108 >

[U-Boot] arm am335x: SATA Drive connectivity over USB interface

2019-09-30 Thread Adarsh Babu Kalepalli
Hi, u-boot Version: 2019.10-rc4 u-boot config : am335x-evm-defconfig h/w Board: Beaglebone Black Using a SATA-USB converter, 180GB SATA disk is interfaced with Beaglebone Black. Unable to initialze and access the device with "usb start" and other usb command options. Serial Console output of

[U-Boot] Vulnerability in UBOOT ping_reveive()

2019-09-30 Thread Jordy
Hey Joe & U-BOOT-lists, I think I found a security vulnerability in U-BOOT and I figured I'd report it to you, if this is the wrong channel please let me know. So in https://github.com/u-boot/u-boot/blob/master/net/ping.c#L108 https://github.com/u-boot/u-boot/blob/master/net/ping.c#L108 in

Re: [U-Boot] [PATCH 39/41] common: Move trap_init() out of common.h

2019-09-30 Thread Simon Glass
Hi Daniel, On Mon, 30 Sep 2019 at 09:43, Daniel Schwierzeck wrote: > > On Mon, Sep 30, 2019 at 5:37 PM Simon Glass wrote: > > > > Hi Daniel, > > > > On Mon, 30 Sep 2019 at 09:13, Daniel Schwierzeck > > wrote: > > > > > > On Mon, Sep 30, 2019 at 4:58 PM Simon Glass wrote: > > > > > > > > Move

[U-Boot] [PATCH 3/4] board: atmel: sam9x60ek: add support for PDA detection

2019-09-30 Thread Eugen.Hristev
From: Eugen Hristev Automatically detect PDA at boot. Signed-off-by: Eugen Hristev --- board/atmel/sam9x60ek/sam9x60ek.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/atmel/sam9x60ek/sam9x60ek.c b/board/atmel/sam9x60ek/sam9x60ek.c index e352afc..182b3ae 100644 ---

[U-Boot] [PATCH 1/4] ARM: dts: at91: sam9x60: add onewire node

2019-09-30 Thread Eugen.Hristev
From: Eugen Hristev Add onewire node for w1 support. Signed-off-by: Eugen Hristev --- arch/arm/dts/sam9x60.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/dts/sam9x60.dtsi b/arch/arm/dts/sam9x60.dtsi index 9c16ba1..e01539e 100644 ---

[U-Boot] [PATCH 4/4] configs: sam9x60ek: enable onewire support

2019-09-30 Thread Eugen.Hristev
From: Eugen Hristev Enable support for onewire memories and onewire commands. Signed-off-by: Eugen Hristev --- configs/sam9x60ek_mmc_defconfig | 4 configs/sam9x60ek_nandflash_defconfig | 4 configs/sam9x60ek_qspiflash_defconfig | 4 3 files changed, 12 insertions(+)

[U-Boot] [PATCH 2/4] ARM: dts: at91: sam9x60ek: add onewire support

2019-09-30 Thread Eugen.Hristev
From: Eugen Hristev Add support for onewire memory. Signed-off-by: Eugen Hristev --- arch/arm/dts/sam9x60ek.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/sam9x60ek.dts b/arch/arm/dts/sam9x60ek.dts index 6390427..bed59f3 100644 ---

Re: [U-Boot] [Uboot-stm32] [RESEND PATCH 1/2] dm: Tidy up dump output when there are many devices

2019-09-30 Thread Patrick DELAUNAY
Hi Simon, > To: Patrick DELAUNAY > Cc: U-Boot STM32 ; U-Boot > > Hi Patrick, > > On Fri, 2 Aug 2019 at 05:48, Patrick Delaunay wrote: > > > > At present the 'Index' column of 'dm tree' assumes there is two > > digits, this patch increase it to 3 digits. > > > > It also aligns output of 'dm

[U-Boot] uboot 2014-04 + gcc7+ = crash in net_set_ip_header (ping/tftp)

2019-09-30 Thread Frank Wunderlich
Hi, i'm facing a problem in older uboot-code which may be fixed on newer, but i did not found the fixing commit yet. Maybe you can point me to it. I need to use older code in this case because driver for mt7622 and other is not yet available for upstream uboot. I have temporary changed

Re: [U-Boot] [PATCH] at91: configs: Drop duplication of defconfig macros

2019-09-30 Thread Eugen.Hristev
On 20.09.2019 13:52, Tudor Ambarus - M18064 wrote: > From: Tudor Ambarus > > 'commit a9221f3ebd6d ("at91, omap2plus: configs: migrate CONFIG_ENV_ to > defconfigs")' > migrated CONFIG_ENV_ macros to defconfigs but did not remove the > identical redefinition of these macros in include/configs/.

[U-Boot] [PATCH] configs: ls1012afrwy: Add CONFIG_ENV_ADDR for LS1012AFRWY

2019-09-30 Thread Kuldeep Singh
This configuration helps in picking the environment from flash before DDR init. Signed-off-by: Kuldeep Singh --- include/configs/ls1012afrwy.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/ls1012afrwy.h b/include/configs/ls1012afrwy.h index 12e6437a05..14e63204c6

[U-Boot] [PATCH v2] dm: Tidy up dump output when there are many devices

2019-09-30 Thread Patrick Delaunay
At present the 'Index' column of 'dm tree' assumes there is two digits, this patch increase it to 3 digits. It also aligns output of 'dm uclass', assuming the same 3 digits index. The boards with CONFIG_PINCTRL_FULL activated have one pinconfig by pin configuration, so they can have more than

Re: [U-Boot] [PATCH 4/5] riscv: dts: hifive-unleashed-a00: Add -u-boot.dtsi

2019-09-30 Thread Bin Meng
Hi Jagan, On Sun, Sep 29, 2019 at 3:43 PM Jagan Teki wrote: > > Add u-boot specific dts file for hifive-unleashed-a00, this > would help to add u-boot specific properties and other node > changes without touching the base dts(i) files which are easy > to sync from Linux. > > Added spi2 alias for

Re: [U-Boot] [PATCH 5/5] sifive: fu540: Enable spi-nor flash support

2019-09-30 Thread Bin Meng
On Sun, Sep 29, 2019 at 3:43 PM Jagan Teki wrote: > > HiFive Unleashed A00 has internal is25wp256 spi-nor flash, What does "internal" mean? The flash is mounted "externally" to the FU540 SoC. > so enable the same. added test result log for future reference. > > Tested on Sifive fuse540 board.

Re: [U-Boot] [PATCH 2/5] sifive: fu540: Enable OF_SEPARATE

2019-09-30 Thread Bin Meng
On Sun, Sep 29, 2019 at 3:43 PM Jagan Teki wrote: > > Use dts support from U-Boot via OF_SEPARATE instead of depending from > opensbi. > > This would help to make the necessary changes in drivers and devicetrees nits: device trees > in uboot tree itself. this feature would also be helpful to

  1   2   >