Re: [U-Boot] [PATCH 2/4] armv8: ls2088aqds: The ls2088aqds board supports the I2C driver model.

2019-07-23 Thread Wolfgang Denk
Dear Chuanhua, In message <20190724025904.469-2-chuanhua@nxp.com> you wrote: > This patch is updating ls2088aqds board init code to support DM_I2C. I have a generic question about error handling in your code: > + a = 0x18; > + dm_i2c_wr

Re: [U-Boot] [PATCH 2/4] armv8: ls2088aqds: The ls2088aqds board supports the I2C driver model.

2019-07-23 Thread Wolfgang Denk
Dear Chuanhua Han, In message <20190724025904.469-2-chuanhua@nxp.com> you wrote: ... > /* Set I2c to Slot 1 */ > +#ifndef CONFIG_DM_I2C > i2c_write(0x77, 0, 0, &a, 1); > +#else > + struct udevice *udev; Please - no declarations in the in the middle of the code (even if #ifdef'

[U-Boot] 答复: [EXT] Re: Upstreaming usb host drivers for iMX8/iMX8M

2019-07-23 Thread Sherry Sun
Hi,Igor > -邮件原件- > 发件人: Igor Opaniuk > 发送时间: 2019年7月23日 20:43 > 收件人: Sherry Sun > 抄送: Ying Liu ; Peng Fan ; Jun Li > ; Ye Li ; U-Boot Mailing List > ; Peter Chen ; dl-uboot-imx > ; Marcel Ziswiler ; Max > Krummenacher ; Igor Opaniuk > ; Frank Li > 主题: Re: [EXT] Re: Upstreaming usb host

Re: [U-Boot] [PATCH v5 7/8] board: intel: Add new slimbootloader board

2019-07-23 Thread Bin Meng
Hi Aiden, On Wed, Jul 24, 2019 at 11:18 AM Park, Aiden wrote: > > Hi Andy, > > > -Original Message- > > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > > Sent: Tuesday, July 23, 2019 5:27 AM > > To: Bin Meng > > Cc: Park, Aiden ; U-Boot Mailing List > b...@lists.denx.de>; Sim

Re: [U-Boot] [PATCH 00/50] doc: Shape into useful HTML docs

2019-07-23 Thread Bin Meng
Hi Tom, On Tue, Jul 23, 2019 at 11:29 PM Tom Rini wrote: > > On Tue, Jul 23, 2019 at 05:00:52PM +0200, Wolfgang Denk wrote: > > Dear Bin, > > > > In message > > you > > wrote: > > > > > > > @Wolfgang, is it possible to host the Sphinx HTML docs on denx.de? > > > > > > > > This series is availa

Re: [U-Boot] [PATCH 00/50] doc: Shape into useful HTML docs

2019-07-23 Thread Bin Meng
Hi Wolfgang, On Tue, Jul 23, 2019 at 11:01 PM Wolfgang Denk wrote: > > Dear Bin, > > In message > you > wrote: > > > > > @Wolfgang, is it possible to host the Sphinx HTML docs on denx.de? > > > > > > This series is available at u-boot-x86/doc for testing. > > > > > > > Ping? > > Yes, this is p

Re: [U-Boot] [PATCH] mmd: sdhci: fix non GPIO card detect

2019-07-23 Thread Baruch Siach
Hi Peng, On Wed, Jul 24, 2019 at 01:17:49AM +, Peng Fan wrote: > > Subject: Re: [PATCH] mmd: sdhci: fix non GPIO card detect > > On Tue, Jul 23, 2019 at 04:47:47PM +0530, Faiz Abbas wrote: > > > On 23/07/19 4:16 PM, Baruch Siach wrote: > > > > On Tue, Jul 23, 2019 at 03:35:31PM +0530, Faiz Abb

[U-Boot] [PATCH v11 4/4] doc: sifive-fu540: Update README to explicitly load DTB for Linux

2019-07-23 Thread Anup Patel
We should explicitly load DTB from TFTP server or MMC/SD card for Linux booting. This will allow us: 1. To use different Linux DTB for SiFive Unleashed board with expansion board connected. 2. Avoid re-flashing OpenSBI firmware whenever board connections change. This patch updates reference

[U-Boot] [PATCH v11 2/4] net: macb: Fix check for little-endian system in gmac_configure_dma()

2019-07-23 Thread Anup Patel
Instead of depending on CONFIG_SYS_LITTLE_ENDIAN, we check at runtime whether underlying system is little-endian or big-endian. This way we are not dependent on any U-Boot specific OR compiler specific macro to check system endianness. Signed-off-by: Anup Patel Reviewed-by: Bin Meng Reviewed-by:

[U-Boot] [PATCH v11 3/4] riscv: sifive: fu540: Sync-up config header with RISC-V QEMU support

2019-07-23 Thread Anup Patel
We typically use same set of distro images (yocto, debian, fedora, etc.) on both QEMU RISC-V virt machine and SiFive Unleashed board. With growing kernel and ramdisk images, we need to re-adjust default U-Boot environment variables. The config header for QEMU RISC-V virt machine has been already u

[U-Boot] [PATCH v11 0/4] Update SiFive Unleashed Drivers

2019-07-23 Thread Anup Patel
This series update SiFive Unleashed clock driver and Cadence MACB driver so that: 1. It is in sync with upstream Linux driver 2. It uses latest DT bindings as-per upstream Linux driver With this series, we can now use latest DT bindings with U-Boot. I have tested SiFive Serial driver and Cadence M

[U-Boot] [PATCH v11 1/4] net: macb: Extend MACB driver for SiFive Unleashed board

2019-07-23 Thread Anup Patel
The SiFive MACB ethernet has a custom TX_CLK_SEL register to select different TX clock for 1000mbps vs 10/100mbps. This patch adds SiFive MACB compatible string and extends the MACB ethernet driver to change TX clock using TX_CLK_SEL register for SiFive MACB. Signed-off-by: Anup Patel Reviewed-b

