[U-Boot] [Patch v3] armv8: fsl-layerscape: Set env_loc to ENVL_NOWHERE with CONFIG_ENV_IS_NOWHERE.

2019-04-23 Thread Udit Agarwal
ENVL_NOWHERE is dependent on CONFIG_ENV_IS_NOWHERE and not on CONFIG_CHAIN_OF_TRUST so return ENVL_NOWHERE when CONFIG_ENV_IS_NOWHERE is enabled Signed-off-by: Udit Agarwal --- Changes in V3: Correct checkpatch warnings. arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 11 ++- 1 file changed,

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

2019-04-23 Thread Peng Fan
Hi Lukasz, > -Original Message- > From: Lukasz Majewski [mailto:lu...@denx.de] > Sent: 2019年4月20日 6:18 > To: Peng Fan > Cc: Jagan Teki ; Stefano Babic > ; Fabio Estevam ; Simon Glass > ; Tom Rini ; Marek Vasut > ; Neil Armstrong > ; Philipp Tomsich > ; Maxime Ripard > ; Michael Trimarchi

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

2019-04-23 Thread Lukasz Majewski
On Tue, 23 Apr 2019 07:47:38 + Peng Fan wrote: > Hi Lukasz, > > > -Original Message- > > From: Lukasz Majewski [mailto:lu...@denx.de] > > Sent: 2019年4月20日 6:18 > > To: Peng Fan > > Cc: Jagan Teki ; Stefano Babic > > ; Fabio Estevam ; Simon Glass > > ; Tom Rini ; Marek Vasut > > ;

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

2019-04-23 Thread Peng Fan
> -Original Message- > From: Lukasz Majewski [mailto:lu...@denx.de] > Sent: 2019年4月23日 16:46 > To: Peng Fan > Cc: Jagan Teki ; Stefano Babic > ; Fabio Estevam ; Simon Glass > ; Tom Rini ; Marek Vasut > ; Neil Armstrong > ; Philipp Tomsich > ; Maxime Ripard > ; Michael Trimarchi > ;

Re: [U-Boot] [PATCH v4 0/4] Add Ethernet support for Poplar board

2019-04-23 Thread Shawn Guo
On Wed, Mar 27, 2019 at 07:00:09PM +, Joe Hershberger wrote: > On Tue, Mar 26, 2019 at 2:36 AM Shawn Guo wrote: > > > > Hi Joe, > > > > On Wed, Mar 20, 2019 at 03:32:37PM +0800, Shawn Guo wrote: > > > The series adds Ethernet support for Poplar board. It firstly creates > > > a reset driver

Re: [U-Boot] "optee" Kbuild seems to have weird dependencies

2019-04-23 Thread Jens Wiklander
Hi Robert, On Thu, Apr 18, 2019 at 10:19 PM Robert P. J. Day wrote: > > > going over the u-boot.cfg generated from zynq_zed_defconfig, and > noticed the following: > > #define CONFIG_OPTEE_TZDRAM_BASE 0x > #define CONFIG_OPTEE_TZDRAM_SIZE 0x000 > > i thought that was strange as

Re: [U-Boot] [PATCH v2 0/6] ARM: meson: Add support for G12A based U200 board

2019-04-23 Thread Neil Armstrong
On 10/04/2019 17:23, Neil Armstrong wrote: > This patchset adds basic support for the recent Amlogic G12A SoC family. > > This SoC family embeds 4xCortex A53 CPUs, and is very similar to > the AXG SoC Family with the multimedia features of previous families. > > This patchset adds : > - pinctrl

