Re: [U-Boot] [PATCH v5 22/26] mtd: spi: SPI_FLASH_MTD depends on MTD

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:24PM +0200, Miquel Raynal wrote: > It is already the case that all defconfigs with SPI_FLASH_MTD also > declare using MTD, but let's make this consistent and enforce it in > Kconfig. Most of the time SPI_FLASH_MTD is used in conjunction with > UBI, which already

[v3 5/8] dm: ls1012a: add i2c DM support

2019-12-04 Thread Biwen Li
This supports i2c DM and enables CONFIG_DM_I2C for SoC LS1012A Signed-off-by: Biwen Li --- Changes in v3: - none Changes in v2: - merge some patches to one patch arch/arm/include/asm/gpio.h | 1 + board/freescale/ls1012aqds/ls1012aqds.c | 20 ++-

Re: [U-Boot] [PATCH v2 1/1] net: avoid address-of-packed-member error

2019-12-04 Thread Heinrich Schuchardt
On 11/6/19 12:07 AM, Joe Hershberger wrote: On Tue, Nov 5, 2019 at 5:49 AM Heinrich Schuchardt wrote: sandbox_defconfig does not compile using GCC 9.2.1: net/net.c: In function ‘net_process_received_packet’: net/net.c:1288:23: error: taking address of packed member of ‘struct ip_udp_hdr’ may

[PATCH 0/2] travis-ci: provide 'addr' in file2env()

2019-12-04 Thread Heinrich Schuchardt
Function fetch_tftp_file() in test/py/tests/test_efi_loader.py expects that the dictionary describing a file contains an entry 'addr' specifying the loading address. Otherwise it defaults to the start of RAM. On qemu_arm64_defconfig and qemu_arm_defconfig this collides with the hardware supplied

Re: [U-Boot] [PATCH v5 03/26] mtd: rename CONFIG_MTD_DEVICE -> CONFIG_MTD

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:05PM +0200, Miquel Raynal wrote: > Like in Linux, just use CONFIG_MTD to compile the MTD stack. > > Signed-off-by: Miquel Raynal > Reviewed-by: Boris Brezillon After re-running the migration: Applied to u-boot/master, thanks! -- Tom signature.asc Description:

RE: [U-Boot] [EXT] Re: [PATCHv2 1/2] PCI: layerscape: Add Support for ls2088 PCIe EP mode

2019-12-04 Thread Xiaowei Bao
> -Original Message- > From: Ramon Fried > Sent: 2019年12月4日 15:34 > To: Xiaowei Bao > Cc: Ramon Fried ; Hongbo Wang > ; u-boot@lists.denx.de; York Sun > ; Z.q. Hou ; Mingkai Hu > > Subject: Re: [U-Boot] [EXT] Re: [PATCHv2 1/2] PCI: layerscape: Add Support > for ls2088 PCIe EP mode >

RE: [v3 7/8] dm: arm: ls1046a: add i2c DM support

2019-12-04 Thread Priyanka Jain
>-Original Message- >From: Biwen Li >Sent: Thursday, December 5, 2019 11:41 AM >To: Jagdish Gediya ; Priyanka Jain >; h...@denx.de; ja...@amarulasolutions.com; >aford...@gmail.com; Alison Wang ; >bhaskar.upadh...@nxp.com; feng.l...@nxp.com; jh80.ch...@samsung.com; >Pramod Kumar ;

RE: [v3 6/8] dm: arm: ls1043a: add i2c DM support

2019-12-04 Thread Priyanka Jain
>-Original Message- >From: Biwen Li >Sent: Thursday, December 5, 2019 11:41 AM >To: Jagdish Gediya ; Priyanka Jain >; h...@denx.de; ja...@amarulasolutions.com; >aford...@gmail.com; Alison Wang ; >bhaskar.upadh...@nxp.com; feng.l...@nxp.com; jh80.ch...@samsung.com; >Pramod Kumar ;

[PATCH 2/2] travis-ci: set load address for files

2019-12-04 Thread Heinrich Schuchardt
Set the load address for files to the value of $kernel_addr_r for the qemu_arm64_defconfig and qemu_arm_defconfig boards to avoid collisions with the device tree. Signed-off-by: Heinrich Schuchardt --- py/travis-ci/u_boot_boardenv_qemu_arm64_na.py | 6 +++---

Re: [PATCH v5 085/101] x86: apl: Add UART driver

2019-12-04 Thread Simon Glass
Hi Bin, On Sun, 1 Dec 2019 at 22:26, Bin Meng wrote: > > Hi Simon, > > On Mon, Nov 25, 2019 at 12:12 PM Simon Glass wrote: > > > > Add a driver for the Apollo Lake UART. It uses the standard ns16550 device > > but also sets up the input clock with LPSS and supports configuration via > >

[v3 1/8] rtc: pcf8563: support driver model

2019-12-04 Thread Biwen Li
This supports driver model for pcf8563 Signed-off-by: Biwen Li --- Changes in v3: - update commit messages Changes in v2: - none drivers/rtc/pcf8563.c | 107 ++ 1 file changed, 107 insertions(+) diff --git a/drivers/rtc/pcf8563.c