Re: [U-Boot] [PATCH 00/18] autoboot: Tidy up autoboot code

2019-07-23 Thread Simon Glass
Hi Tom, On Thu, 11 Jul 2019 at 07:04, Tom Rini wrote: > > On Sun, May 05, 2019 at 03:53:24PM -0600, Simon Glass wrote: > > > This series cleans up autoboot.c a bit to: > > > > - Convert options to Kconfig > > - Use C code instead of C preprocessor where possible > > - Add a few comments > > > > >

[U-Boot] Please pull u-boot-dm (take 2)

2019-07-23 Thread Simon Glass
Hi Tom, This includes the gitlab fix and also I updated ifwitool.c to drop the unused inline functions. The following changes since commit ff8c23e784f57a7098e91a200ed7f5a48612b653: Merge tag 'u-boot-stm32-20190723' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm (2019-07-2

Re: [U-Boot] Please pull u-boot-dm

2019-07-23 Thread Simon Glass
Hi Tom, On Tue, 23 Jul 2019 at 20:23, Tom Rini wrote: > > On Tue, Jul 23, 2019 at 08:08:03PM -0700, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 23 Jul 2019 at 11:16, Tom Rini wrote: > > > > > > On Mon, Jul 22, 2019 at 08:48:45AM -0600, Simon Glass wrote: > > > > > > > Hi Tom, > > > > > > > >

Re: [U-Boot] Please pull u-boot-dm

2019-07-23 Thread Tom Rini
On Tue, Jul 23, 2019 at 08:08:03PM -0700, Simon Glass wrote: > Hi Tom, > > On Tue, 23 Jul 2019 at 11:16, Tom Rini wrote: > > > > On Mon, Jul 22, 2019 at 08:48:45AM -0600, Simon Glass wrote: > > > > > Hi Tom, > > > > > > Build is here: https://travis-ci.org/sglass68/u-boot/builds/561552377 > > > >

Re: [U-Boot] [PATCH v5 7/8] board: intel: Add new slimbootloader board

2019-07-23 Thread Park, Aiden
Hi Andy, > -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Tuesday, July 23, 2019 5:27 AM > To: Bin Meng > Cc: Park, Aiden ; U-Boot Mailing List b...@lists.denx.de>; Simon Glass > Subject: Re: [PATCH v5 7/8] board: intel: Add new slimbootloader boar

[U-Boot] [PATCH 2/4] armv8: ls2088aqds: The ls2088aqds board supports the I2C driver model.

2019-07-23 Thread Chuanhua Han
This patch is updating ls2088aqds board init code to support DM_I2C. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=118772 - http://patchwork.ozlabs.org/project/uboot/list/?series=117226 board/freescale/ls2080aqds/eth.c

[U-Boot] [PATCH 3/4] configs: ls2088aqds: Enable DM support for ds3231 rtc

2019-07-23 Thread Chuanhua Han
Enable related configs on all ls2088aqds boards to support ds3231 rtc DM function. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=118772 - http://patchwork.ozlabs.org/project/uboot/list/?series=117226 configs/ls2088aqds_tfa_d

[U-Boot] [PATCH 4/4] armv8: ls2088aqds : Add ds3232 node

2019-07-23 Thread Chuanhua Han
This patch adds the ds3232-rtc node under the i2c0->i2c-mux@77->i2c@0 for ls2088aqds boards. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=118772 - http://patchwork.ozlabs.org/project/uboot/list/?series=117226 arch/arm/dts/f

[U-Boot] [PATCH 1/4] rtc: ds3232/ds3231: Add support to generate 32KHz output for driver module

2019-07-23 Thread Chuanhua Han
This patch add an implementation of the rtc_enable_32khz_output() that uses the driver model i2c APIs. Signed-off-by: Chuanhua Han --- depends on: - http://patchwork.ozlabs.org/project/uboot/list/?series=118772 - http://patchwork.ozlabs.org/project/uboot/list/?series=117226 driv

Re: [U-Boot] Please pull u-boot-dm

2019-07-23 Thread Simon Glass
Hi Tom, On Tue, 23 Jul 2019 at 11:16, Tom Rini wrote: > > On Mon, Jul 22, 2019 at 08:48:45AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > Build is here: https://travis-ci.org/sglass68/u-boot/builds/561552377 > > > > The following changes since commit 0de815356474912ef5bef9a69f0327a5a93bb2c2: >

Re: [U-Boot] [PATCH v5 5/8] x86: slimbootloader: Set TSC information for timer driver

2019-07-23 Thread Park, Aiden
Hi Andy, > -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Monday, July 22, 2019 8:42 AM > To: Park, Aiden > Cc: U-Boot Mailing List ; Simon Glass > ; Bin Meng > Subject: Re: [PATCH v5 5/8] x86: slimbootloader: Set TSC information for timer > driver

Re: [U-Boot] [PATCH v5 4/8] x86: slimbootloader: Add serial driver

2019-07-23 Thread Park, Aiden
Hi Andy, > -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Monday, July 22, 2019 8:38 AM > To: Park, Aiden > Cc: U-Boot Mailing List ; Simon Glass > ; Bin Meng > Subject: Re: [PATCH v5 4/8] x86: slimbootloader: Add serial driver > > On Wed, Jul 17,

Re: [U-Boot] [RFC PATCH 00/11] SPL support for RISC-V

2019-07-23 Thread Bin Meng
Hi Lukas, On Wed, Jul 24, 2019 at 5:34 AM Auer, Lukas wrote: > > Hi Bin, > > On Tue, 2019-07-23 at 16:32 +0800, Bin Meng wrote: > > Hi Lukas, > > > > On Mon, Jul 22, 2019 at 2:00 AM Lukas Auer > > wrote: > > > This series adds support for SPL to RISC-V U-Boot. Images can be booted > > > via Open

Re: [U-Boot] [PATCH v5 3/8] x86: slimbootloader: Add memory configuration

2019-07-23 Thread Park, Aiden
Hi Andy, > -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Monday, July 22, 2019 8:34 AM > To: Park, Aiden > Cc: U-Boot Mailing List ; Simon Glass > ; Bin Meng > Subject: Re: [PATCH v5 3/8] x86: slimbootloader: Add memory configuration > > On Wed, J

Re: [U-Boot] [PATCH v5 1/8] x86: Add new slimbootloader CPU type

2019-07-23 Thread Bin Meng
Hi Aiden, On Wed, Jul 24, 2019 at 10:37 AM Park, Aiden wrote: > > Hi Andy, > > > -Original Message- > > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > > Sent: Monday, July 22, 2019 8:14 AM > > To: Park, Aiden > > Cc: U-Boot Mailing List ; Simon Glass > > ; Bin Meng > > Subje

Re: [U-Boot] [EXT] Re: [PATCH v2] rtc: ds3232/ds3231: Add support to generate 32KHz output for driver module

2019-07-23 Thread Chuanhua Han
Dear Wolfgang Denk > -Original Message- > From: Wolfgang Denk > Sent: 2019年7月23日 23:05 > To: Chuanhua Han > Cc: lu...@denx.de; tr...@konsulko.com; Prabhakar Kushwaha > ; u-boot@lists.denx.de > Subject: [EXT] Re: [PATCH v2] rtc: ds3232/ds3231: Add support to generate > 32KHz output for dr

Re: [U-Boot] [PATCH v5 1/8] x86: Add new slimbootloader CPU type

2019-07-23 Thread Park, Aiden
Hi Andy, > -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Monday, July 22, 2019 8:14 AM > To: Park, Aiden > Cc: U-Boot Mailing List ; Simon Glass > ; Bin Meng > Subject: Re: [PATCH v5 1/8] x86: Add new slimbootloader CPU type > > On Wed, Jul 17, 20

Re: [U-Boot] [PULL] u-boot-stm32/master for v2019.10-rc1: u-boot-stm32-20190723

2019-07-23 Thread Tom Rini
On Tue, Jul 23, 2019 at 07:20:49AM +, Patrick DELAUNAY wrote: > > Hi Tom > > please pull the STM32 related patches for v2019.10-rc1 = u-boot-stm32-20190723 > > Travis CI status: > https://travis-ci.org/patrickdelaunay/u-boot/builds/562084625 > the war

Re: [U-Boot] Pull request: u-boot-rockchip/tags/rockchip-for-v2019.07-2

2019-07-23 Thread Tom Rini
On Mon, Jul 22, 2019 at 10:03:43PM +0800, Kever Yang wrote: > Hi Tom, > > Please pull some fix up for rockchip platform: > - rk3399 sdhci driver fixup > - TPL BANNER fixup > > The Travis build is not complete when I send this mail, but it > should be OK for the fixes are simple. > Travis: > http

Re: [U-Boot] [PATCH] mmc: sdhci: fix chip detect gpio property name

2019-07-23 Thread Peng Fan
> Subject: [PATCH] mmc: sdhci: fix chip detect gpio property name > > The standard property name for chip-detect gpio is "cd-gpios". All in-tree DT > files use only this name. > > Fixes: 451931ea700 ("mmc: sdhci: Read cd-gpio from devicetree") > Cc: T Karthik Reddy > Cc: Michal Simek > Signed-o

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

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

Re: [U-Boot] [PATCH v1] test/py: add MMC/SD block write test

2019-07-23 Thread Peng Fan
> Subject: [PATCH v1] test/py: add MMC/SD block write test > > Add a standalone MMC block write test. This allows direct testing of MMC > access rather than relying on doing so as a side-effect of e.g. DFU or UMS > testing, which may not be enabled on all platforms. > > Signed-off-by: Jean-Jacque

Re: [U-Boot] [PATCH] mmc: sti_sdhci: Fix sdhci_setup_cfg() call.

2019-07-23 Thread Peng Fan
> Subject: [PATCH] mmc: sti_sdhci: Fix sdhci_setup_cfg() call. > > host->mmc and host->mmc->dev must be set before calling > sdhci_setup_cfg() to avoid hang during mmc initialization. > > Thanks to commit 3d296365e4e8 > ("mmc: sdhci: Add support for sdhci-caps-mask") which put this issue into > e

Re: [U-Boot] [RFC PATCH 00/11] SPL support for RISC-V

2019-07-23 Thread Auer, Lukas
Hi Bin, On Tue, 2019-07-23 at 16:32 +0800, Bin Meng wrote: > Hi Lukas, > > On Mon, Jul 22, 2019 at 2:00 AM Lukas Auer > wrote: > > This series adds support for SPL to RISC-V U-Boot. Images can be booted > > via OpenSBI (FW_DYNAMIC firmware) or by directly jumping to them. In the > > former case,

Re: [U-Boot] [PATCH v1] colibri_imx7: boot kernel in secure mode

2019-07-23 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH v1] colibri_imx7: boot kernel in secure mode > > Hi Igor, > > thanks for your comments! Is there any solution, patch or workaround I can > try to power on the 2nd CPU core in secure mode with mainline kernel? The upstream maintainer rejected the legacy method for i