[U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20190423

2019-04-23 Thread Neil Armstrong
-04-09-master-imports-fs' (2019-04-10 08:18:18 -0400) are available in the Git repository at: git://git.denx.de/u-boot-amlogic.git tags/u-boot-amlogic-20190423 for you to fetch changes up to c6e4e8f99c1430e803dc2ef306935a93b46dad7c: board: amlogic-q200: fix Khadas VIM2 README (2019-04-23 11

Re: [U-Boot] [PATCH v2 3/3] mach-meson: g12a: add DWC2 peripheral mode support

2019-04-23 Thread Neil Armstrong
Hi Lukasz, On 19/04/2019 08:17, Lukasz Majewski wrote: > Hi Neil, > >> Adds support for Amlogic G12A USB Device mode. >> >> The DWC2 Controller behind the Glue can be connected to an OTG >> capable PHY. The Glue setups the PHY mode. >> >> This patch implements Device mode support by adding a >>

Re: [U-Boot] "optee" Kbuild seems to have weird dependencies

2019-04-23 Thread Bryan O'Donoghue
On 23/04/2019 10:22, Jens Wiklander wrote: Hi Robert, On Thu, Apr 18, 2019 at 10:19 PM Robert P. J. Day wrote: going over the u-boot.cfg generated from zynq_zed_defconfig, and noticed the following: #define CONFIG_OPTEE_TZDRAM_BASE 0x #define CONFIG_OPTEE_TZDRAM_SIZE

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

2019-04-23 Thread Lukasz Majewski
Hi Peng, > > -Original Message- > > From: Lukasz Majewski [mailto:lu...@denx.de] > > Sent: 2019年4月23日 16:46 > > To: Peng Fan > > Cc: Jagan Teki ; Stefano Babic > > ; Fabio Estevam ; Simon Glass > > ; Tom Rini ; Marek Vasut > > ; Neil Armstrong > > ; Philipp Tomsich > > ; Maxime Ripard >

Re: [U-Boot] [PATCH v2] regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset

2019-04-23 Thread Neil Armstrong
On 21/04/2019 21:29, Simon Glass wrote: > On Wed, 17 Apr 2019 at 11:17, Neil Armstrong wrote: >> >> When fixing sandbox test for regmap_read_poll_timeout(), the >> sandbox_timer_add_offset was introduced but only defined in sandbox code >> thus generating warnings when used out of sandbox : >> >>

Re: [U-Boot] [PATCH] board: amlogic-q200: fix Khadas VIM2 README

2019-04-23 Thread Neil Armstrong
On 10/04/2019 16:47, Neil Armstrong wrote: > The vendor U-boot branch and defconfig was wrong for the > Khadas VIM2, fix this. > > Signed-off-by: Neil Armstrong > --- > board/amlogic/q200/README.khadas-vim2 | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [U-Boot] [PATCH] board: amlogic: enable PHY_REALTEK for selected boards

2019-04-23 Thread Neil Armstrong
On 10/04/2019 16:46, Neil Armstrong wrote: > When using the generic PHY on boards using an RGMII Realtek PHY, > gigabit speed is not always reliable. > > This patch enables the Realtek PHY driver for such boards. > > Signed-off-by: Neil Armstrong > --- > configs/khadas-vim2_defconfig | 1 + >

Re: [U-Boot] [PATCH] phycore-pcl060: U-boot support for Phytec phyCORE PCL060

2019-04-23 Thread Wadim Egorov
Hi, On 19.04.19 17:20, Marek Vasut wrote: > On 4/19/19 5:06 PM, Parthiban Nallathambi wrote: >> Hello Marek, >> >> On 4/19/19 3:35 PM, Marek Vasut wrote: >>> On 4/19/19 3:18 PM, Parthiban Nallathambi wrote: >>> >>> Hi, >>> >>> [...] >>> >> diff --git a/arch/arm/mach-omap2/Kconfig

[U-Boot] [PATCH 0/4 RFC] imx: Implement job-ring context switching

2019-04-23 Thread Bryan O'Donoghue
This series implements an RFC to save/restore CAAM settings for the job-rings prior to performing DEK blob verification. This follows on from a converstion with Breno and Fabio where we discussed how i.MX HAB implementations for the i.MX6 and i.MX7 will verify job-ring ownership when doing DEK

[U-Boot] [PATCH 2/4] crypto/fsl: Use __sec_set_jr_context_normal

2019-04-23 Thread Bryan O'Donoghue
Use __sec_set_jr_context_normal() to set job-ring ownership rather than the current in-line array walk. Signed-off-by: Bryan O'Donoghue --- drivers/crypto/fsl/jr.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c index

[U-Boot] [PATCH 4/4] crypto/fsl: Wrapper run_descriptor_jr_idx() to set jr permissions

2019-04-23 Thread Bryan O'Donoghue
This patch sets the relevant set of job-rings to secure-world prior to calling into run_descriptor_jr_idx(). As observed by Breno Matheus Lima the DEK blob verification layer in NXP BootROMs performs a check on job-ring ownership and requires the permission to be set to secure world. Once

[U-Boot] [PATCH 3/4] powerpc: mpc85xx: crypto: Implement mpc85xxx specific job-ring fix

2019-04-23 Thread Bryan O'Donoghue
The mpc85xxx has more than one sec block. As a result we need to have an architecture specific version of: void sec_set_jr_context_secure(void); void sec_set_jr_context_normal(void); This patch implements those functions. Signed-off-by: Bryan O'Donoghue --- arch/powerpc/cpu/mpc85xx/cpu_init.c

[U-Boot] [PATCH 1/4] crypto/fsl: Introduce API to save/restore job-ring context

2019-04-23 Thread Bryan O'Donoghue
We need to handle the case where DEK blobs are passed to the BootROM. In this case, unlike in HAB authentication the BootROM checks job-ring ownership set to secure world. One possible solution is to set the job-ring ownership to the expected state for DEK blobs and then restore to whatever the

Re: [U-Boot] EXT: RE: [PATCH] Convert CONFIG_SUPPORT_EMMC_BOOT to Kconfig

2019-04-23 Thread Ray, Ian (GE Healthcare)
> On 19 Apr 2019, at 12.11, Patrick DELAUNAY wrote: > > Hi Alex, > >> >> This converts the following to Kconfig: >> CONFIG_SUPPORT_EMMC_BOOT >> >> Signed-off-by: Alex Kiernan >> --- >> Green travis build: >> >> https://travis-ci.org/akiernan/u-boot/builds/521906850 >> >> Testing

Re: [U-Boot] [PATCH] Convert CONFIG_SUPPORT_EMMC_BOOT to Kconfig

2019-04-23 Thread Ramon Fried
On Fri, Apr 19, 2019 at 7:39 AM Alex Kiernan wrote: > This converts the following to Kconfig: >CONFIG_SUPPORT_EMMC_BOOT > > Signed-off-by: Alex Kiernan > --- > Green travis build: > > https://travis-ci.org/akiernan/u-boot/builds/521906850 > > Acked-by: Ramon Fried > Testing affected

[U-Boot] [PATCH 1/5] spl: dm: disable SPI DM flash for non-DM SPL

2019-04-23 Thread Chuanhua Han
From: Pan Jiafei This patch solves the problem that spiboot cannot be performed in non-DM SPL. Signed-off-by: Pan Jiafei Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=99439 include/config_uncmd_spl.h | 1 + 1 file changed, 1

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

2019-04-23 Thread Chuanhua Han
Modify the Freescale ESPI driver to support the driver model. Also resolved the following problems: = WARNING == This board does not use CONFIG_DM_SPI. Please update the board before v2019.04 for no dm conversion and v2019.07 for partially dm converted

[U-Boot] [PATCH 5/5] configs: enable espi device module in T2080QDS

2019-04-23 Thread Chuanhua Han
This patch is to enable espi DM for T2080QDS in uboot Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=99439 configs/T2080QDS_NAND_defconfig | 2 ++ configs/T2080QDS_SDCARD_defconfig | 2 ++

[U-Boot] [PATCH 3/5] powerpc: dts: t2080: add espi controller node support

2019-04-23 Thread Chuanhua Han
Add espi controller node to support t2080. Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=99439 arch/powerpc/dts/t2080.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/powerpc/dts/t2080.dtsi

[U-Boot] [PATCH 4/5] powerpc: dts: t2080qds: add espi slave nodes support

2019-04-23 Thread Chuanhua Han
Add espi slave nodes to support t2080qds. Signed-off-by: Chuanhua Han --- depends on: - https://patchwork.ozlabs.org/project/uboot/list/?series=99439 arch/powerpc/dts/t2080qds.dts | 33 + 1 file changed, 33 insertions(+) diff --git

Re: [U-Boot] [PATCH] Zynq: delete long-dead CONFIG_USB_CABLE_CHECK

2019-04-23 Thread Michal Simek
On 18. 04. 19 16:50, Robert P. J. Day wrote: > > This Kbuild option disappeared way back in 2014: > > commit 75504e9592745021006cb8905b5ff5a51d9d1cb3 > Author: Mateusz Zalega > Date: Wed Apr 30 13:07:48 2014 +0200 > > ... snip ... > > CONFIG_USB_CABLE_CHECK was removed. > >

Re: [U-Boot] [ANN] U-Boot v2019.04 released

2019-04-23 Thread Alfred JANUS
--- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] listing apparently "bad" Kconfig options in Makefiles

