[U-Boot] [PATCH v3 0/4] AE350 support SMP boot from flash

2019-04-29 Thread Andes
From: Rick Chen In current RISC-V SMP flow, AE350 will encounter the the write failure problem since hart_lottery and available_harts_lock was not in ram address but in flash address when booing from flash. This patch can help to fix the failure problem when AE350 was booting from flash by

Re: [U-Boot] [PATCH] spi: Zap lpc32xx_ssp driver-related code

2019-04-29 Thread Simon Goldschmidt
On Mon, Apr 29, 2019 at 2:22 AM Tom Rini wrote: > > On Sat, Apr 27, 2019 at 10:08:34PM +0200, Simon Goldschmidt wrote: > > > > > > On 22.04.19 23:00, Tom Rini wrote: > > >On Mon, Apr 22, 2019 at 11:50:22PM +0300, Vladimir Zapolskiy wrote: > > >>Hi Jagan, Tom, > > >> > > >>On 04/19/2019 09:48 AM,

[U-Boot] [PATCH 4/4] configs: stm32mp15: Enable WDT flags

2019-04-29 Thread Patrice Chotard
This allows to enable WATCHDOG and WDT flags to be able to reset the watchdog and to support watchdog driver model. Signed-off-by: Patrice Chotard --- configs/stm32mp15_basic_defconfig | 2 ++ configs/stm32mp15_trusted_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git

Re: [U-Boot] [PATCH v2 10/19] spi: mpc8xxx: Simplify logic a bit

2019-04-29 Thread Joakim Tjernlund
On Mon, 2019-04-29 at 01:58 +0530, Jagan Teki wrote: > > From: Mario Six > > We do nothing in the loop if the "not empty" event was not detected. To > simplify the logic, check if this is the case, and skip the execution of > the loop early to reduce the nesting level and flag checking. Looked

Re: [U-Boot] [PATCH 2/4] ARM: davinci: Remove unused functions from header

2019-04-29 Thread Marek Vasut
On 4/28/19 11:45 PM, Adam Ford wrote: > There are a few functions defined in the header file, but they are > not referenced by any Davinci code. In order to make a general > function in the future with static function declarations, this > patch will remove the references all together. > >

Re: [U-Boot] [PATCH 4/4] ARM: socfpga: Add support for selecting bridges in bridge command

2019-04-29 Thread Marek Vasut
On 4/26/19 8:36 AM, Simon Goldschmidt wrote: > On Mon, Apr 22, 2019 at 9:24 PM Marek Vasut wrote: >> >> On 4/22/19 9:18 PM, Simon Goldschmidt wrote: >>> >>> >>> On 22.04.19 20:41, Marek Vasut wrote: On 4/22/19 8:22 PM, Simon Goldschmidt wrote: > Am 22.04.2019 um 20:01 schrieb Marek

Re: [U-Boot] [PATCH] ARM: socfpga: Remove socfpga_sdram_apply_static_cfg()

2019-04-29 Thread Marek Vasut
On 4/26/19 8:39 AM, Simon Goldschmidt wrote: > On Tue, Apr 23, 2019 at 6:14 PM Marek Vasut wrote: >> >> The usage of socfpga_sdram_apply_static_cfg() seems rather dubious and >> is confirmed to lead to a rare system hang when enabling bridges. This >> patch removes the

Re: [U-Boot] [PATCH 4/8] spi: Kconfig: Mark MXS_SPI has BROKEN

2019-04-29 Thread Marek Vasut
On 4/29/19 12:40 PM, Jagan Teki wrote: > On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut wrote: >> >> On 4/28/19 10:47 PM, Jagan Teki wrote: >>> Mark MXS_SPI has BROKEN, this so the resulting build shows >>> warning for broken configuration enabled and associated code >>> will remove in v2019.07

Re: [U-Boot] [PATCH 2/2] arm: add spl relocation support for armv8

2019-04-29 Thread Marek Vasut
On 4/29/19 1:38 PM, Andy Yan wrote: > Hi Fabio: > > On 2019/4/29 下午7:08, Fabio Estevam wrote: >> Hi Andy, >> >> On Mon, Apr 29, 2019 at 6:06 AM Andy Yan wrote: >>> Relocate spl itself to a high memory. >> Please improve the commit message and explain the reason for doing this. >> >> > > The

[U-Boot] [PATCH] lib: Kconfig: fix help text for GZIP

2019-04-29 Thread Heiko Schocher
commit 95f4bbd581cf ("lib: fdt: Allow LZO and GZIP DT compression in U-Boot") introduced Kconfig option for gzip in U-Boot, but help text says gzip for SPL, which is wrong. Fix this. Signed-off-by: Heiko Schocher --- lib/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [U-Boot] DE10 Nano U-Boot v2019.04 Issues

2019-04-29 Thread Simon Goldschmidt
On Mon, Apr 29, 2019 at 1:16 AM rafael mello wrote: > > Hello Simon, > Thank you for the repply. > >> You probably should use mrproper here, not distclean? > I do agree, mrproper should be used. > > >> So what's $CC set to? I don't think you need ARCH=arm, works without that > >> for me. >

[U-Boot] [PATCH v3 4/4] riscv: configs: AE350 will use CONFIG_OF_PRIOR_STAGE when booting from ram

2019-04-29 Thread Andes
From: Rick Chen When AE350 boots from ram, use CONFIG_OF_PRIOR_STAGE instead of CONFIG_OF_BOARD. Signed-off-by: Rick Chen Cc: Greentime Hu Reviewed-by: Bin Meng Reviewed-by: Lukas Auer --- configs/ae350_rv32_defconfig | 2 +- configs/ae350_rv64_defconfig | 2 +- 2 files changed, 2

[U-Boot] [PATCH 0/3] add new wdt driver for sp805