Re: [U-Boot] [PATCH u-boot-mmc 1/1] mmc: sdhci: Read cd-gpios instead of cd-gpio from devicetree

2019-07-23 Thread Peng Fan
> Subject: [PATCH u-boot-mmc 1/1] mmc: sdhci: Read cd-gpios instead of > cd-gpio from devicetree > > Linux's documentation (Documentation/devicetree/bindings/mmc/mmc.txt) > says the property should be named cd-gpios, not cd-gpio. All the dts files use > cd-gpios. There was already a patch, https:

Re: [U-Boot] [PATCH] mmd: sdhci: fix non GPIO card detect

2019-07-23 Thread Peng Fan
> Subject: Re: [PATCH] mmd: sdhci: fix non GPIO card detect > > Hi Faiz, > > On Tue, Jul 23, 2019 at 04:47:47PM +0530, Faiz Abbas wrote: > > On 23/07/19 4:16 PM, Baruch Siach wrote: > > > On Tue, Jul 23, 2019 at 03:35:31PM +0530, Faiz Abbas wrote: > > >> On 23/07/19 2:39 PM, Baruch Siach wrote: >

Re: [U-Boot] [PATCH] mx6sabresd: Reduce overall SPL size

2019-07-23 Thread Peng Fan
> Subject: [PATCH] mx6sabresd: Reduce overall SPL size > > Currently the SPL binary is 67 kB, which leaves only 1 kB of free internal RAM > space. > > The following options can be safely removed to save some precious SPL space: > > - CONFIG_SPL_FS_EXT4: u-boot-dtb.img is stored in raw sector via