2019-04-23 Thread Michal Simek
Hi, On 13. 04. 19 13:01, Robert P. J. Day wrote: > > as a final(?) example of one of my originally Linux kernel-related > Kbuild cleanup scripts, i have one that identifies Makefile entries > that refer to Kbuild options that are not defined in any Kconfig file > (IIRC, they might be defined

Re: [U-Boot] relationship between "ARM_DCC" and "DEBUG_UART_ARM_DCC"?

2019-04-23 Thread Michal Simek
On 19. 04. 19 13:27, Robert P. J. Day wrote: > > just noticed the oddness regarding those two Kbuild symbols: > > $ git grep ARM_DCC > arch/x86/include/asm/acpi_table.h:#define ACPI_DBG2_ARM_DCC 0x000F > configs/zynq_cse_qspi_defconfig:CONFIG_DEBUG_UART_ARM_DCC=y >

Re: [U-Boot] [OT] trying to boot zedboard just to u-boot, having no luck

2019-04-23 Thread Michal Simek
On 20. 04. 19 12:44, Robert P. J. Day wrote: > > i've asked on the meta-xilinx mailing list, and rummaged around the > net, and have failed to do something that should be straightforward -- > i want to simply boot an avnet zedboard to a recent u-boot and stop > there; i have no need to go any

[U-Boot] [PATCH] board: toradex: drop support.arm maintainer email

2019-04-23 Thread Marcel Ziswiler
From: Marcel Ziswiler Drop Toradex ARM Support from maintainer email list as this just clogs our support ticketing system. Signed-off-by: Marcel Ziswiler --- board/toradex/colibri-imx6ull/MAINTAINERS | 1 - board/toradex/colibri_imx7/MAINTAINERS| 1 - 2 files changed, 2 deletions(-)

Re: [U-Boot] [OT] trying to boot zedboard just to u-boot, having no luck

2019-04-23 Thread Robert P. J. Day
On Tue, 23 Apr 2019, Michal Simek wrote: > On 20. 04. 19 12:44, Robert P. J. Day wrote: > > > > i've asked on the meta-xilinx mailing list, and rummaged around the > > net, and have failed to do something that should be straightforward -- > > i want to simply boot an avnet zedboard to a recent

Re: [U-Boot] relationship between "ARM_DCC" and "DEBUG_UART_ARM_DCC"?

2019-04-23 Thread Robert P. J. Day
On Tue, 23 Apr 2019, Michal Simek wrote: > On 19. 04. 19 13:27, Robert P. J. Day wrote: > > > > just noticed the oddness regarding those two Kbuild symbols: > > > > $ git grep ARM_DCC > > arch/x86/include/asm/acpi_table.h:#define ACPI_DBG2_ARM_DCC 0x000F > >

Re: [U-Boot] [PATCH] phycore-pcl060: U-boot support for Phytec phyCORE PCL060

2019-04-23 Thread Marek Vasut
On 4/23/19 11:33 AM, Wadim Egorov wrote: > Hi, > > On 19.04.19 17:20, Marek Vasut wrote: >> On 4/19/19 5:06 PM, Parthiban Nallathambi wrote: >>> Hello Marek, >>> >>> On 4/19/19 3:35 PM, Marek Vasut wrote: On 4/19/19 3:18 PM, Parthiban Nallathambi wrote: Hi, [...]

Re: [U-Boot] relationship between "ARM_DCC" and "DEBUG_UART_ARM_DCC"?

2019-04-23 Thread Michal Simek
út 23. 4. 2019 v 13:14 odesílatel Robert P. J. Day napsal: > On Tue, 23 Apr 2019, Michal Simek wrote: > > > On 19. 04. 19 13:27, Robert P. J. Day wrote: > > > > > > just noticed the oddness regarding those two Kbuild symbols: > > > > > > $ git grep ARM_DCC > > >

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

2019-04-23 Thread Marek Vasut
On 4/23/19 7:40 AM, Simon Goldschmidt wrote: > On Mon, Apr 22, 2019 at 9:08 PM Marek Vasut wrote: >> >> On 4/22/19 8:31 PM, Simon Goldschmidt wrote: >>> The following changes since commit >>> 6c5f8dd540d7a8eff244d4c27a09451ca12c8d20: >>> >>> Merge branch 'master' of git://git.denx.de/u-boot-usb

Re: [U-Boot] [PATCH 1/4] riscv: hart_lottery and available harts feature can be seletable

2019-04-23 Thread Bin Meng
On Tue, Apr 23, 2019 at 8:14 PM Bin Meng wrote: > > Hi Rick, > > On Tue, Apr 23, 2019 at 1:47 PM Andes wrote: > > > > From: Rick Chen > > > > typo in the commit title: seletable -> selectable > > > In smp flow this two features only can be enabled when U-Boot > > this->these > > > boot from

Re: [U-Boot] Booting MX6 via Serial Download after DM conversion

2019-04-23 Thread Fabio Estevam
Hi Peng, On Mon, Apr 22, 2019 at 11:00 PM Peng Fan wrote: > Honestly I am not familiar with imx_usb, we use mfgtool previously and not > uuu tool. > Would you share where to download imx_usb and any doc, > Then we will debug this issue. You can get imx_usb_loader tool from

Re: [U-Boot] [PATCH] riscv:Add Microchip MPFS Icicle Board support

2019-04-23 Thread Bin Meng
Hi Padmarao, On Thu, Apr 18, 2019 at 2:21 AM Padmarao Begari wrote: > > This patch adds Microchip MPFS Icicle Board support. nits: Board->board. Please fix the commit message too. > For now, NS16550 serial driver is only enabled. > The Microchip MPFS Icicle defconfig by default builds > U-Boot

[U-Boot] should all include/configs/*.h headers be included via SYS_CONFIG_NAME?

2019-04-23 Thread Robert P. J. Day
pretty sure i know the answer to this, but i'm going to ask it anyway ... should all header files under include/configs/ be included in a build either directly or indirectly via the value in CONFIG_SYS_CONFIG_NAME? i'm aware of that Kbuild setting and what it's used for: config

Re: [U-Boot] [PULL] u-boot-stm32 for v2019.07-rc1​ (round 2)

2019-04-23 Thread Patrice CHOTARD
Hi Tom On 4/22/19 12:59 AM, Tom Rini wrote: > On Fri, Apr 19, 2019 at 04:03:24PM +, Patrice CHOTARD wrote: > >> Hi Tom >> >> Please find the pull request for STM32 round 2 >> >> The following changes since commit 1f4ae66eaab29bfb5d1eb44996f7826c9cd01ed1: >> >> Merge tag 'arc-for-2019.07'

[U-Boot] [RESEND] [PULL] u-boot-stm32 for v2019.07-rc1​ (round 2)

2019-04-23 Thread Patrice CHOTARD
in the git repository at: https://github.com/pchotard/u-boot.git tags/u-boot-stm32-mcu-20190423 for you to fetch changes up to c406a474311c1ee3c4303a7e85db4a8e45966e31: mmc: stm32_sdmmc2: Fix r1b timeout issue (2019-04-23 15:42:28 +0200

Re: [U-Boot] [U-Boot, 1/4] pinctrl: exit pinconfig_post_bind if there are no subnodes

2019-04-23 Thread Philipp Tomsich
> This fixes RK3288 SPL hanging or hitting this assert: > drivers/core/ofnode.c:183: ofnode_first_subnode: Assertion > `ofnode_valid(node)' failed. > > Signed-off-by: Urja Rannikko > Reviewed-by: Simon Glass > Reviewed-by: Philipp Tomsich > --- > drivers/pinctrl/pinctrl-uclass.c | 3 +++ > 1

Re: [U-Boot] [U-Boot, 2/4] rk3288-board: remove pinctrl call for debug uart

2019-04-23 Thread Philipp Tomsich
> This failed and caused a boot failure on c201, and afaik > the pins should be setup by the new pinctrl driver. > > Signed-off-by: Urja Rannikko > Reviewed-by: Simon Glass > Reviewed-by: Philipp Tomsich > --- > arch/arm/mach-rockchip/rk3288-board.c | 12 > 1 file changed, 12

[U-Boot] [PATCH v2] pinctrl: imx: Define imx6_pinctrl_soc_info in .data section

2019-04-23 Thread Lukasz Majewski
This commit is necessary to be able to re-use the pinctrl code in early SPL to properly configure pins. The problem is that those "static" structures (without explicit initialization) are placed in the SDRAM area, which corresponds to u-boot proper (not even SPL). Hence, when one wants to

Re: [U-Boot] [PATCH 3/4] riscv: prior_stage_fdt_address only be used when OF_PRIOR_STAGE is enable

2019-04-23 Thread Bin Meng
Hi Rick, On Tue, Apr 23, 2019 at 1:47 PM Andes wrote: > > From: Rick Chen > commit title should read: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE is enabled > This patch will fix prior_stage_fdt_address write failure problem, when > AE350 was booting from flash. > > When

Re: [U-Boot] [PATCH 2/4] riscv: configs: Support AE350 SMP boot from flash flow

2019-04-23 Thread Bin Meng
Hi Rick, On Tue, Apr 23, 2019 at 1:47 PM Andes wrote: > > From: Rick Chen nits in the commit title: boot->booting > > Add two defconfig to support AE350 SMP boot from flash boot->bootings > by disable CONFIG_HART_LOTTERY and CONFIG_AVAILABLE_HARTS. disable->disabling > > Signed-off-by:

Re: [U-Boot] [PATCH 4/4] riscv: configs: AE350 will use OF_PRIOR_STAGE when boot from ram

2019-04-23 Thread Bin Meng
Hi Rick, On Tue, Apr 23, 2019 at 1:47 PM Andes wrote: > > From: Rick Chen > nits in the commit title: boot->booting > When AE350 was booting from ram, use OF_PRIOR_STAGE instead > of OF_PRIOR_STAGE. This should be CONFIG_OF_BOARD > > Signed-off-by: Rick Chen > Cc: Greentime Hu > --- >

Re: [U-Boot] [U-Boot, 1/8] rockchip: spi: add debug message for delay in CS toggle

2019-04-23 Thread Philipp Tomsich
> In analysing delays introduced for large SPI reads, the absence of any > indication when a delay was inserted (to ensure the CS toggling is > observed by devices) became apparent. > > Add an additional debug-only debug message to record the insertion and > duration of any delay (note that the

Re: [U-Boot] [U-Boot, 4/8] rockchip: spi: consistently use false/true with rkspi_enable_chip

2019-04-23 Thread Philipp Tomsich
> While rkspi_enable_chip is called with true/false everywhere else in > the file, one call site uses '0' to denot 'false'. > This change this one parameter to 'false' and effects consistency. > > Signed-off-by: Philipp Tomsich > --- > > drivers/spi/rk_spi.c | 2 +- > 1 file changed, 1

Re: [U-Boot] rockchip: rk3399-puma: support Gigadevice SPI-NOR flash

2019-04-23 Thread Philipp Tomsich
> Over the last quarter, a part of our production has used NOR flash > from Gigadevice in addition to the Winbond parts that we typically > source. This requires the SPI_FLASH_GIGADEVICE config to be set. > > Enable SPI_FLASH_GIGADEVICE in the board's default defconfig. > > Signed-off-by:

Re: [U-Boot] [PATCH 1/4] riscv: hart_lottery and available harts feature can be seletable

2019-04-23 Thread Bin Meng
Hi Rick, On Tue, Apr 23, 2019 at 1:47 PM Andes wrote: > > From: Rick Chen > typo in the commit title: seletable -> selectable > In smp flow this two features only can be enabled when U-Boot this->these > boot from ram. It shall be disabled when U-Boot boot from flash. boot->boots > > Add

Re: [U-Boot] [U-Boot, 3/8] rockchip: spi: fix off-by-one in chunk size computation

2019-04-23 Thread Philipp Tomsich
> The maximum transfer length (in a single transaction) for the Rockchip > SPI controller is 64Kframes (i.e. 0x1 frames) of 8bit or 16bit > frames and is encoded as (num_frames - 1) in CTRLR1. The existing > code subtracted the "minus 1" twice for a maximum transfer length of > 0x (64K -

Re: [U-Boot] [U-Boot, 2/8] rockchip: spi: remove unused code and fields in priv

2019-04-23 Thread Philipp Tomsich
> Even though the priv-structure and the claim-bus function contain > logic for 16bit frames and for unidirectional transfer modes, neither > of these is used anywhere in the driver. > > This removes the unused (as in "has no effect") logic and fields. > > Signed-off-by: Philipp Tomsich > --- >

Re: [U-Boot] [U-Boot,v2] rockchip: arm: remove no use macro

2019-04-23 Thread Philipp Tomsich
> TIMER7_BASE is no used by source code now, remove it. > > Signed-off-by: Kever Yang > Reviewed-by: Philipp Tomsich > --- > > arch/arm/include/asm/arch-rockchip/hardware.h | 2 -- > 1 file changed, 2 deletions(-) > Applied to u-boot-rockchip, thanks!

Re: [U-Boot] [U-Boot, 5/8] rockchip: spi: only wait for completion, if transmitting

2019-04-23 Thread Philipp Tomsich
> The logic in the main transmit loop took a bit of reading the TRM to > fully understand (due to silent assumptions based in internal logic): > the "wait until idle" at the end of each iteration through the loop is > required for the transmit-path as each clearing of the ENA register > (to update

Re: [U-Boot] [U-Boot, 8/8] rockchip: spi: make optimised receive-handler unaligned-safe

2019-04-23 Thread Philipp Tomsich
> To support unaligned output buffers (i.e. 'in' in the terminology of > the SPI framework), this change splits each 16bit FIFO element after > reading and writes them to memory in two 8bit transactions. With this > change, we can now always use the optimised mode for receive-only > transcations

Re: [U-Boot] [U-Boot, 7/8] rockchip: spi: add driver-data and a 'rxonly_manages_fifo' flag

2019-04-23 Thread Philipp Tomsich
> The SPI controller's documentation (I only had access to the RK3399, > RK3368 and PX30 TRMs) specifies that, when operating in master-mode, > the controller will stop the SCLK to avoid RXFIFO overruns and TXFIFO > underruns. Looks like my worries that we'd need to support DMA-330 > (aka PL330)

Re: [U-Boot] [U-Boot, 6/8] rockchip: spi: add optimised receive-only implementation

2019-04-23 Thread Philipp Tomsich
> For the RK3399-Q7 we recommend storing SPL and u-boot.itb in the > on-module 32MBit (and sometimes even larger, if requested as part of a > configure-to-order configuration) SPI-NOR flash that is clocked for a > bitrate of 49.5MBit/s and connected in a single-IO configuration (the > RK3399 only

[U-Boot] Pull request for UEFI sub-system for v2019.07-rc1 (3)

2019-04-23 Thread Heinrich Schuchardt
Cc: U-Boot Mailing List The following changes since commit 6c5f8dd540d7a8eff244d4c27a09451ca12c8d20: Merge branch 'master' of git://git.denx.de/u-boot-usb (2019-04-21 19:00:04 -0400) are available in the Git repository at: git://git.denx.de/u-boot-efi.git tags/efi-2019-07-rc1-3 for you

[U-Boot] mdio error on ar9344

2019-04-23 Thread muaddib
Hi, I am using device based on Atheros AR9344. When U-Boot initialize net device I get error mdio_register: non unique device name 'gmac0' dm tree command shows that eth_ag7xxx is not probed. ag7xxx_eth_probe -> ag7xxx_mac_probe -> ag933x_phy_setup -> ag933x_phy_setup_reset_set ->

[U-Boot] [PATCH] ARM: socfpga: Remove socfpga_sdram_apply_static_cfg()

2019-04-23 Thread Marek Vasut
The usage of socfpga_sdram_apply_static_cfg() seems rather dubious and is confirmed to lead to a rare system hang when enabling bridges. This patch removes the socfpga_sdram_apply_static_cfg() altogether, because it's use seems unjustified and problematic. The socfpga_sdram_apply_static_cfg()

[U-Boot] [PATCH v4 4/4] arm: socfpga: clean up board config files

2019-04-23 Thread Simon Goldschmidt
Remove outdated defines (not used any more, outdated due to DM conversion) from various socfpga files in include/config. Signed-off-by: Simon Goldschmidt Acked-by: Marek Vasut --- Changes in v4: None Changes in v3: None Changes in v2: - added (this) patch with further cleanups to the socfpga

[U-Boot] [PATCH v4 3/4] arm: socfpga: remove CONFIG_SYS_BOOTMAPSZ

2019-04-23 Thread Simon Goldschmidt
socfpga_common.h defines CONFIG_SYS_BOOTMAPSZ to 64 MiB. Since having this define overrides the 'bootm_size' env variable for the whole socfpga platform, let's remove this define from socfpga_common.h and instead rely on the 'bootm_size' env variable (which is initialized to 160 MiB in the same

[U-Boot] [PATCH v4 2/4] arm: socfpga: clean up socfpga_common.h

2019-04-23 Thread Simon Goldschmidt
Remove outdated macros and comments (not used any more, outdated due to DM conversion) from socfpga_common.h. Signed-off-by: Simon Goldschmidt --- Changes in v4: None Changes in v3: - changed commit message: s/defines/macros and comments/ Changes in v2: - remove even more outdated things

Re: [U-Boot] EFIBootGuard for CIP and SecureBoot

2019-04-23 Thread daniel.sangorrin
Hello Francois, Jan, Christian, and all Sorry for the late reply, I was waiting for the administrator of the Boot Architecture mailing list to accept my subscription request, but it seems it will take a bit more time. I will send this reply and hope it will not be blocked. I have also added

Re: [U-Boot] [PATCH 2/4] riscv: configs: Support AE350 SMP boot from flash flow

2019-04-23 Thread Rick Chen
Hi Bin Bin Meng 於 2019年4月23日 週二 下午8:14寫道: > > Hi Rick, > > On Tue, Apr 23, 2019 at 1:47 PM Andes wrote: > > > > From: Rick Chen > > nits in the commit title: boot->booting OK > > > > > Add two defconfig to support AE350 SMP boot from flash > > boot->bootings OK > > > by disable

Re: [U-Boot] [PATCH 4/4] riscv: configs: AE350 will use OF_PRIOR_STAGE when boot from ram

2019-04-23 Thread Rick Chen
Hi Bin Bin Meng 於 2019年4月23日 週二 下午8:14寫道: > > Hi Rick, > > On Tue, Apr 23, 2019 at 1:47 PM Andes wrote: > > > > From: Rick Chen > > > > nits in the commit title: boot->booting OK > > > When AE350 was booting from ram, use OF_PRIOR_STAGE instead > > of OF_PRIOR_STAGE. > > This should be

Re: [U-Boot] [PATCH 1/4] riscv: hart_lottery and available harts feature can be seletable

2019-04-23 Thread Rick Chen
Hi Bin Bin Meng 於 2019年4月23日 週二 下午8:19寫道: > > On Tue, Apr 23, 2019 at 8:14 PM Bin Meng wrote: > > > > Hi Rick, > > > > On Tue, Apr 23, 2019 at 1:47 PM Andes wrote: > > > > > > From: Rick Chen > > > > > > > typo in the commit title: seletable -> selectable OK > > > > > In smp flow this two

Re: [U-Boot] [PATCH v4 2/2] dlmalloc: be compatible to tiny printf

2019-04-23 Thread Simon Glass
On Mon, 1 Apr 2019 at 14:01, Simon Goldschmidt wrote: > > Convert debug output from '%#lx' to '0x%lx' to be compatible with tiny > printf used in SPL. > > Signed-off-by: Simon Goldschmidt > --- > > Changes in v4: > - dumped clearing BSS before SPL board_init_f, only real bugfixes remain > >

[U-Boot] [PATCH v3 5/9] pico-imx7d: Reserve region of memory to OPTEE

2019-04-23 Thread Jun Nie
Subtracts CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size so that the OPTEE memory is not override during u-boot relocation. Note the OPTEE boot process will itself subtract the DRAM region it lives in from the memory map passed to Linux. Signed-off-by: Jun Nie ---

[U-Boot] [PATCH 2/3] sound: tegra: Add the binding file for tegra-audio

2019-04-23 Thread Simon Glass
This file was missed when adding the sound driver to U-Boot. Bring it in from Linux 5.0. Signed-off-by: Simon Glass --- .../sound/nvidia,tegra-audio-max98090.txt | 53 +++ 1 file changed, 53 insertions(+) create mode 100644

[U-Boot] [PATCH v3 0/9] pico-imx7d: Add support for BL33 case

2019-04-23 Thread Jun Nie
Add configuration to boot U-boot as BL33 case. The boot flow is ATF -> OPTEE -> U-boot. Changes vs V2: - Revise fix to UART clock ID. - Add documentation of build and test for BL33 usage case. - Add device tree to store public key for FIT image verfication usage. - Add revert patch to LCD

[U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d

2019-04-23 Thread Jun Nie
Copy device tree files from Linux directly. Signed-off-by: Jun Nie --- arch/arm/dts/Makefile | 1 + arch/arm/dts/imx7d-pico-pi.dts | 93 +++ arch/arm/dts/imx7d-pico.dtsi | 585 + 3 files changed, 679 insertions(+) create mode 100644

[U-Boot] [PATCH v3 2/9] mx7_common: Share configs to skip low level init

2019-04-23 Thread Jun Nie
Share configs in mx7 to skip low level init if we are in the case where OPTEE is loaded already (maybe by ARM Trusted Firmware) and that most of the low level initialization is already done and that we may/should skip it doing them here. Fix the definition detection with size detection to decide

Re: [U-Boot] [PATCH 1/2] disk: efi: unify code for finding a valid gpt

2019-04-23 Thread Simon Glass
On Wed, 3 Apr 2019 at 06:25, Urja Rannikko wrote: > > There were 3 copies of the same sequence, make it into a function. > > Signed-off-by: Urja Rannikko > --- > disk/part_efi.c | 73 +++-- > 1 file changed, 34 insertions(+), 39 deletions(-) >

[U-Boot] [PATCH 1/3] sound: snow: Add the binding file for snow

2019-04-23 Thread Simon Glass
This file was missed when adding the sound driver to U-Boot. Bring it in from Linux 5.0. Signed-off-by: Simon Glass --- doc/device-tree-bindings/sound/snow.txt | 31 + 1 file changed, 31 insertions(+) create mode 100644 doc/device-tree-bindings/sound/snow.txt diff

[U-Boot] [PATCH v3 3/9] imx: mx7: Add empty arch_cpu_init if skipped

2019-04-23 Thread Jun Nie
Add empty arch_cpu_init if low level init is skipped. So that it does not break spl compile though spl is not needed in the skipped case actually. Signed-off-by: Jun Nie --- arch/arm/mach-imx/mx7/soc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-imx/mx7/soc.c

[U-Boot] [PATCH 3/3] sound: Add codec enable to the sound bindings

2019-04-23 Thread Simon Glass
For U-Boot we allow a GPIO to be specified to enable the codec. Add this to the relevant binding files. Signed-off-by: Simon Glass --- doc/device-tree-bindings/sound/intel-hda.txt | 1 + doc/device-tree-bindings/sound/nvidia,tegra-audio-max98090.txt | 1 +

Re: [U-Boot] [PATCH v2 02/10] pinctrl: rockchip: Remove redundant spaces

2019-04-23 Thread Simon Glass
On Wed, 3 Apr 2019 at 21:52, David Wu wrote: > > Some files have the redundant spaces, remove them. > > Signed-off-by: David Wu > --- > > drivers/pinctrl/rockchip/pinctrl-rk3036.c | 12 ++-- > drivers/pinctrl/rockchip/pinctrl-rk3188.c | 12 ++-- >

[U-Boot] [PATCH v3 1/9] Revert "pico-imx7d: Add LCD support"

2019-04-23 Thread Jun Nie
This reverts commit 9e3c0174da842dd88f5feaffbf843ba332233897. --- board/technexion/pico-imx7d/pico-imx7d.c | 55 configs/pico-hobbit-imx7d_defconfig | 1 - configs/pico-imx7d_defconfig | 1 - configs/pico-pi-imx7d_defconfig | 1 -

[U-Boot] [PATCH v3 1/2] eeprom: fix DM_I2C support without CONFIG_SYS_I2C_EEPROM_BUS

2019-04-23 Thread Simon Goldschmidt
The current device model enabled eeprom code only works if CONFIG_SYS_I2C_EEPROM_BUS is set. This patch makes it work without that define so that the bus number passed to 'eeprom_init' is used. Signed-off-by: Simon Goldschmidt Reviewed-by: Heiko Schocher --- Changes in v3: - use eeprom_init()

Re: [U-Boot] [PATCH] RISCV: image: Add booti support.

2019-04-23 Thread Marek Vasut
On 4/24/19 1:36 AM, Atish Patra wrote: > This patch adds booti support for RISC-V Linux kernel. The existing > bootm method will also continue to work as it is. > > It depends on the following kernel patch which adds the header to the > flat Image. > >

Re: [U-Boot] [PATCH 3/4] riscv: prior_stage_fdt_address only be used when OF_PRIOR_STAGE is enable

2019-04-23 Thread Rick Chen
Hi Bin Bin Meng 於 2019年4月23日 週二 下午8:14寫道: > > Hi Rick, > > On Tue, Apr 23, 2019 at 1:47 PM Andes wrote: > > > > From: Rick Chen > > > > commit title should read: prior_stage_fdt_address should only be used > when OF_PRIOR_STAGE is enabled OK > > > This patch will fix prior_stage_fdt_address

Re: [U-Boot] [PATCH v1 1/2] regulator: bd71837: copy the bd71837 pmic driver from NXP imx u-boot

2019-04-23 Thread Simon Glass
Hi Matti, On Mon, 8 Apr 2019 at 04:28, Matti Vaittinen wrote: > > https://source.codeaurora.org/external/imx/uboot-imx > > cherry picked, styled and merged commits: > - MLK-18387 pmic: Add pmic driver for BD71837: e9a3bec2e95a > - MLK-18590 pmic: bd71837: Change to use new fdt API: acdc5c297a96

Re: [U-Boot] [PATCH] mmc: Move tegra loopback disable option to be under tegra

2019-04-23 Thread Simon Glass
On Mon, 1 Apr 2019 at 17:05, Trent Piepho wrote: > > This is a configuration option specific to the tegra controller. > > Doing it this way makes it show up directly under the tegra controller > option, indented one level, as "Disable external clock loopback". > > The way it is now, it shows up

Re: [U-Boot] [PATCH v4 1/2] dlmalloc: fix malloc range at end of ram

2019-04-23 Thread Simon Glass
On Mon, 1 Apr 2019 at 14:01, Simon Goldschmidt wrote: > > If the malloc range passed to mem_malloc_init() is at the end of address > range and 'start + size' overflows to 0, following allocations fail as > mem_malloc_end is zero (which looks like uninitialized). > > Fix this by subtracting 1 of

[U-Boot] [PATCH v3 4/9] pico-imx7d: Correct uart clock root

2019-04-23 Thread Jun Nie
Correct uart clock root ID. Incorrect ID may result the clock is gated because rate value 0 is returned in imx_get_uartclk() Signed-off-by: Jun Nie --- arch/arm/include/asm/arch-mx7/clock.h | 18 ++ arch/arm/mach-imx/Kconfig | 7 +++

[U-Boot] [PATCH v3 6/9] pico-imx7d: Add boot option for verified boot

2019-04-23 Thread Jun Nie
Add boot option to boot from fitimage to support verified boot. The boot script plain text file should be packed into fit blob as image with name of bootscr. Signed-off-by: Jun Nie --- include/configs/pico-imx7d.h | 38 +++--- 1 file changed, 35 insertions(+), 3

[U-Boot] [PATCH 2/4] warp7: include: configs: Skip low-level init if BOOTM_OPTEE false

2019-04-23 Thread Bryan O'Donoghue
Commit c7b3a7ee5351 ("optee: adjust dependencies and default values for dram") wants to skip low-level init of i.MX7 hardware in the case where OP-TEE has already run and u-boot is being run as BL33 in normal world. Currently we check for both #ifdef CONFIG_OPTEE_TZDRAM_SIZE and #ifndef

[U-Boot] [PATCH 4/4] MAINTAINERS: Update lib/optee with my details

2019-04-23 Thread Bryan O'Donoghue
Commit 32ce6179fb99 ("optee: Add lib entries for sharing OPTEE code across ports") adds code into lib/optee but neglects to update MAINTAINERS to make me buggable for questions and maintenance. Signed-off-by: Bryan O'Donoghue Suggested-by: Jens Wiklander --- MAINTAINERS | 5 + 1 file

[U-Boot] [PATCH 3/4] warp7: configs: bl33: Tidy up OPTEE defines

2019-04-23 Thread Bryan O'Donoghue
When booting in BL33 mode i.e. with u-boot loaded by OP-TEE we get the following print-out. Board: WARP7 in secure mode OPTEE DRAM 0xa000-0xa000 This is incorrect the right range is 0x9e00-0xa000. This patch fixes the defines on the warp7_bl33_defconfig file to tidy up the

Re: [U-Boot] [PATCH v2] pinctrl: imx: Define imx6_pinctrl_soc_info in .data section

2019-04-23 Thread Peng Fan
> -Original Message- > From: Lukasz Majewski [mailto:lu...@denx.de] > Sent: 2019年4月23日 22:45 > To: Stefano Babic ; u-boot@lists.denx.de; Fabio Estevam > ; Fabio Estevam ; > dl-uboot-imx ; Jagan Teki > ; Adam Ford > Cc: Lukasz Majewski ; Bin Meng ; > Simon Glass > Subject: [PATCH v2]

Re: [U-Boot] Booting MX6 via Serial Download after DM conversion

2019-04-23 Thread Fabio Estevam
Hi Peng and Abel, On Mon, Apr 22, 2019 at 11:00 PM Peng Fan wrote: > Honestly I am not familiar with imx_usb, we use mfgtool previously and not > uuu tool. Is the UUU tool capable of loading SPL + u-boot-dtb.img generated from mainline U-Boot for mx6sabresd? Thanks

Re: [U-Boot] Booting MX6 via Serial Download after DM conversion

2019-04-23 Thread Peng Fan
Hi Fabio > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2019年4月24日 10:01 > To: Peng Fan ; Abel Vesa > Cc: Stefano Babic ; Lukasz Majewski ; > Michael Trimarchi ; dl-uboot-imx > ; Jagan Teki ; Marcel > Ziswiler ; U-Boot-Denx > ; Adam Ford ; Ye Li > ; Otavio

Re: [U-Boot] [PATCH v2 3/7] tegra: sound: Add an audio hub driver

2019-04-23 Thread Simon Glass
Hi Jon, On Wed, 3 Apr 2019 at 03:05, Jon Hunter wrote: > > > On 01/04/2019 21:38, Simon Glass wrote: > > Add a driver for the audio hub. This is modelled as a misc device which > > supports writing audio data from I2S. > > > > Signed-off-by: Simon Glass > > --- > > > > Changes in v2: > > - Fix

Re: [U-Boot] [PATCH v2 5/7] sound: tegra: Add a sound driver

2019-04-23 Thread Simon Glass
Hi Jon, On Wed, 3 Apr 2019 at 03:15, Jon Hunter wrote: > > > On 01/04/2019 21:38, Simon Glass wrote: > > Add a sound driver for tegra devices. This connects the audio hub, I2S > > controller and audio codec to allow sound output. > > > > Signed-off-by: Simon Glass > > --- > > > > Changes in v2:

Re: [U-Boot] [PATCH] rk8xx: implement poweroff

2019-04-23 Thread Simon Glass
Hi, On Wed, 3 Apr 2019 at 06:21, Urja Rannikko wrote: > > Based on snooping around the linux kernel rk8xx driver, and > tested to work on the ASUS C201. > > Signed-off-by: Urja Rannikko > --- > This is really handy to be able to poweroff (without pressing power button > for a long time) the

  1   2   >