[PATCH 1/2] travis-ci: provide 'addr' in file2env()

2019-12-04 Thread Heinrich Schuchardt
Function fetch_tftp_file() in test/py/tests/test_efi_loader.py expects that the dictionary describing a file contains an entry 'addr' specifying the loading address. Add an optional parameter in function file2env() to set the 'addr' entry. Signed-off-by: Heinrich Schuchardt ---

RE: [v3 4/8] Kconfigs: layerscape: use a convenient default value for SYS_MALLOC_F_LEN

2019-12-04 Thread Priyanka Jain
>-Original Message- >From: Biwen Li >Sent: Thursday, December 5, 2019 11:41 AM >To: Jagdish Gediya ; Priyanka Jain >; h...@denx.de; ja...@amarulasolutions.com; >aford...@gmail.com; Alison Wang ; >bhaskar.upadh...@nxp.com; feng.l...@nxp.com; jh80.ch...@samsung.com; >Pramod Kumar ;

RE: [v3 3/8] i2c: mxc_i2c: add DM_FLAG_PRE_RELOC flag

2019-12-04 Thread Priyanka Jain
>-Original Message- >From: Biwen Li >Sent: Thursday, December 5, 2019 11:40 AM >To: Jagdish Gediya ; Priyanka Jain >; h...@denx.de; ja...@amarulasolutions.com; >aford...@gmail.com; Alison Wang ; >bhaskar.upadh...@nxp.com; feng.l...@nxp.com; jh80.ch...@samsung.com; >Pramod Kumar ;

[v3 7/8] dm: arm: ls1046a: add i2c DM support

2019-12-04 Thread Biwen Li
This supports i2c DM and enables CONFIG_DM_I2C for SoC LS1046A Signed-off-by: Biwen Li --- Changes in v3: - none Changes in v2: - merge some patches to one patch arch/arm/dts/fsl-ls1046a-frwy.dts | 3 ++ arch/arm/dts/fsl-ls1046a-qds.dtsi | 4 ++

[v3 8/8] dm: arm: ls1021a: add i2c DM support

2019-12-04 Thread Biwen Li
This supports i2c DM and enables CONFIG_DM_I2C for SoC LS1021A Signed-off-by: Biwen Li --- Changes in v3: - none Changes in v2: - merge some patches to one patch board/freescale/common/dcu_sii9022a.c | 94 +++ board/freescale/common/diu_ch7301.c

[v3 6/8] dm: arm: ls1043a: add i2c DM support

2019-12-04 Thread Biwen Li
This supports i2c DM and enables CONFIG_DM_I2C for SoC LS1043A Signed-off-by: Biwen Li --- Changes in v3: - none Changes in v2: - merge some patches to one patch arch/arm/include/asm/gpio.h | 2 +- board/freescale/ls1043aqds/ls1043aqds.c | 97

[v3 4/8] Kconfigs: layerscape: use a convenient default value for SYS_MALLOC_F_LEN

2019-12-04 Thread Biwen Li
The default value of CONFIG_SYS_MALLOC_F_LEN (0x400) leaves U-Boot with not enough memory to load i2c driver before relocate, causing it to hang. Change the default value of CONFIG_SYS_MALLOC_F_LEN for below SoCs, - LS1012A - LS1021A - LS1043A - LS1046A Signed-off-by: Biwen Li --- Changes in

[v3 3/8] i2c: mxc_i2c: add DM_FLAG_PRE_RELOC flag

2019-12-04 Thread Biwen Li
This adds DM_FLAG_PRE_RELOC flag to probe i2c driver before relocation Signed-off-by: Biwen Li --- Changes in v3: - none Changes in v2: - none drivers/i2c/mxc_i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index

[v3 2/8] armv8: fsl-layerscape: spl: fix build error when DM_I2C is enabled

2019-12-04 Thread Biwen Li
Fix below SPL build error when DM_I2C is enabled, - arch/arm/cpu/armv8/built-in.o: In function `board_init_f: arch/arm/cpu/armv8/fsl-layerscape/spl.c:74: undefined reference to `i2c_init_all' arch/arm/cpu/armv8/fsl-layerscape/spl.c:74:(.text.board_init_f+0x30): relocation truncated to fit:

Re: [U-Boot] [PATCH v5 12/26] mtd: ensure CMD_NAND is compiled when its options are selected

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:14PM +0200, Miquel Raynal wrote: > In some files, options of CMD_NAND are selected but not the command > itself. Fix this inconsistency. > > Signed-off-by: Miquel Raynal > Reviewed-by: Boris Brezillon Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH v5 084/101] x86: apl: Add PMC driver

2019-12-04 Thread Simon Glass
Hi BIn, On Sun, 1 Dec 2019 at 22:26, Bin Meng wrote: > > Hi Simon, > > On Mon, Nov 25, 2019 at 12:12 PM Simon Glass wrote: > > > > Add a driver for the Apollo Lake SoC. It supports the basic operations and > > can use device tree or of-platdata. > > > > Signed-off-by: Simon Glass > > --- > > >

[PATCH 1/1] arch: arm: Program GIC LPI configuration table