2019-04-29 Thread Qiang Zhao
changes for v2: - modify the driver to DM Zhao Qiang (3): watchdog: add sp805 watchdog support dts: fsl-ls1028a: add sp805 node which is a watchdog defconfig: ls1028ardb: enable wdt MAINTAINERS | 1 + arch/arm/dts/fsl-ls1028a.dtsi | 4 ++

[U-Boot] [PATCH 0/4] Add watchdog support for STM32MP1

2019-04-29 Thread Patrice Chotard
This series: - sorts Kconfig entries in alphabetical order - enable watchdog support in SPL for STM32MP1 - adds watchdog support to STM32MP1 boards Patrice Chotard (4): watchdog: Kconfig: Sort entry alphabetically ARM: dts: stm32mp: Add iwdg2 support for stm32mp157c watchdog:

Re: [U-Boot] [PATCH v1 00/18] Improvement for the DWC3 USB generic driver and fixes for the K2 platforms

2019-04-29 Thread Marek Vasut
On 4/29/19 11:52 AM, Marek Vasut wrote: > On 4/29/19 11:09 AM, Jean-Jacques Hiblot wrote: >> Marek, >> >> This series fixes the linux boot on the K2 platforms. without it the K2 >> platforms are broken. Can you give it a look please ? > > Sure, can you rebase/repost please ? I don't have it in my

Re: [U-Boot] [PATCH] lib: Kconfig: fix help text for GZIP

2019-04-29 Thread Marek Vasut
On 4/29/19 8:59 AM, Heiko Schocher wrote: > commit 95f4bbd581cf ("lib: fdt: Allow LZO and GZIP DT compression in U-Boot") > > introduced Kconfig option for gzip in U-Boot, but help text > says gzip for SPL, which is wrong. Fix this. > > Signed-off-by: Heiko Schocher Acked-by: Marek Vasut >

Re: [U-Boot] [PATCH v1 03/18] dm: Add a No-op uclass

2019-04-29 Thread Marek Vasut
On 4/5/19 2:55 PM, Jean-Jacques Hiblot wrote: > This uclass is intended for devices that do not need any features from the > uclass, including binding children. > This will typically be used by devices that are used to bind child devices > but do not use dm_scan_fdt_dev() to do it. That is for

Re: [U-Boot] [PATCH 4/8] spi: Kconfig: Mark MXS_SPI has BROKEN

2019-04-29 Thread Jagan Teki
On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut wrote: > > On 4/29/19 12:40 PM, Jagan Teki wrote: > > On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut wrote: > >> > >> On 4/28/19 10:47 PM, Jagan Teki wrote: > >>> Mark MXS_SPI has BROKEN, this so the resulting build shows > >>> warning for broken

Re: [U-Boot] [PATCH 8/8] rockchip: px5: add timer0 dts node as tick timer

2019-04-29 Thread Andy Yan
Kever Yang 于2019年3月29日周五 下午10:54写道: > Let's use rockchip timer before stimer patches can be merged. > > Signed-off-by: Kever Yang > --- > > arch/arm/dts/rk3368-px5-evb-u-boot.dtsi | 7 +++ > 1 file changed, 7 insertions(+) > > Tested-by: Andy Yan > diff --git

Re: [U-Boot] [PATCH 2/3] rockchip: ram: rk3399: update for TPL

2019-04-29 Thread Andy Yan
Kever Yang 于2019年4月1日周一 下午5:25写道: > Init the ddr sdram in TPL instead of SPL, update the code. > > Signed-off-by: Kever Yang > --- > > drivers/ram/rockchip/sdram_rk3399.c | 15 ++- > 1 file changed, 10 insertions(+), 5 deletions(-) > > Tested-by: Andy Yan > diff --git

Re: [U-Boot] [PATCH 7/8] rockchip: rk3368: remove uart iomux init in SPL

2019-04-29 Thread Andy Yan
Hi Kever: Kever Yang 于2019年3月29日周五 下午10:55写道: > The iomux should have been set in board_debug_uart_init(), > do not set in board_init_f(), remove it. > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3368-board-spl.c | 13 - > 1 file changed, 13 deletions(-) > >

Re: [U-Boot] [PATCH 3/8] rockchip: px5: update SPL size for spl/tpl

2019-04-29 Thread Andy Yan
Kever Yang 于2019年3月29日周五 下午10:55写道: > Signed-off-by: Kever Yang > --- > > include/configs/evb_px5.h | 1 + > include/configs/rk3368_common.h | 3 ++- > 2 files changed, 3 insertions(+), 1 deletion(-) > > Tested-by: Andy Yan > diff --git a/include/configs/evb_px5.h

Re: [U-Boot] [PATCH 2/2] arm: add spl relocation support for armv8

2019-04-29 Thread Fabio Estevam
Hi Andy, On Mon, Apr 29, 2019 at 6:06 AM Andy Yan wrote: > > Relocate spl itself to a high memory. Please improve the commit message and explain the reason for doing this. ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 2/2] arm: add spl relocation support for armv8

2019-04-29 Thread Andy Yan
Hi Fabio: On 2019/4/29 下午7:08, Fabio Estevam wrote: Hi Andy, On Mon, Apr 29, 2019 at 6:06 AM Andy Yan wrote: Relocate spl itself to a high memory. Please improve the commit message and explain the reason for doing this. The detail reason I described in [PATCH 1/2],  you are in the list.

[U-Boot] [patch v2 3/3] defconfig: ls1028ardb: enable wdt

2019-04-29 Thread Qiang Zhao
Enable watchdog which is sp805, can be found on some NXP Layerscape SoC. Signed-off-by: Zhao Qiang --- configs/ls1028ardb_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/ls1028ardb_defconfig b/configs/ls1028ardb_defconfig index e3ff21f10c..5edcaae24b 100644 ---

[U-Boot] [patch v2 1/3] watchdog: add sp805 watchdog support

