[U-Boot] [PATCH v4 2/2] board: Add support for iMX8QXP AI_ML board

2019-07-18 Thread Manivannan Sadhasivam
This commit adds initial board support for iMX8QXP AI_ML board from Einfochips. This board is one of the 96Boards Consumer Edition and AI boards of the 96Boards family based on i.MX8QXP SoC from NXP/Freescale. This initial supports contains following peripherals which are tested and known to work:

Re: [U-Boot] [RFC, PATCH v4 01/16] hashtable: extend interfaces to handle entries with context

2019-07-18 Thread Wolfgang Denk
Dear AKASHI Takahiro, In message <20190717082525.891-2-takahiro.aka...@linaro.org> you wrote: > The following interfaces are extended to accept an additional argument, > context: > hsearch_r() -> hsearch_ext() > hmatch_r() -> hmatch_ext() > hdelete_r() -> hdelete_ext() > hexport_r(

[U-Boot] [PATCH v4 1/2] arm: dts: Add devicetree support for iMXQXP AI_ML board

2019-07-18 Thread Manivannan Sadhasivam
Add devicetree support for iMXQXP AI_ML board from Einfochips. Signed-off-by: Manivannan Sadhasivam --- arch/arm/dts/Makefile | 1 + arch/arm/dts/fsl-imx8qxp-ai_ml-u-boot.dtsi | 117 + arch/arm/dts/fsl-imx8qxp-ai_ml.dts | 181 + 3 fi

[U-Boot] [PATCH v4 0/2] Add board support for iMX8QXP AI_ML board

2019-07-18 Thread Manivannan Sadhasivam
Hello, This patchset adds initial board support for iMX8QXP AI_ML board from Einfochips. This board is one of the Consumer Edition and AI boards of the 96Boards family. This initial supports contains following peripherals which are tested and known to work: 1. Debug serial via UART2 2. SD ca

Re: [U-Boot] [RFC, PATCH v4 00/16] efi_loader: non-volatile variables support

2019-07-18 Thread Wolfgang Denk
Dear Takahiro, In message <20190717082525.891-1-takahiro.aka...@linaro.org> you wrote: > # In version 4 of this patch set, the implementation is changed to meet > # Wolfgang's requirements. Thanks. > * Each variable may have a third attribute, "variable storage." > There are three new flags de

Re: [U-Boot] [PATCH v3 2/2] board: Add support for iMX8QXP AI_ML board

2019-07-18 Thread Manivannan Sadhasivam
Hi Fabio, On Thu, Jul 18, 2019 at 09:43:54PM -0300, Fabio Estevam wrote: > Hi Manivannan, > > On Fri, Jul 12, 2019 at 3:12 PM Manivannan Sadhasivam > wrote: > > > +#if IS_ENABLED(CONFIG_DM_GPIO) > > +static void board_gpio_init(void) > > +{ > > + /* TODO */ > > +} > > +#else > > +static i

Re: [U-Boot] [RFC 1/1] efi_loader: usage of cleanup_before_linux()

2019-07-18 Thread Peter Robinson
On Thu, Jul 18, 2019 at 9:47 PM Leif Lindholm wrote: > > On Thu, Jul 18, 2019 at 08:53:01PM +0200, Alexander Graf wrote: > > > > On 18.07.19 19:46, Heinrich Schuchardt wrote: > > > Always call cleanup_before_linux() on ARM 32bit during ExitBootServices(). > > > > > > This fixes a problem problem f

Re: [U-Boot] [PATCH v2 3/4] efi_loader: use efi_start_image() for bootefi

2019-07-18 Thread Jonathan Gray
On Fri, Jul 19, 2019 at 07:43:17AM +0200, Heinrich Schuchardt wrote: > On 7/19/19 1:07 AM, Mark Kettenis wrote: > > > From: Alexander Graf > > > Date: Thu, 18 Jul 2019 20:50:39 +0200 > > > > > > On 18.07.19 19:33, Heinrich Schuchardt wrote: > > > > On 7/18/19 11:16 AM, Jonathan Gray wrote: > > >

Re: [U-Boot] [PATCH v6 4/4] doc: sifive-fu540: Update README for SiFive SPI and MMC SPI drivers

2019-07-18 Thread Rick Chen
> > From: Anup Patel [mailto:anup.pa...@wdc.com] > > Sent: Wednesday, July 17, 2019 12:24 PM > > To: Rick Jian-Zhi Chen(陳建志); Bin Meng; Lukas Auer; Peng Fan; Jagan Teki; > > Oleksandr Zhadan and Michael Durrant > > Cc: Palmer Dabbelt; Paul Walmsley; Atish Patra; Anup Patel; Bhargav Shah; > > U-Boot

Re: [U-Boot] [PATCH v6 3/4] riscv: sifive: fu540: Enable SiFive SPI and MMC SPI drivers

2019-07-18 Thread Rick Chen
> > From: Anup Patel [mailto:anup.pa...@wdc.com] > > Sent: Wednesday, July 17, 2019 12:24 PM > > To: Rick Jian-Zhi Chen(陳建志); Bin Meng; Lukas Auer; Peng Fan; Jagan Teki; > > Oleksandr Zhadan and Michael Durrant > > Cc: Palmer Dabbelt; Paul Walmsley; Atish Patra; Anup Patel; Bhargav Shah; > > U-Boot

Re: [U-Boot] [PATCH v9 8/9] doc: sifive-fu540: Update README for steps to create FW_PAYLOAD

2019-07-18 Thread Rick Chen
> > From: Anup Patel [mailto:anup.pa...@wdc.com] > > Sent: Tuesday, June 25, 2019 2:32 PM > > To: Rick Jian-Zhi Chen(陳建志); Bin Meng; Lukas Auer; Simon Glass > > Cc: Ramon Fried; Joe Hershberger; Palmer Dabbelt; Paul Walmsley; Troy > > Benjegerdes; Atish Patra; Alistair Francis; U-Boot Mailing List;

Re: [U-Boot] [PATCH v9 7/9] riscv: sifive: fu540: Setup ethaddr env variable using OTP

2019-07-18 Thread Rick Chen
> > From: Anup Patel [mailto:anup.pa...@wdc.com] > > Sent: Tuesday, June 25, 2019 2:32 PM > > To: Rick Jian-Zhi Chen(陳建志); Bin Meng; Lukas Auer; Simon Glass > > Cc: Ramon Fried; Joe Hershberger; Palmer Dabbelt; Paul Walmsley; Troy > > Benjegerdes; Atish Patra; Alistair Francis; U-Boot Mailing List;

Re: [U-Boot] [PATCH v9 5/9] clk: sifive: Drop GEMGXL clock driver

2019-07-18 Thread Rick Chen
> > From: Anup Patel [mailto:anup.pa...@wdc.com] > > Sent: Tuesday, June 25, 2019 2:32 PM > > To: Rick Jian-Zhi Chen(陳建志); Bin Meng; Lukas Auer; Simon Glass > > Cc: Ramon Fried; Joe Hershberger; Palmer Dabbelt; Paul Walmsley; Troy > > Benjegerdes; Atish Patra; Alistair Francis; U-Boot Mailing List;

Re: [U-Boot] [PATCH v9 4/9] clk: sifive: Sync-up main driver with upstream Linux

2019-07-18 Thread Rick Chen
> > From: Anup Patel [mailto:anup.pa...@wdc.com] > > Sent: Tuesday, June 25, 2019 2:31 PM > > To: Rick Jian-Zhi Chen(陳建志); Bin Meng; Lukas Auer; Simon Glass > > Cc: Ramon Fried; Joe Hershberger; Palmer Dabbelt; Paul Walmsley; Troy > > Benjegerdes; Atish Patra; Alistair Francis; U-Boot Mailing List;

Re: [U-Boot] [PATCH v9 3/9] clk: sifive: Sync-up DT bindings header with upstream Linux

2019-07-18 Thread Rick Chen
> > From: Anup Patel [mailto:anup.pa...@wdc.com] > > Sent: Tuesday, June 25, 2019 2:31 PM > > To: Rick Jian-Zhi Chen(陳建志); Bin Meng; Lukas Auer; Simon Glass > > Cc: Ramon Fried; Joe Hershberger; Palmer Dabbelt; Paul Walmsley; Troy > > Benjegerdes; Atish Patra; Alistair Francis; U-Boot Mailing List;

Re: [U-Boot] [PATCH v2 3/4] efi_loader: use efi_start_image() for bootefi

2019-07-18 Thread Heinrich Schuchardt
On 7/19/19 1:07 AM, Mark Kettenis wrote: From: Alexander Graf Date: Thu, 18 Jul 2019 20:50:39 +0200 On 18.07.19 19:33, Heinrich Schuchardt wrote: On 7/18/19 11:16 AM, Jonathan Gray wrote: On Thu, Jul 18, 2019 at 10:39:57AM +0200, Mark Kettenis wrote: Date: Thu, 18 Jul 2019 16:00:16 +1000 Fro

Re: [U-Boot] [PATCH v9 2/9] clk: sifive: Sync-up WRPLL library with upstream Linux

2019-07-18 Thread Rick Chen
> > From: Anup Patel [mailto:anup.pa...@wdc.com] > > Sent: Tuesday, June 25, 2019 2:31 PM > > To: Rick Jian-Zhi Chen(陳建志); Bin Meng; Lukas Auer; Simon Glass > > Cc: Ramon Fried; Joe Hershberger; Palmer Dabbelt; Paul Walmsley; Troy > > Benjegerdes; Atish Patra; Alistair Francis; U-Boot Mailing List;

Re: [U-Boot] [PATCH v9 1/9] clk: sifive: Factor-out PLL library as separate module

2019-07-18 Thread Rick Chen
> > From: Anup Patel [mailto:anup.pa...@wdc.com] > > Sent: Tuesday, June 25, 2019 2:31 PM > > To: Rick Jian-Zhi Chen(陳建志); Bin Meng; Lukas Auer; Simon Glass > > Cc: Ramon Fried; Joe Hershberger; Palmer Dabbelt; Paul Walmsley; Troy > > Benjegerdes; Atish Patra; Alistair Francis; U-Boot Mailing List;

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

2019-07-18 Thread Simon Goldschmidt
On Fri, Jul 19, 2019 at 2:29 AM Tom Rini wrote: > > On Tue, Jun 04, 2019 at 05:55:48PM -0500, Andreas Dannenberg wrote: > > > In order to be able to use more advanced driver functionality which often > > relies on having BSS initialized during early boot prior to relocation > > several things need

[U-Boot] [PATCH] core: ofnode: do not assert if node not valid in ofnode_get_name()

2019-07-18 Thread Kever Yang
In some case with LIVE DT, some node always not valid, or not have a valid name, eg. blk driver add by mmc. Return fail instead of Assert for this kind of ofnode, and this help with assert happen from time to time when of_live is enabled and DEBUG is enabled. Signed-off-by: Kever Yang --- drive

[U-Boot] [PATCH 4/4] net: fec: add fuse check

2019-07-18 Thread Peng Fan
Add fuse check for fec. If the fuse indicate the module not work in the SoC, let's fail the initialization. Signed-off-by: Peng Fan --- drivers/net/fec_mxc.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index d7c080943a..602b6

[U-Boot] [PATCH 3/4] usb: mx6: add fuse check

2019-07-18 Thread Peng Fan
Add fuse check for USB. If the fuse indicate the module not work in the SoC, let's fail the initialization. Signed-off-by: Peng Fan --- drivers/usb/host/ehci-mx6.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index

[U-Boot] [PATCH 2/4] i2c: mxc: add fuse check

2019-07-18 Thread Peng Fan
Add fuse check for I2C. If the fuse indicate the module not work in the SoC, let's fail the initialization. Signed-off-by: Peng Fan --- drivers/i2c/mxc_i2c.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 2e157bca58..fd2d

[U-Boot] [PATCH 1/4] imx: add module fuse support

2019-07-18 Thread Peng Fan
There are different parts from one SoC. Take i.MX6ULL for example, some part might not have ENET, some might have; some might not have USB, some might have. The information could be got from OCOTP, to make one image support the different parts, we need runtime disable linux kernel dts node and uboo

[U-Boot] [PATCH] mmc: mtk-sd: add WATCHDOG_RESET() to prevent watchdog timeout

2019-07-18 Thread Weijie Gao
When reading large data in once (reading 512MiB is tested on MT7623), a watchdog timeout is triggered due to watchdog not being fed. This patch adds WATCHDOG_RESET() to msdc_start_data() so the watchdog will be fed every 1024 blocks are read/written. Signed-off-by: Weijie Gao --- drivers/mmc/mt

Re: [U-Boot] [PATCH v4 0/6] Add spi-mem driver for MediaTek MT7629 SoC

2019-07-18 Thread Weijie Gao
On Tue, 2019-07-16 at 17:03 +0530, Jagan Teki wrote: > On Tue, Jul 16, 2019 at 7:48 AM Weijie Gao wrote: > > > > On Mon, 2019-07-15 at 12:59 +0530, Jagan Teki wrote: > > > On Wed, Jul 10, 2019 at 8:51 AM Weijie Gao > > > wrote: > > > > > > > > Since u-boot has added the spi-mem framework and rep

Re: [U-Boot] Support for i.MX7ULP rev B0

2019-07-18 Thread Peng Fan
> Subject: Re: Support for i.MX7ULP rev B0 > > Hi Peng, > > On Thu, Jul 18, 2019 at 10:48 PM Peng Fan wrote: > > > There is a downstream patch to gate off APll_PFD1/2/3, with that patch > > applied you will not see kernel warning. > > > > i.MX7ULP: change USDHC clock rate > > > > Change USD

Re: [U-Boot] Support for i.MX7ULP rev B0

2019-07-18 Thread Fabio Estevam
Hi Peng, On Thu, Jul 18, 2019 at 10:48 PM Peng Fan wrote: > There is a downstream patch to gate off APll_PFD1/2/3, with that patch applied > you will not see kernel warning. > > i.MX7ULP: change USDHC clock rate > > Change USDHC0 and USDHC1 per clock source from APLL_PFD1, > and set the

Re: [U-Boot] [PATCH 00/52] Support i.MX8MM/N

2019-07-18 Thread Peng Fan
Hi Schrempf, > Subject: Re: [U-Boot] [PATCH 00/52] Support i.MX8MM/N > > Hi Peng, > > On 17.07.19 10:37, Peng Fan wrote: > > Hi Lukasz, Stefano, > > > > >> Subject: Re: [U-Boot] [PATCH 00/52] Support i.MX8MM/N > > [] > > The v5 of CCF has been posted ~2 weeks ago (with you

Re: [U-Boot] Support for i.MX7ULP rev B0

2019-07-18 Thread Peng Fan
Hi Fabio, > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2019年7月18日 20:17 > To: Peng Fan > Cc: Ye Li ; Stefano Babic ; U-Boot-Denx > > Subject: Re: Support for i.MX7ULP rev B0 > > Hi Peng and Ye Li, > > On Wed, Jul 17, 2019 at 10:20 PM Peng Fan wrote: >

Re: [U-Boot] 32-bit Tegra build failure in u-boot-dm

2019-07-18 Thread Simon Glass
Hi Stephen, On Thu, 18 Jul 2019 at 09:52, Stephen Warren wrote: > > Simon, > > All 32-bit Tegra boards appear to be failing to build in u-boot-dm.git > master branch with: > > > BINMAN u-boot-tegra.bin > > binman: Unknown entry type 'u-boot-spl' in node '/binman/image1/u-boot-spl' > > /var/lib

Re: [U-Boot] [PATCH v3 2/2] board: Add support for iMX8QXP AI_ML board

2019-07-18 Thread Fabio Estevam
Hi Manivannan, On Fri, Jul 12, 2019 at 3:12 PM Manivannan Sadhasivam wrote: > +#if IS_ENABLED(CONFIG_DM_GPIO) > +static void board_gpio_init(void) > +{ > + /* TODO */ > +} > +#else > +static inline void board_gpio_init(void) {} > +#endif > + Is this function really needed? It is always em

Re: [U-Boot] [PATCH v8 14/14] configs: am65x_evm_a53: Add Support for creating GPT partitions

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:44AM +0530, Faiz Abbas wrote: > Add Support for creating GPT partitions in U-boot. > > Signed-off-by: Faiz Abbas Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing lis

Re: [U-Boot] [PATCH] am335x_boneblack_vboot: Disable asm memcpy/memset in SPL

2019-07-18 Thread Tom Rini
On Wed, Jul 17, 2019 at 10:51:10PM -0400, Tom Rini wrote: > In order to save a little space in SPL, do not use the asm versions of > memcpy/memset. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [PATCH v3 17/18] configs: am65x_evm: Add support for applying overlays

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:27PM -0500, Andreas Dannenberg wrote: > This will allow for downloading and applying overlays from an MMC/SD > boot media based on the overlay_files ENV variable containing a list > of overlay files. > > Signed-off-by: Andreas Dannenberg > Reviewed-by: Lokesh Vutla

Re: [U-Boot] [PATCH v8 12/14] configs: am65x: Add configs to support environment in eMMC

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:42AM +0530, Faiz Abbas wrote: > Add configs such that U-boot environment is in eMMC by default. > > Signed-off-by: Faiz Abbas Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boo

Re: [U-Boot] [PATCH v8 11/14] mmc: am654_sdhci: Add a platform specific set_control_reg() callback

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:41AM +0530, Faiz Abbas wrote: > Add a platform specific set_control_reg() callback to help switch to > UHS speed modes. > > Signed-off-by: Faiz Abbas > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH 2/2] gitlab-ci: Move the pyelfutils section

2019-07-18 Thread Tom Rini
On Thu, Jul 18, 2019 at 11:27:28AM -0400, Tom Rini wrote: > We need this for building some 64bit ARM platforms, not for test.py > runs. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [PATCH v3 02/18] arm: omap_i2c: Remove unwanted header file inclusion

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:12PM -0500, Andreas Dannenberg wrote: > From: Vignesh R > > There is no need for to include this header here, so drop it. > > Signed-off-by: Vignesh R > Reviewed-by: Heiko Schocher > Reviewed-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signatu

Re: [U-Boot] [PATCH v3 03/18] arm: dts: k3-am65: Move pinctrl nodes out of U-Boot specific dtsi

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:13PM -0500, Andreas Dannenberg wrote: > Only U-Boot specifc DT properties or overrides, must be in -u-boot.dtsi. > Pinctrl nodes does not belong here. Now that pinctrl nodes are in kernel > DT, there is no reason to be keep these in -u-boot.dtsi. Move them to > proper

Re: [U-Boot] [PATCH v2 08/12] configs: am65x_evm_r5: All sysfw to be loaded via MMC

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 05:55:51PM -0500, Andreas Dannenberg wrote: > Enable all the relevant configs that enables support for loading > sysfw via MMC. > > Signed-off-by: Andreas Dannenberg Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PATCH v3 08/18] arm64: dts: k3-am654-base-board: Add I2C GPIO expander @ 0x38

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:18PM -0500, Andreas Dannenberg wrote: > The AM654 base board has a TCA9554/PCA9554-type GPIO expander on the > wkup_i2c0 bus at address 0x38 that is used to detect the presence of > daughter cards. Add a respective DTS description of this expander > to enable its use

