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

2019-04-02 Thread Ley Foon Tan
On Thu, Mar 28, 2019 at 5:24 PM Simon Goldschmidt wrote: > > On Thu, Mar 28, 2019 at 3:06 AM Ley Foon Tan wrote: > > > > On Wed, Mar 27, 2019 at 7:34 PM Simon Goldschmidt > > wrote: > > > > > > On Wed, Mar 27, 2019 at 10:15 AM Ley Foon Tan > > > wrote: > > > > > > > > Convert Stratix 10 SDRAM

[U-Boot] [PATCH v5] arm: dts: Stratix10: Add QSPI node

2019-04-02 Thread Ley Foon Tan
Merge qspi dts node from Linux. Commit 0cb140d07fc75fb (arm64: dts: stratix10: Add QSPI support for Stratix10) Add -u-boot.dtsi files for non Linux dts properties and update properties for Uboot. - add u-boot,dm-pre-reloc - add alias for spi0 - change compatible for flash - support quad read and

Re: [U-Boot] [PATCH 07/13 v3] arm: at91: Enable watchdog support

2019-04-02 Thread Stefan Roese
Hi Eugen, On 02.04.19 13:50, Stefan Roese wrote: This breaks pm9261_defconfig AS arch/arm/mach-at91/arm926ejs/lowlevel_init.o ./arch/arm/include/asm/arch/at91_wdt.h: Assembler messages: ./arch/arm/include/asm/arch/at91_wdt.h:50: Error: bad instruction `struct at91_wdt_priv {'

[U-Boot] [PATCH 07/13 v4] arm: at91: Enable watchdog support

2019-04-02 Thread Stefan Roese
This patch enables and starts the watchdog on the AT91 platform if configured. The WD timeout value is read in the AT91 WD device driver from the DT, using the "timeout-sec" DT property. If not provided in the DT, the default value of 2 seconds is used. Signed-off-by: Stefan Roese Cc: Heiko

[U-Boot] [PATCH 06/13 v4] arm: at91: Remove CONFIG_AT91_HW_WDT_TIMEOUT

2019-04-02 Thread Stefan Roese
This patch removes the CONFIG_AT91_HW_WDT_TIMEOUT as its not needed any more. The WD timeout value can be provided via the "timeout-sec" DT property. If not provided this way, the default value of 2 seconds will be used. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc:

Re: [U-Boot] burning eMMC from sdcard.img in U-Boot

2019-04-02 Thread Jack Mitchell
On 02/04/2019 21:59, Adam Ford wrote: > I have a board with eMMC storage. I've been trying to find an elegant > solution to burning the sdcard image to eMMC. I looked at using the > USB mass storage gadget, but it's a bit slow. I was hoping to avoid > having to boot all the way into Linux to do

Re: [U-Boot] [PATCH] ARM: imx6q_logic: Correct phy fixup for broken ethernet

2019-04-02 Thread Jagan Teki
Hi Adam, On Sun, Jan 13, 2019 at 5:02 AM Adam Ford wrote: > > The Ethernet has been broken for some time. This patch unifies > this board with a few others that use a similar approach to > enabling phy. This fixes ar8031 Ethernet controller so it works. > > Signed-off-by: Adam Ford > > diff

[U-Boot] [PATCH] riscv: dts: fix CONFIG_DEFAULT_DEVICE_TREE failure

2019-04-02 Thread Andes
From: Rick Chen It occurs since commit 27cb7300ffda ("Ensure device tree DTS is compiled"). More details can refer to 89c2b5c02049aea746b1edee0b4e1d8519dec2f4 ARM: fix arch/arm/dts/Makefile Signed-off-by: Rick Chen Cc: Greentime Hu --- arch/riscv/dts/Makefile | 2 ++ 1 file changed, 2

[U-Boot] [PATCH] usb: ehci-mx6: Use common code to extract dr_mode

2019-04-02 Thread Adam Ford
There exists code in drivers/common/common.c to read the dr_mode from the device tree. This patch converts this driver to use that function to initialize the driver. Signed-off-by: Adam Ford diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 948394709f..e24f5ad14a

Re: [U-Boot] [PATCH 37/40] x86: Update device tree for TPL

2019-04-02 Thread Simon Glass
Hi Bin, On Fri, 22 Feb 2019 at 00:20, Bin Meng wrote: > > Hi Simon, > > On Wed, Jan 30, 2019 at 12:01 PM Simon Glass wrote: > > > > Add TPL binaries to the device x86 binman desciption. When enabled, TPL > > will start first, doing the 16-bit init, then jump to SPL and finally > > U-Boot

Re: [U-Boot] [PATCH 28/40] x86: Add a sysreset driver for the Intel PCH

2019-04-02 Thread Simon Glass
Hi Bin, On Fri, 22 Feb 2019 at 00:20, Bin Meng wrote: > > Hi Simon, > > On Wed, Jan 30, 2019 at 12:00 PM Simon Glass wrote: > > > > Intel SoCs support a fairly stardard reset mechanism which can support > > powering off the device. Add support for this and enable it by default on > > broadwell,

Re: [U-Boot] [PATCH 17/40] x86: broadwell: Allow SDRAM init from SPL

2019-04-02 Thread Simon Glass
Hi Bin, On Fri, 22 Feb 2019 at 00:19, Bin Meng wrote: > > Hi Simon, > > On Wed, Jan 30, 2019 at 12:00 PM Simon Glass wrote: > > > > At present SDRAM is always set up in U-Boot proper. Allow this to be done > > I don't understand. I thought SDRAM was already set up in the U-Boot > SPL in the

Re: [U-Boot] [PATCH v3 0/7] AE350 SMP support RISC-V

2019-04-02 Thread Rick Chen
Hi Bin and Lukas Rick Chen 於 2019年4月2日 週二 上午9:22寫道: > > Hi Bin > > Bin Meng 於 2019年4月1日 週一 下午5:01寫道: > > > > Hi Rick, > > > > On Mon, Apr 1, 2019 at 4:29 PM Andes wrote: > > > > > > From: Rick Chen > > > > > > Changes in v3: > > > Patch 1 > > > - Rename plic_init() as enable_ipi() > > > -

Re: [U-Boot] [PATCH v4 0/4] configs: rk3288: Tinker Board SPL file must fit into 32 KiB

2019-04-02 Thread Kever Yang
Hi Heinrich, On 04/03/2019 01:19 AM, Heinrich Schuchardt wrote: > The SPL image for the Tinker Board has to fit into 32 KiB. This includes > up to 2 KiB for the file header. 32KB is the limit of SPL size, not SPL image size, does not include 2KB header. > > A new configuration variable

Re: [U-Boot] burning eMMC from sdcard.img in U-Boot

2019-04-02 Thread Alex Kiernan
On Tue, Apr 2, 2019 at 9:59 PM Adam Ford wrote: > > I have a board with eMMC storage. I've been trying to find an elegant > solution to burning the sdcard image to eMMC. I looked at using the > USB mass storage gadget, but it's a bit slow. I was hoping to avoid > having to boot all the way

[U-Boot] Does u-boot end itself after starting the kernel?

2019-04-02 Thread U.Mutlu
Hi, the bootloader, here u-boot, starts the kernel. Is u-boot still active (ie. in a running state) after it starts the kernel? platform: ARMv7-a Thx ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v4 2/6] riscv: Add a SYSCON driver for Andestech's PLMT

2019-04-02 Thread Auer, Lukas
On Tue, 2019-04-02 at 15:56 +0800, Andes wrote: > From: Rick Chen > > The platform-Level Machine Timer (PLMT) block > holds memory-mapped mtime register associated > with timer tick. > > This driver implements the riscv_get_time() which > is required by the generic RISC-V timer driver. > >

Re: [U-Boot] [PATCH v4 1/6] riscv: Add a SYSCON driver for Andestech's PLIC

2019-04-02 Thread Auer, Lukas
On Tue, 2019-04-02 at 15:56 +0800, Andes wrote: > From: Rick Chen > > The Platform-Level Interrupt Controller (PLIC) > block holds memory-mapped claim and pending registers > associated with software interrupt. It is required > for handling IPI. > > Signed-off-by: Rick Chen > Cc: Greentime Hu

Re: [U-Boot] [PATCH v3 1/7] riscv: Add a SYSCON driver for Andestech's PLIC

2019-04-02 Thread Auer, Lukas
Hi Rick, On Tue, 2019-04-02 at 10:12 +0800, Rick Chen wrote: > Hi Lukas > > > Auer, Lukas 於 2019年4月1日 週一 下午5:08寫道: > > > > Hi Rick, > > > > On Mon, 2019-04-01 at 16:24 +0800, Andes wrote: > > > From: Rick Chen > > > > > > The Platform-Level Interrupt Controller (PLIC) > > > block holds

[U-Boot] burning eMMC from sdcard.img in U-Boot

2019-04-02 Thread Adam Ford
I have a board with eMMC storage. I've been trying to find an elegant solution to burning the sdcard image to eMMC. I looked at using the USB mass storage gadget, but it's a bit slow. I was hoping to avoid having to boot all the way into Linux to do it, but the sdcard.img file is larger than

Re: [U-Boot] Riscv: CONFIG_DEFAULT_DEVICE_TREE failures

2019-04-02 Thread Troy Benjegerdes
> On Mar 31, 2019, at 5:02 PM, Tom Rini wrote: > > On Fri, Mar 29, 2019 at 11:15:48PM -0700, Troy Benjegerdes wrote: > >> I attempted to merge in the latest master branch into >> https://github.com/sifive/u-boot/tree/sandbox and I got >> the following error, which seems somewhat broken.. >>

Re: [U-Boot] [PATCH v4 0/4] configs: rk3288: Tinker Board SPL file must fit into 32 KiB

2019-04-02 Thread Heinrich Schuchardt
On 4/2/19 7:47 PM, Tom Rini wrote: > On Tue, Apr 02, 2019 at 07:33:42PM +0200, Heinrich Schuchardt wrote: >> On 4/2/19 7:29 PM, Tom Rini wrote: >>> On Tue, Apr 02, 2019 at 07:19:03PM +0200, Heinrich Schuchardt wrote: >>> The SPL image for the Tinker Board has to fit into 32 KiB. This includes

Re: [U-Boot] [PATCH v4 0/4] configs: rk3288: Tinker Board SPL file must fit into 32 KiB

2019-04-02 Thread Simon Goldschmidt
On 02.04.19 19:33, Heinrich Schuchardt wrote: On 4/2/19 7:29 PM, Tom Rini wrote: On Tue, Apr 02, 2019 at 07:19:03PM +0200, Heinrich Schuchardt wrote: The SPL image for the Tinker Board has to fit into 32 KiB. This includes up to 2 KiB for the file header. A new configuration variable

Re: [U-Boot] [U-Boot,v2] travis-ci: fix at91 missing boards

2019-04-02 Thread Tom Rini
On Mon, Apr 01, 2019 at 11:04:03AM +, eugen.hris...@microchip.com wrote: > From: Eugen Hristev > > Fix missing at91 boards and split the at91 in two categories: > at91 arm v7 > at91 arm926esj > which are the two main cores for the at91 architecture. > > Signed-off-by: Eugen Hristev

Re: [U-Boot] [PATCH v2 1/3] rockchip: add common header boot0.h and gpio.h for soc

2019-04-02 Thread Tom Rini
On Tue, Apr 02, 2019 at 10:09:42AM +0800, Kever Yang wrote: > boot0.h and gpio.h will be used by system and include by > 'asm/arch/', each of them need of a copy from 'asm/arch-rockchip'. > > Signed-off-by: Kever Yang Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

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

2019-04-02 Thread Tom Rini
On Tue, Apr 02, 2019 at 03:16:36AM +0200, Marek Vasut wrote: > Minor fixes for the Alt board and PHY use on Gen2. > > The following changes since commit c3aef9339ce0592b06c8d44cf2eaf9e6f3713e4f: > > Merge branch '2019-03-29-master-imports' (2019-03-29 10:53:28 -0400) > > are available in the

Re: [U-Boot] [PATCH] pinctrl: renesas: Fix linker error when PINCTRL_PFC=n

2019-04-02 Thread Dirk Behme
On 02.04.19 17:40, Eugeniu Rosca wrote: On Tue, Apr 02, 2019 at 05:28:43PM +0200, Marek Vasut wrote: On 4/2/19 5:17 PM, Dirk Behme wrote: On 02.04.19 15:34, Marek Vasut wrote: On 4/2/19 3:18 PM, Eugeniu Rosca wrote: With CONFIG_PINCTRL_PFC=n, aarch64-linux-gnu-ld reports: -8<-   

[U-Boot] tpm2_nvread

2019-04-02 Thread Tommaso Corda
Hi all, I'm trying to use the tpm2_nvread command on u-boot but it seems it is not implemented on tpm2. Does anyone know how to make it work? Thanks in advance. BR. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v4 0/4] configs: rk3288: Tinker Board SPL file must fit into 32 KiB

2019-04-02 Thread Tom Rini
On Tue, Apr 02, 2019 at 07:33:42PM +0200, Heinrich Schuchardt wrote: > On 4/2/19 7:29 PM, Tom Rini wrote: > > On Tue, Apr 02, 2019 at 07:19:03PM +0200, Heinrich Schuchardt wrote: > > > >> The SPL image for the Tinker Board has to fit into 32 KiB. This includes > >> up to 2 KiB for the file

Re: [U-Boot] [PATCH v4 0/4] configs: rk3288: Tinker Board SPL file must fit into 32 KiB

2019-04-02 Thread Heinrich Schuchardt
On 4/2/19 7:29 PM, Tom Rini wrote: > On Tue, Apr 02, 2019 at 07:19:03PM +0200, Heinrich Schuchardt wrote: > >> The SPL image for the Tinker Board has to fit into 32 KiB. This includes >> up to 2 KiB for the file header. >> >> A new configuration variable CONFIG_SPL_SIZE_LIMIT is introduced to

Re: [U-Boot] [PATCH v4 0/4] configs: rk3288: Tinker Board SPL file must fit into 32 KiB

2019-04-02 Thread Tom Rini
On Tue, Apr 02, 2019 at 07:19:03PM +0200, Heinrich Schuchardt wrote: > The SPL image for the Tinker Board has to fit into 32 KiB. This includes > up to 2 KiB for the file header. > > A new configuration variable CONFIG_SPL_SIZE_LIMIT is introduced to define > the board specific limit. > > A

[U-Boot] [PATCH v4 3/4] configs: define CONFIG_SPL_SIZE_LIMIT

2019-04-02 Thread Heinrich Schuchardt
A new configuration variable CONFIG_SPL_SIZE_LIMIT is introduced to define the board specific maximum size for the SPL file. Use Makefile function size_check() to implement the test. Depending on the size of CONFIG_SPL_SIZE_LIMIT an error like the following is thrown: spl/u-boot-spl.bin exceeds

[U-Boot] [PATCH v4 4/4] configs: rk3288: Tinker Board SPL file must fit into 32 KiB

2019-04-02 Thread Heinrich Schuchardt
The SPL image for the Tinker Board has to fit into 32 KiB. This includes up to 2 KiB for the file header. Signed-off-by: Heinrich Schuchardt --- The error for the TinkerBoard is resolved by: configs: tinker-rk3288 disable CONFIG_SPL_I2C_SUPPORT

[U-Boot] [PATCH v4 1/4] Makefile: reusable function for BOARD_SIZE_CHECK

2019-04-02 Thread Heinrich Schuchardt
Carve out function size_check from macro BOARD_SIZE_CHECK. This will allow us to reuse the function for other file size checks. Depending on the value of CONFIG_BOARD_SIZE_LIMIT an error like the following is thrown: u-boot-dtb.img exceeds file size limit: limit: 409516 bytes actual: 444346

[U-Boot] [PATCH v4 2/4] imx: move BOARD_SIZE_CHECK to main Makefile

2019-04-02 Thread Heinrich Schuchardt
We currently have duplicate definitions for BOARD_SIZE_CHECK in Makefile and arch/arm/mach-imx/Makefile. Move the board size check from arch/arm/mach-imx/Makefile to Makefile. Depending on the value of CONFIG_BOARD_SIZE_LIMIT an error like an error like the following is thrown: u-boot-dtb.imx

[U-Boot] [PATCH v4 0/4] configs: rk3288: Tinker Board SPL file must fit into 32 KiB

2019-04-02 Thread Heinrich Schuchardt
The SPL image for the Tinker Board has to fit into 32 KiB. This includes up to 2 KiB for the file header. A new configuration variable CONFIG_SPL_SIZE_LIMIT is introduced to define the board specific limit. A common Makefile function is used for this test and the test against

Re: [U-Boot] [PATCH] pinctrl: renesas: Fix linker error when PINCTRL_PFC=n

2019-04-02 Thread Eugeniu Rosca
On Tue, Apr 02, 2019 at 06:02:46PM +0200, Marek Vasut wrote: > On 4/2/19 5:40 PM, Eugeniu Rosca wrote: > > On Tue, Apr 02, 2019 at 05:28:43PM +0200, Marek Vasut wrote: > >> On 4/2/19 5:17 PM, Dirk Behme wrote: > >>> On 02.04.19 15:34, Marek Vasut wrote: > On 4/2/19 3:18 PM, Eugeniu Rosca

Re: [U-Boot] [PATCH] pinctrl: renesas: Fix linker error when PINCTRL_PFC=n

2019-04-02 Thread Marek Vasut
On 4/2/19 5:40 PM, Eugeniu Rosca wrote: > On Tue, Apr 02, 2019 at 05:28:43PM +0200, Marek Vasut wrote: >> On 4/2/19 5:17 PM, Dirk Behme wrote: >>> On 02.04.19 15:34, Marek Vasut wrote: On 4/2/19 3:18 PM, Eugeniu Rosca wrote: > With CONFIG_PINCTRL_PFC=n, aarch64-linux-gnu-ld reports: >

Re: [U-Boot] [PATCH] pinctrl: renesas: Fix linker error when PINCTRL_PFC=n

2019-04-02 Thread Eugeniu Rosca
On Tue, Apr 02, 2019 at 05:28:43PM +0200, Marek Vasut wrote: > On 4/2/19 5:17 PM, Dirk Behme wrote: > > On 02.04.19 15:34, Marek Vasut wrote: > >> On 4/2/19 3:18 PM, Eugeniu Rosca wrote: > >>> With CONFIG_PINCTRL_PFC=n, aarch64-linux-gnu-ld reports: > >>> > >>> -8<- > >>>    LD  u-boot

Re: [U-Boot] [PATCH] pinctrl: renesas: Fix linker error when PINCTRL_PFC=n

2019-04-02 Thread Marek Vasut
On 4/2/19 5:17 PM, Dirk Behme wrote: > On 02.04.19 15:34, Marek Vasut wrote: >> On 4/2/19 3:18 PM, Eugeniu Rosca wrote: >>> With CONFIG_PINCTRL_PFC=n, aarch64-linux-gnu-ld reports: >>> >>> -8<- >>>    LD  u-boot >>> drivers/gpio/built-in.o: In function `rcar_gpio_request': >>>

