Re: [U-Boot] [PATCH 2/2] imx: mx6ul_14x14_evk: convert to DM_VIDEO

2019-08-01 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH 2/2] imx: mx6ul_14x14_evk: convert to > DM_VIDEO > > On Fri, Aug 2, 2019 at 12:05 PM Peng Fan wrote: > > > > HI, > > > > > Subject: Re: [PATCH 2/2] imx: mx6ul_14x14_evk: convert to DM_VIDEO > > > > > > Hi Peng, > > > > > > On Thu, Aug 1, 2019 at 3:02 AM Peng Fan wr

Re: [U-Boot] [PATCH 2/2] imx: mx6ul_14x14_evk: convert to DM_VIDEO

2019-08-01 Thread Jagan Teki
On Fri, Aug 2, 2019 at 12:05 PM Peng Fan wrote: > > HI, > > > Subject: Re: [PATCH 2/2] imx: mx6ul_14x14_evk: convert to DM_VIDEO > > > > Hi Peng, > > > > On Thu, Aug 1, 2019 at 3:02 AM Peng Fan wrote: > > > > > + display0: display@0 { > > > + bits-per-pixel = <16>; > > > +

[U-Boot] [PATCH v4] x86: ich-spi: Convert driver to spi-mem ops

2019-08-01 Thread Bernhard Messerklinger
With the introduction of the new spi-mem model operations changed slightly. The new spi-mem operations make things a bit easier to handle for ich-spi flash interface. This patch converts the ich-spi driver by using spi-mem operations. Signed-off-by: Bernhard Messerklinger --- Changes in v4: - fi

Re: [U-Boot] [PATCH 2/2] imx: mx6ul_14x14_evk: convert to DM_VIDEO

2019-08-01 Thread Peng Fan
HI, > Subject: Re: [PATCH 2/2] imx: mx6ul_14x14_evk: convert to DM_VIDEO > > Hi Peng, > > On Thu, Aug 1, 2019 at 3:02 AM Peng Fan wrote: > > > + display0: display@0 { > > + bits-per-pixel = <16>; > > + bus-width = <24>; > > + > > + display-timing

Re: [U-Boot] [PATCH v3 2/7] dm: core: add support for getting register address and size

2019-08-01 Thread Sekhar Nori
Hi Daniel, On 01/08/19 9:51 PM, Daniel Schwierzeck wrote: >> diff --git a/drivers/core/read.c b/drivers/core/read.c >> index 1a044b05e884..8b5502de1159 100644 >> --- a/drivers/core/read.c >> +++ b/drivers/core/read.c >> @@ -82,6 +82,15 @@ fdt_addr_t dev_read_addr_index(struct udevice *dev, int >>

Re: [U-Boot] fit image: boot gzipped ramdisk does not work anymore

2019-08-01 Thread Simon Goldschmidt
Hi Heiko, On Fri, Aug 2, 2019 at 6:08 AM Heiko Schocher wrote: > > Hello Julius, > > Am 01.08.2019 um 20:24 schrieb Julius Werner: > >> First, we have a problem as we need to support what's out in the world. > > > > How about I write a patch to change the decompression call in > > fit_image_load(

Re: [U-Boot] [PATCH] cmd: reset: add parameters to specify reboot_mode

2019-08-01 Thread Simon Goldschmidt
On Fri, Aug 2, 2019 at 12:45 AM Simon Glass wrote: > > Hi Simon, > > On Mon, 29 Jul 2019 at 04:47, Simon Goldschmidt > wrote: > > > > Simon, > > > > On Wed, Jul 10, 2019 at 8:50 PM Simon Goldschmidt > > wrote: > > > > > > Simon, > > > > > > I know I've slept for a while before retriggering this,

[U-Boot] [PATCH] test/py: Fix MMC/SD block write test dependency

2019-08-01 Thread Michal Simek
Test is using random command which has own Kconfig symbol CMD_RANDOM which already depends on CMD_MEMORY. That's why replace cmd_memory by cmd_random. Fixes: 09da18deab8b ("test/py: add MMC/SD block write test") Signed-off-by: Michal Simek --- test/py/tests/test_mmc_wr.py | 2 +- 1 file changed

Re: [U-Boot] [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on probe

2019-08-01 Thread Michal Simek
On 01. 08. 19 17:00, Matwey V. Kornilov wrote: > Since commit 3d296365e4e8 ("mmc: sdhci: Add support for > sdhci-caps-mask") sdhci_setup_cfg() expects a valid sdhci_host mmc > field. Move the mmc field initialization before sdhci_setup_cfg() > call to avoid crash on mmc pointer dereference. > > [t

Re: [U-Boot] fit image: boot gzipped ramdisk does not work anymore

2019-08-01 Thread Heiko Schocher
Hello Julius, Am 01.08.2019 um 20:24 schrieb Julius Werner: First, we have a problem as we need to support what's out in the world. How about I write a patch to change the decompression call in fit_image_load() to fall back to a memcpy() if the decompression fails (and print a big warning that

Re: [U-Boot] [PATCH v2 4/4] net: fec: add fuse check

2019-08-01 Thread Ye Li
Hi Peng, > Add fuse check for fec. If the fuse indicates the module > will not work in the SoC, let's fail the initialization. > > Signed-off-by: Peng Fan > Acked-by: Joe Hershberger > --- > > V2: > Fix build for aarch64 > Add ACK tag > > drivers/net/fec_mxc.c | 14 ++ > 1 file

Re: [U-Boot] [PATCH v7 3/9] x86: Add a common HOB library

2019-08-01 Thread Park, Aiden
Hi Bin/Andy, > -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Thursday, August 1, 2019 5:14 PM > To: Bin Meng > Cc: Park, Aiden ; U-Boot Mailing List b...@lists.denx.de>; Simon Glass > Subject: Re: [PATCH v7 3/9] x86: Add a common HOB library > >

Re: [U-Boot] [PATCH v7 0/9] x86: Add basic Slim Bootloader payload support

2019-08-01 Thread Park, Aiden
Hi Bin, > -Original Message- > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Thursday, August 1, 2019 2:23 PM > To: Park, Aiden > Cc: Andy Shevchenko ; U-Boot Mailing List b...@lists.denx.de>; Simon Glass > Subject: Re: [PATCH v7 0/9] x86: Add basic Slim Bootloader payload support

Re: [U-Boot] [PATCH v7 8/9] board: intel: Add new slimbootloader board

2019-08-01 Thread Park, Aiden
Hi Bin, > -Original Message- > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Thursday, August 1, 2019 2:17 PM > To: Park, Aiden > Cc: Andy Shevchenko ; U-Boot Mailing List b...@lists.denx.de>; Simon Glass > Subject: Re: [PATCH v7 8/9] board: intel: Add new slimbootloader board > >

Re: [U-Boot] 答复: [PATCH 0/4] Make some changes to SDP

2019-08-01 Thread Angus Ainslie
Hi Peng, On 2019-08-01 18:01, Peng Fan wrote: Angus, Subject: Re: 答复: [U-Boot] [PATCH 0/4] Make some changes to SDP Hi Sherry, On 2019-07-31 19:56, Sherry Sun wrote: > Hi Angus > >> >> Hi Sherry, >> >> On 2019-07-17 18:40, sherry sun wrote: >> > From: Sherry Sun >> > >> > This patchset adds

Re: [U-Boot] [PATCH 0/3] USB: Add cadence USB3 gadget driver and host driver

2019-08-01 Thread Peng Fan
Igor, > Subject: Re: [U-Boot] [PATCH 0/3] USB: Add cadence USB3 gadget driver and > host driver > > Hi Sherry, > > On Tue, Jul 16, 2019 at 4:15 PM sherry sun wrote: > > > > From: Sherry Sun > > > > These patches introduce new Cadence USBSS driver to U-Boot. > > > > The first patch is to add th

Re: [U-Boot] 答复: [PATCH 0/4] Make some changes to SDP

2019-08-01 Thread Peng Fan
Angus, > Subject: Re: 答复: [U-Boot] [PATCH 0/4] Make some changes to SDP > > Hi Sherry, > > On 2019-07-31 19:56, Sherry Sun wrote: > > Hi Angus > > > >> > >> Hi Sherry, > >> > >> On 2019-07-17 18:40, sherry sun wrote: > >> > From: Sherry Sun > >> > > >> > This patchset adds: > >> > 1. Add usb_ga

Re: [U-Boot] [PATCH] mmc: Select SPL_HS200_SUPPORT if SPL_HS400_SUPPORT is selected

2019-08-01 Thread Peng Fan
> Subject: [PATCH] mmc: Select SPL_HS200_SUPPORT if SPL_HS400_SUPPORT > is selected > > Select SPL_HS200_SUPPORT if SPL_HS400_SUPPORT is selected as is being > done for the U-boot case. > > Signed-off-by: Faiz Abbas > --- > drivers/mmc/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff -

Re: [U-Boot] [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on probe

2019-08-01 Thread Peng Fan
> Subject: [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on probe > > Since commit 3d296365e4e8 ("mmc: sdhci: Add support for > sdhci-caps-mask") sdhci_setup_cfg() expects a valid sdhci_host mmc field. > Move the mmc field initialization before sdhci_setup_cfg() call to avoid crash > on

Re: [U-Boot] [PATCH v3 1/2] distro_bootcmd: add spi flash boot command

2019-08-01 Thread André Przywara
On 01/08/2019 21:07, Oskari Lemmela wrote: Hi, > Add a boot command to distro boot to support load FIT image > from SPI flash. I think I mentioned this before, but I have my reservations about introducing this to *distro_bootcmd*. IIUC, this feature is explicitly about providing easy support for

Re: [U-Boot] [PATCH v2 2/3] sunxi: Pine64-LTS: enable environment in spi flash

2019-08-01 Thread André Przywara
On 01/08/2019 20:50, Oskari Lemmela wrote: Hi, > enable config options for spi flash device and > environment in spi flash. First I am not sure if defining this unconditionally to put the environment in SPI flash is a good idea. People might expect to be able to (continue to) use an environment

Re: [U-Boot] [PATCH 32/39] env: Rename the redundancy flags

2019-08-01 Thread Tom Rini
On Thu, Aug 01, 2019 at 12:55:18AM +, Joe Hershberger wrote: > Hi Tom, > > On Wed, Jul 31, 2019 at 7:53 PM Tom Rini wrote: > > > > On Wed, Jul 31, 2019 at 09:20:58PM +, Joe Hershberger wrote: > > > On Wed, Jul 31, 2019 at 4:00 PM Simon Glass wrote: > > > > > > > > Hi Joe, > > > > > > > >

Re: [U-Boot] [PATCH] cmd: reset: add parameters to specify reboot_mode

2019-08-01 Thread Simon Glass
Hi Simon, On Mon, 29 Jul 2019 at 04:47, Simon Goldschmidt wrote: > > Simon, > > On Wed, Jul 10, 2019 at 8:50 PM Simon Goldschmidt > wrote: > > > > Simon, > > > > I know I've slept for a while before retriggering this, but... > > > > Am 04.05.2019 um 20:23 schrieb Simon Goldschmidt: > > > Am 03.0

[U-Boot] Announcement -- Upstreaming of U-Boot support for Broadcom router devices

2019-08-01 Thread Joel Peshkin
Hi All: Up to now, there has been limited 3rd party support for Broadcom's 63xx and 68xx devices in U-Boot. At this point, we plan to introduce vendor-supported U-Boot to all of the ARM-based BCM63XX and BCM68XX devices as well as some additional family members. These devices can be broadly

[U-Boot] [PATCH v3 1/2] distro_bootcmd: add spi flash boot command

2019-08-01 Thread Oskari Lemmela
Add a boot command to distro boot to support load FIT image from SPI flash. Tested with Pine A64-LTS board to load kernel and dtb. Signed-off-by: Oskari Lemmela --- Kconfig | 32 include/config_distro_bootcmd.h | 16 2 fi

[U-Boot] [PATCH v3 2/2] sunxi: enable distro spi boot command

2019-08-01 Thread Oskari Lemmela
Signed-off-by: Oskari Lemmela --- include/configs/sunxi-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 7be94ee7d1..cb7b68cf72 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -41

[U-Boot] [PATCH v3 0/2] sunxi: add spi flash bootcmd

2019-08-01 Thread Oskari Lemmela
Changes since v2: - Rebase to current master - Added more information to Kconfig help text Changes since v1: - Move bootcmd to config_distro_bootcmd - Add Kconfig options to enable and configure it Oskari Lemmela (2): distro_bootcmd: add spi flash boot command sunxi: enable distro spi boo

[U-Boot] [PATCH v2 3/3] arm: dts: sunxi: add spi0 alias

2019-08-01 Thread Oskari Lemmela
spi aliases are needed for spi flash devices. Signed-off-by: Oskari Lemmela --- arch/arm/dts/sunxi-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dtsi index fdd4c80aa4..b6e075f785 100644 --- a/arch/arm/dts/sunxi-u-boot.d

[U-Boot] [PATCH v2 2/3] sunxi: Pine64-LTS: enable environment in spi flash

2019-08-01 Thread Oskari Lemmela
enable config options for spi flash device and environment in spi flash. Signed-off-by: Oskari Lemmela --- configs/pine64-lts_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/pine64-lts_defconfig b/configs/pine64-lts_defconfig index 0da6b70ea8..34c38cf1fd 100644 --- a

[U-Boot] [PATCH v2 1/3] env: add support to sunxi save env to spi flash

2019-08-01 Thread Oskari Lemmela
CONFIG_ENV_SECT_SIZE value is defined via Kconfig. Signed-off-by: Oskari Lemmela Reviewed-by: Paul Kocialkowski --- env/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/env/Kconfig b/env/Kconfig index 74db2f38cc..083de650ce 100644 --- a/env/Kconfig +++ b/env/Kconf

[U-Boot] [PATCH v2 0/3] env: add support to sunxi save env to spi

2019-08-01 Thread Oskari Lemmela
Changes since v1: - Rebase to current master - Added patches for testing with pine64-lts board Oskari Lemmela (3): env: add support to sunxi save env to spi flash sunxi: Pine64-LTS: enable environment in spi flash arm: dts: sunxi: add spi0 alias arch/arm/dts/sunxi-u-boot.dtsi | 1 + conf

Re: [U-Boot] fit image: boot gzipped ramdisk does not work anymore

2019-08-01 Thread Simon Goldschmidt
Am 01.08.2019 um 21:01 schrieb Julius Werner: Well, I'm sure you'd find enough FIT images where the uncompression might succeed but the target space for decompression is not big enough (see bootm_size), would such an error be fixed as well? I think so? Assuming all the compression algorithms ch

Re: [U-Boot] fit image: boot gzipped ramdisk does not work anymore

2019-08-01 Thread Julius Werner
> Well, I'm sure you'd find enough FIT images where the uncompression > might succeed but the target space for decompression is not big enough > (see bootm_size), would such an error be fixed as well? I think so? Assuming all the compression algorithms check for an output buffer overrun (looks lik

Re: [U-Boot] fit image: boot gzipped ramdisk does not work anymore

2019-08-01 Thread Simon Goldschmidt
Am 01.08.2019 um 20:24 schrieb Julius Werner: First, we have a problem as we need to support what's out in the world. How about I write a patch to change the decompression call in fit_image_load() to fall back to a memcpy() if the decompression fails (and print a big warning that the FIT image

Re: [U-Boot] [PATCH v2 38/40] env: Rename environment.h to env_internal.h

2019-08-01 Thread Simon Goldschmidt
Am 01.08.2019 um 17:47 schrieb Simon Glass: This file contains lots of internal details about the environment. Most code can include env.h instead, calling the functions there as needed. Rename this file and add a comment at the top to indicate its internal nature. Signed-off-by: Simon Glass A

Re: [U-Boot] [PATCH 1/1] bios_emulator: remove stray break

2019-08-01 Thread Simon Glass
On Thu, 1 Aug 2019 at 11:37, Heinrich Schuchardt wrote: > > Remove a stray break which suppresses some debug messages. > > Indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt > --- > @Simon: > Please, test on an x86 Chromebook. I have no access to a test device. > --- > drivers/bios_em

Re: [U-Boot] [PATCH v2 36/40] env: Move TOTAL_MALLOC_LEN to environment.h

2019-08-01 Thread Simon Goldschmidt
Am 01.08.2019 um 17:47 schrieb Simon Glass: This declaration is only used in three files. Although it relates to malloc() it is actually only used during malloc() init. It uses CONFIG options including CONFIG_ENV_ADDR which are defined only in environment.h so this header must be included anyway,

Re: [U-Boot] [PATCH v2 28/40] env: Rename environment to embedded_environment

2019-08-01 Thread Simon Goldschmidt
Am 01.08.2019 um 17:47 schrieb Simon Glass: The name 'environment' is widely used in U-Boot so is not a very useful name of a variable. Rename it to better indicate its purpose. Signed-off-by: Simon Glass Acked-by: Joe Hershberger Reviewed-by: Simon Goldschmidt --- Changes in v2: None

Re: [U-Boot] [PATCH v2 05/40] env: Create a new file for environment functions

2019-08-01 Thread Simon Goldschmidt
Am 01.08.2019 um 17:46 schrieb Simon Glass: At present we have environment.h but this file includes all the environment-related header files as well as internals such as default_environment. It seems desirable to have a new header to hold the commonly used environment functions, so that most fil

Re: [U-Boot] fit image: boot gzipped ramdisk does not work anymore

2019-08-01 Thread Julius Werner
> First, we have a problem as we need to support what's out in the world. How about I write a patch to change the decompression call in fit_image_load() to fall back to a memcpy() if the decompression fails (and print a big warning that the FIT image is wrong and should be updated)? That should ke

Re: [U-Boot] [PATCH v2 02/40] common: Drop the dpram_... functions

2019-08-01 Thread Simon Goldschmidt
Am 01.08.2019 um 17:46 schrieb Simon Glass: These declarations are not used anymore, so drop them. Signed-off-by: Simon Glass Reviewed-by: Simon Goldschmidt --- Changes in v2: None include/common.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/common.h b/include/comm

Re: [U-Boot] [PATCH v2 01/40] common: Move gzip functions into a new gzip header

2019-08-01 Thread Simon Goldschmidt
Am 01.08.2019 um 17:46 schrieb Simon Glass: As part of the effort to remove things from common.h, create a new header for the gzip functions. Move the function declarations to it and add missing documentation. Signed-off-by: Simon Glass Nice cleanup! Reviewed-by: Simon Goldschmidt --- Ch

[U-Boot] [PATCH 1/1] bios_emulator: remove stray break

2019-08-01 Thread Heinrich Schuchardt
Remove a stray break which suppresses some debug messages. Indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- @Simon: Please, test on an x86 Chromebook. I have no access to a test device. --- drivers/bios_emulator/atibios.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/b

Re: [U-Boot] [PATCH] sifive: riscv: update Hifive Unleashed configuration infrastructure

2019-08-01 Thread Sagar Kadam
Hi Anup, On Thu, Aug 1, 2019 at 9:26 PM Anup Patel wrote: > > On Thu, Aug 1, 2019 at 8:26 PM Sagar Kadam wrote: > > > > Hi Anup, > > > > On Wed, Jul 31, 2019 at 1:50 PM Anup Patel wrote: > > > > > > On Tue, Jul 30, 2019 at 11:01 PM Sagar Kadam > > > wrote: > > > > > > > > Hello Anup, > > > >

Re: [U-Boot] [PATCH 05/10] bios_emulator: Add some VESA interface debugging

2019-08-01 Thread Simon Glass
Hi Heinrich, On Tue, 30 Jul 2019 at 14:52, Heinrich Schuchardt wrote: > > On 12/30/14 3:32 AM, Simon Glass wrote: > > Allow the supported modes to be listed when in debug mode. > > > > Signed-off-by: Simon Glass > > --- > > > > drivers/bios_emulator/atibios.c | 161 > > +++

Re: [U-Boot] [PATCH] board_r: re-order the board_early_init_r()

2019-08-01 Thread Simon Glass
Hi Matthias, On Thu, 1 Aug 2019 at 10:40, Matthias Brugger wrote: > > > > On 31/07/2019 10:58, Kever Yang wrote: > > > > On 2019/7/31 下午3:23, Matthias Brugger wrote: > >> > >> On 24/07/2019 14:22, Kever Yang wrote: > >>> On 2019/7/24 下午6:22, Simon Goldschmidt wrote: > On Wed, Jul 24, 2019 at

Re: [U-Boot] [PATCH] board_r: re-order the board_early_init_r()

2019-08-01 Thread Matthias Brugger
On 31/07/2019 10:58, Kever Yang wrote: > > On 2019/7/31 下午3:23, Matthias Brugger wrote: >> >> On 24/07/2019 14:22, Kever Yang wrote: >>> On 2019/7/24 下午6:22, Simon Goldschmidt wrote: On Wed, Jul 24, 2019 at 12:01 PM Kever Yang wrote: > The board_early_init_r() suppose to be calle

Re: [U-Boot] [PATCH v3 2/7] dm: core: add support for getting register address and size

2019-08-01 Thread Daniel Schwierzeck
On Thu, Aug 1, 2019 at 3:46 PM Sekhar Nori wrote: > > Current dev_read_*() API lacks support to get address and size > of a "reg" property by name or index. Add support for the same. > > Livetree support has been added but not tested on real hardware. > > The existing unit tests testing reading ad

Re: [U-Boot] fit image: boot gzipped ramdisk does not work anymore

2019-08-01 Thread Tom Rini
On Thu, Aug 01, 2019 at 04:38:51PM +0200, Heiko Schocher wrote: > Hello Simon, > > Am 01.08.2019 um 14:33 schrieb Simon Goldschmidt: > >Am 01.08.2019 um 10:06 schrieb Heiko Schocher: > >>Hello Julius, > >> > >>since your commit (just gone into mainline): > >> > >>b1307f884a91 ("fit: Support compre

[U-Boot] [PATCH] Revert "spi: Kconfig: Mark MXS_SPI has DEPRECATED"

2019-08-01 Thread Lukasz Majewski
This reverts commit d5ded320a14b0a2f97cbed072286748895ad18ac. The mxs_spi.c driver for i.MX2{38} devices has been converted: 'commit d99b018a6e3d ("spi: mxs: Add support DM/DTS for i.MX28 mxs SPI driver (DM_SPI conversion)")' to use Device Tree and Device Model, so the DEPRECATED Kconfig symbol

[U-Boot] [PATCH v2 27/40] env: Move env_reloc() to env.h

2019-08-01 Thread Simon Glass
Move env_reloc() over to the new header file. Acked-by: Joe Hershberger Signed-off-by: Simon Glass --- Changes in v2: None include/env.h | 7 +++ include/environment.h | 4 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/env.h b/include/env.h index 42d8

[U-Boot] [PATCH v2 28/40] env: Rename environment to embedded_environment

2019-08-01 Thread Simon Glass
The name 'environment' is widely used in U-Boot so is not a very useful name of a variable. Rename it to better indicate its purpose. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None env/flash.c | 2 +- include/env_default.h | 2 +- include/environment.h

[U-Boot] [PATCH v2 32/40] env: Drop _ENTRY

2019-08-01 Thread Simon Glass
This typedef does not need to be defined in the search.h header since it is only used in one file (hashtable.c). Remove it from the header and change it to a struct. Signed-off-by: Simon Glass --- Changes in v2: None include/search.h | 2 +- lib/hashtable.c | 7 --- 2 files changed, 5 ins

[U-Boot] [PATCH v2 39/40] Drop PCMCIA

2019-08-01 Thread Simon Glass
This is no-longer used in U-Boot and has not been converted to driver model. Drop it. Signed-off-by: Simon Glass --- Changes in v2: None README | 2 +- cmd/Kconfig | 8 - cmd/Makefile| 1 - cmd/ide.c |

Re: [U-Boot] [PATCH] sifive: riscv: update Hifive Unleashed configuration infrastructure

2019-08-01 Thread Anup Patel
On Thu, Aug 1, 2019 at 8:26 PM Sagar Kadam wrote: > > Hi Anup, > > On Wed, Jul 31, 2019 at 1:50 PM Anup Patel wrote: > > > > On Tue, Jul 30, 2019 at 11:01 PM Sagar Kadam wrote: > > > > > > Hello Anup, > > > > > > On Tue, Jul 30, 2019 at 9:12 AM Anup Patel wrote: > > > > > > > > On Mon, Jul 29,

[U-Boot] [PATCH v2 38/40] env: Rename environment.h to env_internal.h

2019-08-01 Thread Simon Glass
This file contains lots of internal details about the environment. Most code can include env.h instead, calling the functions there as needed. Rename this file and add a comment at the top to indicate its internal nature. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2:

[U-Boot] [PATCH v2 25/40] env: Move get/set_default_env() to env.h

2019-08-01 Thread Simon Glass
Move these functions to the new header file and rename set_default_env() to env_set_default() so that it has a consistent env_ prefix. Acked-by: Joe Hershberger Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-imx/mx6/opos6ul.c | 2 +- board/phytec/pcm052/pcm052.c| 2 +-

[U-Boot] [PATCH v2 35/40] env: Drop the double underscores in search.h

2019-08-01 Thread Simon Glass
There doesn't seem to be any good reason for using __ in the arguments in this header file. A double underscore is usually reserved for compiler features. Drop these and remove the unnecessary 'extern' as well. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None incl

[U-Boot] [PATCH v2 26/40] env: Move env_get_char() to env.h

2019-08-01 Thread Simon Glass
Move env_get_char() over to the new header file. Acked-by: Joe Hershberger Signed-off-by: Simon Glass --- Changes in v2: None include/env.h | 10 ++ include/environment.h | 10 -- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/env.h b/include/

[U-Boot] [PATCH v2 40/40] common: Add a note about the effort to reduce common.h

2019-08-01 Thread Simon Glass
This file has quite a lot of general definitions and include files. Add a note about our intent to remove more of this. The file should ultimately include the configuration and perhaps a very other very common things used by most U-Boot files. Signed-off-by: Simon Glass --- Changes in v2: - Reb

[U-Boot] [PATCH v2 34/40] env: Drop the ACTION typedef

2019-08-01 Thread Simon Glass
Avoid using a typedef here which is unnecessary. Add an 'env_' prefix to both the enum and its members to make it clear that these are related to the environment. Add an ENV prefix to these two flags so that it is clear what they relate to. Also move them to env.h since they are part of the public

[U-Boot] [PATCH v2 29/40] env: Move env_valid to env.h

2019-08-01 Thread Simon Glass
This enum is somewhat widely used to determine if the environment is valid or not. Move it to the common environment header file. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None env/flash.c | 1 + env/nowhere.c | 1 + include/env.h | 9 ++

[U-Boot] [PATCH v2 24/40] env: Drop env_crc_update()

2019-08-01 Thread Simon Glass
This function is not defined or used in U-Boot. Drop it. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None include/environment.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/environment.h b/include/environment.h index c740d5a216..27c0fee65f 100644 -

[U-Boot] [PATCH v2 23/40] env: Move env import/export functions to env.h

2019-08-01 Thread Simon Glass
Move these functions to the new header file. Acked-by: Joe Hershberger Signed-off-by: Simon Glass --- Changes in v2: None include/env.h | 38 ++ include/environment.h | 12 2 files changed, 38 insertions(+), 12 deletions(-) diff --git

[U-Boot] [PATCH v2 33/40] env: Rename the redundancy flags

2019-08-01 Thread Simon Glass
Add an ENV prefix to these two flags so that it is clear what they relate to. Also move them to env.h since they are part of the public API. Use an enum rather than a #define to tie them together. Signed-off-by: Simon Glass --- Changes in v2: - Rename ENVF_... flags to ENV_... cmd/nvedit.c

[U-Boot] [PATCH v2 31/40] env: Drop the ENTRY typedef

2019-08-01 Thread Simon Glass
U-Boot is not supposed to use typedef for structs anymore. Also this name is the same as the ENTRY() macro used in assembler files, and 'entry' itself is widely used in U-Boot (>8k matches). Drop the typedef and rename the struct to env_entry to reduce confusion. Signed-off-by: Simon Glass Acked

[U-Boot] [PATCH v2 22/40] env: Move env_load/save functions to env.h

2019-08-01 Thread Simon Glass
Move these function to the new header file. Acked-by: Joe Hershberger Signed-off-by: Simon Glass --- Changes in v2: None include/env.h | 21 + include/environment.h | 21 - 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/include

[U-Boot] [PATCH v2 36/40] env: Move TOTAL_MALLOC_LEN to environment.h

2019-08-01 Thread Simon Glass
This declaration is only used in three files. Although it relates to malloc() it is actually only used during malloc() init. It uses CONFIG options including CONFIG_ENV_ADDR which are defined only in environment.h so this header must be included anyway, for TOTAL_MALLOC_LEN to be correct. Nove it

[U-Boot] [PATCH v2 37/40] env: Drop environment.h header file where not needed

2019-08-01 Thread Simon Glass
This header file is now only used by files that access internal environment features. Drop it from various places where it is not needed. Acked-by: Joe Hershberger Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm926ejs/spear/spr_misc.c | 1 - arch/arm/mach-davinci

[U-Boot] [PATCH v2 15/40] env: Move env_get_hex() to env.h

2019-08-01 Thread Simon Glass
Move env_get_hex() over to the new header file. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None arch/x86/lib/zimage.c | 1 + cmd/elf.c | 1 + common/image-fdt.c| 1 + include/common.h | 12 include/env.h | 12 ++

[U-Boot] [PATCH v2 30/40] env: Move callback definitions to env.h

2019-08-01 Thread Simon Glass
These definitions are effectively part of the 'public' API of the environment implementation since they do not require access to any internal variables. Move them to the env.h header. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None include/env.h | 34

[U-Boot] [PATCH v2 09/40] env: Move env_relocate() to env.h

2019-08-01 Thread Simon Glass
Move env_relocate() over to the new header file. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None common/board_r.c | 1 + env/common.c | 1 + include/common.h | 1 - include/env.h| 8 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/c

[U-Boot] [PATCH v2 13/40] env: Move env_get_ulong() to env.h

2019-08-01 Thread Simon Glass
Move env_get_ulong() over to the new header file. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None board/BuR/brxre1/board.c | 1 + board/gdsys/p1022/controlcenterd-id.c | 1 + board/synopsys/hsdk/env-lib.c | 1 + board/ti/ks2_evm

[U-Boot] [PATCH v2 11/40] env: Move env_set_hex() to env.h

2019-08-01 Thread Simon Glass
Move env_set_hex() over to the new header file along with env_set_addr() which uses it. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None api/api.c | 1 + arch/arm/mach-tegra/cboot.c | 1 + arch/arm/mach-uniphier/b

[U-Boot] [PATCH v2 14/40] env: Move env_get_yesno() to env.h

2019-08-01 Thread Simon Glass
Move env_get_yesno() over to the new header file. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None arch/powerpc/cpu/mpc85xx/mp.c | 1 + board/gateworks/gw_ventana/gw_ventana_spl.c | 1 + cmd/source.c| 1 + include/commo

[U-Boot] [PATCH v2 18/40] env: Move eth_env_get/set_enetaddr() to env.h

2019-08-01 Thread Simon Glass
Move these two functions over to the new header file. Acked-by: Joe Hershberger Signed-off-by: Simon Glass --- Changes in v2: None include/env.h | 18 ++ include/environment.h | 2 -- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/include/env.h b/incl

[U-Boot] [PATCH v2 12/40] env: Move env_set_ulong() to env.h

2019-08-01 Thread Simon Glass
Move env_set_ulong() over to the new header file. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None arch/arm/mach-uniphier/mmc-first-dev.c | 1 + board/BuR/brppt1/board.c | 1 + board/BuR/common/br_resetc.c | 1 + board/CZ.NIC/turris_om

[U-Boot] [PATCH v2 21/40] env: Move set_default_vars to env.h

2019-08-01 Thread Simon Glass
Move this function to the new header file and rename it so it has an env_ prefix. Acked-by: Joe Hershberger Signed-off-by: Simon Glass --- Changes in v2: None cmd/nvedit.c | 2 +- env/common.c | 2 +- include/env.h | 11 +++ include/environment.h | 3 ---

[U-Boot] [PATCH v2 16/40] env: Move env_set() to env.h

2019-08-01 Thread Simon Glass
Move env_set() over to the new header file. Acked-by: Joe Hershberger Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm926ejs/spear/spr_misc.c | 1 + arch/arm/cpu/armv7/vf610/generic.c| 1 + arch/arm/cpu/armv8/fsl-layerscape/soc.c | 1 +

[U-Boot] [PATCH v2 17/40] env: Move env_get() to env.h

2019-08-01 Thread Simon Glass
Move env_get() over to the new header file. Acked-by: Joe Hershberger Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/lib/bootm.c | 1 + arch/arm/mach-imx/video.c| 1 + arch/arm/mach-kirkwood/cpu.c

[U-Boot] [PATCH v2 19/40] env: net: Move eth_parse_enetaddr() to net.c/h

2019-08-01 Thread Simon Glass
This function fits better with the network subsystem, so move it. Signed-off-by: Simon Glass Suggested-by: Joe Hershberger --- Changes in v2: - Add new patch to move eth_parse_enetaddr() to net.c/h cmd/nvedit.c | 12 include/environment.h | 2 -- include/net.h |

[U-Boot] [PATCH v2 06/40] env: Move get_env_id() to env.h

2019-08-01 Thread Simon Glass
Move this function over to the new header file. Also rename it to have an env_ prefix like the other functions. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None cmd/nvedit.c | 5 +++-- drivers/net/netconsole.c | 5 +++-- include/common.h | 2

[U-Boot] [PATCH v2 05/40] env: Create a new file for environment functions

2019-08-01 Thread Simon Glass
At present we have environment.h but this file includes all the environment-related header files as well as internals such as default_environment. It seems desirable to have a new header to hold the commonly used environment functions, so that most files can avoid including all of this unnecessary

[U-Boot] [PATCH v2 07/40] env: Move env_get_f() to env.h

2019-08-01 Thread Simon Glass
Move this function over to the new header file. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 1 + arch/powerpc/cpu/mpc85xx/cpu_init.c | 1 + arch/powerpc/cpu/mpc85xx/fdt.c| 1 + arch/p

[U-Boot] [PATCH v2 10/40] env: Move envmatch() to env.h

2019-08-01 Thread Simon Glass
Move envmatch() over to the new header file. Also rename it to env_match() to better line up with other functions. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None cmd/nvedit.c| 12 ++-- examples/api/glue.c | 3 ++- include/common.h| 3 --- in

[U-Boot] [PATCH v2 08/40] env: Move env_init() to env.h

2019-08-01 Thread Simon Glass
Move env_init() over to the new header file. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v2: None arch/arm/cpu/armv8/fsl-layerscape/spl.c | 1 + arch/mips/lib/bootm.c | 1 + board/Arcturus/ucp1020/spl.c| 1 + board/birdland/

[U-Boot] [PATCH v2 20/40] env: Move env_fix_drivers() to env.h

2019-08-01 Thread Simon Glass
Move this function over to the new header file. Signed-off-by: Simon Glass --- Changes in v2: - Adjust patch to leave eth_parse_enetaddr() alone include/env.h | 5 + include/environment.h | 5 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/env.h b/incl

[U-Boot] [PATCH v2 03/40] common: Move lcd_setmem() to lcd.h

2019-08-01 Thread Simon Glass
This function relates to lcd.h and is about to become obsolete with the driver-model conversion. Move it out of common.h Signed-off-by: Simon Glass --- Changes in v2: None common/board_f.c | 1 + include/common.h | 3 --- include/lcd.h| 1 + 3 files changed, 2 insertions(+), 3 deletions(-)

[U-Boot] [PATCH v2 02/40] common: Drop the dpram_... functions

2019-08-01 Thread Simon Glass
These declarations are not used anymore, so drop them. Signed-off-by: Simon Glass --- Changes in v2: None include/common.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/common.h b/include/common.h index d337f68bc4..df589163e5 100644 --- a/include/common.h +++ b/include/common

[U-Boot] [PATCH v2 04/40] common: Remove video_setmem()

2019-08-01 Thread Simon Glass
This function is no-longer defined in U-Boot. Drop the declaration from common.h Signed-off-by: Simon Glass --- Changes in v2: None common/board_f.c | 7 --- include/common.h | 3 --- 2 files changed, 10 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index ed3cf6afbe..7d656

[U-Boot] [PATCH v2 01/40] common: Move gzip functions into a new gzip header

2019-08-01 Thread Simon Glass
As part of the effort to remove things from common.h, create a new header for the gzip functions. Move the function declarations to it and add missing documentation. Signed-off-by: Simon Glass --- Changes in v2: - Update to add header to image.c instead of bootm.c board/menlo/m53menlo/m53menlo

Re: [U-Boot] [PATCH v3 1/7] clk: add support for clk_is_match()

2019-08-01 Thread Tom Rini
On Thu, Aug 01, 2019 at 07:24:27PM +0530, Sekhar Nori wrote: > Hi Fabio, > > On 01/08/19 7:17 PM, Fabio Estevam wrote: > > Hi Sekhar, > > > > On Thu, Aug 1, 2019 at 10:44 AM Sekhar Nori wrote: > >> > >> Add support for clk_is_match() which is required to > >> know if two clock pointers point to

[U-Boot] [PATCH v2 00/40] env: common: Remove environment definitions from common.h

2019-08-01 Thread Simon Glass
At present common.h has a lot of uncommon declarations in it. Many of these would be better placed elsewhere, in header files more related to their purpose. In particular the environnment functions should move to the environment headers. This should reduce the overall amount of code compiled and th

[U-Boot] [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on probe

2019-08-01 Thread Matwey V. Kornilov
Since commit 3d296365e4e8 ("mmc: sdhci: Add support for sdhci-caps-mask") sdhci_setup_cfg() expects a valid sdhci_host mmc field. Move the mmc field initialization before sdhci_setup_cfg() call to avoid crash on mmc pointer dereference. [this patch is based on commit 41a9fab8dac8 ("mmc: mv_sdhci:

Re: [U-Boot] [PATCH] sifive: riscv: update Hifive Unleashed configuration infrastructure

2019-08-01 Thread Sagar Kadam
Hi Andreas, On Wed, Jul 31, 2019 at 2:02 PM Andreas Schwab wrote: > > On Jul 30 2019, Sagar Kadam wrote: > > > I do remember using "git mv" here. > > git mv is identical to git rm + git add. A git repository has no > concept of file renames. > > Andreas. > Thanks, for clarifying. Regards, Saga

Re: [U-Boot] [PATCH] sifive: riscv: update Hifive Unleashed configuration infrastructure

2019-08-01 Thread Sagar Kadam
Hi Anup, On Wed, Jul 31, 2019 at 1:50 PM Anup Patel wrote: > > On Tue, Jul 30, 2019 at 11:01 PM Sagar Kadam wrote: > > > > Hello Anup, > > > > On Tue, Jul 30, 2019 at 9:12 AM Anup Patel wrote: > > > > > > On Mon, Jul 29, 2019 at 6:13 PM Sagar Shrikant Kadam > > > wrote: > > > > > > > > This pa

Re: [U-Boot] fit image: boot gzipped ramdisk does not work anymore

2019-08-01 Thread Heiko Schocher
Hello Simon, Am 01.08.2019 um 14:33 schrieb Simon Goldschmidt: Am 01.08.2019 um 10:06 schrieb Heiko Schocher: Hello Julius, since your commit (just gone into mainline): b1307f884a91 ("fit: Support compression for non-kernel components (e.g. FDT)") I see on an imx6ull based board when booting

Re: [U-Boot] [PATCH 2/2] imx: mx6ul_14x14_evk: convert to DM_VIDEO

2019-08-01 Thread Fabio Estevam
Hi Peng, On Thu, Aug 1, 2019 at 3:02 AM Peng Fan wrote: > + display0: display@0 { > + bits-per-pixel = <16>; > + bus-width = <24>; > + > + display-timings { > + native-mode = <&timing0>; > + > + timing0:

Re: [U-Boot] [PATCH 1/2] imx: mx6ul_14x14_evk: Fix SPL boot

2019-08-01 Thread Fabio Estevam
On Thu, Aug 1, 2019 at 3:02 AM Peng Fan wrote: > > When booting SPL on the board, met boot failure: > " > Trying to boot from MMC2 > MMC Device 1 not found > spl: could not find mmc device 1. error: -19 > SPL: failed to boot from all boot devices > " > > Let's register the two mmc controllers in S

Re: [U-Boot] [PATCH v3 1/7] clk: add support for clk_is_match()

2019-08-01 Thread Fabio Estevam
Hi Sekhar, On Thu, Aug 1, 2019 at 10:54 AM Sekhar Nori wrote: > Sure. I assume this goes into the commit description? Yes, correct. Thanks ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

  1   2   >