2019-12-04 Thread Vladimir Olovyannikov
From: Bharat Kumar Reddy Gooty Programs the following: 1. Redistributor PROCBASER configuration table (which is common for all redistributors) 2. Redistributor pending table (PENDBASER), for all the available redistributors. Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Vladimir

Re: [U-Boot] [PATCH v5 20/26] dfu: add dependency on the raw NAND core

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:22PM +0200, Miquel Raynal wrote: > CONFIG_DFU_NAND needs the raw NAND core being compiled. > > Also fix the colibri_vf defconfig to reflect this dependency. > > Signed-off-by: Miquel Raynal > Reviewed-by: Boris Brezillon Applied to u-boot/master, thanks! --

RE: [PATCH 2/2] drivers: net: phy: aquantia: make it less verbose

2019-12-04 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Alex Marginean >Sent: Wednesday, December 4, 2019 7:02 PM >To: u-boot@lists.denx.de >Cc: Joe Hershberger >Subject: [PATCH 2/2] drivers: net: phy: aquantia: make it less verbose > >The driver now unconditionally prints some information

Re: [U-Boot] [PATCH v5 06/26] mtd: ensure MTD is compiled when there is a SPI NOR flash using MTD

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:08PM +0200, Miquel Raynal wrote: > MTD must be enabled when there is a SPI NOR flash using the > SPI_FLASH_MTD config entry. > > Signed-off-by: Miquel Raynal > Reviewed-by: Boris Brezillon Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [PATCH v5 006/101] net: Move the checksum functions to lib/

2019-12-04 Thread Bin Meng
Hi Simon, On Thu, Dec 5, 2019 at 12:28 PM Simon Glass wrote: > > Hi Bin, > > On Mon, 25 Nov 2019 at 08:11, Bin Meng wrote: > > > > Hi Simon, > > > > On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > > > > > These functions are used by code outside the network support, so move them > > >

RE: [PATCH 1/2] drivers: net: phy: aquantia: drop XGMII as a valid system interface proto

2019-12-04 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Alex Marginean >Sent: Wednesday, December 4, 2019 7:02 PM >To: u-boot@lists.denx.de >Cc: Joe Hershberger >Subject: [PATCH 1/2] drivers: net: phy: aquantia: drop XGMII as a valid system >interface proto > >Use either USXGMII or XFI in

Re: [U-Boot] [PATCH v5 01/26] mtd: rename CONFIG_NAND -> CONFIG_MTD_RAW_NAND

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:03PM +0200, Miquel Raynal wrote: > Add more clarity by changing the Kconfig entry name. > > Signed-off-by: Miquel Raynal > Reviewed-by: Boris Brezillon After re-running the migration: Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH v5 008/101] i2c: designware: Avoid using static data

2019-12-04 Thread Simon Glass
Hi Bin, On Mon, 25 Nov 2019 at 08:14, Bin Meng wrote: > > Hi Simon, > > On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > > > Drivers are not allowed to use static data since they may be used in SPL > > where BSS is not available. > > > > It is possible that driver model may provide

Re: [PATCH v5 006/101] net: Move the checksum functions to lib/

2019-12-04 Thread Simon Glass
Hi Bin, On Mon, 25 Nov 2019 at 08:11, Bin Meng wrote: > > Hi Simon, > > On Mon, Nov 25, 2019 at 12:11 PM Simon Glass wrote: > > > > These functions are used by code outside the network support, so move them > > to lib/ to be more accessible. > > > > Without this, the functions are only

Re: [U-Boot] [PATCH] binman: README: fix default filename of u-boot-with-ucode-ptr

2019-12-04 Thread Simon Glass
On Sun, 24 Nov 2019 at 18:48, Bin Meng wrote: > > On Mon, Nov 25, 2019 at 9:45 AM Masahiro Yamada > wrote: > > > > The suffix should be ".bin" instead of ".dtb" . > > > > Signed-off-by: Masahiro Yamada > > --- > > > > tools/binman/README.entries | 2 +- > > 1 file changed, 1 insertion(+), 1

Re: [U-Boot] [PATCH v6 3/3] mtd: Makefile: deep cleanup

2019-12-04 Thread Tom Rini
On Fri, Oct 25, 2019 at 07:39:31PM +0200, Miquel Raynal wrote: > Move MTD-related lines out of the root Makefile. Put them in their > respective directories. Enclose some of these new lines to skip them > when building the SPL. MTD core files and some MTD device drivers are > compiled in a mtd.o

Re: [U-Boot] [PATCH v6 2/3] cmd: make MTD commands depend on MTD

2019-12-04 Thread Tom Rini
On Fri, Oct 25, 2019 at 07:39:30PM +0200, Miquel Raynal wrote: > Defconfigs have been fixed, now we can add proper dependencies in > Kconfig. SPI FLASH is still not dependent on MTD (deeper rework needed). > > Signed-off-by: Miquel Raynal Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [PATCH v6 1/3] cmd: nand/sf: isolate legacy code

2019-12-04 Thread Tom Rini
On Fri, Oct 25, 2019 at 07:39:29PM +0200, Miquel Raynal wrote: > The 'sf' command is not supposed to rely on the MTD stack, but both > 'sf' and 'nand' commands use helpers located in mtd_uboot.c. Despite > their location, these functions do not depend at all on the MTD > stack. > > This file