Re: [U-Boot] [PATCH] pinctrl: renesas: Fix linker error when PINCTRL_PFC=n

2019-04-02 Thread Dirk Behme
On 02.04.19 15:34, Marek Vasut wrote: On 4/2/19 3:18 PM, Eugeniu Rosca wrote: With CONFIG_PINCTRL_PFC=n, aarch64-linux-gnu-ld reports: -8<- LD u-boot drivers/gpio/built-in.o: In function `rcar_gpio_request': drivers/gpio/gpio-rcar.c:128: undefined reference to

Re: [U-Boot] [PATCH v1 04/14] apalis/colibri_imx6/imx6ull: make sure loadaddr does not collide

2019-04-02 Thread Igor Opaniuk
Reviewed-by: Igor Opaniuk On Fri, Mar 29, 2019 at 1:36 PM Marcel Ziswiler wrote: > > From: Stefan Agner > > Currently $loadaddr and $fdt_addr_r point to the same address. This > might be not ideal for some distro boot scripts which make use of > $loadaddr after loading the device tree. > >

Re: [U-Boot] [PATCH] pinctrl: renesas: Fix linker error when PINCTRL_PFC=n

2019-04-02 Thread Marek Vasut
On 4/2/19 3:18 PM, Eugeniu Rosca wrote: > With CONFIG_PINCTRL_PFC=n, aarch64-linux-gnu-ld reports: > > -8<- > LD u-boot > drivers/gpio/built-in.o: In function `rcar_gpio_request': > drivers/gpio/gpio-rcar.c:128: undefined reference to > `sh_pfc_config_mux_for_gpio' > -8<-