2019-04-29 Thread Qiang Zhao
sp805 is watchdog on some NXP layerscape SoCs, Now add its driver in uboot. To add CONFIG_WDT_SP805=y CONFIG_WDT=y CONFIG_CMD_WDT=y in defconfig to use it. Signed-off-by: Zhao Qiang --- MAINTAINERS | 1 + drivers/watchdog/Kconfig | 7 ++

[U-Boot] [patch v2 2/3] dts: fsl-ls1028a: add sp805 node which is a watchdog

2019-04-29 Thread Qiang Zhao
add sp805 nodes in fsl-ls1028a.dtsi --- arch/arm/dts/fsl-ls1028a.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/fsl-ls1028a.dtsi b/arch/arm/dts/fsl-ls1028a.dtsi index 35382eb3b4..30fb20cd3e 100644 --- a/arch/arm/dts/fsl-ls1028a.dtsi +++ b/arch/arm/dts/fsl-ls1028a.dtsi

[U-Boot] [PATCH 1/2] spl: add relocation support

2019-04-29 Thread Andy Yan
Some times we want to relocate spl code to dram after dram initialization or relocate spl code to a high memory to avoid code overide. For example on Rockchip armv8 platform, we run with boot flow TPL->SPL->ATF->U-Boot. TPL run in sram and is responsible for dram initialization. SPL run from the

Re: [U-Boot] U-Boot Security

2019-04-29 Thread Linder Pascal
Hello everyone, I have created the FIT to be loaded by the SPL and the keys for the signature. Now, I am wondering how the signature is done by U-Boot? Is there an option in menuconfig that points to the key or is it me that has to do it manually? Also, I am wondering how to place the public

Re: [U-Boot] [PATCH 3/4] usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support

2019-04-29 Thread Marek Vasut
On 4/28/19 11:45 PM, Adam Ford wrote: > This patch reuses some former code for the hawkboard, combines it > with some some similar DM_USB compatible code for the OHCI driver, > and enables the use of the da850's OHCI controller with DM_USB > compatibility. > > Signed-off-by: Adam Ford > > diff

Re: [U-Boot] [PATCH 1/4] usb: ohci: Re-enable commented out delay

2019-04-29 Thread Marek Vasut
On 4/28/19 11:45 PM, Adam Ford wrote: > There is a delay function that was commented out. This patch > re-enables it, because it will be needed for da850 ohci support. > > Signed-off-by: Adam Ford > > diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c > index

Re: [U-Boot] [PATCH 4/8] spi: Kconfig: Mark MXS_SPI has BROKEN

2019-04-29 Thread Marek Vasut
On 4/29/19 1:02 PM, Jagan Teki wrote: > On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut wrote: >> >> On 4/29/19 12:40 PM, Jagan Teki wrote: >>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut wrote: On 4/28/19 10:47 PM, Jagan Teki wrote: > Mark MXS_SPI has BROKEN, this so the resulting

Re: [U-Boot] [PATCH 4/8] spi: Kconfig: Mark MXS_SPI has BROKEN

2019-04-29 Thread Tom Rini
On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: > On 4/29/19 1:02 PM, Jagan Teki wrote: > > On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut wrote: > >> > >> On 4/29/19 12:40 PM, Jagan Teki wrote: > >>> On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut wrote: > > On 4/28/19 10:47 PM,

Re: [U-Boot] [PATCH 4/8] spi: Kconfig: Mark MXS_SPI has BROKEN

2019-04-29 Thread Marek Vasut
On 4/29/19 1:24 PM, Tom Rini wrote: > On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: >> On 4/29/19 1:02 PM, Jagan Teki wrote: >>> On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut wrote: On 4/29/19 12:40 PM, Jagan Teki wrote: > On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut

Re: [U-Boot] [PATCH] i2c: mvtwsi: Fix delay time for Turris Omnia

2019-04-29 Thread Stefan Roese
Hi Marek, (added Heiko to Cc) On 25.04.19 15:22, Marek Behún wrote: Commit c68c6243 ("i2c: mvtwsi: Make delay times frequency-dependent") broke the default configuration of the Turris Omnia target. With i2c frequency at 100kHz the twsi_wait function call to ndelay(tick) the tick variable is

[U-Boot] [PATCH v3 2/4] riscv: configs: Support AE350 SMP booting from flash flow

2019-04-29 Thread Andes
From: Rick Chen Add two defconfigs to support AE350 SMP booting from flash. Signed-off-by: Rick Chen Cc: Greentime Hu Reviewed-by: Bin Meng Reviewed-by: Lukas Auer --- configs/ae350_rv32_xip_defconfig | 37 + configs/ae350_rv64_xip_defconfig | 38

[U-Boot] [PATCH v3 3/4] riscv: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE is enabled

2019-04-29 Thread Andes
From: Rick Chen This patch will fix prior_stage_fdt_address write failure problem, when AE350 boots from flash. When AE350 boots from flash, prior_stage_fdt_address will be flash address, we shall avoid it to be written. Signed-off-by: Rick Chen Cc: Greentime Hu --- arch/riscv/cpu/cpu.c

Re: [U-Boot] [PATCH v2 10/19] spi: mpc8xxx: Simplify logic a bit

2019-04-29 Thread Jagan Teki
+ Mario On Mon, Apr 29, 2019 at 2:48 PM Joakim Tjernlund wrote: > > On Mon, 2019-04-29 at 01:58 +0530, Jagan Teki wrote: > > > > From: Mario Six > > > > We do nothing in the loop if the "not empty" event was not detected. To > > simplify the logic, check if this is the case, and skip the

Re: [U-Boot] [PATCH 4/8] spi: Kconfig: Mark MXS_SPI has BROKEN

2019-04-29 Thread Jagan Teki
On Mon, Apr 29, 2019 at 3:24 PM Marek Vasut wrote: > > On 4/28/19 10:47 PM, Jagan Teki wrote: > > Mark MXS_SPI has BROKEN, this so the resulting build shows > > warning for broken configuration enabled and associated code > > will remove in v2019.07 release. > > But the code is not broken, it