Re: [U-Boot] [PATCH] pci_ep: fix wrong addressing to barno

2019-07-18 Thread Tom Rini
On Mon, Jul 15, 2019 at 11:04:41PM +0300, Ramon Fried wrote: > barno was mistakely readed from the target structure, > resulting in undefined behavious depending on the previous memory > content. fix that. > > Fixes: bb413337826e ("pci_ep: add pci endpoint sandbox driver") > > Signed-off-by: Ram

Re: [U-Boot] [PATCH v8 06/14] arm: dts: k3: Add phy specific properties to SD card node

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:36AM +0530, Faiz Abbas wrote: > With changes in the driver requiring phy related properties, > add the same for the SD card node to prevent breaking boot with > the driver update. > > Signed-off-by: Faiz Abbas > Reviewed-by: Tom Rini Applied to u-boot/master, than

Re: [U-Boot] [PATCH 1/2] GitLab CI: Split the world build into 4 jobs

2019-07-18 Thread Tom Rini
On Thu, Jul 18, 2019 at 11:27:27AM -0400, Tom Rini wrote: > To better allow for parallelization of the world build job split things > into 32bit ARM (687 boards), 64bit ARM (215), PowerPC (311 boards) and > everything else (167 boards). > > While the 32bit ARM job is heavier than I would like, th