[U-Boot] [PATCH] pinctrl: renesas: Fix linker error when PINCTRL_PFC=n

2019-04-02 Thread Eugeniu Rosca
With CONFIG_PINCTRL_PFC=n, aarch64-linux-gnu-ld reports: -8<- LD u-boot drivers/gpio/built-in.o: In function `rcar_gpio_request': drivers/gpio/gpio-rcar.c:128: undefined reference to `sh_pfc_config_mux_for_gpio' -8<- Fix it in the least intrusive way and *avoid* ifdefs in

Re: [U-Boot] [PATCH 1/2] Makefile: Add target to generate hex output for combined spl and dtb

2019-04-02 Thread Dalon L Westergreen
On Sat, 2019-03-30 at 15:18 -0600, Simon Glass wrote: > Hi, > On Fri, 22 Mar 2019 at 09:32, Dalon Westergreen< > dalon.westergr...@linux.intel.com> wrote: > > From: Dalon Westergreen > > Some architectures, Stratix10, require a hex formatted spl that combinesthe > > spl image and dtb. This adds

[U-Boot] [PATCH v6 07/11] sysreset: enable driver support in SPL/TPL

2019-04-02 Thread Kever Yang
SPL/TPL also need use sysreset for some feature like panic callback. Signed-off-by: Kever Yang --- Changes in v6: - update defconfig for stm32mp15_basic, am65x_evm_r5, mt7629_rfb, x86, sandbox... to enable SPL_SYSRESET. arch/Kconfig| 1 + arch/arm/Kconfig