[U-Boot] [PATCH v3 1/4] riscv: Introduce CONFIG_XIP to support booting from flash

2019-04-29 Thread Andes
From: Rick Chen When U-Boot boots from flash, during the boot process, hart_lottery and available_harts_lock variable addresses point to flash which is not writable. This causes boot failures on AE350. Introduce a config option CONFIG_XIP to support such configuration. Signed-off-by: Rick Chen

Re: [U-Boot] [patch v2 1/3] watchdog: add sp805 watchdog support

2019-04-29 Thread Stefan Roese
On 29.04.19 10:24, Qiang Zhao wrote: sp805 is watchdog on some NXP layerscape SoCs, Now add its driver in uboot. To add CONFIG_WDT_SP805=y CONFIG_WDT=y CONFIG_CMD_WDT=y in defconfig to use it. Signed-off-by: Zhao Qiang --- MAINTAINERS | 1 +

[U-Boot] [PATCH 2/2] arm: add spl relocation support for armv8

2019-04-29 Thread Andy Yan
Relocate spl itself to a high memory. Signed-off-by: Andy Yan --- arch/arm/config.mk| 6 ++ arch/arm/cpu/armv8/start.S| 4 arch/arm/cpu/armv8/u-boot-spl.lds | 17 + arch/arm/lib/Makefile | 2 +- arch/arm/lib/crt0_64.S|

Re: [U-Boot] [PATCH 1/4] watchdog: Kconfig: Sort entry alphabetically

2019-04-29 Thread Stefan Roese
On 29.04.19 11:23, Patrice Chotard wrote: To make adding new entry easier, sort Kconfig entries in alphabetical order. Signed-off-by: Patrice Chotard --- drivers/watchdog/Kconfig | 87 1 file changed, 44 insertions(+), 43 deletions(-) diff

Re: [U-Boot] [PATCH v2] arm: socfpga: Move Stratix 10 SDRAM driver to DM

2019-04-29 Thread Marek Vasut
On 4/26/19 10:23 AM, Ley Foon Tan wrote: > On Wed, Apr 24, 2019 at 11:01 PM Marek Vasut wrote: >> >> On 4/24/19 8:21 AM, Ley Foon Tan wrote: >>> Convert Stratix 10 SDRAM driver to device model. >>> >>> Get rid of call to socfpga_per_reset() and use reset >>> framework. >>> >>> SPL is changed from

Re: [U-Boot] [PATCH] lib: uuid: Improve randomness of uuid values on RANDOM_UUID=y

2019-04-29 Thread Eugeniu Rosca
Hi Lukasz, On Sat, Apr 27, 2019 at 05:05:28PM +0200, Lukasz Majewski wrote: [..] > Reviewed-by: Lukasz Majewski > Thank you for the prompt review. -- Best Regards, Eugeniu. ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 3/3] rockchip: rk3399: update defconfig for TPL

2019-04-29 Thread Andy Yan
Kever Yang 于2019年4月1日周一 下午5:26写道: > The SPL is now running at SDRAM, and 0x1 is used by BL31, > and the ARM SPL do not support relocate now, we need reserved > 0x5 so that it won't overwrite the code when we load the > bl31 to target space. > We should remove this after we enable the

Re: [U-Boot] [PATCH] mips: rename arch mt7620 to mt7628

2019-04-29 Thread Weijie Gao
On Mon, 2019-04-29 at 07:08 +0200, Stefan Roese wrote: > On 28.04.19 11:38, Weijie Gao wrote: > > The MediaTek MT7620 and MT7628 SoCs are different. > > Although they use the same memory controller, the lowlevel code (CPU PLL) > > and other peripherals they use are totally different. Which means

Re: [U-Boot] [PATCH 3/4] watchdog: stm32mp: Add watchdog driver

2019-04-29 Thread Stefan Roese
On 29.04.19 11:23, Patrice Chotard wrote: This patch adds IWDG (Independent WatchDoG) support for STM32MP platform. Signed-off-by: Christophe Kerello Signed-off-by: Patrice Chotard --- MAINTAINERS| 1 + arch/arm/mach-stm32mp/Kconfig | 1 +

Re: [U-Boot] [PATCH v1 00/18] Improvement for the DWC3 USB generic driver and fixes for the K2 platforms

2019-04-29 Thread Marek Vasut
On 4/29/19 11:09 AM, Jean-Jacques Hiblot wrote: > Marek, > > This series fixes the linux boot on the K2 platforms. without it the K2 > platforms are broken. Can you give it a look please ? Sure, can you rebase/repost please ? I don't have it in my mailbox anymore. Thanks -- Best regards,

Re: [U-Boot] [PATCH v1 12/18] usb: dwc3: Add dwc3_of_parse() to get quirks information from DT

2019-04-29 Thread Marek Vasut
On 4/5/19 2:55 PM, Jean-Jacques Hiblot wrote: > Add a new function that read quirk and configuration information from the > DT. The goal is to allow platforms using their own version of DWC3 driver > to migrate to the generic DWC3 driver. > The function is adapted from the linux dwc3 driver.

Re: [U-Boot] [PATCH 4/8] rockchip: px5: update defconfig for TPL/SPL

2019-04-29 Thread Andy Yan
Kever Yang 于2019年3月29日周五 下午10:54写道: > Signed-off-by: Kever Yang > --- > > configs/evb-px5_defconfig | 56 +-- > 1 file changed, 54 insertions(+), 2 deletions(-) > > Tested-by: Andy Yan > diff --git a/configs/evb-px5_defconfig b/configs/evb-px5_defconfig >

Re: [U-Boot] [PATCH 6/8] rockchip: dmc: rk3368: update rank number for evb-px5