Re: [U-Boot] [PATCH v3 14/18] ti: common: am6: Add support for board description EEPROM

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:24PM -0500, Andreas Dannenberg wrote: > The AM654x EVM based on the TI K3 family of SoCs have an updated board > detection EEPROM structure, now comprising variable-sized TLV-type > records, containing a superset of what is already being provided on > earlier platform

Re: [U-Boot] [PATCH v8 13/14] am65x_evm: Add Support for creating a filesystem GPT partition in eMMC

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:43AM +0530, Faiz Abbas wrote: > Add Support for creating a GPT partition for the filesystem in eMMC. > The filesystem is created in the user partition (partition 0). > > Signed-off-by: Faiz Abbas Applied to u-boot/master, thanks! -- Tom signature.asc Descriptio

Re: [U-Boot] [PATCH v2 02/12] spl: Allow performing BSS init early before board_init_f()

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 05:55:45PM -0500, Andreas Dannenberg wrote: > On some platform we have sufficient memory available early on to allow > setting up and using a basic BSS prior to entering board_init_f(). Doing > so can for example be used to carry state over to board_init_r() without > havin

Re: [U-Boot] [PATCH v3 07/18] configs: am65x_hs_evm_defconfig: Enable I2C support

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:17PM -0500, Andreas Dannenberg wrote: > Enable I2C via driver model as well as the associated set of U-Boot > commands to allow us interacting with various I2C slave devices. > > Signed-off-by: Andreas Dannenberg > Reviewed-by: Lokesh Vutla > Acked-by: Andrew F. Da