Re: [U-Boot] [PATCH v2] net: davinci_emac: convert to using the driver model

2019-07-23 Thread Joe Hershberger
On Mon, Jun 24, 2019 at 9:22 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > Now that we removed all legacy boards selecting TI_EMAC we can > completely convert the driver code to using the driver model. > This patch also updates all remaining users of davinci_emac. > > Signed-off

Re: [U-Boot] [PATCH v2 00/18] autoboot: Tidy up autoboot code

2019-07-23 Thread Lukasz Majewski
Hi Simon, > This series cleans up autoboot.c a bit to: > > - Convert options to Kconfig > - Use C code instead of C preprocessor where possible > - Add a few comments > Thanks Simon for this clean up series. Reviewed-by: Lukasz Majewski > Changes in v2: > - Rebase to master > > Simon Glass

Re: [U-Boot] Updating uboot from 2015.04 to 2017.03 - doubts and other questions

2019-07-23 Thread Nemanja Savic
Thank you Adam for your answer. Sounds like a good starting point for me. Additionally I would like to ask you further questions regarding your answers. > 3. Is device tree used by u-boot the same device tree later used by linu > >> > kernel? >> >> On my imx6q_logic board, the device tree is appen

Re: [U-Boot] [PATCH 0/6] arm: socfpga: gen5: DM improvements

2019-07-23 Thread Simon Goldschmidt
Am 23.07.2019 um 22:27 schrieb Simon Goldschmidt: This series ports more ad-hoc code to DM drivers (reset, clk, timer). This is how far I got with DM/DTS "conversion" for now. Converting from "board/qts/*.h" to DTS is still pending since I yet failed to find a solution that allows FPGA images

[U-Boot] [PATCH 3/6] timer: dw-apb: add reset handling

2019-07-23 Thread Simon Goldschmidt
To use this timer on socfpga as system tick, it needs to take itself out of reset. Signed-off-by: Simon Goldschmidt --- drivers/timer/dw-apb-timer.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/timer/dw-apb-timer.c b/drivers/timer/dw-apb-timer.c

[U-Boot] [PATCH 6/6] arm: socfpga: gen5: use DM_TIMER for systick

2019-07-23 Thread Simon Goldschmidt
This removes the ad-hoc timer code in arch. Signed-off-by: Simon Goldschmidt --- arch/arm/dts/socfpga-common-u-boot.dtsi | 8 arch/arm/mach-socfpga/Kconfig | 3 +++ arch/arm/mach-socfpga/Makefile | 1 - arch/arm/mach-socfpga/spl_gen5.c| 3 --- arch/arm/ma

[U-Boot] [PATCH 4/6] arm: socfpga: gen5: move initial reset handling to reset driver

2019-07-23 Thread Simon Goldschmidt
This moves disabling all peripherals from ad-hoc code in arch/arm to the socfpga reset driver. To do this, DM initialization and UCLASS_RESET probing has to be done earlier in the SPL. Signed-off-by: Simon Goldschmidt --- arch/arm/mach-socfpga/reset_manager_gen5.c | 13 - arch/arm/

[U-Boot] [PATCH 2/6] arm: socfpga: gen5: increase SPL_SYS_MALLOC_F_LEN

2019-07-23 Thread Simon Goldschmidt
In preparation to adding more DM based drivers, increase the SPL pre-relocation heap just enough to allow those new drivers to run. Signed-off-by: Simon Goldschmidt --- arch/arm/mach-socfpga/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/Kconfi

[U-Boot] [PATCH 5/6] arm: socfpga: gen5: add readonly clk driver

2019-07-23 Thread Simon Goldschmidt
This adds clk-gen5 as a readonly DM_CLK driver that can return clocks for the peripherals. Further changes are: - select DM_CLK for gen5 U-Boot and SPL - add SPL tags to clock nodes in socfpga-common-u-boot.dtsi - adjust socfpga.dtsi to provide missing src selection registers - start 'handoff.dtsi

[U-Boot] [PATCH 1/6] ddr: socfpga: gen5: constify altera_gen5_sdram_ops

2019-07-23 Thread Simon Goldschmidt
Make the function pointer struct const, as it does not need to be writable. This doesn't really change anything other than moving this variable to a different section. No functional change. Signed-off-by: Simon Goldschmidt --- drivers/ddr/altera/sdram_gen5.c | 2 +- 1 file changed, 1 insertion(

[U-Boot] [PATCH 0/6] arm: socfpga: gen5: DM improvements

2019-07-23 Thread Simon Goldschmidt
This series ports more ad-hoc code to DM drivers (reset, clk, timer). Simon Goldschmidt (6): ddr: socfpga: gen5: constify altera_gen5_sdram_ops arm: socfpga: gen5: increase SPL_SYS_MALLOC_F_LEN timer: dw-apb: add reset handling arm: socfpga: gen5: move initial reset handling to reset driv

Re: [U-Boot] [PATCH 19/24] rockchip: rk3328: Migrate to use common board file