[U-Boot] [PATCH v6 10/11] rockchip: evb-rk3229: add README file for OP-TEE support

2019-04-02 Thread Kever Yang
Detail of step by step to bring up the board with OP-TEE support. Signed-off-by: Kever Yang --- Changes in v6: None board/rockchip/evb_rk3229/README | 72 1 file changed, 72 insertions(+) create mode 100644 board/rockchip/evb_rk3229/README diff --git

[U-Boot] [PATCH v6 08/11] rockchip: rk322x: dts: enable uart2 for SPL/TPL

2019-04-02 Thread Kever Yang
When we use DM_SERIAL for serial driver, we need enable the dts node for the debug console. Signed-off-by: Kever Yang --- Changes in v6: None arch/arm/dts/rk3229-evb.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/rk3229-evb.dts b/arch/arm/dts/rk3229-evb.dts index

[U-Boot] [PATCH v6 11/11] rockchip: evb-rk322x: update defconfig with tpl and optee support

2019-04-02 Thread Kever Yang
Enable all the options for TPL/SPL and OPTEE. Signed-off-by: Kever Yang --- Changes in v6: None configs/evb-rk3229_defconfig | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/configs/evb-rk3229_defconfig b/configs/evb-rk3229_defconfig index

[U-Boot] [PATCH v6 09/11] rockchip: evb-rk3229: remove unnecessary defines