2019-04-29 Thread Andy Yan
Kever Yang 于2019年3月29日周五 下午10:53写道: > evb-px5 has only 1 CS, update for it. > > Signed-off-by: Kever Yang > --- > > drivers/ram/rockchip/dmc-rk3368.c | 4 > 1 file changed, 4 insertions(+) > > Tested-by: Andy Yan > diff --git a/drivers/ram/rockchip/dmc-rk3368.c >

Re: [U-Boot] [PATCH 1/8] rockchip: rk3368: support UART2/4 in board_debug_uart_init()

2019-04-29 Thread Andy Yan
Kever Yang 于2019年3月29日周五 下午10:54写道: > evb-rk3368 is using UART2 and PX5 evb is using UART4 > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3368/rk3368.c | 40 ++ > 1 file changed, 40 insertions(+) > > Tested-by: Andy Yan > diff --git

[U-Boot] [PATCH 2/4] ARM: dts: stm32mp: Add iwdg2 support for stm32mp157c

2019-04-29 Thread Patrice Chotard
This patch adds independent watchdog support for stm32mp157c in SPL. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32mp157-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/stm32mp157-u-boot.dtsi b/arch/arm/dts/stm32mp157-u-boot.dtsi index ab6f673..09560e2

[U-Boot] [PATCH 1/4] watchdog: Kconfig: Sort entry alphabetically

2019-04-29 Thread Patrice Chotard
To make adding new entry easier, sort Kconfig entries in alphabetical order. Signed-off-by: Patrice Chotard --- drivers/watchdog/Kconfig | 87 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/drivers/watchdog/Kconfig

[U-Boot] [PATCH 3/4] watchdog: stm32mp: Add watchdog driver

2019-04-29 Thread Patrice Chotard
This patch adds IWDG (Independent WatchDoG) support for STM32MP platform. Signed-off-by: Christophe Kerello Signed-off-by: Patrice Chotard --- MAINTAINERS| 1 + arch/arm/mach-stm32mp/Kconfig | 1 + drivers/watchdog/Kconfig | 8 +++ drivers/watchdog/Makefile

Re: [U-Boot] [PATCH] mips: rename arch mt7620 to mt7628

2019-04-29 Thread Stefan Roese
On 29.04.19 11:28, Weijie Gao wrote: On Mon, 2019-04-29 at 07:08 +0200, Stefan Roese wrote: On 28.04.19 11:38, Weijie Gao wrote: The MediaTek MT7620 and MT7628 SoCs are different. Although they use the same memory controller, the lowlevel code (CPU PLL) and other peripherals they use are

Re: [U-Boot] [PATCH] simple-bus: add DM_FLAG_PRE_RELOC flag to simple-bus driver

2019-04-29 Thread Heiko Schocher
Hello Simon, Am 22.04.2019 um 04:38 schrieb s...@google.com: On Wed, Apr 10, 2019 at 8:46 PM Lukas Auer wrote: Boards such as qemu-riscv, which receive their device tree at runtime, for example from QEMU or firmware, are unable to add the appropriate device tree properties to make devices

Re: [U-Boot] [PATCH v1 02/18] usb: host: remove the xhci-zynqmp driver

2019-04-29 Thread Marek Vasut
On 4/5/19 2:55 PM, Jean-Jacques Hiblot wrote: > This driver is not used anymore. > > Signed-off-by: Jean-Jacques Hiblot You want AB/RB from Michal on this one. -- Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v1 05/18] usb: dwc3: switch to peripheral mode when exiting

2019-04-29 Thread Marek Vasut
On 4/5/19 2:55 PM, Jean-Jacques Hiblot wrote: > This allow the phy to enter idle and then suspend. > the K2 platforms require the PHY to be suspended before the USB domain > clock can be turned off. > > Signed-off-by: Jean-Jacques Hiblot > --- > > drivers/usb/dwc3/core.c | 13 + >

Re: [U-Boot] [PATCH 4/8] spi: Kconfig: Mark MXS_SPI has BROKEN

2019-04-29 Thread Marek Vasut
On 4/28/19 10:47 PM, Jagan Teki wrote: > Mark MXS_SPI has BROKEN, this so the resulting build shows > warning for broken configuration enabled and associated code > will remove in v2019.07 release. But the code is not broken, it works fine, right ? > Cc: Marek Vasut > Cc: Fabio Estevam > Cc:

Re: [U-Boot] [PATCH v2 09/10] rockchip: rk3399: use grf structure to access reg

2019-04-29 Thread Andy Yan
Kever Yang 于2019年3月29日周五 上午9:13写道: > Prefer to use structure to access register if we could. > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3399/rk3399.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > Tested-by: Andy Yan > diff --git

Re: [U-Boot] [PATCH v1 00/18] Improvement for the DWC3 USB generic driver and fixes for the K2 platforms

2019-04-29 Thread Jean-Jacques Hiblot
Marek, This series fixes the linux boot on the K2 platforms. without it the K2 platforms are broken. Can you give it a look please ? Thanks, JJ On 05/04/2019 14:55, Jean-Jacques Hiblot wrote: The K2 platforms have shown boot issues after switching to the DWC3 generic driver. Those are due

Re: [U-Boot] [PATCH v2 08/10] rockchip: rk3368: move board_debug_uart_init() to rk3368.c

2019-04-29 Thread Andy Yan
Kever Yang 于2019年3月29日周五 上午9:12写道: > Move the function to soc file so > that we can find all the soc/board setting in soc file and > use a common board file later for all rockchip SoCs. > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3368-board-spl.c | 8 -- >

Re: [U-Boot] [PATCH 2/8] rockchip: px5 update dts for spl/tpl

2019-04-29 Thread Andy Yan
Kever Yang 于2019年3月29日周五 下午10:52写道: > TPL need dmc to init ddr sdram, and emmc, boot-order. > > Signed-off-by: Kever Yang > --- > > arch/arm/dts/rk3368-px5-evb-u-boot.dtsi | 29 + > 1 file changed, 29 insertions(+) > > Tested-by: Andy Yan > diff --git