2019-07-23 Thread Matwey V. Kornilov
22.07.2019 15:02, Kever Yang пишет: > Use common board file for board_init() and board_late_init(), > for Rockchip SoCs have very similar process. > > Signed-off-by: Kever Yang Tested-by: Matwey V. Kornilov Hi, I've just checked that rock64-rk3328_defconfig is still bootable with this series.

Re: [U-Boot] [PATCH v4 1/4] arm: socfpga: rst: add register definition for cold reset

2019-07-23 Thread Marek Vasut
On 7/23/19 9:27 PM, Simon Goldschmidt wrote: > Am 23.07.2019 um 21:26 schrieb Marek Vasut: >> On 7/23/19 9:12 PM, Simon Goldschmidt wrote: >>> Am 23.07.2019 um 21:09 schrieb Marek Vasut: On 7/23/19 8:37 PM, Simon Goldschmidt wrote: > Am 21.07.2019 um 12:45 schrieb Marek Vasut: >> On 7/

Re: [U-Boot] [PATCH v4 1/4] arm: socfpga: rst: add register definition for cold reset

2019-07-23 Thread Simon Goldschmidt
Am 23.07.2019 um 21:26 schrieb Marek Vasut: On 7/23/19 9:12 PM, Simon Goldschmidt wrote: Am 23.07.2019 um 21:09 schrieb Marek Vasut: On 7/23/19 8:37 PM, Simon Goldschmidt wrote: Am 21.07.2019 um 12:45 schrieb Marek Vasut: On 7/15/19 9:47 PM, Simon Goldschmidt wrote: This adds a define for th

Re: [U-Boot] [PATCH v4 1/4] arm: socfpga: rst: add register definition for cold reset

2019-07-23 Thread Marek Vasut
On 7/23/19 9:12 PM, Simon Goldschmidt wrote: > Am 23.07.2019 um 21:09 schrieb Marek Vasut: >> On 7/23/19 8:37 PM, Simon Goldschmidt wrote: >>> Am 21.07.2019 um 12:45 schrieb Marek Vasut: On 7/15/19 9:47 PM, Simon Goldschmidt wrote: > This adds a define for the bit in rstmgr's ctrl regiser

Re: [U-Boot] [PATCH v4 1/4] arm: socfpga: rst: add register definition for cold reset

2019-07-23 Thread Simon Goldschmidt
Am 23.07.2019 um 21:09 schrieb Marek Vasut: On 7/23/19 8:37 PM, Simon Goldschmidt wrote: Am 21.07.2019 um 12:45 schrieb Marek Vasut: On 7/15/19 9:47 PM, Simon Goldschmidt wrote: This adds a define for the bit in rstmgr's ctrl regiser that issues a cold reset (we had a define for the warm reset

Re: [U-Boot] [PATCH v4 1/4] arm: socfpga: rst: add register definition for cold reset

2019-07-23 Thread Marek Vasut
On 7/23/19 8:37 PM, Simon Goldschmidt wrote: > Am 21.07.2019 um 12:45 schrieb Marek Vasut: >> On 7/15/19 9:47 PM, Simon Goldschmidt wrote: >>> This adds a define for the bit in rstmgr's ctrl regiser that issues >>> a cold reset (we had a define for the warm reset bit only) in >>> preparation >>> fo

Re: [U-Boot] [PATCH v4 1/4] arm: socfpga: rst: add register definition for cold reset

2019-07-23 Thread Simon Goldschmidt
Am 21.07.2019 um 12:45 schrieb Marek Vasut: On 7/15/19 9:47 PM, Simon Goldschmidt wrote: This adds a define for the bit in rstmgr's ctrl regiser that issues a cold reset (we had a define for the warm reset bit only) in preparation for a proper sysrese driver. Applied all four, thanks. Wher

Re: [U-Boot] Updating uboot from 2015.04 to 2017.03 - doubts and other questions

2019-07-23 Thread Adam Ford
On Tue, Jul 23, 2019 at 12:32 PM Nemanja Savic wrote: > > Hi all list members, > > this is my first post. I am almost new to u-boot, which means that a few > times in my life I had tasks to implement some commands and perform > initialization of GPIOS, etc. In summary very simple tasks. Now I have

Re: [U-Boot] Please pull u-boot-dm

2019-07-23 Thread Tom Rini
On Mon, Jul 22, 2019 at 08:48:45AM -0600, Simon Glass wrote: > Hi Tom, > > Build is here: https://travis-ci.org/sglass68/u-boot/builds/561552377 > > The following changes since commit 0de815356474912ef5bef9a69f0327a5a93bb2c2: > > Merge branch '2019-07-17-master-imports' (2019-07-18 11:31:37 -

[U-Boot] Updating uboot from 2015.04 to 2017.03 - doubts and other questions

2019-07-23 Thread Nemanja Savic
Hi all list members, this is my first post. I am almost new to u-boot, which means that a few times in my life I had tasks to implement some commands and perform initialization of GPIOS, etc. In summary very simple tasks. Now I have a bit harder tasks - to update from version 2015.04 to 2017.03. T

Re: [U-Boot] [PATCH 4/4] arm: dts: Set custom names for cp110 master/slave MDIO buses

2019-07-23 Thread Nevo Hed
For context from upstream linux, https://github.com/torvalds/linux/commit/f66b2aff46eaf0825dbe1560e28fcb845dd2a215 I was intending to submit the parallel change here once fully tested end-end on our hardware, but if not too late my proposal is to name the above nodes as "cpm-mdio" & "cps-mdio" O

Re: [U-Boot] [PATCH v10 3/4] riscv: sifive: fu540: Sync-up config header with RISC-V QEMU support

2019-07-23 Thread David Abdurachmanov
On Mon, Jul 22, 2019 at 10:48 AM Anup Patel wrote: > > We typically use same set of distro images (yocto, debian, fedora, etc.) > on both QEMU RISC-V virt machine and SiFive Unleashed board. > > With growing kernel and ramdisk images, we need to re-adjust default > U-Boot environment variables. Th