2019-04-02 Thread Kever Yang
Prefer to use default setting like other SoCs. Signed-off-by: Kever Yang --- Changes in v6: None include/configs/evb_rk3229.h | 44 +--- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/include/configs/evb_rk3229.h b/include/configs/evb_rk3229.h

[U-Boot] [PATCH v6 04/11] rockchip: rk322x: add CLK_EMMC_SAMPLE clock support

2019-04-02 Thread Kever Yang
Signed-off-by: Kever Yang --- Changes in v6: None drivers/clk/rockchip/clk_rk322x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk322x.c b/drivers/clk/rockchip/clk_rk322x.c index 48ed14b2af..4b599fbb24 100644 --- a/drivers/clk/rockchip/clk_rk322x.c +++

[U-Boot] [PATCH v6 02/11] arm: add option for TPL support in arm 32bit

2019-04-02 Thread Kever Yang
Some options like TPL_SYS_THUMB_BUILD, TPL_USE_ARCH_MEMCPY and TPL_USE_ARCH_MEMCPY are needed for TPL build in 32bit arm. Signed-off-by: Kever Yang --- Changes in v6: None arch/arm/Kconfig | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm/Kconfig

[U-Boot] [PATCH v6 05/11] rockchip: clk: rk322x: fix assert clock value

2019-04-02 Thread Kever Yang
BUS_PCLK_HZ and BUS_HCLK_HZ are from BUS_ACLK_HZ, not from GPLL_HZ. Signed-off-by: Kever Yang --- Changes in v6: None drivers/clk/rockchip/clk_rk322x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk_rk322x.c

[U-Boot] [PATCH v6 06/11] rockchip: rk322x: add tpl support

2019-04-02 Thread Kever Yang
Move original spl to tpl, and add spl to load next stage firmware, adapt all the address and option for them. Signed-off-by: Kever Yang --- Changes in v6: None arch/arm/mach-rockchip/Kconfig| 26 +++ arch/arm/mach-rockchip/Makefile | 3 +-

[U-Boot] [PATCH v6 01/11] Revert "rockchip: rk322x: ram: enable DRAM init in SPL instead of TPL"

2019-04-02 Thread Kever Yang
This reverts commit f338cca1d2bce906b049722d2fdbf527a4963b61. Signed-off-by: Kever Yang --- Changes in v6: None drivers/ram/rockchip/sdram_rk322x.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/ram/rockchip/sdram_rk322x.c

[U-Boot] [PATCH v6 03/11] arm: add a separate stack for TPL

2019-04-02 Thread Kever Yang
TPL stack may different from SPL and sys stack, add support for separate one when the board defines it. Signed-off-by: Kever Yang --- Changes in v6: None arch/arm/lib/crt0.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S index

[U-Boot] [PATCH v6 00/11] rockchip: add tpl and OPTEE support for rk3229

2019-04-02 Thread Kever Yang
Add some generic options for TPL support for arm 32bit, and then and TPL support for rk3229(cortex-A7), and then add OPTEE support in SPL. Version 5 rebase on master branch with 'SYS_SOC name correct' patch set, remove the patches for OP-TEE which has been mergerd. Version 6 fix travis build

Re: [U-Boot] [PATCH] net: macb: Add small delay after link establishment

2019-04-02 Thread Eugen.Hristev
On 29.03.2019 17:24, Stefan Roese wrote: > > On 29.03.19 15:59, eugen.hris...@microchip.com wrote: >> >> >> On 29.03.2019 16:52, Stefan Roese wrote: >> >>> Hi Eugen, >>> >>> On 29.03.19 15:40, eugen.hris...@microchip.com wrote: > I've noticed that the first ethernet packet after PHY link

Re: [U-Boot] [PATCH 07/13 v3] arm: at91: Enable watchdog support

2019-04-02 Thread Stefan Roese
On 02.04.19 13:26, eugen.hris...@microchip.com wrote: On 02.04.2019 11:57, Stefan Roese wrote: This patch enables and starts the watchdog on the AT91 platform if configured. The WD timeout value is read in the AT91 WD device driver from the DT, using the "timeout-sec" DT property. If not

Re: [U-Boot] [PATCH] DTS: Fix ETH PHY reset on HSC|DDC boards (imx53)

2019-04-02 Thread Stefano Babic
On 02/04/19 13:22, Fabio Estevam wrote: > Hi Lukasz, > > On Mon, Apr 1, 2019 at 5:49 PM Lukasz Majewski wrote: > >>> We should probably use the same approach as in the kernel to avoid >>> regressions with old dtbs. >>> >>> In the kernel the GPIO polarity passed in the 'phy-reset-gpios' >>>