Re: [U-Boot] [PATCH v3 16/18] board: ti: am654: Use EEPROM-based board detection

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:26PM -0500, Andreas Dannenberg wrote: > The TI AM654x EVM base board and the associated daughtercards have on- > board I2C-based EEPROMs containing board configuration data. Use the > board detection infrastructure introduced earlier to do the following: > > 1) Parse

Re: [U-Boot] [PATCH v3 15/18] ti: common: am6: Add support for setting MAC addresses

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:25PM -0500, Andreas Dannenberg wrote: > The AM654x EVM based on the TI K3 family of SoCs has an updated board > detection EEPROM structure that contains a TLV record of dedicated MAC > addresses rather than a range of MAC addresses as it was used on earlier > platform

Re: [U-Boot] [PATCH v8 09/14] configs: am65x_evm: Enable CONFIG_REGMAP

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:39AM +0530, Faiz Abbas wrote: > Add Support for CONFIG_REGMAP. > > Signed-off-by: Faiz Abbas > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailin

Re: [U-Boot] [PATCH v2 12/12] am65x: README: Add eMMC layout and flash instructions

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 05:55:55PM -0500, Andreas Dannenberg wrote: > From: Faiz Abbas > > Add instructions for flashing boot images to the eMMC with a > layout of the address where each image needs to be flashed. > > Also add instructions to flash filesystem partition in user > partition and b