Re: [U-Boot] [PATCH v5 23/26] cmd: mtdparts: Kconfig: join mtdparts command entry with its options

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:25PM +0200, Miquel Raynal wrote: > Move the Kconfig entry of the option right after the entry of the > mtdparts command. > > Signed-off-by: Miquel Raynal Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH v5 19/26] mtd: nand: add includes in NAND core to avoid warnings

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:21PM +0200, Miquel Raynal wrote: > Because of the include's game, when some files are compiled for a SPI > NAND device, no warning appears. But when it is for a raw NAND device, > GCC complains. Fix these warning by including . > > Signed-off-by: Miquel Raynal >

Re: [U-Boot] [PATCH v5 17/26] configs: socfpga: mcvevk: Remove useless UBI infos

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:19PM +0200, Miquel Raynal wrote: > There is no flash on this board, there is no reason to define MTD > environment variables nor UBI. Drop them from the configuration file. > > Signed-off-by: Miquel Raynal > Reviewed-by: Wolfgang Grandegger Applied to

Re: [U-Boot] [PATCH v5 21/26] mtd: nor: NOR flashes depend on MTD

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:23PM +0200, Miquel Raynal wrote: > A NOR flash needs the MTD core, ensure this dependency is met by > adding a "depends on" in Kconfig. This is fine since defconfigs have > been fixed. > > Signed-off-by: Miquel Raynal This is not correct and has been dropped (same

Re: [U-Boot] [PATCH v5 07/26] mtd: ensure UBI is compiled when using fastmap

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:09PM +0200, Miquel Raynal wrote: > UBI must be enabled when using fastmap, reflect this is defconfigs. > > Signed-off-by: Miquel Raynal > Reviewed-by: Boris Brezillon Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH v5 04/26] mtd: ensure MTD is compiled when there is a NOR flash

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:06PM +0200, Miquel Raynal wrote: > CONFIG_MTD must be enabled when there is a NOR flash selected. > > Signed-off-by: Miquel Raynal > Reviewed-by: Boris Brezillon This is not applied. On deeper inspection of the overall changes, there are a number of cases and

Re: [U-Boot] [PATCH v5 02/26] mtd: rename CONFIG_MTD -> CONFIG_DM_MTD

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:04PM +0200, Miquel Raynal wrote: > CONFIG_MTD must be reserved for the MTD core. Like any other > subsystem, prefix the symbol by DM when it comes to DM support. > > Signed-off-by: Miquel Raynal > Reviewed-by: Boris Brezillon After re-running the migration:

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

2019-12-04 Thread Tom Rini
On Wed, Dec 04, 2019 at 06:57:53PM +0100, Marek Vasut wrote: > The following changes since commit 94d022bb400890f22fe35220d2519c3bce73f05e: > > Merge tag 'efi-2020-01-rc5' of > https://gitlab.denx.de/u-boot/custodians/u-boot-efi (2019-12-03 18:12:58 > -0500) > > are available in the Git

Re: [U-Boot] [PATCH v5 16/26] configs: remove MTD support from bcm11130 and M54418TWR defconfigs

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:18PM +0200, Miquel Raynal wrote: > While the right Kconfig entries were selected, because of the missing > CMD_NAND symbol the raw NAND core was never compiled. Remove it from > the defconfigs otherwise the build will fail. > > Signed-off-by: Miquel Raynal Applied

Re: [U-Boot] [PATCH v5 15/26] configs: remove raw NAND core from k2g defconfigs

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:17PM +0200, Miquel Raynal wrote: > Due to previous Makefile organization, the raw NAND subdirectory was > not compiled in if CMD_NAND was not enabled. Because the Denali driver > does not compile with these boards (undefined environment offset), > remove the

Re: [U-Boot] [PATCH v5 14/26] configs: move CONFIG_MTD in defconfigs when set in arch includes

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:16PM +0200, Miquel Raynal wrote: > Let's be consistent and always declare CONFIG_MTD from the defconfig > file when needed. > > Signed-off-by: Miquel Raynal > Reviewed-by: Boris Brezillon Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] [PATCH v5 13/26] mtd: ensure MTD is compiled when CMD_MTDPARTS is selected

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:15PM +0200, Miquel Raynal wrote: > MTD support must be enabled when using mtdparts. Indeed, functions > like get_mtd_info(), get_mtd_device() and put_mtd_device() are in > drivers/mtd/mtd_uboot.c and are built only with CONFIG_MTD. > > Signed-off-by: Miquel Raynal

Re: [U-Boot] [PATCH v5 11/26] mtd: ensure MTD_RAW_NAND is compiled when ENV_IS_IN_NAND is selected

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:13PM +0200, Miquel Raynal wrote: > Raw NAND support must be enabled when the environment is in NAND. > > Signed-off-by: Miquel Raynal > Reviewed-by: Boris Brezillon Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH v5 09/26] mtd: ensure UBI is compiled when CMD_UBI is selected

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:11PM +0200, Miquel Raynal wrote: > UBI must be enabled when CMD_UBI is used, this is mandatory and will > later be reflected thanks to a "depends on" in Kconfig. But first, > defconfigs needs to be fixed. > > Signed-off-by: Miquel Raynal > Reviewed-by: Boris