[U-Boot] [PATCH v2 10/10] ARM: imx6: Enable CLK for Engicam i.MX6UL boards

2019-04-02 Thread Jagan Teki
Now, clock driver available for i.MX6UL so enable the CLK in SPL and U-Boot proper for Engicam i.MX6UL boards. Signed-off-by: Jagan Teki --- arch/arm/mach-imx/mx6/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/mx6/Kconfig b/arch/arm/mach-imx/mx6/Kconfig index

[U-Boot] [PATCH v2 07/10] ARM: dts: i.MX6QDL: Add u-boot, dm-spl for clks

2019-04-02 Thread Jagan Teki
Add clks node available for SPL in imx6qdl SoC. Signed-off-by: Jagan Teki --- arch/arm/dts/imx6qdl-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imx6qdl-u-boot.dtsi b/arch/arm/dts/imx6qdl-u-boot.dtsi index 0aa29e38b8..912cb4281c 100644 ---

[U-Boot] [PATCH v2 08/10] ARM: dts: i.MX6UL: Add u-boot, dm-spl for clks

2019-04-02 Thread Jagan Teki
Add clks node available for SPL in imx6ul SoC. Signed-off-by: Jagan Teki --- arch/arm/dts/imx6ul-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imx6ul-u-boot.dtsi b/arch/arm/dts/imx6ul-u-boot.dtsi index eb190cf8c8..b25f77cb44 100644 ---

[U-Boot] [PATCH v2 09/10] configs: icore_mipi: Enable CLK

2019-04-02 Thread Jagan Teki
Now, clock driver available for i.MX6Q so enable the CLK in SPL and U-Boot proper for Engicam i.CoreM6 MIPI boards. Signed-off-by: Jagan Teki --- configs/imx6qdl_icore_mipi_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/imx6qdl_icore_mipi_defconfig

[U-Boot] [PATCH v2 06/10] clk: imx6: Add imx6ul clock tree support

2019-04-02 Thread Jagan Teki
i.MX6 clock control module comprise of parent clocks, gates, multiplexers, dividers, PODF, PLL, fixed rate and etc. So, the U-Boot implementation of ccm has divided into gates and tree. 1) gate clocks are generic clock configuration of enable/disable bit management which can be handle via

[U-Boot] [PATCH v2 03/10] clk: imx: Add i.MX6UL clock driver

2019-04-02 Thread Jagan Teki
i.MX6 clock control module comprise of parent clocks, gates, multiplexers, dividers, PODF, PLL, fixed rate and etc. This patch add i.MX6UL USDHC clocks via gate clock which would eventually handle enable/disable operations via imx6_clock_gate. Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH v2 05/10] clk: imx: Add imx6q clock tree support

2019-04-02 Thread Jagan Teki
i.MX6 clock control module comprise of parent clocks, gates, multiplexers, dividers, PODF, PLL, fixed rate and etc. So, the U-Boot implementation of ccm has divided into gates and tree. 1) gate clocks are generic clock configuration of enable/disable bit management which can be handle via

[U-Boot] [PATCH v2 04/10] clk: Add clk_div_mask helper

2019-04-02 Thread Jagan Teki
Add clock helper to compute the clock divider mask when use invoke with clock width. Signed-off-by: Jagan Teki --- include/clk-uclass.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/clk-uclass.h b/include/clk-uclass.h index e76d98e2f6..15ac8867a7 100644 ---

[U-Boot] [PATCH v2 02/10] clk: imx: Add i.MX6Q clock driver

2019-04-02 Thread Jagan Teki
i.MX6 clock control module comprise of parent clocks, gates, multiplexers, dividers, PODF, PLL, fixed rate and etc. This patch add i.MX6Q USDHC clocks via gate clock which would eventually handle enable/disable operations via imx6_clock_gate. Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH v2 01/10] clk: imx: Kconfig: Make CONFIG_CLK available for selection

2019-04-02 Thread Jagan Teki
Adjust the Kconfig to hide architecture and other internal configs so-that generic CONFIG_CLK is available for selection. This would make easy for configuration selections between SoC families with in the same SoC and even more readable. Cc: Peng Fan Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH v2 00/10] clk: imx: Add i.MX6 CLK support

2019-04-02 Thread Jagan Teki
This is revised version of previous i.MX6 clock management [1]. The main difference between previous version is - Group the i.MX6 ccm clocks into gates and tree instead of handling the clocks in simple way using case statement. - use gate clocks for enable/disable management. - use tree

Re: [U-Boot] [PATCH 07/13 v3] arm: at91: Enable watchdog support

2019-04-02 Thread Eugen.Hristev
On 02.04.2019 11:57, Stefan Roese wrote: > > This patch enables and starts the watchdog on the AT91 platform if > configured. The WD timeout value is read in the AT91 WD device driver > from the DT, using the "timeout-sec" DT property. If not provided in > the DT, the default value of 2

Re: [U-Boot] [PATCH] DTS: Fix ETH PHY reset on HSC|DDC boards (imx53)

2019-04-02 Thread Fabio Estevam
Hi Lukasz, On Mon, Apr 1, 2019 at 5:49 PM Lukasz Majewski wrote: > > We should probably use the same approach as in the kernel to avoid > > regressions with old dtbs. > > > > In the kernel the GPIO polarity passed in the 'phy-reset-gpios' > > property is ignored and it is assumed to be active

[U-Boot] [PATCH 3/13 v4] serial: atmel_usart: Use fixed clock value in SPL version with DM_SERIAL

2019-04-02 Thread Stefan Roese
This patch adds an alterative SPL version of atmel_serial_enable_clk(). This enables the usage of this driver without full clock support (in drivers and DT nodes). This saves some space in the SPL image. Please note that this fixed clock support is only added to the SPL code in the DM_SERIAL part