Re: [U-Boot] [PATCH v8 08/14] mmc: am654_sdhci: Add Support for PHY

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:38AM +0530, Faiz Abbas wrote: > Add support in the driver for handling phy specific registers. > > Signed-off-by: Faiz Abbas > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [PATCH v3 04/18] arm: dts: k3-am65: Add I2C nodes

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:14PM -0500, Andreas Dannenberg wrote: > Add I2C DT nodes > > Signed-off-by: Vignesh R > Reviewed-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing l

Re: [U-Boot] [PATCH 2/5] CVE-2019-13105: ext4: fix double-free in ext4_cache_read

2019-07-18 Thread Tom Rini
On Mon, Jul 08, 2019 at 04:37:04PM -0700, Paul Emge wrote: > ext_cache_read doesn't null cache->buf, after freeing, which results > in a later function double-freeing it. This patch fixes > ext_cache_read to call ext_cache_fini instead of free. > > Signed-off-by: Paul Emge Applied to u-boot/mas

Re: [U-Boot] [PATCH 4/5] ext4: gracefully fail on divide-by-0

2019-07-18 Thread Tom Rini
On Mon, Jul 08, 2019 at 04:37:06PM -0700, Paul Emge wrote: > This patch checks for 0 in several ext4 headers and gracefully > fails instead of raising a divide-by-0 exception. > > Signed-off-by: Paul Emge Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH v8 07/14] mmc: sdhci: Make set_ios_post() return int

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:37AM +0530, Faiz Abbas wrote: > Make set_ios_post() return int to faciliate error handling in > platform drivers. > > Signed-off-by: Faiz Abbas Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PATCH v2 01/12] mmc: am654_sdhci: Allow driver to probe without PDs specified

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 05:55:44PM -0500, Andreas Dannenberg wrote: > We would like to use the driver even without power domains being > specified for cases such as during early boot when the required power > domains have already gotten enabled by the SoC's boot ROM and such > explicit initializat

Re: [U-Boot] [PATCH v8 04/14] mmc: sdhci: Add support for sdhci-caps-mask

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:34AM +0530, Faiz Abbas wrote: > Add Support for masking some bits in the capabilities > register of a host controller. > > Also remove the redundant readl() into caps1. > > Signed-off-by: Faiz Abbas > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- T

Re: [U-Boot] [PATCH v3 06/18] configs: am65x_evm_defconfig: Enable I2C support

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:16PM -0500, Andreas Dannenberg wrote: > Enable I2C via driver model as well as the associated set of U-Boot > commands to allow us interacting with various I2C slave devices. > > Signed-off-by: Andreas Dannenberg > Signed-off-by: Vignesh R > Reviewed-by: Lokesh Vut