Re: [U-Boot] [PATCH v5 08/26] mtd: ensure MTD is compiled when UBI is used

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:10PM +0200, Miquel Raynal wrote: > MTD must be enabled when UBI is used, this is mandatory and will later > be reflected thanks to a "depends on" in Kconfig. But first, > defconfigs need to be fixed. > > Signed-off-by: Miquel Raynal > Reviewed-by: Boris Brezillon

Re: [U-Boot] [PATCH v5 05/26] mtd: ensure MTD/the raw NAND core are compiled when there is a NAND flash

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:07PM +0200, Miquel Raynal wrote: > Both symbols must be enabled when there is a raw NAND driver > selected. Also enable them when CONFIG_CMD_NAND is selected to avoid > breaking things when we'll further rework the MTD dependency > description. > > Signed-off-by:

Re: [U-Boot] [PATCH v5 00/26]MTD defconfigs/Kconfigs/Makefiles heavy cleanup

2019-12-04 Thread Tom Rini
On Thu, Oct 03, 2019 at 07:50:02PM +0200, Miquel Raynal wrote: > Hello, > > A year ago, while working on SPI-NAND support in U-Boot, I discovered > when modifying Makefiles a confusing organization where: > * Sub-directories/files are compiled from the root Makefile > * Commands are at the root

Re: [PATCH] Makefile: Ensure tools directory exists in output prior to use