Re: [U-Boot] [PATCH 06/13 v3] arm: at91: Remove CONFIG_AT91_HW_WDT_TIMEOUT

2019-04-02 Thread Eugen.Hristev
On 02.04.2019 11:57, Stefan Roese wrote: > External E-Mail > > > This patch removes the CONFIG_AT91_HW_WDT_TIMEOUT as its not needed any > more. The WD timeout value can be provided via the "timeout-sec" DT > property. If not provided this way, the default value of 2 seconds will > be used. >

Re: [U-Boot] [PATCH] doc: Fix outdated ohci board hook documentation

2019-04-02 Thread Marek Vasut
On 4/2/19 9:32 AM, Krzysztof Kozlowski wrote: > The ohci driver calls board_usb_init(), not usb_board_init(). > > Signed-off-by: Krzysztof Kozlowski > --- > doc/README.generic_usb_ohci | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/doc/README.generic_usb_ohci

Re: [U-Boot] [PATCH 03/13 v3] serial: atmel_usart: Use fixed clock value in SPL version with DM_SERIAL

2019-04-02 Thread Eugen.Hristev
On 02.04.2019 13:40, Stefan Roese wrote: > External E-Mail > > > Hi Eugen, > > On 02.04.19 12:12, eugen.hris...@microchip.com wrote: >> >> >> On 02.04.2019 11:57, Stefan Roese wrote: >> >>> This patch adds an alterative SPL version of atmel_serial_enable_clk(). >>> This enables the usage of

Re: [U-Boot] [PATCH] watchdog: Move watchdog_dev to data section (BSS may not be cleared)

2019-04-02 Thread Stefan Roese
On 02.04.19 12:30, Michal Simek wrote: On 02. 04. 19 11:57, Stefan Roese wrote: This patch moves all instances of static "watchdog_dev" declarations to the "data" section. This may be needed, as the BSS may not be cleared in the early U-Boot phase, where watchdog_reset() is already beeing

Re: [U-Boot] [PATCH 03/13 v3] serial: atmel_usart: Use fixed clock value in SPL version with DM_SERIAL

2019-04-02 Thread Stefan Roese
Hi Eugen, On 02.04.19 12:12, eugen.hris...@microchip.com wrote: On 02.04.2019 11:57, Stefan Roese wrote: This patch adds an alterative SPL version of atmel_serial_enable_clk(). This enables the usage of this driver without full clock support (in drivers and DT nodes). This saves some space

Re: [U-Boot] [PATCH] watchdog: Move watchdog_dev to data section (BSS may not be cleared)

2019-04-02 Thread Michal Simek
On 02. 04. 19 11:57, Stefan Roese wrote: > This patch moves all instances of static "watchdog_dev" declarations to > the "data" section. This may be needed, as the BSS may not be cleared > in the early U-Boot phase, where watchdog_reset() is already beeing > called. This may result in incorrect

Re: [U-Boot] [PATCH 03/13 v3] serial: atmel_usart: Use fixed clock value in SPL version with DM_SERIAL

2019-04-02 Thread Eugen.Hristev
On 02.04.2019 11:57, Stefan Roese wrote: > This patch adds an alterative SPL version of atmel_serial_enable_clk(). > This enables the usage of this driver without full clock support (in > drivers and DT nodes). This saves some space in the SPL image. > > Please note that this fixed clock

[U-Boot] [PATCH] watchdog: Move watchdog_dev to data section (BSS may not be cleared)

2019-04-02 Thread Stefan Roese
This patch moves all instances of static "watchdog_dev" declarations to the "data" section. This may be needed, as the BSS may not be cleared in the early U-Boot phase, where watchdog_reset() is already beeing called. This may result in incorrect pointer access, as the check to "!watchdog_dev" in

[U-Boot] [PATCH 07/13 v3] arm: at91: Enable watchdog support

2019-04-02 Thread Stefan Roese
This patch enables and starts the watchdog on the AT91 platform if configured. The WD timeout value is read in the AT91 WD device driver from the DT, using the "timeout-sec" DT property. If not provided in the DT, the default value of 2 seconds is used. Signed-off-by: Stefan Roese Cc: Heiko

[U-Boot] [PATCH 12/13 v3] arm: at91: at91sam9x5.dtsi: Add watchdog handle

2019-04-02 Thread Stefan Roese
This makes it possible to reference the watchdog DT node via "" from board dts files. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc: Eugen Hristev Reviewed-by: Heiko Schocher --- v3: - No change v2: - New patch arch/arm/dts/at91sam9x5.dtsi | 2 +- 1 file changed,

[U-Boot] [PATCH 06/13 v3] arm: at91: Remove CONFIG_AT91_HW_WDT_TIMEOUT

2019-04-02 Thread Stefan Roese
This patch removes the CONFIG_AT91_HW_WDT_TIMEOUT as its not needed any more. The WD timeout value can be provided via the "timeout-sec" DT property. If not provided this way, the default value of 2 seconds will be used. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc:

[U-Boot] [PATCH 09/13 v3] Makefile.spl: Move generated AT91SAM NAND image boot.bin to spl directory

2019-04-02 Thread Stefan Roese
This patch moves the AT91SAM NAND booting SPL image "boot.bin" which includes the ECC values from the root directory into the spl directory, where all SPL related images are located. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc: Eugen Hristev Reviewed-by: Heiko

[U-Boot] [PATCH 03/13 v3] serial: atmel_usart: Use fixed clock value in SPL version with DM_SERIAL

2019-04-02 Thread Stefan Roese
This patch adds an alterative SPL version of atmel_serial_enable_clk(). This enables the usage of this driver without full clock support (in drivers and DT nodes). This saves some space in the SPL image. Please note that this fixed clock support is only added to the SPL code in the DM_SERIAL part