Re: [U-Boot] [PATCH v3 18/18] configs: am65x_hs_evm: Add support for applying overlays

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:28PM -0500, Andreas Dannenberg wrote: > This will allow for downloading and applying overlays from an MMC/SD > boot media based on the overlay_files ENV variable containing a list > of overlay files. > > Signed-off-by: Andreas Dannenberg > Reviewed-by: Lokesh Vutla

Re: [U-Boot] [PATCH] gitlab-ci: Add pyelftools when needed

2019-07-18 Thread Tom Rini
On Wed, Jul 17, 2019 at 10:52:04PM -0400, Tom Rini wrote: > In order to mirror current Travis CI support we need to install this > package via pip. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] [PATCH v2 06/12] armv7R: K3: am654: Use full malloc implementation in SPL

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 05:55:49PM -0500, Andreas Dannenberg wrote: > Switch to using the full malloc scheme in post-relocation SPL to allow > better utilization of available memory for example by allowing memory > to get freed. Initially allocate a 16MB-sized region in DDR starting > at address 0

Re: [U-Boot] [PATCH v3 05/18] arm: dts: k3-am654-base-board: Enable wkup_i2c0 across all boot stages

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:15PM -0500, Andreas Dannenberg wrote: > To enable the use of an EEPROM-based board detection scheme we need to > be able to access the I2C bus associated with the EEPROMs across all > 3 stages of U-Boot: R5 SPL, A53 SPL, and A53 U-Boot (proper). So go > ahead and add/

Re: [U-Boot] [PATCH 2/3] configs: mt7629_rfb: use arm arch timer instead of mtk timer

2019-07-18 Thread Tom Rini
On Thu, Jul 11, 2019 at 02:26:25PM +0800, Weijie Gao wrote: > This patch changes mt7629_rfb to use ARM's generic arch timer instead of > MediaTek's soc timer. > > Signed-off-by: Weijie Gao Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH v3 10/18] configs: am65x_hs_evm_a53: Enable PCA953X-type GPIO driver

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:20PM -0500, Andreas Dannenberg wrote: > Enable GPIO driver for PCA953X-compatible I2C-based I/O expander > which includes support for the TCA9554/PCA9554-type expander found > on the AM654 EVM base board. > > Signed-off-by: Andreas Dannenberg > Reviewed-by: Lokesh V

Re: [U-Boot] [PATCH] blk: Invalidate block cache when switching hwpart

2019-07-18 Thread Tom Rini
On Thu, Jul 11, 2019 at 03:10:23PM +0800, Weijie Gao wrote: > Some storage devices have multiple hw partitions and both address from > zero, for example eMMC. > However currently block cache invalidation only applies to block > write/erase. > This can cause a problem that data of current hw partit

Re: [U-Boot] [PATCH v3 11/18] configs: am65x_evm_a53: Increase malloc pool before relocation

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:21PM -0500, Andreas Dannenberg wrote: > The malloc pool used before relocation is getting tight leading to > out of memory errors doing certain DM-related calls. Since we are > running the A53 SPL out of DDR let's just go ahead and bump its size > as used in U-Boot pr

Re: [U-Boot] [PATCH v2 03/12] spl: Make image loader infrastructure more universal

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 05:55:46PM -0500, Andreas Dannenberg wrote: > The current U-Boot SPL image loader infrastructure is very powerful, > able to initialize and load from a variety of boot media however it > is strongly geared towards loading specific types of images in a very > specific way. T

Re: [U-Boot] [PATCH v8 02/14] mmc: am654_sdhci: Remove quirks

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:32AM +0530, Faiz Abbas wrote: > The host controller works perfectly well without having to add any > quirks. Remove them. > > Signed-off-by: Faiz Abbas > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [PATCH v8 05/14] mmc: sdhci: Make sdhci_set_clock() non static

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:35AM +0530, Faiz Abbas wrote: > The am654_sdhci driver needs to switch the clock off > before disabling its phy dll and needs to re-enable > the clock before enabling the phy again. > > Therefore, make the sdhci_set_clock() function accessible > in the am654_sdhci dr

Re: [U-Boot] [PATCH v8 10/14] mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:40AM +0530, Faiz Abbas wrote: > The HOST_CONTROL2 register is a part of SDHC v3.00 and not just specific > to arasan/zynq controllers. Add the same to sdhci.h. > > Also create a common API to set UHS timings in HOST_CONTROL2. > > Signed-off-by: Faiz Abbas > Reviewe

Re: [U-Boot] [PATCH v3 01/18] i2c: omap24xx_i2c: Adapt driver to support K3 devices

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:11PM -0500, Andreas Dannenberg wrote: > From: Vignesh R > > K3 devices have I2C IP that is same as OMAP2+ family. Allow driver to be > compiled for ARCH_K3. > > Signed-off-by: Vignesh R > Signed-off-by: Andreas Dannenberg > Reviewed-by: Heiko Schocher > Reviewed

Re: [U-Boot] [PATCH v2 11/12] configs: am65x_hs_evm: Add Support for eMMC boot

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 05:55:54PM -0500, Andreas Dannenberg wrote: > Add configs to support RAW boot mode in eMMC. > > Signed-off-by: Andreas Dannenberg Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot

Re: [U-Boot] [PATCH] test/py: gpt: Use long options for sgdisk

2019-07-18 Thread Tom Rini
On Tue, Jul 02, 2019 at 09:20:32PM +0300, Sam Protsenko wrote: > sgdisk 0.8.10.2 from AOSP doesn't support short options, failing with > errors like this: > > sgdisk: invalid option -- 'U' > > Test fails due to that error. Let's use long options to make the test > work with any sgdisk versio

Re: [U-Boot] [PATCH v2 07/12] armV7R: K3: am654: Load SYSFW binary and config from boot media

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 05:55:50PM -0500, Andreas Dannenberg wrote: > Use the System Firmware (SYSFW) loader framework to load and start > the SYSFW as part of the AM654 early initialization sequence. While > at it also initialize the WKUP_UART0 pinmux as it is used by SYSFW > to print diagnostic

Re: [U-Boot] [PATCH 3/5] CVE-2019-13104: ext4: check for underflow in ext4fs_read_file

2019-07-18 Thread Tom Rini
On Mon, Jul 08, 2019 at 04:37:05PM -0700, Paul Emge wrote: > in ext4fs_read_file, it is possible for a broken/malicious file > system to cause a memcpy of a negative number of bytes, which > overflows all memory. This patch fixes the issue by checking for > a negative length. > > Signed-off-by: P

Re: [U-Boot] [PATCH v8 01/14] arm64: dts: k3: Sync sdhci0 node from kernel and change driver name

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:31AM +0530, Faiz Abbas wrote: > Sync the sdhci0 node from kernel. This changes the compatible that is > required to be there in the driver. Change the same for the SD card node > which is not yet supported in kernel. This also syncs the main_pmx0 node > as a side effe

Re: [U-Boot] [PATCH v3 12/18] configs: am65x_hs_evm_a53: Increase malloc pool before relocation

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:22PM -0500, Andreas Dannenberg wrote: > The malloc pool used before relocation is getting tight leading to > out of memory errors doing certain DM-related calls. Since we are > running the A53 SPL out of DDR let's just go ahead and bump its size > as used in U-Boot pr

Re: [U-Boot] [PATCH 3/3] arm: dts: MediaTek: remove tick-timer from mt7629.dtsi

2019-07-18 Thread Tom Rini
On Thu, Jul 11, 2019 at 02:26:26PM +0800, Weijie Gao wrote: > This patch removes tick-timer as all mt7629 boards should use arch timer. > > Signed-off-by: Weijie Gao Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PATCH v8 03/14] regmap: Add API regmap_init_mem_index()

2019-07-18 Thread Tom Rini
On Tue, Jun 11, 2019 at 12:43:33AM +0530, Faiz Abbas wrote: > In device nodes with more than one entry in the reg property, > it is sometimes useful to regmap only of the entries. Add an > API regmap_init_mem_index() to facilitate this. > > Signed-off-by: Faiz Abbas > Reviewed-by: Tom Rini App

Re: [U-Boot] [PATCH v2 2/2] arm: qemu: fix failure in flash initialization if booting from TF-A

2019-07-18 Thread Tom Rini
On Wed, Jul 03, 2019 at 10:44:40AM +0900, AKASHI Takahiro wrote: > If U-Boot is loaded and started from TF-A (you need to change > SYS_TEXT_BASE to 0x6000), it will hang up at flash initialization. > > If secure mode is off (default, or -machine virt,secure=off) at qemu, > it will provide dtb

Re: [U-Boot] [PATCH v2 10/12] configs: am65x_evm: Add Support for eMMC boot

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 05:55:53PM -0500, Andreas Dannenberg wrote: > From: Faiz Abbas > > Add configs to support RAW boot mode in eMMC. > > Signed-off-by: Faiz Abbas > Signed-off-by: Andreas Dannenberg Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PATCH v3 09/18] configs: am65x_evm_a53: Enable PCA953X-type GPIO driver

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:19PM -0500, Andreas Dannenberg wrote: > Enable GPIO driver for PCA953X-compatible I2C-based I/O expander > which includes support for the TCA9554/PCA9554-type expander found > on the AM654 EVM base board. > > Signed-off-by: Andreas Dannenberg > Reviewed-by: Lokesh V

Re: [U-Boot] [PATCH 1/5] CVE-2019-13103: disk: stop infinite recursion in DOS Partitions

2019-07-18 Thread Tom Rini
On Mon, Jul 08, 2019 at 04:37:03PM -0700, Paul Emge wrote: > part_get_info_extended and print_partition_extended can recurse infinitely > while parsing a self-referential filesystem or one with a silly number of > extended partitions. This patch adds a limit to the number of recursive > partitions

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

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 05:55:48PM -0500, Andreas Dannenberg wrote: > In order to be able to use more advanced driver functionality which often > relies on having BSS initialized during early boot prior to relocation > several things need to be in place: > > 1) Memory needs to be available for BS

Re: [U-Boot] [PATCH v3] cmd: mem: Add a command to fill the memory with random data

2019-07-18 Thread Tom Rini
On Tue, Jul 02, 2019 at 02:23:26PM +0200, Jean-Jacques Hiblot wrote: > This command fills the memory with data produced by rand(). > > Signed-off-by: Jean-Jacques Hiblot Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PATCH 1/2] tools: mkenvimage: Fix reading from slow pipe

