Re: [U-Boot] [PATCH 4/4] clk: imx: add i.MX8MM clk driver

2019-08-07 Thread Lukasz Majewski
On Tue, 6 Aug 2019 10:03:11 + Peng Fan wrote: > Add i.MX8MM clk driver support. > > Signed-off-by: Peng Fan > --- > drivers/clk/imx/Makefile | 2 + > drivers/clk/imx/clk-imx8mm.c | 414 > +++ 2 files changed, 416 > insertions(+) create mode 1006

Re: [U-Boot] [PATCH 3/4] clk: imx: add i.MX8M composite clk support

2019-08-07 Thread Lukasz Majewski
Hi Peng, > Import i.MX8M composite clk from Linux Kernel 5.3.0-rc2 > > Signed-off-by: Peng Fan > --- > drivers/clk/imx/clk-composite-8m.c | 170 > + 1 file changed, 170 > insertions(+) create mode 100644 drivers/clk/imx/clk-composite-8m.c > > diff --git a/dri

Re: [U-Boot] [PATCH] riscv: qemu: Fix kconfig build warning

2019-08-07 Thread Bin Meng
Hi Rick, On Thu, Aug 8, 2019 at 2:49 PM Rick Chen wrote: > > Hi Bin > > > > From: Bin Meng [mailto:bmeng...@gmail.com] > > > Sent: Thursday, August 08, 2019 2:05 PM > > > To: Lukas Auer; Rick Jian-Zhi Chen(陳建志); U-Boot Mailing List > > > Subject: [PATCH] riscv: qemu: Fix kconfig build warning > >

Re: [U-Boot] [PATCH] riscv: qemu: Fix kconfig build warning

2019-08-07 Thread Rick Chen
Hi Bin > > From: Bin Meng [mailto:bmeng...@gmail.com] > > Sent: Thursday, August 08, 2019 2:05 PM > > To: Lukas Auer; Rick Jian-Zhi Chen(陳建志); U-Boot Mailing List > > Subject: [PATCH] riscv: qemu: Fix kconfig build warning > > > > When 'make qemu-riscv64_defconfig', there is a build warning: > > >

[U-Boot] [PATCH] riscv: qemu: Fix kconfig build warning

2019-08-07 Thread Bin Meng
When 'make qemu-riscv64_defconfig', there is a build warning: board/emulation/qemu-riscv/Kconfig:24: warning: config symbol defined without type Fix it by specifying the config symbol type to 'hex'. Signed-off-by: Bin Meng --- board/emulation/qemu-riscv/Kconfig | 1 + 1 file changed, 1 in

Re: [U-Boot] [PATCH] rpi3: Enable verified boot from FIT image

2019-08-07 Thread Jun Nie
Jun Nie 于2019年7月31日周三 下午4:16写道: > > Matthias Brugger 于2019年7月31日周三 下午4:05写道: > > > > > > > > On 11/07/2019 05:55, Jun Nie wrote: > > > Enable verified boot from FIT image with select configs > > > and specify boot script image node in FIT image, the FIT > > > image is verified before it is run. >

Re: [U-Boot] [PATCH 0/3] Support distro boot in pico-imx7d BL33 case

2019-08-07 Thread Jun Nie
Jun Nie 于2019年7月16日周二 下午3:43写道: > > Support distro boot in pico-imx7d BL33 case with changing the enviroment > variables. While the other two patches are for polishing clock code and > for feature enablement. > > Jun Nie (3): > pico-imx7d: add config to enable CAAM > pico-imx7d: Support distro

Re: [U-Boot] [EXT] Re: [PATCH v3 2/5] dm: spi: Convert Freescale ESPI driver to driver model

2019-08-07 Thread Chuanhua Han
Hi, Jagan Teki Please review and merge patch v4: https://patchwork.ozlabs.org/project/uboot/list/?series=115242 Thanks, Chuanhua > -Original Message- > From: Jagan Teki > Sent: 2019年6月12日 16:15 > To: Chuanhua Han > Cc: Jagan Teki ; Wolfgang Denk ; > Shengzhou Liu ; Ruchika Gupta > ; U-Boo

Re: [U-Boot] [PATCH 2/2] console: execute flush on uart when silent is removed