Re: [U-Boot] [PATCH 4/4] arm: dts: Set custom names for cp110 master/slave MDIO buses

2019-07-23 Thread Nevo Hed
Sorry for the late input The cp110s have an mdio and an xmdio so Locally I have been naming them cpm-xmdio, cpm-mdio, cps-xmdio, cps-mdio I knew the new field is coming but didn't catch that the 'dtsi's patch [also apologies if you get this a second time] On Mon, Jul 22, 2019 at 8:30 PM Joe Her

Re: [U-Boot] [PATCH 00/50] doc: Shape into useful HTML docs

2019-07-23 Thread Tom Rini
On Tue, Jul 23, 2019 at 05:00:52PM +0200, Wolfgang Denk wrote: > Dear Bin, > > In message > you > wrote: > > > > > @Wolfgang, is it possible to host the Sphinx HTML docs on denx.de? > > > > > > This series is available at u-boot-x86/doc for testing. > > > > > > > Ping? > > Yes, this is possibl

[U-Boot] [PATCH] mx6sabresd: Reduce overall SPL size

2019-07-23 Thread Fabio Estevam
Currently the SPL binary is 67 kB, which leaves only 1 kB of free internal RAM space. The following options can be safely removed to save some precious SPL space: - CONFIG_SPL_FS_EXT4: u-boot-dtb.img is stored in raw sector via dd command (at offset 69 kB) - CONFIG_SPL_I2C_SUPPORT: I2C is not use

Re: [U-Boot] [PATCH 4/4] arm: dts: Set custom names for cp110 master/slave MDIO buses

2019-07-23 Thread Nevo Hed
Sorry for the late input The cp110s have an mdio and an xmdio so Locally I have been naming them cpm-xmdio, cpm-mdio, cps-xmdio, cps-mdio I knew the new field is coming but didn't catch that the 'dtsi's patch On Mon, Jul 22, 2019 at 8:30 PM Joe Hershberger wrote: > > On Wed, Jul 17, 2019 at 10:

Re: [U-Boot] [PATCH 2/2] arm: dts: ficus: Enable booting from eMMC when using SPL

2019-07-23 Thread Manivannan Sadhasivam
On Mon, May 27, 2019 at 02:49:49PM +0800, Kever Yang wrote: > > > On 05/20/2019 11:46 PM, Manivannan Sadhasivam wrote: > > This commits enables booting from eMMC when using SPL on 96Boards > > Ficus board by adding SDHCI to boot order. Since the SDHCI driver > > already has the reloc flag, this w

Re: [U-Boot] [PATCH 1/2] arm: dts: rock960: Enable booting from eMMC when using SPL

2019-07-23 Thread Manivannan Sadhasivam
On Mon, May 27, 2019 at 02:49:39PM +0800, Kever Yang wrote: > > > On 05/20/2019 11:46 PM, Manivannan Sadhasivam wrote: > > This commits enables booting from eMMC when using SPL on 96Boards > > Rock960 board by adding SDHCI to boot order. Since the SDHCI driver > > already has the reloc flag, this

Re: [U-Boot] [PATCH v2] rtc: ds3232/ds3231: Add support to generate 32KHz output for driver module

2019-07-23 Thread Wolfgang Denk
Dear Chuanhua Han, In message <20190723095745.37138-1-chuanhua@nxp.com> you wrote: > This patch add an implementation of the rtc_enable_32khz_output() that > uses the driver model i2c APIs. > > Signed-off-by: Chuanhua Han > --- > Change in v2: > - Add RTC_ENABLE_32KHZ_OUTPUT option so t

Re: [U-Boot] [PATCH 00/50] doc: Shape into useful HTML docs

2019-07-23 Thread Wolfgang Denk
Dear Bin, In message you wrote: > > > @Wolfgang, is it possible to host the Sphinx HTML docs on denx.de? > > > > This series is available at u-boot-x86/doc for testing. > > > > Ping? Yes, this is possible. Where can I find the HTML files? And where would you want to put them? And what is the

[U-Boot] [PATCH u-boot-spi v2 1/1] spi: mvebu_a3700_spi: Fix clock prescale computation

2019-07-23 Thread Marek Behún
The prescaler value computation can yield wrong result if given 0x1f at the beginning: the value is computed to be 0x20, but the maximum value the register can hold 0x1f, so the actual stored value in this case is 0, which is obviously wrong. Set the upper bound of the value to 0x1f with the min ma

[U-Boot] [PATCH u-boot-mmc 1/1] mmc: sdhci: Read cd-gpios instead of cd-gpio from devicetree

2019-07-23 Thread Marek Behún
Linux's documentation (Documentation/devicetree/bindings/mmc/mmc.txt) says the property should be named cd-gpios, not cd-gpio. All the dts files use cd-gpios. Signed-off-by: Marek Behún Cc: T Karthik Reddy Cc: Michal Simek Cc: Peng Fan --- drivers/mmc/sdhci.c | 2 +- 1 file changed, 1 inserti

Re: [U-Boot] [PATCH 1/3] spi: Add spi_write_then_read

2019-07-23 Thread Adam Ford
On Mon, Jul 22, 2019 at 7:01 AM Jagan Teki wrote: > > Add support for SPI synchronous write followed by read, > this is common interface call from spi-nor to spi drivers. > For the while series: Tested-by: Adam Ford #da850-evm > Reviewed-by: Simon Glass > Signed-off-by: Jagan Teki > --- > dri

Re: [U-Boot] [PATCH v2 1/2] dm: core: device: switch off power domain after device removal

2019-07-23 Thread Lokesh Vutla
On 15/07/19 1:27 AM, Anatolij Gustschin wrote: > The power domain associated with a device is enabled when probing, > but currently the domain remains enabled when the device is removed. > Some boards started to disable power domains for selected devices > via custom board_quiesce_devices(), but

Re: [U-Boot] Remote code execution vulnerabilities in U-Boot's NFS and other IP parsing code