2019-12-04 Thread Bin Meng
On Thu, Dec 5, 2019 at 7:54 AM Tom Rini wrote: > > With the change to make tools/version.h a file we need to make sure that > the output directory exists first otherwise we will get a build failure. > > Reported-by: Peter Robinson > Tested-by: Peter Robinson > Fixes: 4d90f6cd9813 ("tools: Avoid

Re: [PATCH v2 00/16] efi_loader: add secure boot support

2019-12-04 Thread Tom Rini
On Wed, Dec 04, 2019 at 05:28:59PM +0900, AKASHI Takahiro wrote: > On Wed, Dec 04, 2019 at 08:31:26AM +0100, Heinrich Schuchardt wrote: > > On 12/4/19 3:43 AM, AKASHI Takahiro wrote: > > >Tom, Simon, Heinrich, > > > > > >I have submitted three major patch sets for UEFI secure boot: > > >*

[PATCH] Makefile: Ensure tools directory exists in output prior to use

2019-12-04 Thread Tom Rini
With the change to make tools/version.h a file we need to make sure that the output directory exists first otherwise we will get a build failure. Reported-by: Peter Robinson Tested-by: Peter Robinson Fixes: 4d90f6cd9813 ("tools: Avoid creating symbolic links for tools/version.h") Signed-off-by:

[PATCH 14/20] serial_lpuart: add clock enable if CONFIG_CLK is defined

2019-12-04 Thread Giulio Benetti
This driver assumes that lpuart clock is already enabled before probing but using DM only lpuart won't be automatically enabled so add clk_enable() when probing if CONFIG_CLK is defined. Signed-off-by: Giulio Benetti --- drivers/serial/serial_lpuart.c | 13 + 1 file changed, 13

Re: [PATCH] RFE: tools: fix parallel build of tools-all

2019-12-04 Thread Peter Robinson
On Wed, Dec 4, 2019 at 8:37 PM Tom Rini wrote: > > On Wed, Dec 04, 2019 at 03:53:01PM +, Peter Robinson wrote: > > > > Commit 4d90f6cd9813 breaks parallel builds in 2020.01-rc series. This > > > > fixes the issue, reverting it also fixes it. Not sure which is the best > > > > route. > > > > >

Re: [PATCH 13/20] ARM: dts: imxrt1050: add dtsi file

2019-12-04 Thread Giulio Benetti
Hello all, On 12/4/19 6:44 PM, Giulio Benetti wrote: Add dtsi file for i.MXRT1050. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 146 +++ include/dt-bindings/pinctrl/pins-imxrt1050.h | 993 +++ 2 files changed, 1139 insertions(+) create

[PATCH 17/20] mmc: fsl_esdhc: make if(CONFIG_IS_ENABLED(CLK)) an #if statement

2019-12-04 Thread Giulio Benetti
Not all architectures(i.e. i.MXRT) support mxc_get_clock() and use DM_CLK instead. So building could result in failure due to missing mxc_get_clock(). Make if(CONFIG_IS_ENABLED(CLK)) an #if statement. Signed-off-by: Giulio Benetti --- drivers/mmc/fsl_esdhc_imx.c | 38

[PATCH 20/20] imx: imxrt1050-evk: Add support for the NXP i.MXRT1050-EVK

2019-12-04 Thread Giulio Benetti
This commit adds board support for i.MXRT1050-EVK from NXP. This board is an evaluation kit provided by NXP for i.MXRT105x processor family. More information about this board can be found here:

[PATCH 16/20] ram: add SDRAM driver for i.MXRT SoCs

2019-12-04 Thread Giulio Benetti
Add SDRAM driver for i.MXRT SoCs. Signed-off-by: Giulio Benetti --- drivers/ram/Kconfig | 8 + drivers/ram/Makefile | 2 + drivers/ram/imxrt_sdram.c| 439 +++ include/dt-bindings/memory/imxrt-sdram.h | 100 ++

[PATCH 19/20] imx: Add basic support for the NXP IMXRT10xx SoC family

2019-12-04 Thread Giulio Benetti
Add i.IMXRT family basic support. Signed-off-by: Giulio Benetti --- arch/arm/Kconfig| 10 ++ arch/arm/Makefile | 4 +-- arch/arm/include/asm/arch-imxrt/clock.h | 10 ++ arch/arm/include/asm/arch-imxrt/gpio.h | 19

Re: What is the difference between ARCH_XXX MACH_XXX TARGET_XXX macros

2019-12-04 Thread Tom Rini
On Wed, Dec 04, 2019 at 05:49:09PM +0800, Tim Williams wrote: > Hello, I am trying to port u-boot to a new board, > > There are several macros, how to use them properly? > > CONFIG_ARCH_XXX > CONFIG_MACH_XXX > CONFIG_TARGET_XXX > > for example, my board has: > > SoC: LS2K1000 > ISA:

[PATCH 18/20] mmc: fsl_esdhc: add compatible for fsl, imxrt-usdhc

2019-12-04 Thread Giulio Benetti
Add compatible "fsl,imxrt-usdhc" to make mmc working on i.MXRT platforms with CONFIG_DM_MMC=y. Signed-off-by: Giulio Benetti --- drivers/mmc/Kconfig | 2 +- drivers/mmc/fsl_esdhc_imx.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/Kconfig

Re: [PATCH v1 3/5] colibri_imx6: add update_uboot wrapper

2019-12-04 Thread Lukasz Majewski
Hi Igor, > From: Igor Opaniuk > > Add universal update_uboot wrapper that helps to update > U-Boot image on internal storage. > > > tftpboot ${loadaddr} ${board_name}/u-boot.img > > run update_uboot > > tftpboot ${loadaddr} ${board_name}/SPL > > run update_spl > > Signed-off-by: Igor

Re: [PATCH 4/4] cmd: dtimg: Get start and size based on --id and --rev

2019-12-04 Thread Sam Protsenko
Hi, On Fri, Nov 29, 2019 at 9:31 PM Eugeniu Rosca wrote: > > Currently, it is only possible to get the ${index}'s entry of a DTB/DTBO > image [*]. The "dtimg" command is agnostic on the "id" and "rev" fields > and is unable to take them as input for a more fine-grained DTB/DTBO >

Re: [U-Boot] Sharing a hardware lab

2019-12-04 Thread Tom Rini
On Fri, Nov 29, 2019 at 09:23:43PM -0700, Simon Glass wrote: > Hi Tom, > > I have been meaning to have a crack at setting up a little hardware > lab for a while. > > I made some progress recently and hooked up a rpi_3 with sdwire for > USB/SD, ykush for power and a little computer to control

Re: [U-Boot] amlogic a96 mini

2019-12-04 Thread Tom Rini
On Fri, Nov 29, 2019 at 12:06:33PM +0100, Belisko Marek wrote: > Hi, > > I'm trying to run mainline u-boot on amlogic a96mini device but before > I try to flash it does anybody have an idea if it will work on > mainline. As I have limited number of devices and I know that after > flashing I can

Re: [U-Boot] [PATCH] arm64: zynqmp: Point zcu216 defconfig to correct dts file

2019-12-04 Thread Tom Rini
On Mon, Nov 25, 2019 at 10:28:45AM +0100, Michal Simek wrote: > Defconfig is pointing to incorrect DT file which needs to be fix. > > Signed-off-by: Michal Simek Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/2] rpi: Enable DRAM bank initialization on arm64

2019-12-04 Thread Heinrich Schuchardt
On 12/4/19 5:52 PM, matthias@kernel.org wrote: From: Matthias Brugger Up to now we only update the DRAM banks when we are define CONFIG_BCM2711. But our one binary approach uses a config that supports BCM2837 and BCM2711. As a result we only see one gigabyte of RAM on

Re: [PATCH] RFE: tools: fix parallel build of tools-all

2019-12-04 Thread Tom Rini
On Wed, Dec 04, 2019 at 03:53:01PM +, Peter Robinson wrote: > > > Commit 4d90f6cd9813 breaks parallel builds in 2020.01-rc series. This > > > fixes the issue, reverting it also fixes it. Not sure which is the best > > > route. > > > > > > Signed-off-by: Peter Robinson > > > --- > > >

[PATCH 12/20] pinctrl: add i.MXRT driver

2019-12-04 Thread Giulio Benetti
Add i.MXRT pinctrl driver. Signed-off-by: Giulio Benetti --- drivers/pinctrl/nxp/Kconfig | 14 ++ drivers/pinctrl/nxp/Makefile| 1 + drivers/pinctrl/nxp/pinctrl-imxrt.c | 40 + 3 files changed, 55 insertions(+) create mode 100644