2019-08-07 Thread Tom Rini
On Fri, Aug 02, 2019 at 02:58:10PM +0200, Patrice Chotard wrote: > From: Patrick Delaunay > > Avoid to flush buffer when silent console is activated as the > console can be reactivate later, after relocation, when the env will > be updated with the saved one. > > Solve issue (missing beginning

Re: [U-Boot] [PATCH] test/py: avb: Move AVB test to android dir

2019-08-07 Thread Tom Rini
On Tue, Jul 02, 2019 at 09:18:02PM +0300, Sam Protsenko wrote: > Signed-off-by: Sam Protsenko Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listi

Re: [U-Boot] [PATCH 1/2] avb: Fix build when CONFIG_OPTEE_TA_AVB is disabled

2019-08-07 Thread Tom Rini
On Wed, Jul 31, 2019 at 07:59:08PM +0300, Sam Protsenko wrote: > When having only these AVB related configs enabled: > > CONFIG_AVB_VERIFY=y > CONFIG_CMD_AVB=y > CONFIG_LIBAVB=y > > build fails with next errors: > > common/avb_verify.c: In function 'read_persistent_value': >

Re: [U-Boot] [PATCH] common: image-android-dt: Fix logic in print fdt info routine

2019-08-07 Thread Tom Rini
On Mon, Aug 05, 2019 at 08:11:03PM +0300, Sam Protsenko wrote: > Do not attempt to print fdt info if root node wasn't found. > > Signed-off-by: Sam Protsenko Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-B

Re: [U-Boot] [PATCH] fit: Do not automatically decompress ramdisk images

2019-08-07 Thread Tom Rini
On Fri, Aug 02, 2019 at 03:52:28PM -0700, Julius Werner wrote: > The Linux ramdisk should always be decompressed by the kernel itself, > not by U-Boot. Therefore, the 'compression' node in the FIT image should > always be set to "none" for ramdisk images, since the only point of > using that node

Re: [U-Boot] [PATCH] Update include/android_image.h from AOSP

2019-08-07 Thread Tom Rini
On Mon, Aug 05, 2019 at 10:24:45PM +0200, Alex Deymo wrote: > This takes the latest changes from AOSP from the file > include/bootimg/bootimg.h from the repository: > https://android.googlesource.com/platform/system/tools/mkbootimg > and update the U-Boot version with the latest changes. > > This

Re: [U-Boot] [PATCH 2/2] cmd: avb: Fix compiler warnings

2019-08-07 Thread Tom Rini
On Wed, Jul 31, 2019 at 07:59:09PM +0300, Sam Protsenko wrote: > When building U-Boot with AVB enabled, compiler shows next warnings: > > cmd/avb.c: In function 'do_avb_read_pvalue': > cmd/avb.c:371:18: warning: format '%ld' expects argument of type > 'long int', but

Re: [U-Boot] [PATCH 1/2] console: update silent tag after env load

2019-08-07 Thread Tom Rini
On Fri, Aug 02, 2019 at 02:58:09PM +0200, Patrice Chotard wrote: > From: Patrick Delaunay > > Update the "silent" property with the variable "silent" get from > saved environment, it solves the issue when: > - CONFIG_SILENT_CONSOLE and CONFIG_SYS_CONSOLE_IS_IN_ENV are activated > - silent is not

Re: [U-Boot] [PATCH 3/3] clk: MediaTek: add hifsys entry for MT7623 SoC.

2019-08-07 Thread Tom Rini
On Mon, Jul 29, 2019 at 10:17:48PM +0800, Ryder Lee wrote: > This adds high speed interface subsystem - hifsys (i.e. PCIe and USB) > for MT7623 SoC and enables its reset controller. > > The control block is shared with ethsys and accordingly rename the > related defines. > > Tested-by: Frank Wun

Re: [U-Boot] [PATCH 2/3] ARM: dts: add hifsys reset for MediaTek SoCs

2019-08-07 Thread Tom Rini
On Mon, Jul 29, 2019 at 10:17:47PM +0800, Ryder Lee wrote: > This adds missing hifsys reset parts in header files. > > Tested-by: Frank Wunderlich > Signed-off-by: Ryder Lee Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [PATCH 1/3] MAINTAINERS: MediaTek: add MediaTek team in the entry

2019-08-07 Thread Tom Rini
On Mon, Jul 29, 2019 at 10:17:46PM +0800, Ryder Lee wrote: > Add MediaTek team as designated reviewer. > > Signed-off-by: Ryder Lee Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@li

Re: [U-Boot] [PATCH] pci_ep: Fix Coverity warning

2019-08-07 Thread Tom Rini
On Wed, Jul 31, 2019 at 11:04:26AM +0300, Ramon Fried wrote: > Fix the following Coverity warning: > CID 244086: Incorrect expression (BAD_COMPARE) > Comparing pointer "ep_bar" against NULL using anything besides == or > is likely to be incorrect. > > Fixes: 914026d25848 ("drivers: pci_ep: Intr

Re: [U-Boot] [PATCH 1/1] log: document the assign() macro

2019-08-07 Thread Tom Rini
On Sat, Jul 27, 2019 at 08:21:06PM +0200, Heinrich Schuchardt wrote: > Provide a concise description of the assert() macro. Point out that the > tested expression is always executed, irrespective of the value of _DEBUG. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -

Re: [U-Boot] [PATCH] autoboot: fix bug using with CAAM and AUTOBOOT_ENCRYPTION

2019-08-07 Thread Tom Rini
On Mon, Jul 29, 2019 at 07:23:19AM +0200, Heiko Schocher wrote: > if CONFIG_AUTOBOOT_KEYED, CONFIG_AUTOBOOT_ENCRYPTION and > CONFIG_AUTOBOOT_STOP_STR_SHA256 are enabled in conjunction > with CONFIG_SHA_HW_ACCEL and CONFIG_FSL_CAAM, we get the > Error when pressing a key while waiting for bootdela

Re: [U-Boot] [PATCH v5 3/5] arm: dts: change MT7629 to use spi-mem rather than qspi

2019-08-07 Thread Tom Rini
On Mon, Jul 22, 2019 at 10:35:10AM +0800, Weijie Gao wrote: > The original mtk_qspi driver has been removed. We change MT7629 to use > newly added mtk-spimem driver. > > Signed-off-by: Weijie Gao > Acked-by: Jagan Teki Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [PATCH v2 2/2] riscv: tools: Add big endian target support to prelink-riscv

2019-08-07 Thread Rick Chen
Hi Marcus > > From: Marcus Comstedt [mailto:mar...@mc.pp.se] > > Sent: Thursday, August 08, 2019 4:36 AM > > To: Rick Chen > > Cc: U-Boot Mailing List; Rick Jian-Zhi Chen(陳建志); K.C. Kuen-Chern Lin(林坤 > > 成) > > Subject: Re: [PATCH v2 2/2] riscv: tools: Add big endian target support to > > prelink-

Re: [U-Boot] [PATCH] spl: pass args to board_return_to_bootrom

2019-08-07 Thread Kever Yang
On 2019/8/7 下午2:40, Peng Fan wrote: Pass spl_image and bootdev to board_return_bootrom. i.MX8MN needs the args to let ROM to load images Cc: Simon Glass Cc: Philipp Tomsich Cc: Kever Yang Signed-off-by: Peng Fan Reviewed-by: Kever Yang Thanks, - Kever --- This is to prepare i.MX8MM R

Re: [U-Boot] [PATCH 1/7] mmc: atmel_sdhci: fix uninitialized pointer deref on probe

2019-08-07 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH 1/7] mmc: atmel_sdhci: fix uninitialized pointer > deref on probe > > > > On 07.08.2019 13:04, Peng Fan wrote: > > > > >> Subject: Re: [U-Boot] [PATCH 1/7] mmc: atmel_sdhci: fix uninitialized > >> pointer deref on probe > >> > >> Tested-by: Eugen Hristev > >> > >

Re: [U-Boot] GitLab: make pipeline status public

2019-08-07 Thread Bin Meng
On Thu, Aug 8, 2019 at 3:27 AM Heinrich Schuchardt wrote: > > Hello Harald, > > Tom suggested you could help on this issue. > > I suggest that the pipeline status should be public on all custodian > gits, e.g. page > https://gitlab.denx.de/u-boot/custodians/u-boot-efi/pipelines. > > I set the flag

Re: [U-Boot] [PATCH] i2c: mxc: add CONFIG_CLK support

2019-08-07 Thread Peng Fan
Hi Schrempf, > Subject: Re: [U-Boot] [PATCH] i2c: mxc: add CONFIG_CLK support > > Hi Peng, > > On 06.08.19 12:09, Peng Fan wrote: > > When CONFIG_CLK enabled, use CLK UCLASS for clk related settings. > > > > Signed-off-by: Peng Fan > > --- > > arch/arm/include/asm/mach-imx/mxc_i2c.h | 6 +++

[U-Boot] [PATCH v2] i2c: mxc: add CONFIG_CLK support

2019-08-07 Thread Peng Fan
When CONFIG_CLK enabled, use CLK UCLASS for clk related settings. Signed-off-by: Peng Fan --- V2: use clk_get_rate when getting i2c per clk rate with CLK UCLASS arch/arm/include/asm/mach-imx/mxc_i2c.h | 6 ++ drivers/i2c/mxc_i2c.c | 22 ++ 2 files ch

[U-Boot] [PATCH v2 1/2] disk: update to use SPL_PARTITIONS for SPL

2019-08-07 Thread Kever Yang
The SPL disk driver can not depends on SPL_FRAMEWORK&PARTITIONS, which will enable the disk driver when we actually not need it. Use a separate Kconfig to control the partition driver in SPL will fix this issue caused by: 91ff686562 blk: Rework guard around part_init call Signed-off-by: Kever Yang

[U-Boot] [PATCH v2 2/2] part: always enable part_get_info_ptr() for driver

2019-08-07 Thread Kever Yang
The partition driver has its Kconfig option, and the part_get_info_prt() interface are mendatory interface for partition drivers, always enable the macro to make partition driver works correctly. Signed-off-by: Kever Yang --- Changes in v2: - add patch to use SPL_PARTITIONS so that we don't add

Re: [U-Boot] [PATCH] part: always enable part_get_info_ptr() for driver

2019-08-07 Thread Kever Yang
Tom, On 2019/8/8 上午3:30, Tom Rini wrote: On Thu, Jul 25, 2019 at 05:40:56PM +0800, Kever Yang wrote: The partition driver has its Kconfig option, and the part_get_info_prt() interface are mendatory interface for partition drivers, always enable the macro to make partition driver works correctl

Re: [U-Boot] [PATCH V2 2/2] ARM: imx6q_logic: Enable DM_SERIAL

2019-08-07 Thread Fabio Estevam
On Wed, Aug 7, 2019 at 2:06 PM Adam Ford wrote: > > In order to call preloader_console_init from board_init_f when > DM_SERIAL is enabled, it neesd to call spl_early_init() to get early access > to DM and device tree. > > This patch calls spl_early_init just before preloader_console_init() > and e

Re: [U-Boot] [PATCH V2 1/2] ARM: imx6qlogic: Cleanup board_init_f

2019-08-07 Thread Fabio Estevam
Hi Adam, On Wed, Aug 7, 2019 at 2:06 PM Adam Ford wrote: > > Per the workflow found in crt0.S, we don't need to clear BSS in > board_init_f nor do we need to call board_init_r since that will be > done for us from main when we return from board_init_f. > > This patch removes the unneeded function

Re: [U-Boot] [PATCH v2 05/12] armV7R: K3: am654: Allow using SPL BSS pre-relocation

2019-08-07 Thread Andreas Dannenberg
Hi Simon, thanks for your patience waiting for a response. Please see comments inlined... On Thu, Jul 25, 2019 at 11:52:55AM +0200, Simon Goldschmidt wrote: > On Thu, Jul 25, 2019 at 10:23 AM Lokesh Vutla wrote: > > > > Hi Simon, > > > > On 25/07/19 12:31 PM, Simon Goldschmidt wrote: > > > Hi Lok

[U-Boot] [PATCH v3 04/11] riscv: add run mode configuration for SPL

2019-08-07 Thread Lukas Auer
U-Boot SPL can be run in a different privilege mode from U-Boot proper. Add new configuration entries for SPL to allow the run mode to be configured independently of U-Boot proper. Extend all uses of the CONFIG_RISCV_SMODE and CONFIG_RISCV_MMODE configuration symbols to also cover the SPL equivale

[U-Boot] [PATCH v3 06/11] riscv: add SPL support

2019-08-07 Thread Lukas Auer
U-Boot SPL on the generic RISC-V CPU supports two boot flows, directly jumping to the image and via OpenSBI firmware. In the first case, both U-Boot SPL and proper must be compiled to run in the same privilege mode. Using OpenSBI firmware, U-Boot SPL must be compiled for machine mode and U-Boot pro

[U-Boot] [PATCH v3 09/11] riscv: set default FIT generator script and build target for SPL builds

2019-08-07 Thread Lukas Auer
Now that we have a generic FIT generator script for RISC-V, set it as the default. To also build the FIT image by default, set the default build target to "u-boot.itb" if CONFIG_SPL_LOAD_FIT is enabled. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Tested-by: Bin Meng Reviewed-by: Anup Patel

[U-Boot] [PATCH v3 08/11] riscv: add a generic FIT generator script

2019-08-07 Thread Lukas Auer
Add a generic FIT generator script for RISC-V to generate images containing U-Boot, OpenSBI FW_DYNAMIC firmware, and optionally one or more device trees. The location of the OpenSBI firmware binary can be specified with the OPENSBI environment variable. By default, it is assumed to be "fw_dynamic.b

[U-Boot] [PATCH v3 03/11] spl: fit: use U-Boot device tree when FIT image has no device tree

2019-08-07 Thread Lukas Auer
As part of the SPL FIT boot flow, the device tree is appended to U-Boot proper. The device tree is used to record information on the loadables to make them available to the SPL framework and U-Boot proper. Depending on the U-Boot device tree provider, the FIT image might not include a device tree.

[U-Boot] [PATCH v3 02/11] Makefile: support building SPL FIT images without device trees

2019-08-07 Thread Lukas Auer
When building a U-Boot FIT image, the device trees specified by the board are unconditionally built for inclusion in the FIT image. However, not all device tree providers, such as CONFIG_OF_PRIOR_STAGE, require a device tree to be built and bundled with the U-Boot binary. They rely on other mechani

[U-Boot] [PATCH v3 11/11] doc: update QEMU RISC-V documentation

2019-08-07 Thread Lukas Auer
The available defconfigs for RISC-V QEMU have changed. We now have configurations to compile U-Boot to run in supervisor mode and for U-Boot SPL. Update the QEMU RISC-V documentation to reflect these changes. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Tested-by: Bin Meng Reviewed-by: Anup

[U-Boot] [PATCH v3 10/11] riscv: qemu: add SPL configuration

2019-08-07 Thread Lukas Auer
Add two new configurations (qemu-riscv{32,64}_spl_defconfig) with SPL enabled for RISC-V QEMU. QEMU does not require SPL to run U-Boot. The configurations are meant to help the development of SPL on RISC-V. The configurations enable RAM as the only SPL boot device. Images must be loaded at address

[U-Boot] [PATCH v3 01/11] fdtdec: make CONFIG_OF_PRIOR_STAGE available in SPL

2019-08-07 Thread Lukas Auer
The current preprocessor logic prevents CONFIG_OF_PRIOR_STAGE from being used in U-Boot SPL. Change the logic to also make it available in U-Boot SPL. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng Tested-by: Bin Meng Reviewed-by: Anup Patel --- Changes in v3: None Changes in v2: None incl

[U-Boot] [PATCH v3 07/11] riscv: support SPL stack and global data relocation

2019-08-07 Thread Lukas Auer
To support relocation of the stack and global data on RISC-V, the secondary harts must be notified of the change using IPIs. We can reuse the hart relocation code for this purpose. It uses global data to store the new stack pointer and global data pointer for the secondary harts. This means that we

Re: [U-Boot] [PATCH v2 2/2] riscv: tools: Add big endian target support to prelink-riscv

2019-08-07 Thread Marcus Comstedt
Hi Rick, Rick Chen writes: > Thanks for your efforts about the support for big endian ELFs. > But I don't have big endian toolchain to verify. I don't think anyone has a big endian toolchain for riscv at this juncture. :-) (No specification for big/bi endian has been nailed down yet, AFAIK,

Re: [U-Boot] [PATCH v3 3/3] board: puma: Use rockchip_* helpers to setup cpuid and macaddr【请注意,邮件由u-boot-boun...@lists.denx.de代发】 setup cpuid and macaddr

2019-08-07 Thread Ezequiel Garcia
Hi Kever, Rohan, On Wed, 2019-07-24 at 20:26 +0800, Kever Yang wrote: > Hi Rohan, > > On 2019/7/24 下午7:09, Rohan Garg wrote: > > We should use the shared helpers to setup the necessary parts > > > > Signed-off-by: Rohan Garg > > --- > > > > .../puma_rk3399/puma-rk3399.c | 108

Re: [U-Boot] [PATCH] ARM: imx: Support larger SPL size on IMX6DQ

2019-08-07 Thread Fabio Estevam
Hi Stefano, On Wed, Aug 7, 2019 at 5:02 PM Stefano Babic wrote: > I do not see issue with the patch - default is "n", and this do not > break existing boards. I will merge this. Yes, it looks good. Only suggestion I have is to remove the "default n" because it is already disabled by default. T

Re: [U-Boot] [PATCH] ARM: imx: Support larger SPL size on IMX6DQ

2019-08-07 Thread Stefano Babic
On 07/08/19 15:18, Adam Ford wrote: > On Wed, Aug 7, 2019 at 8:11 AM Stefano Babic wrote: >> >> On 07/08/19 15:03, Adam Ford wrote: >>> On Wed, Jul 10, 2019 at 10:59 AM Robert Hancock >>> wrote: Previously the SPL size on all iMX6 platforms was restricted to 68KB because the OCR

Re: [U-Boot] [PATCH] part: always enable part_get_info_ptr() for driver

2019-08-07 Thread Tom Rini
On Thu, Jul 25, 2019 at 05:40:56PM +0800, Kever Yang wrote: > The partition driver has its Kconfig option, and the part_get_info_prt() > interface are mendatory interface for partition drivers, > always enable the macro to make partition driver works correctly. > > Signed-off-by: Kever Yang Thi

[U-Boot] GitLab: make pipeline status public

2019-08-07 Thread Heinrich Schuchardt
Hello Harald, Tom suggested you could help on this issue. I suggest that the pipeline status should be public on all custodian gits, e.g. page https://gitlab.denx.de/u-boot/custodians/u-boot-efi/pipelines. I set the flag "Public pipelines" in the CI settings but this seems not be sufficient. I

Re: [U-Boot] [PATCH] ARM: imx: Support larger SPL size on IMX6DQ

2019-08-07 Thread Adam Ford
On Wed, Jul 10, 2019 at 10:59 AM Robert Hancock wrote: > > Previously the SPL size on all iMX6 platforms was restricted to 68KB > because the OCRAM size on iMX6SL/DL parts is only 128KB. However, the > other iMX6 variants have 256KB of OCRAM. Add an option > CONFIG_MX6_OCRAM_256KB which allows usi

Re: [U-Boot] [PATCH v3 5/7] arm: dts: armada-cp110-*dtsi: add xmdio nodes

2019-08-07 Thread Ramon Fried
On Tue, Aug 6, 2019 at 6:52 PM wrote: > > From: Nevo Hed > > Based on upstream-linux > See https://github.com/torvalds/linux/commit/f66b2aff. > > However made the XSMI register window 0x16 (22) bytes per my reading > of the functional spec. Similar commits in Marvels own repo bump it > to 0x200

Re: [U-Boot] [PATCH v3 3/7] net: mvpp2: mark phy as invalid in case of missing appropriate driver

2019-08-07 Thread Ramon Fried
On Tue, Aug 6, 2019 at 6:52 PM wrote: > > From: Grzegorz Jaszczyk > > If the phy doesn't match with any existing u-boot drivers, the phy > framework will connect it to the generic one which uid == > 0x. In this case, act as if the phy wouldn't be declared in > dts. Otherwise, in case of 3

Re: [U-Boot] [PATCH v3 2/7] net: mvpp2: Replace SMI implementation with marvell MDIO API

2019-08-07 Thread Ramon Fried
On Tue, Aug 6, 2019 at 6:52 PM wrote: > > From: Ken Ma > > The availability of the marvell MDIO driver enables us to eliminate > the SMI function implementation within the mvpp2 driver. > This replacement also fixes 2 old issues: > 1. Each pp2 port device now has its own mdio bus field member sin

Re: [U-Boot] [PATCH v3 1/7] net: mvpp2x: fix traffic stuck after PHY start error

2019-08-07 Thread Ramon Fried
On Tue, Aug 6, 2019 at 6:52 PM wrote: > > From: Stefan Chulski > > Issue: > - Network stuck if autonegotion fails. > > Issue root cause: > > - When autonegotiation fails during port open procedure, the packet > processor configuration does not finish and open procedure exits > with error. > -

[U-Boot] [RESEND PATCH] ARM: socfpga: update CONFIG_SPL_FS_LOAD_PAYLOAD_NAME to u-boot.img

2019-08-07 Thread Dalon Westergreen
From: Dalon Westergreen Bring cyclone5 / arria5 / arria10 in line with convention and use u-boot.img as CONFIG_SPL_FS_LOAD_PAYLOAD_NAME. Signed-off-by: Dalon Westergreen --- include/configs/socfpga_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/soc

Re: [U-Boot] [PATCH] regulator: fixed: Modify enable-active-high behavior

2019-08-07 Thread Tom Rini
On Thu, Jul 25, 2019 at 09:12:39AM +0200, Patrice Chotard wrote: > Regulator should not be enabled at probe time if regulator-boot-on > property is not in the dt node. > > "enable-active-high" property is only used to indicate the GPIO > polarity. > > See kernel documentation : > - Documentatio

[U-Boot] [PATCH V2 2/2] ARM: imx6q_logic: Enable DM_SERIAL

2019-08-07 Thread Adam Ford
In order to call preloader_console_init from board_init_f when DM_SERIAL is enabled, it neesd to call spl_early_init() to get early access to DM and device tree. This patch calls spl_early_init just before preloader_console_init() and enables DM_SERIAL and SPL_DM_SERIAL. Signed-off-by: Adam Ford

[U-Boot] [PATCH V2 1/2] ARM: imx6qlogic: Cleanup board_init_f

2019-08-07 Thread Adam Ford
Per the workflow found in crt0.S, we don't need to clear BSS in board_init_f nor do we need to call board_init_r since that will be done for us from main when we return from board_init_f. This patch removes the unneeded function calls from board_init_f. Signed-off-by: Adam Ford --- V2: Limit th

Re: [U-Boot] [PATCH 2/2] ARM: imx6q_logic: Enable DM_SERIAL

2019-08-07 Thread Adam Ford
On Wed, Aug 7, 2019 at 11:39 AM Fabio Estevam wrote: > > On Wed, Aug 7, 2019 at 1:36 PM Adam Ford wrote: > > > > With spl_early_init() now enabled in board_init_f, the > > preloader_console_init() function can correctly initialize the > > serial port based on the device tree during SPL. > > This

Re: [U-Boot] [PATCH 2/2] ARM: imx6q_logic: Enable DM_SERIAL

2019-08-07 Thread Fabio Estevam
On Wed, Aug 7, 2019 at 1:36 PM Adam Ford wrote: > > With spl_early_init() now enabled in board_init_f, the > preloader_console_init() function can correctly initialize the > serial port based on the device tree during SPL. > This patch enables DM_SERIAL in both U-Boot and SPL. > > Signed-off-by: A

Re: [U-Boot] [PATCH 1/2] ARM: imx6qlogic: Cleanup board_init_f and enable spl_early_init

2019-08-07 Thread Fabio Estevam
Hi Adam, On Wed, Aug 7, 2019 at 1:36 PM Adam Ford wrote: > > According to the the documentation, call spl_early_init from board_init_f > to make the device tree and driver model early before board_init_r. > Per the workflow found in crt0.S, we don't need to clear BSS in > board_init_f nor do we n

[U-Boot] [PATCH 2/2] ARM: imx6q_logic: Enable DM_SERIAL

2019-08-07 Thread Adam Ford
With spl_early_init() now enabled in board_init_f, the preloader_console_init() function can correctly initialize the serial port based on the device tree during SPL. This patch enables DM_SERIAL in both U-Boot and SPL. Signed-off-by: Adam Ford diff --git a/configs/imx6q_logic_defconfig b/config

[U-Boot] [PATCH 1/2] ARM: imx6qlogic: Cleanup board_init_f and enable spl_early_init

2019-08-07 Thread Adam Ford
According to the the documentation, call spl_early_init from board_init_f to make the device tree and driver model early before board_init_r. Per the workflow found in crt0.S, we don't need to clear BSS in board_init_f nor do we need to call board_init_r since that will be done for us. This patch

[U-Boot] [PATCH] drivers: net: fsl_enet_mdio: fix missing terminator in PCI ID array

2019-08-07 Thread Alex Marginean
It was missing in the original submission and not having it in place causes issues with probing of PCI devices. Signed-off-by: Alex Marginean --- drivers/net/fsl_enetc_mdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/fsl_enetc_mdio.c b/drivers/net/fsl_enetc_mdio.c index 60d

[U-Boot] [PATCH] arm: dts: ls1028a-qds: define the MDIO MUX

2019-08-07 Thread Alex Marginean
QDS board has an on-board RGMII PHY and 4 slots for extension cards. All these can be accessed over MDIO through a MDIO MUX controlled over I2C. This patch adds the DT structure describing the MUX in board dts. Signed-off-by: Alex Marginean --- arch/arm/dts/fsl-ls1028a-qds.dts | 55 +

[U-Boot] [PATCH 3/3] drivers: net: fsl_enetc: use dm_eth_phy_connect helper

2019-08-07 Thread Alex Marginean
Uses the new dm_eth_phy_connect helper to connect to the PHY to simplify the code. Signed-off-by: Alex Marginean --- drivers/net/fsl_enetc.c | 52 ++--- drivers/net/fsl_enetc.h | 1 + 2 files changed, 8 insertions(+), 45 deletions(-) diff --git a/drivers/net

[U-Boot] [PATCH 2/3] doc: bindings: add mdio-handle property to ethernet nodes

2019-08-07 Thread Alex Marginean
Adds an optional mdio-handle property which identifies a MDIO bus which can be scanned to find the relevant PHY. The property is ignored if phy-handle is also present. Signed-off-by: Alex Marginean --- doc/device-tree-bindings/net/ethernet.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[U-Boot] [PATCH 1/3] net: add dm_eth_phy_connect helper to link eth/PHY based on DT

2019-08-07 Thread Alex Marginean
The helper is useful for platforms that link ethernet interfaces and PHYs in device tree using current bindings. Drivers could do this directly, but the code is generic enough and helps keep drivers simpler. Signed-off-by: Alex Marginean --- include/miiphy.h | 12 + net/mdio-uclass.c | 11

Re: [U-Boot] [PATCH v3 13/18] usb: dwc3: Kconfig: get rid of obsolete mode selection

2019-08-07 Thread Jean-Jacques Hiblot
Hi Marek On 07/08/2019 14:06, Marek Vasut wrote: On 6/27/19 1:02 PM, Jean-Jacques Hiblot wrote: The mode selection for the DWC3 is kind of obsolete. The driver does not have to be host only or gadget only. This choice is confusing. All the remaining callers of dwc3_uboot_init() explicitly set d

[U-Boot] [PATCH] usb: dwc3: Kconfig: get rid of obsolete mode selection

2019-08-07 Thread Jean-Jacques Hiblot
The mode selection for the DWC3 is kind of obsolete. The driver does not have to be host only or gadget only. This choice is confusing. All the remaining callers of dwc3_uboot_init() explicitly set dr_mode before calling the function, so none rely on a default behavior. Remove the choice menu and

Re: [U-Boot] [PATCH 0/3] Ethernet support for QEMU sifive_u machine

2019-08-07 Thread Bin Meng
Hi, On Wed, Dec 19, 2018 at 5:05 PM Bin Meng wrote: > > Hi Anup, > > On Wed, Dec 19, 2018 at 2:32 PM Anup Patel wrote: > > > > On Wed, Dec 19, 2018 at 11:02 AM Bin Meng wrote: > > > > > > Hi Anup, > > > > > > On Wed, Dec 19, 2018 at 12:41 PM Anup Patel wrote: > > > > > > > > On Tue, Dec 18, 20

[U-Boot] [PATCH V2] ARM: dts: imx6q-logicpd: Add missing imx6q-logicpd-u-boot for SPL

2019-08-07 Thread Adam Ford
The SPL device tree is missing the entires for gpio1, uart1, usdhc1 and usdhc2. This creates the missing imx6q-logicpd-u-boot.dtsi file which will enable these functions so SPL can properly setup UART, detect microSD card, and startup. Fixes: 8f4691e31a18 ("ARM: imx6q_logic: With SPL_OF_CONTROL e

Re: [U-Boot] [PATCH v3 4/7] net: mvpp2: no deref null

2019-08-07 Thread Ramon Fried
On Tue, Aug 6, 2019 at 6:52 PM wrote: > > From: Nevo Hed > > phy_dev ptr is set from return of phy_connect() and is used before > test to see if NULL. Obviously since the test already sxists someone > made the determination that this NULL is possible. > > Signed-off-by: Nevo Hed > --- > driver

Re: [U-Boot] [PATCH v3 7/7] net: mvpp2: MVPP2 now needs MVMDIO

2019-08-07 Thread Ramon Fried
On Tue, Aug 6, 2019 at 6:52 PM wrote: > > From: Nevo Hed > > Changes to mvpp2.c require the MVMDIO module which in turn uses > DM_MDIO. > > Signed-off-by: Nevo Hed > --- > drivers/net/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig >

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

2019-08-07 Thread Dalon Westergreen
From: Dalon Westergreen Stratix10 requires a hex image of the spl plus spl devicetree offset to the Stratix10 onchip memory located at SPL_TEXT_BASE. This patch adds a target to generate a hex file from the u-boot-spl binary including the dtb offset at SPL_TEST_BASE. Objcopy is used to convert

[U-Boot] [RESEND PATCH v3 2/2] ARM: socfpga: stratix10: Remove CONFIG_OF_EMBED

2019-08-07 Thread Dalon Westergreen
From: Dalon Westergreen CONFIG_OF_EMBED was primarily enabled to support the stratix10 spl hex file requirements. Since this option now produces a warning during build, and the spl hex can be created using alternate methods, CONFIG_OF_EMBED is no longer needed. Signed-off-by: Dalon Westergreen

Re: [U-Boot] [PATCH] i2c: mxc: add CONFIG_CLK support

2019-08-07 Thread Schrempf Frieder
Hi Peng, On 06.08.19 12:09, Peng Fan wrote: > When CONFIG_CLK enabled, use CLK UCLASS for clk related settings. > > Signed-off-by: Peng Fan > --- > arch/arm/include/asm/mach-imx/mxc_i2c.h | 6 ++ > drivers/i2c/mxc_i2c.c | 17 + > 2 files changed, 23 ins

Re: [U-Boot] [PATCH] test/py: avb: Move AVB test to android dir

2019-08-07 Thread Tom Rini
On Wed, Aug 07, 2019 at 03:12:51PM +0300, Sam Protsenko wrote: > Hi Tom, > > On Thu, Jul 25, 2019 at 6:13 PM Tom Rini wrote: > > > > On Thu, Jul 25, 2019 at 04:33:21PM +0300, Sam Protsenko wrote: > > > Hi Simon, > > > > > > On Sat, Jul 6, 2019 at 7:53 PM Simon Glass wrote: > > > > > > > > Hi, >

Re: [U-Boot] [PATCH] ARM: imx: Support larger SPL size on IMX6DQ

2019-08-07 Thread Adam Ford
On Wed, Aug 7, 2019 at 8:11 AM Stefano Babic wrote: > > On 07/08/19 15:03, Adam Ford wrote: > > On Wed, Jul 10, 2019 at 10:59 AM Robert Hancock > > wrote: > >> > >> Previously the SPL size on all iMX6 platforms was restricted to 68KB > >> because the OCRAM size on iMX6SL/DL parts is only 128KB.

Re: [U-Boot] [PATCH] ARM: imx: Support larger SPL size on IMX6DQ

2019-08-07 Thread Stefano Babic
On 07/08/19 15:03, Adam Ford wrote: > On Wed, Jul 10, 2019 at 10:59 AM Robert Hancock wrote: >> >> Previously the SPL size on all iMX6 platforms was restricted to 68KB >> because the OCRAM size on iMX6SL/DL parts is only 128KB. However, the >> other iMX6 variants have 256KB of OCRAM. Add an option

Re: [U-Boot] [PATCH] ARM: imx: Support larger SPL size on IMX6DQ

2019-08-07 Thread Adam Ford
On Wed, Jul 10, 2019 at 10:59 AM Robert Hancock wrote: > > Previously the SPL size on all iMX6 platforms was restricted to 68KB > because the OCRAM size on iMX6SL/DL parts is only 128KB. However, the > other iMX6 variants have 256KB of OCRAM. Add an option > CONFIG_MX6_OCRAM_256KB which allows usi

[U-Boot] [PATCH u-boot-marvell 1/1] pci: pci_mvebu: set BAR0 after memory space is set

2019-08-07 Thread Marek Behún
The non-DM version of this driver used to set BAR0 register after the calls to pci_set_region. I found out that for some strange reason the ath10k driver in kernel fails to work if this is done the other way around. I know that Linux's driver should not depend on how U-Boot does things, but for som

Re: [U-Boot] [PATCH v3 13/18] usb: dwc3: Kconfig: get rid of obsolete mode selection

2019-08-07 Thread Marek Vasut
On 6/27/19 1:02 PM, Jean-Jacques Hiblot wrote: > The mode selection for the DWC3 is kind of obsolete. The driver does not > have to be host only or gadget only. This choice is confusing. > All the remaining callers of dwc3_uboot_init() explicitly set dr_mode > before calling the function, so none r

Re: [U-Boot] [PATCH] test/py: avb: Move AVB test to android dir

2019-08-07 Thread Sam Protsenko
Hi Tom, On Thu, Jul 25, 2019 at 6:13 PM Tom Rini wrote: > > On Thu, Jul 25, 2019 at 04:33:21PM +0300, Sam Protsenko wrote: > > Hi Simon, > > > > On Sat, Jul 6, 2019 at 7:53 PM Simon Glass wrote: > > > > > > Hi, > > > > > > On Tue, 2 Jul 2019 at 12:18, Sam Protsenko > > > wrote: > > > > > > > >

Re: [U-Boot] [PATCH 1/2] avb: Fix build when CONFIG_OPTEE_TA_AVB is disabled

2019-08-07 Thread Sam Protsenko
Hi Tom, On Thu, Aug 1, 2019 at 2:15 PM Igor Opaniuk wrote: > > Hi, > > On Wed, Jul 31, 2019 at 7:59 PM Sam Protsenko > wrote: > > > > When having only these AVB related configs enabled: > > > > CONFIG_AVB_VERIFY=y > > CONFIG_CMD_AVB=y > > CONFIG_LIBAVB=y > > > > build fails with next

Re: [U-Boot] [PATCH 1/7] mmc: atmel_sdhci: fix uninitialized pointer deref on probe

2019-08-07 Thread Eugen.Hristev
On 07.08.2019 13:04, Peng Fan wrote: > >> Subject: Re: [U-Boot] [PATCH 1/7] mmc: atmel_sdhci: fix uninitialized pointer >> deref on probe >> >> Tested-by: Eugen Hristev >> >> This has to go as soon as possible into the tree. >> The at91 boards do not boot without this. The commit checking for

Re: [U-Boot] [PATCH 00/14] net: ti: icssg: Add prueth support

2019-08-07 Thread Roger Quadros
On 07/08/2019 08:51, Roger Quadros wrote: > Andreas, > > On 06/08/2019 18:35, Andreas Dannenberg wrote: >> Keerthy, >> >> On Tue, Aug 06, 2019 at 04:08:30PM +0530, Keerthy wrote: >>> The series adds support for icssg_prueth functionality >>> on u-boot. This series is based on top of master branc

Re: [U-Boot] [PATCH 00/14] net: ti: icssg: Add prueth support

2019-08-07 Thread Roger Quadros
Andreas, On 06/08/2019 18:35, Andreas Dannenberg wrote: > Keerthy, > > On Tue, Aug 06, 2019 at 04:08:30PM +0530, Keerthy wrote: >> The series adds support for icssg_prueth functionality >> on u-boot. This series is based on top of master branch. >> rproc init needs to be done from uboot command p

Re: [U-Boot] [PATCH] i2c: mxc: add CONFIG_CLK support

2019-08-07 Thread Ye Li
> When CONFIG_CLK enabled, use CLK UCLASS for clk related settings. > > Signed-off-by: Peng Fan > --- > arch/arm/include/asm/mach-imx/mxc_i2c.h | 6 ++ > drivers/i2c/mxc_i2c.c | 17 + > 2 files changed, 23 insertions(+) > > diff --git a/arch/arm/include/as

Re: [U-Boot] [PATCH 1/7] mmc: atmel_sdhci: fix uninitialized pointer deref on probe

2019-08-07 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH 1/7] mmc: atmel_sdhci: fix uninitialized pointer > deref on probe > > Tested-by: Eugen Hristev > > This has to go as soon as possible into the tree. > The at91 boards do not boot without this. The commit checking for > sdhci-caps-mask introduces a crash at this poi

Re: [U-Boot] [PATCH 1/7] mmc: atmel_sdhci: fix uninitialized pointer deref on probe

2019-08-07 Thread Eugen.Hristev
Tested-by: Eugen Hristev This has to go as soon as possible into the tree. The at91 boards do not boot without this. The commit checking for sdhci-caps-mask introduces a crash at this point. I can take it through atmel tree if needed. Thanks, Eugen On 06.08.2019 05:47, Peng Fan wrote: > > C

Re: [U-Boot] [PATCH] tools: imx8mimage: fix HDMI/FIT parsing

2019-08-07 Thread Ye Li
> Add missed break for HDMI entry. > And moving FIT parsing earlier, because it does not have parameter, > it will not runs into CFG_REG_SIZE. > > Signed-off-by: Peng Fan > --- > tools/imx8mimage.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/tools/imx8mimage.

Re: [U-Boot] [RFC PATCH] cmd: avb: Support A/B slots

2019-08-07 Thread Igor Opaniuk
+ added also David Zeuthen to CC (I hope he doesn't mind :) ), who actually introduced all these changes in libavb. On Tue, Aug 6, 2019 at 4:38 PM Sam Protsenko wrote: > > Hi Igor, > > On Tue, Aug 6, 2019 at 4:07 PM Igor Opaniuk wrote: > > > > Hi Sam, > > > > Sorry for the late reply, > > > > On

Re: [U-Boot] [PATCH] spi: add NXP FlexSPI driver

2019-08-07 Thread Peng Fan
> Subject: [PATCH] spi: add NXP FlexSPI driver Please ignore this patch. Thanks, Peng. > > Add NXP Flexspi driver for i.MX8 Family usage. > Flexible Serial Peripheral Interface (FlexSPI) host controller supports two > SPI > channels and up to 4 external devices. > Each channel supports Single

Re: [U-Boot] [PATCH] serial: Kconfig: make MXC_UART usable for MX7 and IMX8M

2019-08-07 Thread Ye Li
> i.MX7 and i.MX8M use mxc uart driver, so let's make the SoC could > use MXC_UART kconfig. > > Signed-off-by: Peng Fan > --- > drivers/serial/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig > index 8a447fd6e3..e56

Re: [U-Boot] [PATCH] arm: socfpga: Fix SYSRESET_SOCFPGA_S10 config name

2019-08-07 Thread Marek Vasut
On 8/7/19 10:30 AM, Ley Foon Tan wrote: > The CONFIG name should be SYSRESET_SOCFPGA_S10 instead of > SYSRESET_SOCFPGA_STRATIX10. > > Signed-off-by: Ley Foon Tan > --- > arch/arm/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig

Re: [U-Boot] [PATCH v2 2/2] riscv: tools: Add big endian target support to prelink-riscv

2019-08-07 Thread Rick Chen
Hi Marcus > > From: Marcus Comstedt [mailto:mar...@mc.pp.se] > > Sent: Saturday, August 03, 2019 1:45 AM > > To: u-boot@lists.denx.de > > Cc: Marcus Comstedt; Rick Jian-Zhi Chen(陳建志) > > Subject: [PATCH v2 2/2] riscv: tools: Add big endian target support to > > prelink-riscv > > > > Signed-off-by:

Re: [U-Boot] [PATCH 1/2] watchdog: imx: Add DT ext-reset handling

2019-08-07 Thread Marek Vasut
On 8/6/19 8:49 PM, Robert Hancock wrote: > On 2019-08-06 11:11 a.m., Marek Vasut wrote: >> On 8/6/19 7:05 PM, Robert Hancock wrote: >>> The Linux imx2_wdt driver uses a fsl,ext-reset-output boolean in the >>> device tree to specify whether the board design should use the external >>> reset instead

  1   2   >