2019-07-23 Thread Fermín Serna
Of course, sorry about that. Please note this was a quick untested patch used for highlighting the vulnerabilities. I would start with it but most likely needs some extra work. At this time, I would appreciate someone else to take it form here. See inline below. diff --git a/net/net.c b/net/net.c

Re: [U-Boot] Pull request: u-boot-rockchip/tags/rockchip-for-v2019.07

2019-07-23 Thread Tom Rini
On Sun, Jul 21, 2019 at 11:11:40AM +0800, Kever Yang wrote: > Hi Tom, > > Please pull rockchip the update: > - rk3399 lpddr4 support > - rk3399-rock960 board support improvement > - Eliminate pyelftools dependency by make_fit_atf.py > - clean up rockchip dts to use -u-boot.dtsi > - use ARM arch/g

Re: [U-Boot] Pull request: u-boot-nds32/master

2019-07-23 Thread Tom Rini
On Fri, Jul 19, 2019 at 03:24:51PM +0800, ub...@andestech.com wrote: > Hi Tom, > > Please pull some nds32 updates: > - Update nds32 MAINTAINERS from Macpaul to Rick. > > https://travis-ci.org/rickchen36/u-boot-nds32/builds/560328107 > > Thanks > > Rick > > > The following changes since commi

Re: [U-Boot] Pull request: u-boot-riscv/master

2019-07-23 Thread Tom Rini
On Fri, Jul 19, 2019 at 03:06:24PM +0800, ub...@andestech.com wrote: > Hi Tom, > > Please pull some riscv updates: > > - Update SiFive Unleashed clock driver. > - Enables SiFive SPI driver and MMC SPI driver for SiFive Unleashed board > > https://travis-ci.org/rickchen36/u-boot-riscv/builds/560

Re: [U-Boot] Pull request: u-boot-net.git master

2019-07-23 Thread Tom Rini
On Thu, Jul 18, 2019 at 04:38:22PM -0500, Joe Hershberger wrote: > Hi Tom, > > These patches passed Travis-CI here: > https://travis-ci.org/jhershbe/u-boot/builds/559182108 > > The following changes since commit 0e80dda32c8d724c2a98dbbfb2f1e59762788f15: > > Merge branch 'master' of > https:

Re: [U-Boot] [PATCH] mmd: sdhci: fix non GPIO card detect

2019-07-23 Thread Baruch Siach
Hi Faiz, On Tue, Jul 23, 2019 at 04:47:47PM +0530, Faiz Abbas wrote: > On 23/07/19 4:16 PM, Baruch Siach wrote: > > On Tue, Jul 23, 2019 at 03:35:31PM +0530, Faiz Abbas wrote: > >> On 23/07/19 2:39 PM, Baruch Siach wrote: > >>> On Tue, Jul 23, 2019 at 02:27:28PM +0530, Faiz Abbas wrote: > On

[U-Boot] [PATCH] ARM: dts: stih410-b2260: Sync DT with kernel v5.2

2019-07-23 Thread Patrice Chotard
Synchronize U-boot DT with kernel v5.2 for stih410-b2260. Update stih410-b2260-u-boot.dtsi accordingly. Signed-off-by: Patrice Chotard --- arch/arm/dts/stih407-clock.dtsi| 113 ++-- arch/arm/dts/stih407-family.dtsi | 200 -- arch/arm/dts/stih407-pinctrl

Re: [U-Boot] [PATCH v1] colibri_imx7: boot kernel in secure mode

2019-07-23 Thread Tobias Junghans
Hi Igor, thanks for your comments! Is there any solution, patch or workaround I can try to power on the 2nd CPU core in secure mode with mainline kernel? Thanks and best regards Tobias > I'm afraid you're right. > Just after a bit of time researching and discussing with Stefan, seems > that we

[U-Boot] R-Car-gpio0_00-fails-with-“gpio input” command

2019-07-23 Thread Tiezhuang Dong
Hi, Attached is to fix below issue: -- => gpio input gpio@e6050 gpio: requesting pin 0 failed gpio - query and control gpio pins -- Fix: drivers/pinctrl/renesas/pfc.c +470 //for (i = 1; i < pfc->info->nr_pins; i++) { for (i = 0; i < pfc

Re: [U-Boot] [RFC PATCH 00/11] SPL support for RISC-V

2019-07-23 Thread Bin Meng
Hi Lukas, On Mon, Jul 22, 2019 at 2:00 AM Lukas Auer wrote: > > This series adds support for SPL to RISC-V U-Boot. Images can be booted > via OpenSBI (FW_DYNAMIC firmware) or by directly jumping to them. In the > former case, OpenSBI and U-Boot proper are bundled as a FIT image and > made availab

[U-Boot] [PATCH 31/47] configs: P2041RDB: Enable PCIe driver