Re: [U-Boot] [PATCH 2/8] Makefile: Trigger a Warning if BROKEN defined

2019-04-29 Thread Heinrich Schuchardt
On 4/28/19 10:47 PM, Jagan Teki wrote: If configured target has broken config enabled, trigger a warning saying that the desired .config has broken configuration. Cc: Heinrich Schuchardt Signed-off-by: Jagan Teki --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile

[U-Boot] [PATCH 1/1] lib/vsprintf: remove #include from vsprintf.c

2019-04-29 Thread Heinrich Schuchardt
common.h already includes uuid.h Signed-off-by: Heinrich Schuchardt --- lib/vsprintf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 2403825dc9..3502b8088f 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -16,7 +16,6 @@ #include #include

[U-Boot] [PATCH v3 1/1] lib/vsprintf: allow printing upper case GUIDs

2019-04-29 Thread Heinrich Schuchardt
In the UEFI context GUIDs are expected to be rendered in upper case. The patch uses the formerly unused bit 1 of the parameter str_format of function uuid_bin_to_str() to indicate if we need upper or lower case output. Function uuid_string() in vsprint.c is adjusted to correctly set the bit

Re: [U-Boot] [PATCH 2/2] arm: add spl relocation support for armv8

2019-04-29 Thread Marek Vasut
On 4/29/19 1:58 PM, Andy Yan wrote: > Hi Marek, Fabio: > > On 2019/4/29 下午7:46, Marek Vasut wrote: >> On 4/29/19 1:38 PM, Andy Yan wrote: >>> Hi Fabio: >>> >>> On 2019/4/29 下午7:08, Fabio Estevam wrote: Hi Andy, On Mon, Apr 29, 2019 at 6:06 AM Andy Yan wrote: > Relocate

Re: [U-Boot] [PATCH] lib: uuid: Improve randomness of uuid values on RANDOM_UUID=y

2019-04-29 Thread Eugeniu Rosca
Hi Lukasz, Thanks to Roman, we found a potential regression in this solution. Particularly when gen_rand_uuid() is called in a loop, get_timer(0) might return the same value, leading to the same seed value being passed to srand(), leading to the same uuid value being generated for several

[U-Boot] [PATCH 2/3] board: stm32mp1: Add Avenger96 board support

2019-04-29 Thread Manivannan Sadhasivam
Add support for Avenger96 board from Arrow Electronics based on STM32MP157 MPU. This board is one of the Consumer Edition (CE) boards of the 96Boards family and has the following features: SoC: STM32MP157AAC PMIC: STPMIC1A RAM: 1024 Mbyte @ 533MHz Storage: eMMC v4.51: 8 Gbyte microSD

[U-Boot] [PATCH 1/3] arm: dts: stm32mp157: Add missing pinctrl definitions

2019-04-29 Thread Manivannan Sadhasivam
Add missing pinctrl definitions for STM32MP157. Signed-off-by: Manivannan Sadhasivam --- arch/arm/dts/stm32mp157-pinctrl.dtsi | 63 1 file changed, 63 insertions(+) diff --git a/arch/arm/dts/stm32mp157-pinctrl.dtsi b/arch/arm/dts/stm32mp157-pinctrl.dtsi index

Re: [U-Boot] [PATCH] mips: rename arch mt7620 to mt7628

2019-04-29 Thread Daniel Schwierzeck
Am 29.04.19 um 11:40 schrieb Stefan Roese: > On 29.04.19 11:28, Weijie Gao wrote: >> On Mon, 2019-04-29 at 07:08 +0200, Stefan Roese wrote: >>> On 28.04.19 11:38, Weijie Gao wrote: The MediaTek MT7620 and MT7628 SoCs are different. Although they use the same memory controller, the

Re: [U-Boot] [PATCH 4/8] spi: Kconfig: Mark MXS_SPI has BROKEN

2019-04-29 Thread Michael Nazzareno Trimarchi
Hi Marek On Mon, Apr 29, 2019 at 1:27 PM Marek Vasut wrote: > > On 4/29/19 1:24 PM, Tom Rini wrote: > > On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: > >> On 4/29/19 1:02 PM, Jagan Teki wrote: > >>> On Mon, Apr 29, 2019 at 4:28 PM Marek Vasut wrote: > > On 4/29/19 12:40

Re: [U-Boot] [PATCH v4 1/2] dlmalloc: fix malloc range at end of ram

2019-04-29 Thread Simon Goldschmidt
Hello Heiko, On Mon, Apr 29, 2019 at 3:06 PM Heiko Schocher wrote: > > Hello Simon, > > Am 25.04.2019 um 21:24 schrieb Simon Goldschmidt: > > Am 25.04.2019 um 12:50 schrieb Tom Rini: > >> On Thu, Apr 25, 2019 at 09:32:22AM +0200, Simon Goldschmidt wrote: > >>> On Thu, Apr 25, 2019 at 1:59 AM

Re: [U-Boot] DE10 Nano U-Boot v2019.04 Issues

2019-04-29 Thread rafael mello
Hello Simon, Adding the "clock-frequency = <1>;" line to the dts file solved the issue, But I had found another solution before reading your repply. There is one dtsi file missing for the de10 nano board, the file should be named "socfpga_cyclone5_de10_nano-u-boot.dtsi" and it's content

[U-Boot] [PATCH 3/3] arm: mach-stm32mp: Add newline to the MAC error message

2019-04-29 Thread Manivannan Sadhasivam
Without newline, the error message appears for non prgrammed OTP boards looks messsy. Hence add it to look more clean. Signed-off-by: Manivannan Sadhasivam --- arch/arm/mach-stm32mp/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-stm32mp/cpu.c

Re: [U-Boot] [PATCH 2/2] arm: add spl relocation support for armv8