[U-Boot] [PATCH 05/13 v3] watchdog: at91sam9_wdt: Fix WDT setup in at91_wdt_start()

2019-04-02 Thread Stefan Roese
This patch fixes the timer register setup in at91_wdt_start() to correctly configure the register again. The input timeout value is now in milli-seconds instead of seconds with the new watchdog API. Make sure to take this into account and only use a max timeout value of 16 seconds as appropriate

[U-Boot] [PATCH 10/13 v3] Makefile: Add Kconfig option CONFIG_SPL_IMAGE to select the SPL binary

2019-04-02 Thread Stefan Roese
This patch adds the CONFIG_SPL_IMAGE option to select the SPL image that shall be used to generate the combined SPL + U-Boot image. The default value is the current value "spl/u-boot-spl.bin". This patch also sets CONFIG_SPL_IMAGE to "spl/boot.bin" for AT91 targets which use SPL NAND support

[U-Boot] [PATCH 02/13 v3] arm: at91: spl_at91.c: Call spl_early_init() if OF_CONTROL is enabled

2019-04-02 Thread Stefan Roese
This patch adds a call to spl_early_init() to board_init_f() which is needed when CONFIG_SPL_OF_CONTROL is configured. This is necessary for the early SPL setup including the DTB setup for later usage. Please note that this call might also be needed for non SPL_OF_CONTROL board, like the smartweb

[U-Boot] [PATCH 13/13 v3] arm: at91: Add gardena-gateway-at91sam support

2019-04-02 Thread Stefan Roese
The GARDENA smart Gateway boards are equipped with an Atmel / Microchip AT91SAM9G25 SoC and with 128 MiB of RAM and 256 MiB of NAND storage. This patch adds support for this board including SPL support. Therefore the AT91Boostrap is not needed on this platform any more. Signed-off-by: Stefan

[U-Boot] [PATCH 11/13 v3] arm: at91: siemens: Add support to generate combined SPL+U-Boot image

2019-04-02 Thread Stefan Roese
This patch adds the necessary defines to the Siemens AT91SAM based boards (smartweb, corvus and taurus) to generate the combined binary image with SPL and main U-Boot image combined (u-boot-with-spl.bin). Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc: Eugen Hristev

[U-Boot] [PATCH 01/13 v3] arm: at91: Makefile: Compile lowlevel_init only when really necessary

2019-04-02 Thread Stefan Roese
Make sure that lowlevel_init is not compiled when CONFIG_SKIP_LOWLEVEL_INIT_ONLY is configured. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc: Eugen Hristev Reviewed-by: Heiko Schocher Tested on the taurus board: Tested-by: Heiko Schocher --- v3: - No change v2: -

[U-Boot] [PATCH 04/13 v3] watchdog: Handle SPL build with watchdog disabled

2019-04-02 Thread Stefan Roese
This patch adds some checks, so that the watchdog can be enabled in main U-Boot proper but can be disabled in SPL. This will be used by some AT91SAM based boards, which might enable the watchdog in the main U-Boot proper and not in SPL. It will be enabled in SPL by default there, so no need to

[U-Boot] [PATCH 08/13 v3] arm: at91: arm926ejs/u-boot-spl.lds: Add _image_binary_end to SPL lds

2019-04-02 Thread Stefan Roese
This patch adds _image_binary_end to the SPL linker script. This will be used be the upcoming GARDENA AT91SAM based platform, which uses DT in SPL and configures CONFIGURE_SPL_SEPARATE_BSS. Signed-off-by: Stefan Roese Cc: Heiko Schocher Cc: Andreas Bießmann Cc: Eugen Hristev Reviewed-by:

Re: [U-Boot] [PATCH] spl: fit: handle mmc read to sram case in rockchip SoCs

2019-04-02 Thread Kever Yang
Hi Philipp, On 03/30/2019 06:16 PM, Philipp Tomsich wrote: > Kever, > >> On 30.03.2019, at 02:43, Kever Yang > > wrote: >> >> Hi Simon, >> >> >> On 03/29/2019 11:33 PM, Simon Goldschmidt wrote: >>> >>> >>> On 29.03.19 15:09, Kever Yang wrote: Rockchip fit

[U-Boot] [PATCH 3/3] common: bouncebuf: handle address in sram for rockchip platform

2019-04-02 Thread Kever Yang
Rockchip SOC's mmc controller does not support read data from mmc to sram, we need a bounce buffer(in sdram), and then copy to sram. Signed-off-by: Kever Yang --- common/bouncebuf.c | 12 1 file changed, 12 insertions(+) diff --git a/common/bouncebuf.c b/common/bouncebuf.c index

[U-Boot] [PATCH 2/3] rockchip: introduce ROCKCHIP_IRAM_BASE

2019-04-02 Thread Kever Yang
Rockchip SoCs have internal sram for bootrom data area and for sdram init program space. Introduce the base address in case we need to use it. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 5 + arch/arm/mach-rockchip/rk3036/Kconfig | 3 +++

[U-Boot] [PATCH 1/3] rockchip: fixup board choice in Kconfig

2019-04-02 Thread Kever Yang
Kconfig for board target select is choice option, fixup for rk3036, rk3288 and rv1108. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3036/Kconfig | 5 + arch/arm/mach-rockchip/rk3288/Kconfig | 5 + arch/arm/mach-rockchip/rv1108/Kconfig | 5 + 3 files changed, 15

[U-Boot] [U-Boot, 2/3] imx8mq_evk: README: Fix a typo in the destination path

2019-04-02 Thread sbabic
> The DDR firmware binaries should be copied to '$(srctree)', so fix > a typo. > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

  1   2   >