2019-07-23 Thread Hou Zhiqiang
Enable the DM PCIe driver in P2041RDB defconfig. Signed-off-by: Hou Zhiqiang --- configs/P2041RDB_NAND_defconfig | 4 configs/P2041RDB_SDCARD_defconfig | 4 configs/P2041RDB_SPIFLASH_defconfig | 4 configs/P2041RDB_defconfig | 4 4 files changed, 16 insertions(

[U-Boot] [PATCH 43/47] powerpc: MPC85xxCDS: Disable legacy PCI fixup when DM_PCI is selected

2019-07-23 Thread Hou Zhiqiang
Disable legacy PCI and PCIe fixup when CONFIG_DM_PCI is selected. Signed-off-by: Hou Zhiqiang --- board/freescale/common/cds_pci_ft.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/board/freescale/common/cds_pci_ft.c b/board/freescale/common/cds_pci_ft.c index 3ff2fa4..f

[U-Boot] [PATCH 32/47] dm: pcie_fsl: Add P3041 PCIe support

2019-07-23 Thread Hou Zhiqiang
Add compatible string for P3041 PCIe. Signed-off-by: Hou Zhiqiang --- drivers/pci/pcie_fsl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pcie_fsl.c b/drivers/pci/pcie_fsl.c index 61f08e7..a4e0cd1 100644 --- a/drivers/pci/pcie_fsl.c +++ b/drivers/pci/pcie_fsl.c @@ -629,6 +629,

[U-Boot] [PATCH 40/47] P5040: dts: Added PCIe DT nodes

2019-07-23 Thread Hou Zhiqiang
P5040 integrated 3 PCIe controllers, which is compatible with the PCI Express™ Base Specification, Revision 2.0, and this patch is to add DT node for each PCIe controller. Signed-off-by: Hou Zhiqiang --- arch/powerpc/dts/p5040.dtsi | 36 1 file changed, 36 in

[U-Boot] [PATCH 20/47] powerpc: p1_p2_rdb: Compile legacy PCIe routines conditionally

2019-07-23 Thread Hou Zhiqiang
Compile the legacy PCIe initialization reoutines for P1020, P1021, P1024, P1025 and P2020 RDB boards only when DM_PCI is not enabled. Signed-off-by: Hou Zhiqiang --- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/board/freescale

[U-Boot] [PATCH 24/47] configs: P1020RDB: Enable PCIe driver

2019-07-23 Thread Hou Zhiqiang
Enable the DM PCIe driver in P1020RDB defconfig. Signed-off-by: Hou Zhiqiang --- configs/P1020RDB-PC_36BIT_NAND_defconfig | 4 configs/P1020RDB-PC_36BIT_SDCARD_defconfig | 4 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig | 4 configs/P1020RDB-PC_36BIT_defconfig | 4 +

[U-Boot] [PATCH 07/47] powerpc: T4240RDB: Disable legacy PCIe driver when DM_PCI is enabled

2019-07-23 Thread Hou Zhiqiang
Disable legacy PCIe driver and unused PCIe macros when DM_PCI enabled. Signed-off-by: Hou Zhiqiang --- include/configs/T4240RDB.h | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/include/configs/T4240RDB.h b/include/configs/T4240RDB.h inde

[U-Boot] [PATCH 12/47] powerpc: T102xRDB: Remove the useless macro CONFIG_ARCH_T1040

2019-07-23 Thread Hou Zhiqiang
Remove the macro CONFIG_ARCH_T1040 from the T102xRDB.h and the PCIE4 related macros, as there are only 3 PCIe controllers on T102x SoCs. Signed-off-by: Hou Zhiqiang --- include/configs/T102xRDB.h | 24 1 file changed, 24 deletions(-) diff --git a/include/configs/T102xRD

[U-Boot] mkimage unable to assign sign value to fitimage

2019-07-23 Thread deepak kumar Pradhan
HI , I am using marvell armada 388 clearfog pro device. I am using fitimage to upgrade my device. To make the device bootup secure I want to sign the fitimage and verify the same in u-boot. 1. However I am observing that the mkimage is unable to assign sign value to my fit image. 2. One more issue

[U-Boot] [PATCH 05/47] dm: pcie_fsl: Add T4240 PCIe support

2019-07-23 Thread Hou Zhiqiang
Add compatible string for T4240 PCIe. Signed-off-by: Hou Zhiqiang --- drivers/pci/pcie_fsl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pcie_fsl.c b/drivers/pci/pcie_fsl.c index e13e5a6..961d8e3 100644 --- a/drivers/pci/pcie_fsl.c +++ b/drivers/pci/pcie_fsl.c @@ -616,6 +616,

[U-Boot] [PATCH 15/47] powerpc: T104xRDB: Compile legacy PCIe routines conditionally

2019-07-23 Thread Hou Zhiqiang
Compile the legacy PCIe initialization reoutines only when DM_PCI is not enabled. Signed-off-by: Hou Zhiqiang --- board/freescale/t104xrdb/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/freescale/t104xrdb/pci.c b/board/freescale/t104xrdb/pci.c index 9fd6659..6b666ba 100644 ---

[U-Boot] [PATCH 29/47] P2041: dts: Added PCIe DT nodes

2019-07-23 Thread Hou Zhiqiang
P2041 integrated 3 PCIe controllers, which is compatible with the PCI Express™ Base Specification, Revision 2.0, and this patch is to add DT node for each PCIe controller. Signed-off-by: Hou Zhiqiang --- arch/powerpc/dts/p2041.dtsi | 36 1 file changed, 36 in

[U-Boot] [PATCH 16/47] dm: pcie_fsl: Add T104x PCIe support

2019-07-23 Thread Hou Zhiqiang
Add compatible string for T104x PCIe. Signed-off-by: Hou Zhiqiang --- drivers/pci/pcie_fsl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pcie_fsl.c b/drivers/pci/pcie_fsl.c index 25df84d..c4b4ace 100644 --- a/drivers/pci/pcie_fsl.c +++ b/drivers/pci/pcie_fsl.c @@ -616,6 +616,

[U-Boot] [PATCH 39/47] dm: pcie_fsl: Add P5040 PCIe support

2019-07-23 Thread Hou Zhiqiang
Add compatible string for P5040 PCIe. Signed-off-by: Hou Zhiqiang --- drivers/pci/pcie_fsl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pcie_fsl.c b/drivers/pci/pcie_fsl.c index f61e39e..1411b1f 100644 --- a/drivers/pci/pcie_fsl.c +++ b/drivers/pci/pcie_fsl.c @@ -631,6 +631,

[U-Boot] [PATCH 19/47] configs: T1042D4RDB: Enable PCIe driver

2019-07-23 Thread Hou Zhiqiang
Enable the DM PCIe driver in T1042D4RDB defconfig. Signed-off-by: Hou Zhiqiang --- configs/T1042D4RDB_NAND_defconfig | 4 configs/T1042D4RDB_SDCARD_defconfig | 4 configs/T1042D4RDB_SPIFLASH_defconfig | 4 configs/T1042D4RDB_defconfig | 4 4 files changed, 16 i

  1   2   >