2019-04-29 Thread Andy Yan
Hi Marek, Fabio: On 2019/4/29 下午7:46, Marek Vasut wrote: On 4/29/19 1:38 PM, Andy Yan wrote: Hi Fabio: On 2019/4/29 下午7:08, Fabio Estevam wrote: Hi Andy, On Mon, Apr 29, 2019 at 6:06 AM Andy Yan wrote: Relocate spl itself to a high memory. Please improve the commit message and explain

[U-Boot] [PATCH 0/3] Add Avenger96 board support

2019-04-29 Thread Manivannan Sadhasivam
Hello, This patchset adds board support for Avenger96, a 96Boards Consumer Edition board from Arrow Electronics. This board is based on the STM32MP1 MPU and the board support is added under st boards since there are no significance changes required to boot u-boot on this board other than the dts.

Re: [U-Boot] [PATCH 3/4] watchdog: stm32mp: Add watchdog driver

2019-04-29 Thread Patrice CHOTARD
Hi Stefan On 4/29/19 11:43 AM, Stefan Roese wrote: > On 29.04.19 11:23, Patrice Chotard wrote: >> This patch adds IWDG (Independent WatchDoG) support for >> STM32MP platform. >> >> Signed-off-by: Christophe Kerello >> Signed-off-by: Patrice Chotard >> --- >> >>   MAINTAINERS   

[U-Boot] [PATCH] firmware: ti_sci: Always request response from firmware

2019-04-29 Thread Andrew F. Davis
TI-SCI firmware will only respond to messages when the TI_SCI_FLAG_REQ_ACK_ON_PROCESSED flag is set. Most messages already do this, set this for the ones that do not. Signed-off-by: Andrew F. Davis Tested-by: Alejandro Hernandez --- drivers/firmware/ti_sci.c | 11 ++- 1 file changed, 6

Re: [U-Boot] [PATCH v1 02/18] usb: host: remove the xhci-zynqmp driver

2019-04-29 Thread Michal Simek
On 29. 04. 19 2:55, Marek Vasut wrote: > On 4/5/19 2:55 PM, Jean-Jacques Hiblot wrote: >> This driver is not used anymore. >> >> Signed-off-by: Jean-Jacques Hiblot > > You want AB/RB from Michal on this one. Siva: Can you please take a look? M ___

Re: [U-Boot] [PATCH 1/2] smbios: add parsing API

2019-04-29 Thread Christian Gmeiner
Am Mo., 29. Apr. 2019 um 17:35 Uhr schrieb Alexander Graf : > > > On 29.04.19 16:29, Christian Gmeiner wrote: > > Hi > > > > Am Do., 25. Apr. 2019 um 12:09 Uhr schrieb Alexander Graf : > >> > >> On 16.04.19 13:38, Christian Gmeiner wrote: > >>> Add an very simple API to be able to access SMBIOS

Re: [U-Boot] [PATCH v4 1/2] dlmalloc: fix malloc range at end of ram

2019-04-29 Thread Simon Glass
Hi, On Mon, 29 Apr 2019 at 07:19, Tom Rini wrote: > > On Mon, Apr 29, 2019 at 03:06:39PM +0200, Heiko Schocher wrote: > > Hello Simon, > > > > Am 25.04.2019 um 21:24 schrieb Simon Goldschmidt: > > >Am 25.04.2019 um 12:50 schrieb Tom Rini: > > >>On Thu, Apr 25, 2019 at 09:32:22AM +0200, Simon

Re: [U-Boot] [PATCH 1/2] smbios: add parsing API

2019-04-29 Thread Christian Gmeiner
Am Mo., 29. Apr. 2019 um 17:41 Uhr schrieb Simon Glass : > > Hi, > > On Thu, 25 Apr 2019 at 04:09, Alexander Graf wrote: > > > > > > On 16.04.19 13:38, Christian Gmeiner wrote: > > > Add an very simple API to be able to access SMBIOS strings > > > like vendor, model and bios version. > > > > > >

Re: [U-Boot] [PATCH v3 1/4] riscv: Introduce CONFIG_XIP to support booting from flash

2019-04-29 Thread Auer, Lukas
On Mon, 2019-04-29 at 15:44 +0800, Andes wrote: > From: Rick Chen > > When U-Boot boots from flash, during the boot process, > hart_lottery and available_harts_lock variable addresses > point to flash which is not writable. This causes boot > failures on AE350. Introduce a config option

Re: [U-Boot] [PATCH] arch: mips: Update initrd_start and initrd_end

2019-04-29 Thread Daniel Schwierzeck
Am 24.04.19 um 17:21 schrieb Horatiu Vultur: > Microsemi SoC defines CONFIG_SYS_SDRAM_BASE to be 0x8000, which > represents the start of kseg0 and represents a virtual address. Meaning > that the initrd_start and initrd_end point somewhere kseg0. > When these parameters are passed to linux

Re: [U-Boot] [PATCH 1/2] smbios: add parsing API

2019-04-29 Thread Alexander Graf
On 29.04.19 16:29, Christian Gmeiner wrote: > Hi > > Am Do., 25. Apr. 2019 um 12:09 Uhr schrieb Alexander Graf : >> >> On 16.04.19 13:38, Christian Gmeiner wrote: >>> Add an very simple API to be able to access SMBIOS strings >>> like vendor, model and bios version. >>> >>> Signed-off-by:

Re: [U-Boot] [PATCH v3 3/4] riscv: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE is enabled

2019-04-29 Thread Auer, Lukas
Hi Rick, On Mon, 2019-04-29 at 15:44 +0800, Andes wrote: > From: Rick Chen > > This patch will fix prior_stage_fdt_address write failure problem, when > AE350 boots from flash. > > When AE350 boots from flash, prior_stage_fdt_address will be flash > address, we shall avoid it to be written. >

Re: [U-Boot] [PATCH 4/8] spi: Kconfig: Mark MXS_SPI has BROKEN