2019-07-18 Thread Tom Rini
On Sun, Jun 30, 2019 at 02:45:00AM +0100, Andre Przywara wrote: > It is perfectly fine for the read(2) syscall to return with less than > the requested number of bytes read (short read, see the "RETURN VALUE" > section of the man page). This typically happens with slow input > (keyboard, network)

Re: [U-Boot] [PATCH 5/5] CVE-2019-13106: ext4: fix out-of-bounds memset

2019-07-18 Thread Tom Rini
On Mon, Jul 08, 2019 at 04:37:07PM -0700, Paul Emge wrote: > In ext4fs_read_file in ext4fs.c, a memset can overwrite the bounds of > the destination memory region. This patch adds a check to disallow > this. > > Signed-off-by: Paul Emge Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [PATCH v3 13/18] arm: K3: am654: Map common EEPROM data into SRAM scratch space

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 06:08:23PM -0500, Andreas Dannenberg wrote: > The board detection scheme employed on various TI EVMs makes use of > SRAM scratch space to share data read from an on-board EEPROM between > the different bootloading stages. Map the associated definition that's > used to locat

Re: [U-Boot] [PATCH v2 04/12] arm: K3: Introduce System Firmware loader framework

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 05:55:47PM -0500, Andreas Dannenberg wrote: > Introduce a framework that allows loading the System Firmware (SYSFW) > binary as well as the associated configuration data from an image tree > blob named "sysfw.itb" from an FS-based MMC boot media or from an MMC > RAW mode pa

Re: [U-Boot] [PATCH v2 09/12] configs: am65x_hs_evm_r5: All sysfw to be loaded via MMC

2019-07-18 Thread Tom Rini
On Tue, Jun 04, 2019 at 05:55:52PM -0500, Andreas Dannenberg wrote: > Enable all the relevant configs that enables support for loading > sysfw via MMC. > > Signed-off-by: Andreas Dannenberg > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP s

Re: [U-Boot] [PATCH 1/2] qemu-riscv: enable VIRTIO_PCI

2019-07-18 Thread Tom Rini
On Wed, Jul 03, 2019 at 03:50:44PM +0300, David Abdurachmanov wrote: > libvirt v.5.3.0 with QEMU 4.0.0 or above uses PCI automatically and > thus devices (network, storage, etc) are connected via PCI. > > Signed-off-by: David Abdurachmanov > Reviewed-by: Bin Meng Applied to u-boot/master, than

Re: [U-Boot] [PATCH] power-domain.h: Fix typo

2019-07-18 Thread Tom Rini
On Wed, Jul 10, 2019 at 10:03:13AM +0200, Anatolij Gustschin wrote: > %s/ot/to/ > > Signed-off-by: Anatolij Gustschin Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de ht

Re: [U-Boot] [PATCH 1/3] arm: dts: MediaTek: fix clock order for timer0 node of mt7629.dtsi

2019-07-18 Thread Tom Rini
On Thu, Jul 11, 2019 at 02:26:24PM +0800, Weijie Gao wrote: > The timer0 node has its two clocks written in reversed order. The timer0 > is used as the tick timer which causes a problem that the time a delay > function used is 4 times longer. > > This patch reverses these two clocks to solve this

Re: [U-Boot] [PATCH] common: Fix autocompletion with CONFIG_CMDLINE_PS_SUPPORT

2019-07-18 Thread Tom Rini
On Thu, Jun 27, 2019 at 12:17:27AM +0200, Marek Vasut wrote: > The autocompletion did not work if CONFIG_CMDLINE_PS_SUPPORT was enabled > because U-Boot was comparing the prompt string with CONFIG_SYS_PROMPT . > While this works if CONFIG_CMDLINE_PS_SUPPORT is disabled, this no longer > works if i

Re: [U-Boot] [PATCH] chromium: Update docs to clone vboot_reference directly

2019-07-18 Thread Tom Rini
On Wed, Jul 10, 2019 at 11:04:13AM -0600, Simon Glass wrote: > We don't need a full checkout of Chrome OS to build U-Boot with > Chromium OS verified boot. Update the instructions accordingly and fix a > typo which joins the output directory and defconfig. > > Signed-off-by: Simon Glass Applied

Re: [U-Boot] [PATCH 1/1] board: Arcturus: ucp1020: Removing obsoleted stuff

2019-07-18 Thread Tom Rini
On Thu, Jul 11, 2019 at 11:52:49AM -0400, Oleksandr Zhadan wrote: > Removed one of the defconfig(obsoleted) file > and unused CONFIG_MMC_SPI definition to avoid confusion > about if this board using non-DM stuff or not. > uCP1020 is completely DM free board, tested and runs well. > > Signed-off-b

Re: [U-Boot] [PATCH v7 2/2] env: mmc: add erase-function

2019-07-18 Thread Tom Rini
On Sat, Jun 29, 2019 at 11:36:20AM +0200, Frank Wunderlich wrote: > this adds erase environment for mmc storage > > squashed fixes: > - add CONFIG_CMD_ERASEENV > - env: erase redundant offset if defined > - changes mentioned by Simon > - fix whitespaces around errmsg > > Suggested-by: Simon

  1   2   3   >