[PATCH 00/20] Add i.MXRT family support

2019-12-04 Thread Giulio Benetti
This patchset add support for i.MXRT family starting from i.MXRT1050 SoC. It provides: - i.MXRT1050 SoC entry - i.MXRT pinctrl driver - i.MXRT serial driver tweaking - i.MXRT sdram controller driver - i.MXRT usdhc driver tweaking - i.MXRT1050-evk initial support It uses all DM clocks all around

[PATCH 10/20] clk: imx: pfd: add set_rate()

2019-12-04 Thread Giulio Benetti
Implement set_rate() for pfd. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pfd.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/clk/imx/clk-pfd.c b/drivers/clk/imx/clk-pfd.c index 188b2b3b90..4ae55f5a07 100644 --- a/drivers/clk/imx/clk-pfd.c +++

Re: [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command

2019-12-04 Thread Sam Protsenko
Hi, On Wed, Dec 4, 2019 at 8:25 PM Eugeniu Rosca wrote: > > Hi again, > > [I would be willing to take this discussion offline, if you consider it > too noisy for ML] > Agreed. Please find me on freenode IRC, nick: joeskb7. There is #u-boot channel, or #linaro-android, whichever suits you best.

Re: [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command

2019-12-04 Thread Sam Protsenko
Hi, On Tue, Dec 3, 2019 at 9:29 PM Eugeniu Rosca wrote: > > Hi Sam, > Cc: Aleksandr, Roman > > As expressed in the attached e-mail, to minimize the headaches extending > the argument list of "bootimg" in future, can we please agree on below? > > On Wed, Oct 23, 2019 at 05:34:22PM +0300, Sam

Re: [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command

2019-12-04 Thread Sam Protsenko
Hi, On Wed, Dec 4, 2019 at 7:33 PM Eugeniu Rosca wrote: > > Hello Sam, > Please, see one more suggestion below. > > On Tue, Dec 03, 2019 at 08:29:10PM +0100, Eugeniu Rosca wrote: > > Hi Sam, > > Cc: Aleksandr, Roman > > > > As expressed in the attached e-mail, to minimize the headaches extending

[PATCH v3 6/6] configs: j721e_evm_a72_defconfig: Enable DMA and Ethernet

2019-12-04 Thread Vignesh Raghavendra
Enable configs related to DMA and Ethernet so as to support networking at U-Boot prompt Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger Reviewed-by: Grygorii Strashko --- configs/j721e_evm_a72_defconfig | 8 1 file changed, 8 insertions(+) diff --git

[PATCH 13/20] ARM: dts: imxrt1050: add dtsi file

2019-12-04 Thread Giulio Benetti
Add dtsi file for i.MXRT1050. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 146 +++ include/dt-bindings/pinctrl/pins-imxrt1050.h | 993 +++ 2 files changed, 1139 insertions(+) create mode 100644 arch/arm/dts/imxrt1050.dtsi create mode 100644

Re: [PATCH 3/4] cmd: dtimg: Make an optional argument

2019-12-04 Thread Sam Protsenko
Hi, On Fri, Nov 29, 2019 at 9:30 PM Eugeniu Rosca wrote: > > Unlike dtimg, U-Boot commands like part [1], fstype [2] and uuid [3] > accept an _optional_ parameter, which means that they will > output the result to console whenever is skipped. This is > extremely useful during development. > >

[PATCH 09/20] clk: imx: pllv3: add support for PLLV3_AV type

2019-12-04 Thread Giulio Benetti
Add support for PLLV3 AV type. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 76 + 1 file changed, 76 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index d5087a104e..fc16416d5f 100644 ---

Re: [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command

2019-12-04 Thread Eugeniu Rosca
Hi again, [I would be willing to take this discussion offline, if you consider it too noisy for ML] On Wed, Oct 23, 2019 at 05:34:22PM +0300, Sam Protsenko wrote: > +U_BOOT_CMD( > + bootimg, CONFIG_SYS_MAXARGS, 0, do_bootimg, > + "manipulate Android Boot Image", > + "set_addr \n" > +

[PATCH v3 0/6] J721e: Add networking support

2019-12-04 Thread Vignesh Raghavendra
This patch enables networking support for TI's J721e SoC. Patch 1 adds a new interface to DMA uclass to get channel specific private/configuration data. Patch 2 to 4 use this interface to pass data from J721e's UDMA driver to CPSW ethernet driver. Last two patches add DMA and CPSW DT nodes and

[PATCH 02/20] spl: fix entry_point equal to load_addr

2019-12-04 Thread Giulio Benetti
At the moment entry_point is set to image_get_load(header) that sets it to "load address" instead of "entry point", assuming entry_point is equal to load_addr, but it's not true. Then load_addr is set to "entry_point - header_size", but this is wrong too since load_addr is not an entry point. So

[PATCH 07/20] clk: imx: pllv3: add set_rate() support

2019-12-04 Thread Giulio Benetti
Add generic set_rate() support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index 9b37cd9cd9..a721dbee94 100644 ---

[PATCH 06/20] clk: imx: pllv3: add disable() support

2019-12-04 Thread Giulio Benetti
Add disable() support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index d8cbe3dd4e..9b37cd9cd9 100644 --- a/drivers/clk/imx/clk-pllv3.c +++

Re: [U-Boot] [PATCH 16/17] imx: add dtsi for i.MX8MN

2019-12-04 Thread Troy Kisky
On 12/3/2019 6:13 PM, Peng Fan wrote: Troy >> >> So, is this code buggy ? > > Yes, please use devfdt_get_addr_size_index > > Regards, > Peng. > Thanks, that was my problem. BR Troy

[PATCH 01/20] armv7m: cache: add mmu_set_region_dcache_behaviour() stub for compatibility

2019-12-04 Thread Giulio Benetti
Since some driver requires this function add it as an empty stub when DCACHE is OFF. Signed-off-by: Giulio Benetti --- arch/arm/cpu/armv7m/cache.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/cpu/armv7m/cache.c b/arch/arm/cpu/armv7m/cache.c index f4ba3ad50e..7353698557

[PULL] u-boot-sh/master

2019-12-04 Thread Marek Vasut
The following changes since commit 94d022bb400890f22fe35220d2519c3bce73f05e: Merge tag 'efi-2020-01-rc5' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi (2019-12-03 18:12:58 -0500) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch

[PATCH 08/20] clk: imx: pllv3: add PLLV3_SYS support

2019-12-04 Thread Giulio Benetti
Add PLLV3_SYS support by adding set/get_rate() for PLLV3_SYS but keeping generic enable()/disable(). Add a different driver because ops are different respect to GENERIC/USB. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 53 + 1 file changed,

[PATCH 11/20] clk: imx: add i.IMXRT1050 clk driver

2019-12-04 Thread Giulio Benetti
Add i.MXRT1050 clk driver support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/Kconfig | 16 ++ drivers/clk/imx/Makefile| 2 + drivers/clk/imx/clk-imxrt1050.c | 292 include/dt-bindings/clock/imxrt1050-clock.h |

[PATCH 15/20] serial_lpuart: add support for i.MXRT

2019-12-04 Thread Giulio Benetti
Add i.MXRT compatible string and cpu type support to lpuart driver, to use little endian 32 bits configurations. Also according to RM, the Receive RX FIFO Enable (RXFE) field in LPUART FIFO register is bit 3, so this definition should change to 0x08 as done for i.MX8. It needs also to set

Re: [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command

2019-12-04 Thread Eugeniu Rosca
Hello Sam, Please, see one more suggestion below. On Tue, Dec 03, 2019 at 08:29:10PM +0100, Eugeniu Rosca wrote: > Hi Sam, > Cc: Aleksandr, Roman > > As expressed in the attached e-mail, to minimize the headaches extending > the argument list of "bootimg" in future, can we please agree on below?

[PATCH 04/20] clk: imx: pllv3: set div_mask differently if PLLV3 is GENERIC or USB

2019-12-04 Thread Giulio Benetti
div_mask is different for GENERIC and USB pll, so set it according. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index d1e4c3fe30..02c75c37ea 100644 ---

[PATCH 03/20] clk: imx: pllv3: register PLLV3 GENERIC and USB as 2 different clocks

2019-12-04 Thread Giulio Benetti
Better to register the 2 clock as 2 different drivers because they work slightly differently depending on power_bit and powerup_set bits coming on next patches. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 20 +++- 1 file changed, 15 insertions(+), 5

[PATCH 05/20] clk: imx: pllv3: add enable() support

2019-12-04 Thread Giulio Benetti
Before set_rate() pllv3 needs enable() to power the pll up. Add enable() taking into account different power_bit and different powerup_set, because some pll needs its power_bit to be set or reset to be powered on. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 24

[PATCH v3 3/6] net: ti: am65-cpsw-nuss: Rework RX flow ID handling

2019-12-04 Thread Vignesh Raghavendra
Get flow ID information for RX DMA channel using dma_get_cfg() interface instead of reading from DT. This is required in order to avoid DT update whenever there is change in the range of flow ID allocated to the host. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger Reviewed-by:

[PATCH 1/2] rpi: fix dram bank initialization

2019-12-04 Thread matthias . bgg
From: Matthias Brugger To update the dram bank information from device-tree we use fdtdec_decode_ram_size() which expectes the the size-cells and address-cells to be defined in the memory node. For normal system RAM these values are defined in the root node. When the values differ from the

Re: [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command

2019-12-04 Thread Eugeniu Rosca
Hi Sam, On Mon, Dec 02, 2019 at 09:07:15PM +0200, Sam Protsenko wrote: > I'd like this patch series to be applied ASAP (probably before DTBO > patches you mention are merged). It's been too long as it is. Once > merged and we are unblocked w.r.t. Android boot stuff, we can then > look into DTBO

[PATCH v3 1/6] dma: Introduce dma_get_cfg() interface

2019-12-04 Thread Vignesh Raghavendra
Sometimes, there would be a need to exchange data between DMA provider and DMA client which are very specific to DMA driver of the SoC/platform and are not generic enough to be put into struct dma. Therefore, introduce dma_get_cfg() interface to get DMA provider specific data from client device.

  1   2   >