2019-04-29 Thread Marek Vasut
On 4/29/19 2:47 PM, Tom Rini wrote: > On Mon, Apr 29, 2019 at 02:34:32PM +0200, Michael Nazzareno Trimarchi wrote: >> Hi Marek >> >> On Mon, Apr 29, 2019 at 1:27 PM Marek Vasut wrote: >>> >>> On 4/29/19 1:24 PM, Tom Rini wrote: On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote:

Re: [U-Boot] [PATCH] ARM: socfpga: Remove socfpga_sdram_apply_static_cfg()

2019-04-29 Thread See, Chin Liang
On Mon, 2019-04-29 at 10:34 +0200, Marek Vasut wrote: > On 4/26/19 8:39 AM, Simon Goldschmidt wrote: > > > > On Tue, Apr 23, 2019 at 6:14 PM Marek Vasut wrote: > > > > > > > > > The usage of socfpga_sdram_apply_static_cfg() seems rather > > > dubious and > > > is confirmed to lead to a rare

Re: [U-Boot] [PATCH v4 1/2] dlmalloc: fix malloc range at end of ram

2019-04-29 Thread Tom Rini
On Mon, Apr 29, 2019 at 03:16:02PM +0200, Simon Goldschmidt wrote: > Hello Heiko, > > On Mon, Apr 29, 2019 at 3:06 PM Heiko Schocher wrote: > > > > Hello Simon, > > > > Am 25.04.2019 um 21:24 schrieb Simon Goldschmidt: > > > Am 25.04.2019 um 12:50 schrieb Tom Rini: > > >> On Thu, Apr 25, 2019 at

Re: [U-Boot] [PATCH 1/2] smbios: add parsing API

2019-04-29 Thread Christian Gmeiner
Hi Am Do., 25. Apr. 2019 um 12:09 Uhr schrieb Alexander Graf : > > > On 16.04.19 13:38, Christian Gmeiner wrote: > > Add an very simple API to be able to access SMBIOS strings > > like vendor, model and bios version. > > > > Signed-off-by: Christian Gmeiner > > --- > > include/smbios.h| 37

Re: [U-Boot] [PATCH v4 1/2] dlmalloc: fix malloc range at end of ram

2019-04-29 Thread Heiko Schocher
Hello Simon, Am 25.04.2019 um 21:24 schrieb Simon Goldschmidt: Am 25.04.2019 um 12:50 schrieb Tom Rini: On Thu, Apr 25, 2019 at 09:32:22AM +0200, Simon Goldschmidt wrote: On Thu, Apr 25, 2019 at 1:59 AM Simon Glass wrote: Hi, On Wed, 24 Apr 2019 at 05:53, Tom Rini wrote: On Wed, Apr

Re: [U-Boot] [PATCH 4/8] spi: Kconfig: Mark MXS_SPI has BROKEN

2019-04-29 Thread Jagan Teki
+ Akash On Mon, Apr 29, 2019 at 6:17 PM Tom Rini wrote: > > On Mon, Apr 29, 2019 at 02:34:32PM +0200, Michael Nazzareno Trimarchi wrote: > > Hi Marek > > > > On Mon, Apr 29, 2019 at 1:27 PM Marek Vasut wrote: > > > > > > On 4/29/19 1:24 PM, Tom Rini wrote: > > > > On Mon, Apr 29, 2019 at

Re: [U-Boot] DE10 Nano U-Boot v2019.04 Issues

2019-04-29 Thread Simon Goldschmidt
On Mon, Apr 29, 2019 at 4:36 PM rafael mello wrote: > > Hello Simon, > > Adding the "clock-frequency = <1>;" line to the dts file solved the > issue, Great to hear that. I'll post a patch to fix that. > But I had found another solution before reading your repply. > There is one dtsi

Re: [U-Boot] [PATCH 1/2] smbios: add parsing API

2019-04-29 Thread Simon Glass
Hi, On Thu, 25 Apr 2019 at 04:09, Alexander Graf wrote: > > > On 16.04.19 13:38, Christian Gmeiner wrote: > > Add an very simple API to be able to access SMBIOS strings > > like vendor, model and bios version. > > > > Signed-off-by: Christian Gmeiner > > --- > > include/smbios.h| 37

Re: [U-Boot] [PATCH 4/8] spi: Kconfig: Mark MXS_SPI has BROKEN

2019-04-29 Thread Tom Rini
On Mon, Apr 29, 2019 at 02:34:32PM +0200, Michael Nazzareno Trimarchi wrote: > Hi Marek > > On Mon, Apr 29, 2019 at 1:27 PM Marek Vasut wrote: > > > > On 4/29/19 1:24 PM, Tom Rini wrote: > > > On Mon, Apr 29, 2019 at 01:06:57PM +0200, Marek Vasut wrote: > > >> On 4/29/19 1:02 PM, Jagan Teki

Re: [U-Boot] [PATCH v4 1/2] dlmalloc: fix malloc range at end of ram

2019-04-29 Thread Tom Rini
On Mon, Apr 29, 2019 at 03:06:39PM +0200, Heiko Schocher wrote: > Hello Simon, > > Am 25.04.2019 um 21:24 schrieb Simon Goldschmidt: > >Am 25.04.2019 um 12:50 schrieb Tom Rini: > >>On Thu, Apr 25, 2019 at 09:32:22AM +0200, Simon Goldschmidt wrote: > >>>On Thu, Apr 25, 2019 at 1:59 AM Simon Glass

Re: [U-Boot] [PATCH] firmware: ti_sci: Always request response from firmware

2019-04-29 Thread Nishanth Menon
On 09:04-20190429, Andrew F. Davis wrote: > TI-SCI firmware will only respond to messages when the > TI_SCI_FLAG_REQ_ACK_ON_PROCESSED flag is set. Most messages > already do this, set this for the ones that do not. > > Signed-off-by: Andrew F. Davis > Tested-by: A

  1   2   >