Re: [PATCH 1/4 v5] watchdog: Implement generic watchdog_reset() version

2020-02-19 Thread Rasmus Villemoes
On 20/02/2020 07.43, Stefan Roese wrote: > On 20.02.20 07:38, Christophe Leroy wrote: > > > > +void watchdog_reset(void) > +{ > +    static ulong next_reset; > +    ulong now; > + > +    /* Exit if GD is not ready or watchdog is not initialized yet */ > +    if (!gd

[PATCH] watchdog: mpc8xx: Revert the 8xx watchdog back to CONFIG_HW_WATCHDOG

2020-02-19 Thread Christophe Leroy
Commit f3729ba6e7b2 ("watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup") switched the watchdog to CONFIG_WATCHDOG. But this is not compatible with the 8xx because it starts the watchdog HW timer at reset and must be serviced from the very beginning including while U-boot is executed in the

Try to use AHAB but ahab.c is not compiled

2020-02-19 Thread Oliver Graute
Hello Peng, I try to use AHAB feature on my board. First of all I just want to perform a "ahab_status". I enabled CONFIG_AHAB_BOOT=y in my config but ahab.c isn't compiled. The ahab.o is missing after compilation. Is there anything else to consider? Do I overlook something? Best regards, Oliver

Re: Please pull mmc mmc-2-19-2020

2020-02-19 Thread Masahiro Yamada
Hi Peng, On Thu, Feb 20, 2020 at 3:52 PM Peng Fan wrote: > > > Subject: Re: Please pull mmc mmc-2-19-2020 > > > > Hi Peng, > > > > On Thu, Feb 20, 2020 at 1:34 PM Tom Rini wrote: > > > > > > On Thu, Feb 20, 2020 at 01:56:41AM +, Peng Fan wrote: > > > > > > > Hi Tom > > > > > > > > Please

RE: Please pull mmc mmc-2-19-2020

2020-02-19 Thread Peng Fan
> Subject: Re: Please pull mmc mmc-2-19-2020 > > Hi Peng, > > On Thu, Feb 20, 2020 at 1:34 PM Tom Rini wrote: > > > > On Thu, Feb 20, 2020 at 01:56:41AM +, Peng Fan wrote: > > > > > Hi Tom > > > > > > Please pull mmc-2-29-2020. > > > > > > > NAK, this breaks nios2: > > nios2: +

Re: [PATCH 3/4 v5] watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup

2020-02-19 Thread Christophe Leroy
On 02/20/2020 05:37 AM, Stefan Roese wrote: Hi Christophe, On 19.02.20 20:15, Christophe Leroy wrote: Hi Stefan, On 04/25/2019 07:17 AM, Stefan Roese wrote: With the generic watchdog driver now implemented, this patch removes some legacy stuff from the MPC8xx watchdog driver and its

Re: [PATCH] lib: Improve _parse_integer_fixup_radix base 16 detection

2020-02-19 Thread Michal Simek
čt 13. 2. 2020 v 13:30 odesílatel Tom Rini napsal: > > On Thu, Feb 13, 2020 at 08:33:09AM +0100, Michal Simek wrote: > > pá 7. 2. 2020 v 13:07 odesílatel Michal Simek > > napsal: > > > > > > Base autodetection is failing for this case: > > > if test 257 -gt 3ae; then echo first; else echo

Re: [PATCH 1/4 v5] watchdog: Implement generic watchdog_reset() version

2020-02-19 Thread Stefan Roese
On 20.02.20 07:38, Christophe Leroy wrote: +void watchdog_reset(void) +{ +    static ulong next_reset; +    ulong now; + +    /* Exit if GD is not ready or watchdog is not initialized yet */ +    if (!gd || !(gd->flags & GD_FLG_WDT_READY)) +    return; + +    /* Do not reset the watchdog

Re: [PATCH 1/4 v5] watchdog: Implement generic watchdog_reset() version

2020-02-19 Thread Christophe Leroy
On 02/20/2020 05:43 AM, Stefan Roese wrote: Hi Christophe On 19.02.20 20:21, Christophe Leroy wrote: Le 25/04/2019 à 09:17, Stefan Roese a écrit : This patch tries to implement a generic watchdog_reset() function that can be used by all boards that want to service the watchdog device in

Re: [RFC PATCH 2/2] video: meson: Use reserving memory function without kernel linear mapping

2020-02-19 Thread Michael Nazzareno Trimarchi
Hi On Thu, Feb 20, 2020 at 4:05 AM Simon Glass wrote: > > Hi Michael, > > On Wed, 19 Feb 2020 at 11:43, Michael Trimarchi > wrote: > > > > Memory reserved for the simple framebuffer should not be used > > and part of memory linear mapping > > > > Signed-off-by: Michael Trimarchi > > --- > >

Re: [PATCH 1/4 v5] watchdog: Implement generic watchdog_reset() version

2020-02-19 Thread Stefan Roese
Hi Christophe On 19.02.20 20:21, Christophe Leroy wrote: Le 25/04/2019 à 09:17, Stefan Roese a écrit : This patch tries to implement a generic watchdog_reset() function that can be used by all boards that want to service the watchdog device in U-Boot. This watchdog servicing is enabled via

Re: [PATCH 3/4 v5] watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup

2020-02-19 Thread Stefan Roese
Hi Christophe, On 19.02.20 20:15, Christophe Leroy wrote: Hi Stefan, On 04/25/2019 07:17 AM, Stefan Roese wrote: With the generic watchdog driver now implemented, this patch removes some legacy stuff from the MPC8xx watchdog driver and its Kconfig integration. CONFIG_MPC8xx_WATCHDOG is

Re: Please pull mmc mmc-2-19-2020

2020-02-19 Thread Masahiro Yamada
Hi Peng, On Thu, Feb 20, 2020 at 1:34 PM Tom Rini wrote: > > On Thu, Feb 20, 2020 at 01:56:41AM +, Peng Fan wrote: > > > Hi Tom > > > > Please pull mmc-2-29-2020. > > > > NAK, this breaks nios2: > nios2: + 10m50 3c120 > +(10m50,3c120) ../drivers/net/altera_tse.c: In function

[PATCH v4 04/11] dma-mapping: add for all architectures

2020-02-19 Thread Masahiro Yamada
To avoid "asm/dma-mapping.h: No such file or directory" error, we need something. Signed-off-by: Masahiro Yamada --- Changes in v4: - Keep nios2 port as-is Changes in v2: - New patch arch/arc/include/asm/dma-mapping.h| 1 + arch/m68k/include/asm/dma-mapping.h | 1 +

[PATCH 2/3] mmc: check the flags of host_caps about broken-cd

2020-02-19 Thread Jaehoon Chung
broken-cd is provided to dt-property. Then it's set to MMC_CAP_NEEDS_POLL flag. Signed-off-by: Jaehoon Chung --- drivers/mmc/mmc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index b50fcbf6cf..cac60ea034 100644 ---

[PATCH 0/3] Remove CONFIG_MMC_BROKEN_CD

2020-02-19 Thread Jaehoon Chung
CONFIG_MMC_BROKEN_CD needs not to define to Kconfig. broken-cd is already provide to dt-property. If want to poll card-detect, set to broken-cd instead of enabling CONFIG_MMC_BROKEN_CD. When checked the boards that is eabled CONFIG_MMC_BROKEN_CD, it also used the value of dt as broken-cd.

[PATCH 1/3] mmc: jz_mmc; add MMC_CAP_NEEDS_POLL by default

2020-02-19 Thread Jaehoon Chung
Add MMC_CAP_NEEDS_POLL by default. Signed-off-by: Jaehoon Chung --- drivers/mmc/jz_mmc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/jz_mmc.c b/drivers/mmc/jz_mmc.c index 8d4f886cb4..df995bda2f 100644 --- a/drivers/mmc/jz_mmc.c +++

[PATCH 3/3] mmc: Kconfig: remove MMC_BROKEN_CD configuration

2020-02-19 Thread Jaehoon Chung
Remove MMC_BROKEN_CD configuration. It doesn't need to use configuration, instead use broken-cd property. Signed-off-by: Jaehoon Chung --- configs/brppt2_defconfig| 1 - configs/ci20_mmc_defconfig | 1 - configs/meerkat96_defconfig | 1 - drivers/mmc/Kconfig | 5 - 4 files

Re: Please pull mmc mmc-2-19-2020

2020-02-19 Thread Tom Rini
On Thu, Feb 20, 2020 at 01:56:41AM +, Peng Fan wrote: > Hi Tom > > Please pull mmc-2-29-2020. > NAK, this breaks nios2: nios2: + 10m50 3c120 +(10m50,3c120) ../drivers/net/altera_tse.c: In function 'altera_tse_probe': +(10m50,3c120) ../drivers/net/altera_tse.c:646:15: error:

[PATCH 0/6] rockchip: efuse: add support for more platfroms

2020-02-19 Thread Finley Xiao
Finley Xiao (6): rockchip: efuse: Add support for rk3288 efuse rockchip: efuse: Add support for rk3066a efuse rockchip: efuse: Add support for rk3188 efuse rockchip: efuse: Add support for rk322x efuse rockchip: efuse: Add support for rk3328 non-secure efuse rockchip: efuse: Add

[PATCH 2/6] rockchip: efuse: Add support for rk3066a efuse

2020-02-19 Thread Finley Xiao
This adds the necessary data for handling eFuse on the rk3066a. Signed-off-by: Finley Xiao --- drivers/misc/rockchip-efuse.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index f01d877e33..3f2c64b105 100644 ---

[PATCH 4/6] rockchip: efuse: Add support for rk322x efuse

2020-02-19 Thread Finley Xiao
This adds the necessary data for handling eFuse on the rk322x. Signed-off-by: Finley Xiao --- drivers/misc/rockchip-efuse.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index e549d5d282..175a7fe2f5 100644 ---

[PATCH 2/2] rockchip: efuse: Add support for rk1808 non-secure efuse

2020-02-19 Thread Finley Xiao
This adds the necessary data for handling eFuse on the rk1808. Signed-off-by: Finley Xiao --- drivers/misc/rockchip-efuse.c | 114 ++ 1 file changed, 114 insertions(+) diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index

[PATCH 3/6] rockchip: efuse: Add support for rk3188 efuse

2020-02-19 Thread Finley Xiao
This adds the necessary data for handling eFuse on the rk3188. Signed-off-by: Finley Xiao --- drivers/misc/rockchip-efuse.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index 3f2c64b105..e549d5d282 100644 ---

[PATCH 2/6] rockchip: efuse: Add support for rk3066a efuse

2020-02-19 Thread Finley Xiao
This adds the necessary data for handling eFuse on the rk3066a. Signed-off-by: Finley Xiao --- drivers/misc/rockchip-efuse.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index f01d877e33..3f2c64b105 100644 ---

[PATCH 1/6] rockchip: efuse: Add support for rk3288 efuse

2020-02-19 Thread Finley Xiao
This adds the necessary data for handling eFuse on the rk3288. Signed-off-by: Finley Xiao --- drivers/misc/rockchip-efuse.c | 76 --- 1 file changed, 72 insertions(+), 4 deletions(-) diff --git a/drivers/misc/rockchip-efuse.c

[PATCH 0/6] rockchip: efuse: add support for more paltforms

2020-02-19 Thread Finley Xiao
Finley Xiao (6): rockchip: efuse: Add support for rk3288 efuse rockchip: efuse: Add support for rk3066a efuse rockchip: efuse: Add support for rk3188 efuse rockchip: efuse: Add support for rk322x efuse rockchip: efuse: Add support for rk3328 non-secure efuse rockchip: efuse: Add

[PATCH 1/2] rockchip: efuse: Add support for rk3328 non-secure efuse

2020-02-19 Thread Finley Xiao
This adds the necessary data for handling eFuse on the rk3328. Signed-off-by: Finley Xiao --- drivers/misc/rockchip-efuse.c | 69 +++ 1 file changed, 69 insertions(+) diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index

[PATCH 2/2] rockchip: efuse: Add support for rk1808 non-secure efuse

2020-02-19 Thread Finley Xiao
This adds the necessary data for handling eFuse on the rk1808. Signed-off-by: Finley Xiao --- drivers/misc/rockchip-efuse.c | 114 ++ 1 file changed, 114 insertions(+) diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index

[PATCH 1/6] rockchip: efuse: Add support for rk3288 efuse

2020-02-19 Thread Finley Xiao
This adds the necessary data for handling eFuse on the rk3288. Signed-off-by: Finley Xiao --- drivers/misc/rockchip-efuse.c | 76 --- 1 file changed, 72 insertions(+), 4 deletions(-) diff --git a/drivers/misc/rockchip-efuse.c

[PATCH 1/6] rockchip: efuse: Add support for rk3288 efuse

2020-02-19 Thread Finley Xiao
This adds the necessary data for handling eFuse on the rk3288. Signed-off-by: Finley Xiao --- drivers/misc/rockchip-efuse.c | 76 --- 1 file changed, 72 insertions(+), 4 deletions(-) diff --git a/drivers/misc/rockchip-efuse.c

[PATCH 1/2] rockchip: efuse: Add support for rk3328 non-secure efuse

2020-02-19 Thread Finley Xiao
This adds the necessary data for handling eFuse on the rk3328. Signed-off-by: Finley Xiao --- drivers/misc/rockchip-efuse.c | 69 +++ 1 file changed, 69 insertions(+) diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index

[PATCH 0/6] rockchip: efuse: add support for more platfroms

2020-02-19 Thread Finley Xiao
Finley Xiao (6): rockchip: efuse: Add support for rk3288 efuse rockchip: efuse: Add support for rk3066a efuse rockchip: efuse: Add support for rk3188 efuse rockchip: efuse: Add support for rk322x efuse rockchip: efuse: Add support for rk3328 non-secure efuse rockchip: efuse: Add

[PATCH 2/6] rockchip: efuse: Add support for rk3066a efuse

2020-02-19 Thread Finley Xiao
This adds the necessary data for handling eFuse on the rk3066a. Signed-off-by: Finley Xiao --- drivers/misc/rockchip-efuse.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index f01d877e33..3f2c64b105 100644 ---

Re: [RFC PATCH 1/2] common: fdt: Add a function for reserving memory without kernel linear mapping

2020-02-19 Thread Simon Glass
Hi Michael, On Wed, 19 Feb 2020 at 11:43, Michael Trimarchi wrote: > > We need to reserve memory and not put in kernel linear mapping. > This avoid problem during memory remapping from the simple > frame buffer in linux kernel > > Signed-off-by: Michael Trimarchi > --- > common/fdt_support.c

Re: [PATCH 7/8] Revert "power-domain: Rename free() to rfree()"

2020-02-19 Thread Simon Glass
On Wed, 19 Feb 2020 at 12:40, Simon Goldschmidt wrote: > > This reverts commit 4f51188e47921b17e6b3ce9606c8e71234c9f2df. > > Signed-off-by: Simon Goldschmidt > --- > > drivers/power/domain/bcm6328-power-domain.c | 2 +- > drivers/power/domain/imx8-power-domain-legacy.c | 2 +- >

Re: [PATCH 2/8] Revert "mtd: Rename free() to rfree()"

2020-02-19 Thread Simon Glass
On Wed, 19 Feb 2020 at 12:39, Simon Goldschmidt wrote: > > This reverts commit 8d38a8459b0de45f5ff41f3e11c278a5cf395fd0. > > Signed-off-by: Simon Goldschmidt > --- > > drivers/mtd/mtdcore.c | 4 ++-- > drivers/mtd/nand/raw/denali.c | 2 +- > drivers/mtd/nand/spi/core.c | 2

Re: [PATCH 8/8] Revert "mailbox: Rename free() to rfree()"

2020-02-19 Thread Simon Glass
On Wed, 19 Feb 2020 at 12:40, Simon Goldschmidt wrote: > > This reverts commit cc92c3cc68a9053f53b2814e9233d86553cc998e. > > Signed-off-by: Simon Goldschmidt > --- > > drivers/mailbox/k3-sec-proxy.c | 2 +- > drivers/mailbox/mailbox-uclass.c | 4 ++-- > drivers/mailbox/sandbox-mbox.c | 2 +-

Re: [PATCH 6/8] Revert "reset: Rename free() to rfree()"

2020-02-19 Thread Simon Glass
On Wed, 19 Feb 2020 at 12:40, Simon Goldschmidt wrote: > > This reverts commit 94474b25c3a60a746bf641a975c3db239dae29b9. > > Signed-off-by: Simon Goldschmidt > --- > > drivers/reset/reset-bcm6345.c | 2 +- > drivers/reset/reset-hisilicon.c | 2 +- > drivers/reset/reset-hsdk.c | 2 +- >

Re: [PATCH 4/8] Revert "clk: Rename free() to rfree()"

2020-02-19 Thread Simon Glass
On Wed, 19 Feb 2020 at 12:40, Simon Goldschmidt wrote: > > This reverts commit fb8c0d595f1ad83bee5dd398b59b0ee16d8d15a9. > > Signed-off-by: Simon Goldschmidt > --- > > drivers/clk/clk-ti-sci.c | 2 +- > drivers/clk/clk-uclass.c | 4 ++-- > drivers/clk/clk_sandbox.c | 2

Re: [PATCH 5/8] Revert "gpio: Rename free() to rfree()"

2020-02-19 Thread Simon Glass
On Wed, 19 Feb 2020 at 12:40, Simon Goldschmidt wrote: > > This reverts commit 093152f275e036e54d48b3d9fc0adbc1ca4cc5b0. > > Signed-off-by: Simon Goldschmidt > --- > > drivers/gpio/gpio-rcar.c | 2 +- > drivers/gpio/gpio-uclass.c | 8 > include/asm-generic/gpio.h | 2 +- > 3 files

Re: [PATCH 3/8] Revert "dma: Rename free() to rfree()"

2020-02-19 Thread Simon Glass
On Wed, 19 Feb 2020 at 12:40, Simon Goldschmidt wrote: > > This reverts commit aae95882232a24ee49c89d0356febf3685a87c8a. > > Signed-off-by: Simon Goldschmidt > --- > > drivers/dma/dma-uclass.c | 4 ++-- > drivers/dma/sandbox-dma-test.c | 4 ++-- > drivers/dma/ti/k3-udma.c | 4 ++-- >

Re: [PATCH 1/8] malloc: implement USE_DL_PREFIX via inline functions

2020-02-19 Thread Simon Glass
On Wed, 19 Feb 2020 at 12:39, Simon Goldschmidt wrote: > > Commit cfda60f99ae2 ("sandbox: Use a prefix for all allocation functions") > introduced preprocessor macros for malloc/free etc. > > This is bad practice as it essentially makes 'free' a reserved keyword and > resulted in quite a bit of

Re: [PATCH] bdinfo: Show information about fdt blob via bdinfo

2020-02-19 Thread Simon Glass
On Tue, 18 Feb 2020 at 22:19, Heiko Schocher wrote: > > PowerPC target supports OF booting, so print the > fdt address and size in bdinfo. > > Signed-off-by: Heiko Schocher > --- > Travis build: > https://travis-ci.org/hsdenx/u-boot-test/builds/651885430 > > cmd/bdinfo.c | 3 +++ > 1 file

Re: [PATCH 1/2] rockchip: elgin-rv1108: Use syscon API to get grf base

2020-02-19 Thread Simon Glass
On Tue, 18 Feb 2020 at 18:46, Kever Yang wrote: > > Use syscon API to get grf base instead of get from dts. > > Signed-off-by: Kever Yang > --- > > board/elgin/elgin_rv1108/elgin_rv1108.c | 7 +++ > 1 file changed, 3 insertions(+), 4 deletions(-) Reviewed-by: Simon Glass

Re: [RFC PATCH 2/2] video: meson: Use reserving memory function without kernel linear mapping

2020-02-19 Thread Simon Glass
Hi Michael, On Wed, 19 Feb 2020 at 11:43, Michael Trimarchi wrote: > > Memory reserved for the simple framebuffer should not be used > and part of memory linear mapping > > Signed-off-by: Michael Trimarchi > --- > drivers/video/meson/meson_vpu.c | 6 +++--- > 1 file changed, 3 insertions(+), 3

Re: [PATCH v2 0/4] x86: Improve support for chain-loading U-Boot

2020-02-19 Thread Simon Glass
Hi Andy, On Wed, 19 Feb 2020 at 02:37, Andy Shevchenko wrote: > > On Wed, Feb 19, 2020 at 4:46 AM Simon Glass wrote: > > > > This little series adds a few checks into the code to allow better > > operation when booting a build from a previous-state loader such as > > coreboot. > > > > At

Re: [PATCH 2/2] rockchip: evb-rv1108: Use syscon API to get grf base

2020-02-19 Thread Simon Glass
On Tue, 18 Feb 2020 at 18:46, Kever Yang wrote: > > Use syscon API to get grf base instead of get from dts. > > Signed-off-by: Kever Yang > --- > > board/rockchip/evb_rv1108/evb_rv1108.c | 7 +++ > 1 file changed, 3 insertions(+), 4 deletions(-) Reviewed-by: Simon Glass You might

Re: [PATCH 0/8] malloc: implement USE_DL_PREFIX using inline functions

2020-02-19 Thread Simon Glass
Hi Simon, On Wed, 19 Feb 2020 at 12:39, Simon Goldschmidt wrote: > > Commit cfda60f99ae2 ("sandbox: Use a prefix for all allocation functions") > introduced preprocessor macros for malloc/free etc. > > This is bad practice as it essentially makes 'free' a reserved keyword and > resulted in quite

Re: [PATCH 2/2] rockchip: video: Convert to use APIs which support live DT

2020-02-19 Thread Simon Glass
Hi Kever, On Tue, 18 Feb 2020 at 18:45, Kever Yang wrote: > > Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the > driver can support live DT. > > Signed-off-by: Kever Yang > --- > > drivers/video/rockchip/rk3288_mipi.c | 1 - > drivers/video/rockchip/rk3399_mipi.c | 1 - >

Re: [PATCH 1/2] rockchip: video: Use ofnode_decode_display_timing() to parse timing

2020-02-19 Thread Simon Glass
On Tue, 18 Feb 2020 at 18:45, Kever Yang wrote: > > Use ofnode_decode_display_timing() instead of > fdtdec_decode_display_timing() to parse display timing, so that we can > support live DT. > > Signed-off-by: Kever Yang > --- > > drivers/video/rockchip/rk_lvds.c | 3 +-- >

[PATCH v2 8/9] usb: Use ofnode as usb_get_dr_mode() parameter

2020-02-19 Thread Kever Yang
ofnode is more common and no need to convert to offset after we migrate other API to use ofnode. Signed-off-by: Kever Yang Acked-by: Neil Armstrong --- Changes in v2: - add ofnode.h in otg.h to avoid build error drivers/usb/cdns3/core.c | 4 ++-- drivers/usb/common/common.c

[PATCH v2 6/9] usb: host: dwc3-sti-glue: Migrate to use ofnode API

2020-02-19 Thread Kever Yang
Use ofnode_ instead of fdt_ or fdtdec_ APIs so that the driver can support live DT. Signed-off-by: Kever Yang --- Changes in v2: - fix build error for ofnode not define drivers/usb/host/dwc3-sti-glue.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git

[PATCH v2 9/9] usb: Use ofnode as usb_get_maximum_speed() parameter

2020-02-19 Thread Kever Yang
ofnode is more common and no need to convert to offset after we migrate other API to use ofnode. Signed-off-by: Kever Yang --- Changes in v2: None drivers/usb/cdns3/gadget.c | 2 +- drivers/usb/common/common.c | 5 ++--- drivers/usb/dwc3/dwc3-generic.c | 2 +- include/linux/usb/otg.h

[PATCH v2 5/9] usb: dwc3-generic: Use dev_read_addr() instead of devfdt_get_addr()

2020-02-19 Thread Kever Yang
Use more common API so that we can support live DT. Signed-off-by: Kever Yang --- Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index

[PATCH v2 4/9] usb: dwc3-generic: Migrate to use ofnode API for bind function

2020-02-19 Thread Kever Yang
Use ofnode_ instead of fdt_ APIs so that the driver can support live DT. Signed-off-by: Kever Yang --- Changes in v2: None drivers/usb/dwc3/dwc3-generic.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c

[PATCH v2 2/9] usb: ehci-msm: Use dev interface to get device address

2020-02-19 Thread Kever Yang
Use dev_read_addr_ptr() instead of devfdt_get_addr() so that we can support live DT. Signed-off-by: Kever Yang Reviewed-by: Ramon Fried --- Changes in v2: None drivers/usb/host/ehci-msm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-msm.c

[PATCH v2 3/9] usb: cdns3: Migrate to use ofnode API for bind function

2020-02-19 Thread Kever Yang
Use ofnode_ instead of fdt_ APIs so that the driver can support live DT. Signed-off-by: Kever Yang --- Changes in v2: None drivers/usb/cdns3/core.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index

[PATCH v2 7/9] usb: musb-new: Migrate to use ofnode API

2020-02-19 Thread Kever Yang
Use ofnode_ instead of fdt_ APIs so that the driver can support live DT. Signed-off-by: Kever Yang --- Changes in v2: None drivers/usb/musb-new/ti-musb.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/usb/musb-new/ti-musb.c

[PATCH v2 1/9] usb: dwc3-of-simple: Drop redundant inclding header file

2020-02-19 Thread Kever Yang
The fdtdec.h is no use in this file, remove the include code. Signed-off-by: Kever Yang --- Changes in v2: None drivers/usb/host/dwc3-of-simple.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c index

[PATCH v2 0/9] usb: Covert to support Live DT

2020-02-19 Thread Kever Yang
This patch set convert to use APIs leading with dev_ or ofnode_ which supports live DT instead of fdt_ or fdtdec or devfdt_. Two functions update there parameter from offset to ofnode: - usb_get_maximum_speed() - usb_get_dr_mode() For V2 update: Drop below patch after include ofnode.h in otg.h:

RE: [PATCH v2 11/21] arm: socfpga: Secure register access for clock manager (SoC 64bits)

2020-02-19 Thread Ang, Chee Hong
> On 2/19/20 1:25 PM, chee.hong@intel.com wrote: > > From: Chee Hong Ang > > > > Allow clock manager driver to access the System Manager's Boot Scratch > > Register 0 in non-secure mode (EL2) on SoC 64bits platform. > > > > Signed-off-by: Chee Hong Ang > > --- > >

RE: [PATCH v2 05/21] arm: socfpga: Override 'lowlevel_init' to support ATF

2020-02-19 Thread Ang, Chee Hong
> On 2/19/20 1:25 PM, chee.hong@intel.com wrote: > [...] > > diff --git a/arch/arm/mach-socfpga/lowlevel_init.S > > b/arch/arm/mach-socfpga/lowlevel_init.S > > new file mode 100644 > > index 000..68053a0 > > --- /dev/null > > +++ b/arch/arm/mach-socfpga/lowlevel_init.S > > This should be

Re: [PATCH 05/10] usb: dwc3-generic: Use dev_read_addr() instead of devfdt_get_addr()

2020-02-19 Thread Simon Glass
Hi Kever, On Tue, 18 Feb 2020 at 18:55, Kever Yang wrote: > > Use more common API so that we can support live DT. > > Signed-off-by: Kever Yang > --- > > drivers/usb/dwc3/dwc3-generic.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git

Re: [PATCH v3] cmd: Add command to dump drivers and compatible strings

2020-02-19 Thread Simon Glass
Hi Bin, On Wed, 19 Feb 2020 at 08:45, Bin Meng wrote: > > Hi Simon, > > On Fri, Feb 7, 2020 at 1:46 AM Simon Glass wrote: > > > > On Thu, 6 Feb 2020 at 10:03, Sean Anderson wrote: > > > > > > This adds a subcommand to dm to dump out what drivers are installed, and > > > their > > > compatible

RE: [PATCH v2 06/21] configs: socfpga: Enable FIT image loading with ATF support

2020-02-19 Thread Ang, Chee Hong
> On 2/19/20 1:25 PM, chee.hong@intel.com wrote: > > From: Chee Hong Ang > > > > SPL now loads ATF (BL31), U-Boot proper and DTB from FIT image. The > > new boot flow with ATF support is as follow: > > > > SPL -> ATF (BL31) -> U-Boot proper -> OS (Linux) > > > > Signed-off-by: Chee Hong Ang

RE: [PATCH v2 01/21] configs: agilex: Remove CONFIG_OF_EMBED

2020-02-19 Thread Ang, Chee Hong
> On 2/19/20 1:25 PM, chee.hong@intel.com wrote: > > From: Chee Hong Ang > > > > CONFIG_OF_EMBED was primarily enabled to support the agilex spl hex > > file requirements. Since this option now produces a warning during > > build, and the spl hex can be created using alternate methods, > >

RE: [PATCH v2 10/21] arm: socfpga: Add secure register access helper functions for SoC 64bits

2020-02-19 Thread Ang, Chee Hong
> On 2/19/20 1:25 PM, chee.hong@intel.com wrote: > > From: Chee Hong Ang > > > > These secure register access functions allow U-Boot proper running at > > EL2 (non-secure) to access System Manager's secure registers by > > calling the ATF's PSCI runtime services (EL3/secure). If these helper

Please pull mmc mmc-2-19-2020

2020-02-19 Thread Peng Fan
Hi Tom Please pull mmc-2-29-2020. sdhci: code clean-up and fix cache coherency problem enable cache snooping on mpc830x Fix build error when MMC_WRITE disabled CI: https://travis-ci.org/MrVan/u-boot/builds/652476827

Re: [PATCH 05/10] usb: dwc3-generic: Use dev_read_addr() instead of devfdt_get_addr()

2020-02-19 Thread Kever Yang
Hi Marek, On 2020/2/20 上午1:07, Marek Vasut wrote: On 2/19/20 2:54 AM, Kever Yang wrote: Use more common API so that we can support live DT. Signed-off-by: Kever Yang --- drivers/usb/dwc3/dwc3-generic.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

RE: [PATCH v2 09/21] arm: socfpga: Define SMC function identifiers for PSCI SiP services

2020-02-19 Thread Ang, Chee Hong
> On 2/19/20 1:25 PM, chee.hong@intel.com wrote: > [...] > > +++ b/include/linux/intel-smc.h > > @@ -0,0 +1,374 @@ > > +/* SPDX-License-Identifier: GPL-2.0 */ > > +/* > > + * Copyright (C) 2017-2018, Intel Corporation > > 2020 ? This file is new in U-Boot but it already exists in Linux kernel

RE: [PATCH v2 08/21] arm: socfpga: Add SMC helper function for Intel SOCFPGA (64bits)

2020-02-19 Thread Ang, Chee Hong
> On 2/19/20 1:25 PM, chee.hong@intel.com wrote: > [...] > > > +#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_ATF) int > > +invoke_smc(u32 func_id, u64 *args, int arg_len, u64 *ret_arg, int > > +ret_len) { > > + int i; > > + struct pt_regs regs; > > + > > + memset(, 0,

Re: Pull request for UEFI sub-system for efi-2020-04-rc3

2020-02-19 Thread Tom Rini
On Wed, Feb 19, 2020 at 07:40:30PM +0100, Heinrich Schuchardt wrote: > The following changes since commit f2a73d6867ef973fbb8471cc87058205999b5e5c: > > Merge tag 'u-boot-stm32-20200214' of > https://gitlab.denx.de/u-boot/custodians/u-boot-stm (2020-02-14 07:31:47 > -0500) > > are available in

Re: [U-Boot] Please pull from u-boot-i2c

2020-02-19 Thread Tom Rini
On Tue, Feb 18, 2020 at 12:51:34PM +0100, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-i2c master branch: > > The following changes since commit f2a73d6867ef973fbb8471cc87058205999b5e5c: > > Merge tag 'u-boot-stm32-20200214' of >

[PING][PATCH] Optionally: Set the serial# environment variable on the i.MX7.

2020-02-19 Thread Mark G
Enabling this new option allows the kernel to obtain the unique ID of the CPU when not using ATAGS. Signed-off-by: Mark G --- diff --git a/arch/arm/include/asm/bootm.h b/arch/arm/include/asm/bootm.h index a2131ca07c..64ceb36ed8 100644 --- a/arch/arm/include/asm/bootm.h +++

Re: [PATCH 1/1] efi_loader: implement EFI_RT_PROPERTIES_TABLE

2020-02-19 Thread Ard Biesheuvel
On Wed, 19 Feb 2020 at 21:00, Heinrich Schuchardt wrote: > > UEFI spec 2.8 errata A replaces the RuntimeServicesSupported variable > defined in UEFI spec 2.8 by the configuration table > EFI_RT_PROPERTIES_TABLE. So let's follow suit. > > Cc: Ard Biesheuvel > Signed-off-by: Heinrich Schuchardt

Re: [RESEND PATCH 10/10] test: sandbox: add test for erase command

2020-02-19 Thread Stephen Warren
On 2/12/20 11:45 AM, Patrick Delaunay wrote: Add test for the erase command tested on ENV in EXT4. -""" env_location: ENVL_EXT4 (2) +""" env location: ENVL_EXT4 (2) -""" restore env_location: ENVL_NOWHERE (12) +""" restore env location: ENVL_NOWHERE (12) Was there a

Re: [RESEND PATCH 06/10] test: environment in ext4

2020-02-19 Thread Stephen Warren
On 2/12/20 11:44 AM, Patrick Delaunay wrote: Add basic test to persistent environment in ext4: save and load in host ext4 file 'uboot.env'. On first execution a empty EXT4 file system is created in persistent data dir: env.ext4.img. diff --git a/test/py/tests/test_env.py

Re: [PATCH 1/4] wdt: Add CONFIG_DESIGNWARE_WATCHDOG to Kconfig

2020-02-19 Thread Sean Anderson
On 2/3/20 3:13 AM, Marek Vasut wrote: > On 2/2/20 7:02 PM, Sean Anderson wrote: >>> btw what's the motivation for this series, are you hitting some issues >>> with the WDT on SoCFPGA ? >> >> This watchdog appears on the Kendryte K210 CPU, which I am adding >> support for. The rest of the board

Re: m68k hangs silently

2020-02-19 Thread Simon Glass
Hi Angelo, On Wed, 19 Feb 2020 at 07:36, Angelo Dureghello wrote: > > Hi Simon, > > after this commit: > > commit 29f7d05a347ab7a42577c67fdfb787ef91537302 > Author: Simon Glass > Date: Sun Dec 29 21:19:17 2019 -0700 > > dm: core: Move ofdata_to_platdata() call earlier > > This method

Re: [PATCH v3] cmd: Add command to dump drivers and compatible strings

2020-02-19 Thread Sean Anderson
On 2/19/20 10:45 AM, Bin Meng wrote: > Hi Simon, > > On Fri, Feb 7, 2020 at 1:46 AM Simon Glass wrote: >> >> On Thu, 6 Feb 2020 at 10:03, Sean Anderson wrote: >>> >>> This adds a subcommand to dm to dump out what drivers are installed, and >>> their >>> compatible strings. I have found this

Re: [PATCH 2/8] Revert "mtd: Rename free() to rfree()"

2020-02-19 Thread Fabio Estevam
On Wed, Feb 19, 2020 at 4:40 PM Simon Goldschmidt wrote: > > This reverts commit 8d38a8459b0de45f5ff41f3e11c278a5cf395fd0. You missed to explain the reason for the revert.

Re: [PATCH v4 14/17] riscv: Try to get cpu frequency from device tree

2020-02-19 Thread Sean Anderson
On 2/19/20 11:12 AM, Bin Meng wrote: > Hi Sean, > > On Tue, Feb 11, 2020 at 2:05 PM Sean Anderson wrote: >> >> Instead of always using the "clock-frequency" property to determine cpu >> frequency, try using a clock in "clocks" if it exists. This patch also >> fixes a bug where there could be

[PATCH 1/1] efi_loader: implement EFI_RT_PROPERTIES_TABLE

2020-02-19 Thread Heinrich Schuchardt
UEFI spec 2.8 errata A replaces the RuntimeServicesSupported variable defined in UEFI spec 2.8 by the configuration table EFI_RT_PROPERTIES_TABLE. So let's follow suit. Cc: Ard Biesheuvel Signed-off-by: Heinrich Schuchardt --- cmd/efidebug.c | 4 include/efi_api.h

[PATCH 8/8] Revert "mailbox: Rename free() to rfree()"

2020-02-19 Thread Simon Goldschmidt
This reverts commit cc92c3cc68a9053f53b2814e9233d86553cc998e. Signed-off-by: Simon Goldschmidt --- drivers/mailbox/k3-sec-proxy.c | 2 +- drivers/mailbox/mailbox-uclass.c | 4 ++-- drivers/mailbox/sandbox-mbox.c | 2 +- drivers/mailbox/stm32-ipcc.c | 2 +- drivers/mailbox/tegra-hsp.c

[PATCH 6/8] Revert "reset: Rename free() to rfree()"

2020-02-19 Thread Simon Goldschmidt
This reverts commit 94474b25c3a60a746bf641a975c3db239dae29b9. Signed-off-by: Simon Goldschmidt --- drivers/reset/reset-bcm6345.c | 2 +- drivers/reset/reset-hisilicon.c | 2 +- drivers/reset/reset-hsdk.c | 2 +- drivers/reset/reset-imx7.c | 2 +- drivers/reset/reset-mediatek.c | 2

[PATCH 5/8] Revert "gpio: Rename free() to rfree()"

2020-02-19 Thread Simon Goldschmidt
This reverts commit 093152f275e036e54d48b3d9fc0adbc1ca4cc5b0. Signed-off-by: Simon Goldschmidt --- drivers/gpio/gpio-rcar.c | 2 +- drivers/gpio/gpio-uclass.c | 8 include/asm-generic/gpio.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH 2/8] Revert "mtd: Rename free() to rfree()"

2020-02-19 Thread Simon Goldschmidt
This reverts commit 8d38a8459b0de45f5ff41f3e11c278a5cf395fd0. Signed-off-by: Simon Goldschmidt --- drivers/mtd/mtdcore.c | 4 ++-- drivers/mtd/nand/raw/denali.c | 2 +- drivers/mtd/nand/spi/core.c | 2 +- drivers/mtd/nand/spi/gigadevice.c | 2 +-

[PATCH 3/8] Revert "dma: Rename free() to rfree()"

2020-02-19 Thread Simon Goldschmidt
This reverts commit aae95882232a24ee49c89d0356febf3685a87c8a. Signed-off-by: Simon Goldschmidt --- drivers/dma/dma-uclass.c | 4 ++-- drivers/dma/sandbox-dma-test.c | 4 ++-- drivers/dma/ti/k3-udma.c | 4 ++-- include/dma-uclass.h | 4 ++-- 4 files changed, 8

[PATCH 7/8] Revert "power-domain: Rename free() to rfree()"

2020-02-19 Thread Simon Goldschmidt
This reverts commit 4f51188e47921b17e6b3ce9606c8e71234c9f2df. Signed-off-by: Simon Goldschmidt --- drivers/power/domain/bcm6328-power-domain.c | 2 +- drivers/power/domain/imx8-power-domain-legacy.c | 2 +- drivers/power/domain/imx8-power-domain.c| 2 +-

[PATCH 4/8] Revert "clk: Rename free() to rfree()"

2020-02-19 Thread Simon Goldschmidt
This reverts commit fb8c0d595f1ad83bee5dd398b59b0ee16d8d15a9. Signed-off-by: Simon Goldschmidt --- drivers/clk/clk-ti-sci.c | 2 +- drivers/clk/clk-uclass.c | 4 ++-- drivers/clk/clk_sandbox.c | 2 +- drivers/clk/tegra/tegra-car-clk.c | 2 +- include/clk-uclass.h

[PATCH 1/8] malloc: implement USE_DL_PREFIX via inline functions

2020-02-19 Thread Simon Goldschmidt
Commit cfda60f99ae2 ("sandbox: Use a prefix for all allocation functions") introduced preprocessor macros for malloc/free etc. This is bad practice as it essentially makes 'free' a reserved keyword and resulted in quite a bit of renaming to avoid that reserved keyword. A better solution is to

[PATCH 0/8] malloc: implement USE_DL_PREFIX using inline functions

2020-02-19 Thread Simon Goldschmidt
Commit cfda60f99ae2 ("sandbox: Use a prefix for all allocation functions") introduced preprocessor macros for malloc/free etc. This is bad practice as it essentially makes 'free' a reserved keyword and resulted in quite a bit of renaming to avoid that reserved keyword. A better solution is to

Re: [PATCH 1/4 v5] watchdog: Implement generic watchdog_reset() version

2020-02-19 Thread Christophe Leroy
Le 25/04/2019 à 09:17, Stefan Roese a écrit : This patch tries to implement a generic watchdog_reset() function that can be used by all boards that want to service the watchdog device in U-Boot. This watchdog servicing is enabled via CONFIG_WATCHDOG. Without this approach, new boards or

Re: [PATCH 3/4 v5] watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup

2020-02-19 Thread Christophe Leroy
Hi Stefan, On 04/25/2019 07:17 AM, Stefan Roese wrote: With the generic watchdog driver now implemented, this patch removes some legacy stuff from the MPC8xx watchdog driver and its Kconfig integration. CONFIG_MPC8xx_WATCHDOG is completely removed and hw_watchdog_reset() is made static, as the

Unwanted change in Kconfig for mpc8xx_wdt watchdog ?

2020-02-19 Thread Christophe Leroy
Hello Patrice, In commit b3134ffbd9 ("watchdog: Kconfig: Sort entry alphabetically") you bring back the line "select CONFIG_MPC8xx_WATCHDOG" removed by Stefan in commit f3729ba6e7 ("watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup") three weeks before. Was that wanted ? Thanks

[PATCH V2] ARM: socfpga: Add initial support for the ABB SECU board

2020-02-19 Thread Marek Vasut
From: Holger Brunck Add initial support for the ABB SECU board, which is an ArriaV-based SoCFPGA system with ethernet and booting from Denali NAND. Signed-off-by: Holger Brunck Cc: Ley Foon Tan Cc: Simon Goldschmidt --- V2: Use CONFIG_SYS_I2C_EEPROM_ADDR in printf() in ivm.c Enable

[RFC PATCH 1/2] common: fdt: Add a function for reserving memory without kernel linear mapping

2020-02-19 Thread Michael Trimarchi
We need to reserve memory and not put in kernel linear mapping. This avoid problem during memory remapping from the simple frame buffer in linux kernel Signed-off-by: Michael Trimarchi --- common/fdt_support.c | 40 include/fdt_support.h | 11

[RFC PATCH 2/2] video: meson: Use reserving memory function without kernel linear mapping

2020-02-19 Thread Michael Trimarchi
Memory reserved for the simple framebuffer should not be used and part of memory linear mapping Signed-off-by: Michael Trimarchi --- drivers/video/meson/meson_vpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/meson/meson_vpu.c

[RFC PATCH 0/2] Update reserved memory for simple framebuffer

2020-02-19 Thread Michael Trimarchi
Reserved memory for simple frame buffer should be created in a different way: + aliases { + display0 = + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + display_reserved:

  1   2   >