Re: [U-Boot] [PATCH v3 05/13] regmap: Add support for polling on a register

2019-02-12 Thread Faiz Abbas
Hi Tom, On 12/02/19 2:28 PM, Faiz Abbas wrote: > Add an API to continuously read a register until a condition is > satisfied or a timeout occurs. > > Signed-off-by: Faiz Abbas > Reviewed-by: Tom Rini > --- > include/regmap.h | 34 ++ > 1 file changed, 34

Re: [U-Boot] [PATCH] MTD: mxs_nand: Fix BCH read timeout error on boards requiring ECC

2019-02-12 Thread Stefano Babic
On 13/02/19 00:05, Tom Rini wrote: > On Tue, Feb 12, 2019 at 03:44:05PM -0600, Adam Ford wrote: >> On Tue, Feb 12, 2019 at 3:41 PM Scott Wood wrote: >>> >>> On Sun, 2019-02-10 at 07:48 -0600, Adam Ford wrote: On Sun, Feb 10, 2019 at 7:30 AM Adam Ford wrote: > > On Mon, Feb 4, 2019

Re: [U-Boot] [U-Boot, 2/3] net: add higmacv300 Ethernet driver for HiSilicon platform

2019-02-12 Thread Shawn Guo
On Fri, Feb 08, 2019 at 07:13:21PM -0500, Tom Rini wrote: > On Mon, Jan 28, 2019 at 05:13:55PM +0800, Shawn Guo wrote: > > > It adds the driver for HIGMACV300 Ethernet controller found on HiSilicon > > SoCs like Hi3798CV200. It's based on a downstream U-Boot driver, but > > quite a lot of code

Re: [U-Boot] [RFC] efi_loader: EFI variables

2019-02-12 Thread Sumit Garg
+ tee-dev ML On Tue, 12 Feb 2019 at 17:36, Alexander Graf wrote: > > On 02/12/2019 12:34 PM, Heinrich Schuchardt wrote: > > On 2/12/19 10:49 AM, Alexander Graf wrote: > >> On 02/03/2019 07:32 PM, Heinrich Schuchardt wrote: > >>> Hello Alex, hello Takahiro, > >>> > >>> this morning I met Daniel

Re: [U-Boot] [RFC] efi_loader: EFI variables

2019-02-12 Thread Sumit Garg
On Tue, 12 Feb 2019 at 21:45, Daniel Thompson wrote: > > On Tue, Feb 12, 2019 at 12:34:29PM +0100, Heinrich Schuchardt wrote: > > On 2/12/19 10:49 AM, Alexander Graf wrote: > > > On 02/03/2019 07:32 PM, Heinrich Schuchardt wrote: > > >> Hello Alex, hello Takahiro, > > >> > > >> this morning I met

Re: [U-Boot] [PATCH v7 00/15] SiFive FU540 Support

2019-02-12 Thread Anup Patel
On Wed, Feb 13, 2019 at 7:01 AM Bin Meng wrote: > > On Tue, Feb 12, 2019 at 6:23 PM Andreas Schwab wrote: > > > > On Feb 12 2019, Bin Meng wrote: > > > > > The env var is stored in whatever supported media in U-Boot. Not like > > > PCI NICs which normally have EEPROM to store pre-flashed MAC

Re: [U-Boot] [PATCH v4 14/20] mtd: spi: Switch to new SPI NOR framework

2019-02-12 Thread Vignesh R
On 13/02/19 1:54 AM, Adam Ford wrote: > On Tue, Feb 12, 2019 at 1:20 PM Adam Ford wrote: >> >> On Sun, Feb 10, 2019 at 10:37 PM Vignesh R wrote: >>> >>> >>> >>> On 11/02/19 9:01 AM, Adam Ford wrote: On Tue, Feb 5, 2019 at 12:00 AM Vignesh R wrote: > > Switch spi_flash_*

Re: [U-Boot] [PATCH 07/10] spi: sun4: Add A31 spi controller support

2019-02-12 Thread Chen-Yu Tsai
On Wed, Feb 13, 2019 at 9:21 AM André Przywara wrote: > > On 09/02/2019 13:14, Jagan Teki wrote: > > Add A31 spi controller support for existing sun4i_spi driver via driver > > data, this would simply add A31 register along with proper register bits > > via enum sets. > > > > Signed-off-by: Jagan

Re: [U-Boot] [PATCH v7 14/15] doc: Add a readme guide for SiFive FU540

2019-02-12 Thread Atish Patra
> On Feb 12, 2019, at 4:18 PM, Kevin Hilman wrote: > > Anup Patel writes: > >> From: Atish Patra >> >> The readme guide describes the procedure to build, flash and boot Linux >> using U-Boot on HiFive Unleashed. It also explains the current state of >> U-boot support and future action

Re: [U-Boot] [PATCH v7 00/15] SiFive FU540 Support

2019-02-12 Thread Bin Meng
On Tue, Feb 12, 2019 at 6:23 PM Andreas Schwab wrote: > > On Feb 12 2019, Bin Meng wrote: > > > The env var is stored in whatever supported media in U-Boot. Not like > > PCI NICs which normally have EEPROM to store pre-flashed MAC address > > by their vendors, for most embedded network

Re: [U-Boot] [PATCH 00/40] x86: Add support for booting from TPL

2019-02-12 Thread Bin Meng
Hi Simon, On Tue, Feb 12, 2019 at 11:31 PM Simon Glass wrote: > > Hi Bin, > > On Wed, 30 Jan 2019 at 04:59, Simon Glass wrote: > > > > At present SPL is used on 64-bit platforms, to allow SPL to be built as > > a 32-bit program and U-Boot proper to be built as 64-bit. > > > > However it is

Re: [U-Boot] [PATCH 09/10] spi: kconfig: Enable SUN4I_SPI by default if ARCH_SUNXI

2019-02-12 Thread André Przywara
On 09/02/2019 13:14, Jagan Teki wrote: > Enable SUN4I_SPI by default for ARCH_SUNXI, so that board > that would require to enable DM_SPI that eventually enable > the SUN4I_SPI driver. > > Signed-off-by: Jagan Teki > --- > drivers/spi/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff

Re: [U-Boot] [PATCH 10/10] board: sopine: Enable SPI/SPI-FLASH

2019-02-12 Thread André Przywara
On 09/02/2019 13:15, Jagan Teki wrote: > Sopine has Winbond SPI flash, so enable the same to use > flash on Sopine board. > > Signed-off-by: Jagan Teki > --- > arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi | 12 > configs/sopine_baseboard_defconfig | 4

Re: [U-Boot] [PATCH 08/10] spi: sun4i: Driver cleanup

2019-02-12 Thread André Przywara
On 09/02/2019 13:14, Jagan Teki wrote: > - drop unused macros. > - use base instead of base_addr, for better code readability > - move .probe and .ofdata_to_platdata functions in required > places to add platdata support in future. > - use sentinel sun4i_spi_ids. > > Signed-off-by: Jagan Teki

Re: [U-Boot] [PATCH 06/10] spi: sun4i: Add CLK support

2019-02-12 Thread André Przywara
On 09/02/2019 13:14, Jagan Teki wrote: > Add CLK support to enable AHB and MOD SPI clocks on sun4i_spi driver. > > Note, that the code will enable and disable clock in claim and release > calls to make proper clock and reset handling between claiming and > releasing SPI bus. > > Signed-off-by:

Re: [U-Boot] [PATCH 07/10] spi: sun4: Add A31 spi controller support

2019-02-12 Thread André Przywara
On 09/02/2019 13:14, Jagan Teki wrote: > Add A31 spi controller support for existing sun4i_spi driver via driver > data, this would simply add A31 register along with proper register bits > via enum sets. > > Signed-off-by: Jagan Teki > --- > drivers/spi/Kconfig | 4 +- >

Re: [U-Boot] [PATCH 05/10] spi: sun4i: Support fifo_depth via drvdata

2019-02-12 Thread André Przywara
On 09/02/2019 13:14, Jagan Teki wrote: > Support fifo_depth via drvdata instead of macro definition, this would > eventually reduce another macro definition for new SPI controller fifo > depth support addition. > > Signed-off-by: Jagan Teki Reviewed-by: Andre Przywara Cheers, Andre > --- >

Re: [U-Boot] [PATCH 03/10] spi: sun4i: Simplify reg writes using set/clrbits_le32

2019-02-12 Thread André Przywara
On 09/02/2019 13:14, Jagan Teki wrote: > Update the existing register writes using setbits_le32 and > clrbits_le32 in required places. > > Signed-off-by: Jagan Teki > --- > drivers/spi/sun4i_spi.c | 21 - > 1 file changed, 8 insertions(+), 13 deletions(-) > > diff --git

Re: [U-Boot] [PATCH 04/10] spi: sun4i: Access registers and bits via enum offsets

2019-02-12 Thread André Przywara
On 09/02/2019 13:14, Jagan Teki wrote: > Allwinner support two different SPI controllers one for A10 and > another for A31 with minimal changes in register offsets and > respective register bits, but the logic for accessing the SPI > master via SPI slave remains nearly similar. > > Add enum

Re: [U-Boot] [PATCH 02/10] clk: sunxi: Implement SPI clocks, resets

2019-02-12 Thread André Przywara
On 09/02/2019 13:14, Jagan Teki wrote: > - Implement SPI AHB, MOD clocks via ccu_clk_gate for all > supported Allwinner SoCs > - Implement SPI resets via ccu_reset for all supported > Allwinner SoCs. > > Signed-off-by: Jagan Teki Reviewed-by: Andre Przywara Cheers, Andre. > --- >

Re: [U-Boot] [PATCH 01/10] spi: sun4i: Poll for rxfifo empty

2019-02-12 Thread André Przywara
On Sat, 9 Feb 2019 18:44:51 +0530 Jagan Teki wrote: Hi, > To drain rx fifo the fifo need to poll till the fifo > count become empty. > > The current code is using wait_for_bit logic on control > register with exchange burst mode mask, which is not a > proper way of waiting for draining fifo.

Re: [U-Boot] [PATCH 1/1] test: let use gdbserver for all sandbox targets

2019-02-12 Thread Tom Rini
On Tue, Feb 12, 2019 at 04:18:14PM +0200, Igor Opaniuk wrote: > Enable usage of gdbserver for all sandbox targets (sandbox, > sandbox_flattree etc.). > > Signed-off-by: Igor Opaniuk Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, 1/1] test/py: use default load address for tftp

2019-02-12 Thread Tom Rini
On Sat, Jan 26, 2019 at 03:25:12PM +0100, Heinrich Schuchardt wrote: > On x86_64 the size of the file u-boot loaded by the tftp test has grown in > size such that when loading the file to 0x20 it overwrites a memory > area reserved for PCI. > > If no load address is specified for tftp do not

Re: [U-Boot] [PATCH v3 09/13] mmc: sdhci: Make set_ios_post() return int

2019-02-12 Thread Tom Rini
On Tue, Feb 12, 2019 at 02:28:15PM +0530, Faiz Abbas wrote: > Make set_ios_post() return int to faciliate error handling in > platform drivers. > > Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

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

2019-02-12 Thread Tom Rini
On Tue, Feb 12, 2019 at 02:56:01PM +0800, Bin Meng wrote: > Hi Tom, > > This PR includes the following changes to x86: > - edison switch to CONFIG_OF_SEPARATE > - tangier initial ACPI support for PMIC device > - tsc timer driver update to support native calibration > - fixes to 64-bit U-Boot

Re: [U-Boot] [PATCH v7 14/15] doc: Add a readme guide for SiFive FU540

2019-02-12 Thread Kevin Hilman
Anup Patel writes: > From: Atish Patra > > The readme guide describes the procedure to build, flash and boot Linux > using U-Boot on HiFive Unleashed. It also explains the current state of > U-boot support and future action items. > > Signed-off-by: Atish Patra > Signed-off-by: Anup Patel >

Re: [U-Boot] [PATCH] MTD: mxs_nand: Fix BCH read timeout error on boards requiring ECC

2019-02-12 Thread Tom Rini
On Tue, Feb 12, 2019 at 03:44:05PM -0600, Adam Ford wrote: > On Tue, Feb 12, 2019 at 3:41 PM Scott Wood wrote: > > > > On Sun, 2019-02-10 at 07:48 -0600, Adam Ford wrote: > > > On Sun, Feb 10, 2019 at 7:30 AM Adam Ford wrote: > > > > > > > > On Mon, Feb 4, 2019 at 12:17 PM Tim Harvey > > > >

Re: [U-Boot] [PATCH] MTD: mxs_nand: Fix BCH read timeout error on boards requiring ECC

2019-02-12 Thread Adam Ford
On Tue, Feb 12, 2019 at 3:41 PM Scott Wood wrote: > > On Sun, 2019-02-10 at 07:48 -0600, Adam Ford wrote: > > On Sun, Feb 10, 2019 at 7:30 AM Adam Ford wrote: > > > > > > On Mon, Feb 4, 2019 at 12:17 PM Tim Harvey wrote: > > > > > > > > On Wed, Jan 2, 2019 at 6:37 PM Adam Ford wrote: > > > > >

Re: [U-Boot] [PATCH] MTD: mxs_nand: Fix BCH read timeout error on boards requiring ECC

2019-02-12 Thread Scott Wood
On Sun, 2019-02-10 at 07:48 -0600, Adam Ford wrote: > On Sun, Feb 10, 2019 at 7:30 AM Adam Ford wrote: > > > > On Mon, Feb 4, 2019 at 12:17 PM Tim Harvey wrote: > > > > > > On Wed, Jan 2, 2019 at 6:37 PM Adam Ford wrote: > > > > > > > > The LogicPD board uses a Micron Flash with ECC. To

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-12 Thread Oleksandr
On 09.02.19 18:37, Marek Vasut wrote: Hi diff --git a/arch/arm/mach-rmobile/Kconfig.32 b/arch/arm/mach-rmobile/Kconfig.32 index 076a019..a2e9e3d 100644 --- a/arch/arm/mach-rmobile/Kconfig.32 +++ b/arch/arm/mach-rmobile/Kconfig.32 @@ -76,6 +76,8 @@ config TARGET_LAGER    select

Re: [U-Boot] [PATCH v2] of-platdata: improve documentation

2019-02-12 Thread Adam Ford
On Mon, Jan 21, 2019 at 12:26 PM wrote: > > On Wed, 16 Jan 2019 at 12:40, Simon Goldschmidt > wrote: > > > > Improve some things in the documentation of OF_PLATDATA that I found > > while porting socfgpa_gen5 to it. Thanks for doing that. I actually learned a bit. :-) This may be more

[U-Boot] [PATCH 1/1] efi_selftest: do not use efi_free_pool()

2019-02-12 Thread Heinrich Schuchardt
In efi_selftest we are in EFI land. We should not use U-Boot library functions but boot time services for memory management. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/efi_selftest_block_device.c | 2 +- lib/efi_selftest/efi_selftest_startimage_exit.c | 2 +-

[U-Boot] [PATCH 1/1] efi_selftest: fix memory allocation in HII tests

2019-02-12 Thread Heinrich Schuchardt
In efi_selftest we are in EFI land. We cannot call U-Boot library functions malloc() and free() but should use the boot time services instead. Signed-off-by: Heinrich Schuchardt --- There are still issues remaining in this test: - not all allocated memory is freed - variable ret used for

Re: [U-Boot] [PATCH v4 14/20] mtd: spi: Switch to new SPI NOR framework

2019-02-12 Thread Adam Ford
On Tue, Feb 12, 2019 at 1:20 PM Adam Ford wrote: > > On Sun, Feb 10, 2019 at 10:37 PM Vignesh R wrote: > > > > > > > > On 11/02/19 9:01 AM, Adam Ford wrote: > > > On Tue, Feb 5, 2019 at 12:00 AM Vignesh R wrote: > > >> > > >> Switch spi_flash_* interfaces to call into new SPI NOR framework via

[U-Boot] [PATCH v3 1/1] efi_selftest: LoadImage from file device path

2019-02-12 Thread Heinrich Schuchardt
Provide a unit test that calls LoadImage() with a file device path and executes the application via StartImage(). Signed-off-by: Heinrich Schuchardt --- v3 do not use library function efi_free_pool() but boot time service v2 correct a comment --- lib/efi_selftest/Makefile

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-12 Thread Oleksandr
On 09.02.19 18:35, Marek Vasut wrote: Hi On 2/7/19 6:19 PM, Oleksandr wrote: [...] +    /* Update registers with correct frequency */ +    writel(freq, TIMER_BASE + TIMER_CNTFID0); +    asm volatile("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq)); + +    /* Make sure arch

Re: [U-Boot] [PATCH 2/3] ARM: rmobile: Add basic PSCI support for r8a7790 SoC

2019-02-12 Thread Oleksandr
On 11.02.19 22:40, Marek Vasut wrote: Hi On 2/11/19 9:10 PM, Oleksandr wrote: [...] Yes. I had to re-implement. Let me describe why.  From my understanding (I may mistake), the PSCI backend code which lives in secure section should be as lightweight as possible and shouldn't call any

Re: [U-Boot] [PATCH v4 14/20] mtd: spi: Switch to new SPI NOR framework

2019-02-12 Thread Adam Ford
On Sun, Feb 10, 2019 at 10:37 PM Vignesh R wrote: > > > > On 11/02/19 9:01 AM, Adam Ford wrote: > > On Tue, Feb 5, 2019 at 12:00 AM Vignesh R wrote: > >> > >> Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD > >> layer. Fix up sf_dataflash to work in legacy way. And

[U-Boot] [PATCH v1] dm: pinctrl: Remove obsolete function pinctrl_decode_pin_config_dm().

2019-02-12 Thread Christoph Muellner
This reverts commit 5ff776889212c080e3d1a33634ac904405ed6845. As noted in the comment, the function pinctrl_decode_pin_config_dm() only served as a temporary solution. Since the function has no users anymore, we can remove it again. Signed-off-by: Christoph Muellner ---

[U-Boot] [PATCH 3/5] spl: Add ability to disable SPL FAT

2019-02-12 Thread Adrian Ratiu
From: Sjoerd Simons spl_usb depends on FAT support, so don't try to build it if fat support is disabled for SPL. Signed-off-by: Sjoerd Simons --- common/spl/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/spl/Makefile b/common/spl/Makefile index e1daabf1e9c..42db0441559

[U-Boot] [PATCH 4/5] spl: Add common usb support in spl if needed

2019-02-12 Thread Adrian Ratiu
From: Sjoerd Simons If build into the SPL at least the MUSB USB driver needs the common usb functionality (e.g. parsing of the DR role dt property), so build this. Signed-off-by: Sjoerd Simons --- scripts/Makefile.spl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Makefile.spl

[U-Boot] [PATCH 1/5] drivers: usb: musb: Fail if the ctrl mod register is missing

2019-02-12 Thread Adrian Ratiu
From: Sjoerd Simons If the trcl mode register address cannot be found error out rather then trying to continue (which cannot work) Signed-off-by: Sjoerd Simons --- drivers/usb/musb-new/ti-musb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/usb/musb-new/ti-musb.c

[U-Boot] [PATCH 5/5] cmd: pxe: Increase MAX_TFTP_PATH_LEN to 256

2019-02-12 Thread Adrian Ratiu
From: Martyn Welch Despite the name it's also used for paths in distro configuration files (i.e. extlinux.conf). When using OSTree, it is very easy to reach the 127 character limit, thus increase to 256 bytes. Signed-off-by: Martyn Welch --- cmd/pxe.c | 2 +- 1 file changed, 1 insertion(+), 1

[U-Boot] [PATCH 2/5] drivers: usb: musb: Fix comparison between pointer and integer warn

2019-02-12 Thread Adrian Ratiu
drivers/usb/musb-new/ti-musb.c: In function 'ti_musb_ofdata_to_platdata': drivers/usb/musb-new/ti-musb.c:93:30: warning: comparison between pointer and integer if (platdata->ctrl_mod_base == FDT_ADDR_T_NONE) {} Signed-off-by: Adrian Ratiu --- drivers/usb/musb-new/ti-musb.c | 2 +- 1

Re: [U-Boot] [RFC] ARM: omap3_logic_somlv: Enable OF_CONTROL in SPL

2019-02-12 Thread Tom Rini
On Tue, Feb 12, 2019 at 12:05:55PM -0500, Tom Rini wrote: > On Mon, Feb 11, 2019 at 09:40:17PM -0600, Adam Ford wrote: > > On Tue, Jan 29, 2019 at 7:36 AM Adam Ford wrote: > > > > > > On Mon, Jan 28, 2019 at 2:33 PM Tom Rini wrote: > > > > > > > > On Mon, Jan 28, 2019 at 02:23:00PM -0600, Adam

Re: [U-Boot] [RFC] ARM: omap3_logic_somlv: Enable OF_CONTROL in SPL

2019-02-12 Thread Tom Rini
On Mon, Feb 11, 2019 at 09:40:17PM -0600, Adam Ford wrote: > On Tue, Jan 29, 2019 at 7:36 AM Adam Ford wrote: > > > > On Mon, Jan 28, 2019 at 2:33 PM Tom Rini wrote: > > > > > > On Mon, Jan 28, 2019 at 02:23:00PM -0600, Adam Ford wrote: > > > > On Mon, Jan 28, 2019 at 9:14 AM Tom Rini wrote: >

[U-Boot] [RFC PATCH 2/3] sunxi: Don't change the rank in dram size detection in A33

2019-02-12 Thread Michael Trimarchi
Change the size create a glitch in the clke signal on second bank. The glitch can generate problem in memory initialiazation Signed-off-by: Michael Trimarchi --- arch/arm/mach-sunxi/dram_sun8i_a33.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-sunxi/dram_sun8i_a33.c

[U-Boot] [RFC PATCH 3/3] sunxi: Fix A33 memory initialization

2019-02-12 Thread Michael Trimarchi
Set two rank timing and exit self-refresh timing seems not done properly. We know use the same write that we are using on H5 silicon. Signed-off-by: Michael Trimarchi --- arch/arm/mach-sunxi/dram_sun8i_a33.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [RFC PATCH 1/3] sunxi: Use clrsetbits_le32 instead of multiple instruction

2019-02-12 Thread Michael Trimarchi
Signed-off-by: Michael Trimarchi --- arch/arm/mach-sunxi/dram_sun8i_a33.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-sunxi/dram_sun8i_a33.c b/arch/arm/mach-sunxi/dram_sun8i_a33.c index 1da2727f98..83212aaddf 100644 ---

Re: [U-Boot] [PATCH] ARM: tegra: Reserve 32MB for the Linux kernel

2019-02-12 Thread Stephen Warren
, Tegra30 Cardhu and Tegra124 Jetson TK1 with the Linux next tree (20190212). Reviewed-by: Stephen Warren Just in case anyone else puzzles over this: It took me too long to realize/remember why the following wasn't a problem since the stack will overlap the initrd location: -#define

Re: [U-Boot] [RFC] efi_loader: EFI variables

2019-02-12 Thread Daniel Thompson
On Tue, Feb 12, 2019 at 12:34:29PM +0100, Heinrich Schuchardt wrote: > On 2/12/19 10:49 AM, Alexander Graf wrote: > > On 02/03/2019 07:32 PM, Heinrich Schuchardt wrote: > >> Hello Alex, hello Takahiro, > >> > >> this morning I met Daniel Thompson of Linaro. He thinks it would be > >> quite

[U-Boot] [PATCH] ARM: tegra: Reserve 32MB for the Linux kernel

2019-02-12 Thread Jon Hunter
with the Linux next tree (20190212). Signed-off-by: Jonathan Hunter --- include/configs/tegra114-common.h | 14 +++--- include/configs/tegra124-common.h | 14 +++--- include/configs/tegra20-common.h | 14 +++--- include/configs/tegra30-common.h | 14 +++--- 4 files

[U-Boot] [PATCH 4/4] ARM: dts: stm32mp1: Add adc nodes

2019-02-12 Thread Patrice Chotard
Add adc related nodes. These nodes are used to detect the current supplied by USB type-C power in port on DK1 and DK2 boards. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32mp157-pinctrl.dtsi | 7 +++ arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 21 + 2 files

[U-Boot] [PATCH 1/4] ARM: dts: stm32: Synchronize DT with kernel one

2019-02-12 Thread Patrice Chotard
This patch synchronizes U-boot DT with kernel one This is based on https://patchwork.kernel.org/cover/10797115/ This patch adds initial support of STM32MP157 discovery boards: - Add support of stm32mp157a discovery1 board (part number: STM32MP157A-DK1). This board embeds a STM32MP157a SOC

[U-Boot] [PATCH 0/4] Add STM32MP1 Discovery boards

2019-02-12 Thread Patrice Chotard
This series: - Synchronizes DT with kernel one - Adds STM32MP1 Discovery boards DK1 and DK2 - Adds power supply information at boot for DK1 and DK2 boards Patrice Chotard (4): ARM: dts: stm32: Synchronize DT with kernel one board: stm32mp1: Update README file Board: stm32mp1: Add

[U-Boot] [PATCH 3/4] Board: stm32mp1: Add supply current boot information

2019-02-12 Thread Patrice Chotard
For DK1/DK2 boards, check if power supply provides enough current to allow the board to boot correctly. ADC@0 channel 18 and 19 are connected to USB type-C CC1 and CC2 signals. The table below shows the behavior for different range of CC1 or CC2: range | power supply | red led |

[U-Boot] [PATCH 2/4] board: stm32mp1: Update README file

2019-02-12 Thread Patrice Chotard
Update README with DK1 and DK2 boards related informations Signed-off-by: Patrice Chotard --- board/st/stm32mp1/README | 23 +++ 1 file changed, 23 insertions(+) diff --git a/board/st/stm32mp1/README b/board/st/stm32mp1/README index 72b28fabfc08..1cd3534ae4e7 100644 ---

Re: [U-Boot] [PATCH 00/40] x86: Add support for booting from TPL

2019-02-12 Thread Simon Glass
Hi Bin, On Wed, 30 Jan 2019 at 04:59, Simon Glass wrote: > > At present SPL is used on 64-bit platforms, to allow SPL to be built as > a 32-bit program and U-Boot proper to be built as 64-bit. > > However it is useful to be able to use SPL on any x86 platform, where > U-Boot needs to be updated

Re: [U-Boot] [U-Boot, 2/2] rockchip: Drop call to rockchip_dnl_mode_check() for now【请注意,邮件由u-boot-boun...@lists.denx.de代发】

2019-02-12 Thread Simon Glass
HI Andy, On Tue, 12 Feb 2019 at 04:05, Andy Yan wrote: > > Hi Philipp: > > Sorry for the late reply, we just come back from the Chinese Spring > Festival. > > On 2019/2/1 下午6:26, Philipp Tomsich wrote: > > Kever, > > > > Independent of whether we revert this for the current cycle (and also

Re: [U-Boot] [U-Boot, v4, 1/1] avb: add support for named persistent values

2019-02-12 Thread Simon Glass
Hi Igor, On Tue, 12 Feb 2019 at 14:54, Igor Opaniuk wrote: > > Hi Tom, Simon, > > So I did a little investigation and found out that, the issue in that > hcreate_r() invocation in the tee sandbox driver fails because the > hashtable was allocated before. > Debugging showed that the sandbox tee

[U-Boot] [PATCH] usb: host: Print device name when scanning

2019-02-12 Thread Ismael Luceno Cortes
Signed-off-by: Ismael Luceno --- drivers/usb/host/usb-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c index 611ea97a72..0575f5393b 100644 --- a/drivers/usb/host/usb-uclass.c +++

Re: [U-Boot] [RFC] Reserve ATF memory on Marvell Armdada 3700/7K/8K

2019-02-12 Thread Marcin Wojtas
Hi Patrick, You can refer to the mainline edk2 patch: https://github.com/tianocore/edk2-platforms/commit/bf1c4a2cf8024669d1748e78c7e417433f85707e Best regards, Marcin wt., 12 lut 2019 o 10:38 Alexander Graf napisał(a): > On 02/04/2019 05:51 PM, Patrick Wildt wrote: > > On Fri, Apr 06, 2018 at

Re: [U-Boot] [linux-sunxi] [PATCH v2 0/4] sunxi: SPI: Add SUN6I generation SPI support

2019-02-12 Thread Andre Przywara
On Tue, 12 Feb 2019 16:15:22 +0530 Jagan Teki wrote: > On Tue, Feb 12, 2019 at 4:11 PM Andre Przywara wrote: > > > > We already have a driver for the SPI devices in older Allwinner CPUs. > > Newer SoCs (SUN6I generation) have a similar, but improved IP block. > > This series adds support for

[U-Boot] [PATCH 1/1] test: let use gdbserver for all sandbox targets

2019-02-12 Thread Igor Opaniuk
Enable usage of gdbserver for all sandbox targets (sandbox, sandbox_flattree etc.). Signed-off-by: Igor Opaniuk --- test/py/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/py/conftest.py b/test/py/conftest.py index 5c658b8..e40cbf0 100644 ---

Re: [U-Boot] [PATCH v7 1/7] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2019-02-12 Thread Chee, Tien Fong
On Tue, 2019-02-12 at 05:49 -0800, Dalon L Westergreen wrote: > On Tue, 2019-02-12 at 11:17 +0100, Marek Vasut wrote: > > > > On 2/12/19 11:13 AM, Chee, Tien Fong wrote: > > > > > > On Tue, 2019-02-12 at 10:43 +0100, Marek Vasut wrote: > > > > > > > > On 2/12/19 10:35 AM, Chee, Tien Fong wrote:

Re: [U-Boot] [BUG] booting on the Tinker Board (tinker-rk3288_defconfig) is broken

2019-02-12 Thread Philipp Tomsich
> On 12.02.2019, at 13:38, David Wu wrote: > > Hi Philipp, > > 在 2019/2/10 上午2:24, Philipp Tomsich 写道: >> That said, I have been fighting issues from this patchset when trying to read >> from devices on the i2c0 bus on a RK3399—which had me add a “simple” >> pinctrl device again, as pulling

Re: [U-Boot] [U-Boot, v4, 1/1] avb: add support for named persistent values

2019-02-12 Thread Igor Opaniuk
Hi Tom, Simon, So I did a little investigation and found out that, the issue in that hcreate_r() invocation in the tee sandbox driver fails because the hashtable was allocated before. Debugging showed that the sandbox tee driver is probed twice every time (although remove() is never called, it's

Re: [U-Boot] [BUG] booting on the Tinker Board (tinker-rk3288_defconfig) is broken

2019-02-12 Thread Philipp Tomsich
> On 12.02.2019, at 13:38, David Wu wrote: > > Hi Philipp, > > 在 2019/2/10 上午2:24, Philipp Tomsich 写道: >> That said, I have been fighting issues from this patchset when trying to read >> from devices on the i2c0 bus on a RK3399—which had me add a “simple” >> pinctrl device again, as pulling

Re: [U-Boot] [PATCH v7 1/7] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2019-02-12 Thread Dalon L Westergreen
On Tue, 2019-02-12 at 11:17 +0100, Marek Vasut wrote: > On 2/12/19 11:13 AM, Chee, Tien Fong wrote: > > On Tue, 2019-02-12 at 10:43 +0100, Marek Vasut wrote: > > > On 2/12/19 10:35 AM, Chee, Tien Fong wrote: > > > [...] > > > > > > > > my preference for the fit image would be > > > > > > > > > >

Re: [U-Boot] [PATCH v3] dm: spi: Read default speed and mode values from DT

2019-02-12 Thread Patrick DELAUNAY
Hi Jagan > From: Jagan Teki > Sent: samedi 9 février 2019 17:22 > Subject: Re: [PATCH v3] dm: spi: Read default speed and mode values from DT > > On Mon, Jan 28, 2019 at 2:37 PM Patrick Delaunay > wrote: > > > > This patch update the behavior introduced by commit 96907c0fe50a ("dm: > > spi:

Re: [U-Boot] [PATCH 1/3] sunxi: Sync Bananapi M2+ device tree from Linux v5.0-rc1

2019-02-12 Thread Jagan Teki
On Tue, Feb 12, 2019 at 6:37 PM Chen-Yu Tsai wrote: > > On Tue, Feb 12, 2019 at 9:02 PM Jagan Teki wrote: > > > > Hi Chen-Yu, > > > > On Tue, Feb 12, 2019 at 5:59 PM Chen-Yu Tsai wrote: > > > > > > On Tue, Feb 12, 2019 at 8:22 PM Jagan Teki > > > wrote: > > > > > > > > On Tue, Feb 12, 2019 at

Re: [U-Boot] [PATCH 1/3] sunxi: Sync Bananapi M2+ device tree from Linux v5.0-rc1

2019-02-12 Thread Chen-Yu Tsai
On Tue, Feb 12, 2019 at 9:02 PM Jagan Teki wrote: > > Hi Chen-Yu, > > On Tue, Feb 12, 2019 at 5:59 PM Chen-Yu Tsai wrote: > > > > On Tue, Feb 12, 2019 at 8:22 PM Jagan Teki > > wrote: > > > > > > On Tue, Feb 12, 2019 at 5:46 PM Andre Przywara > > > wrote: > > > > > > > > On Tue, 12 Feb 2019

Re: [U-Boot] [PATCH 1/3] sunxi: Sync Bananapi M2+ device tree from Linux v5.0-rc1

2019-02-12 Thread Jagan Teki
Hi Chen-Yu, On Tue, Feb 12, 2019 at 5:59 PM Chen-Yu Tsai wrote: > > On Tue, Feb 12, 2019 at 8:22 PM Jagan Teki wrote: > > > > On Tue, Feb 12, 2019 at 5:46 PM Andre Przywara > > wrote: > > > > > > On Tue, 12 Feb 2019 17:39:35 +0530 > > > Jagan Teki wrote: > > > > > > > On Tue, Feb 12, 2019 at

[U-Boot] [PATCH] cmd: ximg.c: Add support for getting external data address and length

2019-02-12 Thread tien . fong . chee
From: Tien Fong Chee This function supports getting both data address and length for existing FIT subimage and FIT external data. Signed-off-by: Tien Fong Chee --- cmd/ximg.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/ximg.c b/cmd/ximg.c index

[U-Boot] [PATCH] fpga: Add support for getting external data address and length

2019-02-12 Thread tien . fong . chee
From: Tien Fong Chee This function supports getting both data address and length for existing FPGA subimage and FPGA external data. Signed-off-by: Tien Fong Chee --- cmd/fpga.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/fpga.c b/cmd/fpga.c index

Re: [U-Boot] [BUG] booting on the Tinker Board (tinker-rk3288_defconfig) is broken

2019-02-12 Thread David Wu
Hi Philipp, 在 2019/2/10 上午2:24, Philipp Tomsich 写道: That said, I have been fighting issues from this patchset when trying to read from devices on the i2c0 bus on a RK3399—which had me add a “simple” pinctrl device again, as pulling all the dependencies into the SPL is a pain. I think you can

Re: [U-Boot] [PATCH v1 1/2] configs: k2g_evm: Enable CONFIG_BLK

2019-02-12 Thread Vignesh R
On 08/02/19 3:25 PM, Jean-Jacques Hiblot wrote: > CONFIG_BLK can be safely enabled as DM_MMC and DM_USB are already enabled. > > Signed-off-by: Jean-Jacques Hiblot > --- > Thanks for the patch! Tested-by: Vignesh R Tom, This fix is required for booting kernel from MMC/SD on K2G boards.

Re: [U-Boot] [PATCH 1/3] sunxi: Sync Bananapi M2+ device tree from Linux v5.0-rc1

2019-02-12 Thread Chen-Yu Tsai
On Tue, Feb 12, 2019 at 8:22 PM Jagan Teki wrote: > > On Tue, Feb 12, 2019 at 5:46 PM Andre Przywara wrote: > > > > On Tue, 12 Feb 2019 17:39:35 +0530 > > Jagan Teki wrote: > > > > > On Tue, Feb 12, 2019 at 5:38 PM Andre Przywara > > > wrote: > > > > > > > > On Tue, 12 Feb 2019 17:30:44 +0530

[U-Boot] [PATCH] Convert CONFIG_IP_DEFRAG to Kconfig

2019-02-12 Thread Christian Gmeiner
This converts the following to Kconfig: CONFIG_IP_DEFRAG Signed-off-by: Christian Gmeiner --- net/Kconfig | 6 ++ scripts/config_whitelist.txt | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/net/Kconfig b/net/Kconfig index f2363e5256..5f5f632469

Re: [U-Boot] [PATCH 1/3] sunxi: Sync Bananapi M2+ device tree from Linux v5.0-rc1

2019-02-12 Thread Jagan Teki
On Tue, Feb 12, 2019 at 5:46 PM Andre Przywara wrote: > > On Tue, 12 Feb 2019 17:39:35 +0530 > Jagan Teki wrote: > > > On Tue, Feb 12, 2019 at 5:38 PM Andre Przywara > > wrote: > > > > > > On Tue, 12 Feb 2019 17:30:44 +0530 > > > Jagan Teki wrote: > > > > > > > On Mon, Feb 11, 2019 at 8:26 AM

Re: [U-Boot] [PATCH v5 3/3] cmd: mdio: Switch to generic helpers when accessing the registers

2019-02-12 Thread Vladimir Oltean
On 08.02.2019 19:26, Carlo Caione wrote: > Switch to use the generic helpers to access the MMD registers so that we > can used the same command also for C45 PHYs, C22 PHYs with direct and > indirect access and PHYs implementing a custom way to access the > registers. > > Signed-off-by: Carlo

Re: [U-Boot] [PATCH 1/3] sunxi: Sync Bananapi M2+ device tree from Linux v5.0-rc1

2019-02-12 Thread Andre Przywara
On Tue, 12 Feb 2019 17:39:35 +0530 Jagan Teki wrote: > On Tue, Feb 12, 2019 at 5:38 PM Andre Przywara wrote: > > > > On Tue, 12 Feb 2019 17:30:44 +0530 > > Jagan Teki wrote: > > > > > On Mon, Feb 11, 2019 at 8:26 AM Chen-Yu Tsai wrote: > > > > > > > > On Sun, Feb 10, 2019 at 1:38 AM Jagan

Re: [U-Boot] [PATCH 1/3] sunxi: Sync Bananapi M2+ device tree from Linux v5.0-rc1

2019-02-12 Thread Jagan Teki
On Tue, Feb 12, 2019 at 5:38 PM Andre Przywara wrote: > > On Tue, 12 Feb 2019 17:30:44 +0530 > Jagan Teki wrote: > > > On Mon, Feb 11, 2019 at 8:26 AM Chen-Yu Tsai wrote: > > > > > > On Sun, Feb 10, 2019 at 1:38 AM Jagan Teki > > > wrote: > > > > > > > > On Fri, Jan 25, 2019 at 4:08 PM

Re: [U-Boot] [PATCH 1/3] sunxi: Sync Bananapi M2+ device tree from Linux v5.0-rc1

2019-02-12 Thread Andre Przywara
On Tue, 12 Feb 2019 17:30:44 +0530 Jagan Teki wrote: > On Mon, Feb 11, 2019 at 8:26 AM Chen-Yu Tsai wrote: > > > > On Sun, Feb 10, 2019 at 1:38 AM Jagan Teki > > wrote: > > > > > > On Fri, Jan 25, 2019 at 4:08 PM Chen-Yu Tsai wrote: > > > > > > > > As of commit aa8fee415f46 ("ARM: dts:

Re: [U-Boot] [PATCH 3/3] mtd: spi: Kconfig: Select SPI_FLASH if DM_SPI_FLASH

2019-02-12 Thread Jagan Teki
On Tue, Feb 12, 2019 at 1:27 PM Vignesh R wrote: > > > > On 09/02/19 5:45 PM, Jagan Teki wrote: > > DM_SPI_FLASH should require spi flash interface code for dm > > version, so select SPI_FLASH core by default if any board > > enabled DM_SPI_FLASH. > > > > This overcome the explicit enablement of

Re: [U-Boot] [RFC] efi_loader: EFI variables

2019-02-12 Thread Alexander Graf
On 02/12/2019 12:34 PM, Heinrich Schuchardt wrote: On 2/12/19 10:49 AM, Alexander Graf wrote: On 02/03/2019 07:32 PM, Heinrich Schuchardt wrote: Hello Alex, hello Takahiro, this morning I met Daniel Thompson of Linaro. He thinks it would be quite valuable if U-Boot would at least offer read

Re: [U-Boot] [PATCH 2/3] mtd: spi: Kconfig: Update CONFIG_SPI_FLASH

2019-02-12 Thread Jagan Teki
On Tue, Feb 12, 2019 at 1:31 PM Vignesh R wrote: > > Hi, > > On 09/02/19 5:45 PM, Jagan Teki wrote: > > 1) CONFIG_SPI_FLASH is not just a legacy code, but it has common > >core code which handle both dm and non-dm spi flash code. So > >fix the info text to make it clear globally. > > > >

Re: [U-Boot] [PATCH 1/3] sunxi: Sync Bananapi M2+ device tree from Linux v5.0-rc1

2019-02-12 Thread Jagan Teki
On Mon, Feb 11, 2019 at 8:26 AM Chen-Yu Tsai wrote: > > On Sun, Feb 10, 2019 at 1:38 AM Jagan Teki wrote: > > > > On Fri, Jan 25, 2019 at 4:08 PM Chen-Yu Tsai wrote: > > > > > > As of commit aa8fee415f46 ("ARM: dts: sun8i: h3: Split out > > > non-SoC-specific parts of Bananapi M2 Plus") in the

Re: [U-Boot] [PATCH] configs: tbs_a711: lower dram frequency

2019-02-12 Thread Jagan Teki
On Mon, Feb 11, 2019 at 5:39 PM Tomas Novotny wrote: > > Hi Jagan, > > On Sat, 9 Feb 2019 21:47:12 +0530, Jagan Teki > wrote: > > On Tue, Feb 5, 2019 at 7:27 PM Tomas Novotny wrote: > > > > > > The dram chip on the tablet was changed. The new one requires a lower > > > frequency, so change it.

Re: [U-Boot] [PATCH] pinctrl: rockchip: Add 32bit writing function for rk3288 gpio0 pinctrl

2019-02-12 Thread Philipp Tomsich
> On 12.02.2019, at 12:51, David Wu wrote: > > There are no higher 16 writing corresponding bits for pmu_gpio0's > iomux/drive/pull at rk3288, need to read the value from register > firstly. Add the flag to distinguish it from normal registers. > > Signed-off-by: David Wu > --- >

Re: [U-Boot] [BUG] booting on the Tinker Board (tinker-rk3288_defconfig) is broken

2019-02-12 Thread David Wu
Hi Heinrich, 在 2019/2/10 上午12:39, Heinrich Schuchardt 写道: On 2/9/19 4:24 PM, Philipp Tomsich wrote: On 09.02.2019, at 16:08, Philipp Tomsich wrote: Heinrich, My guess is that this is fallout from David Wu’s new pinctrl driver (which has really been the bulk of changes in this cycle). I

[U-Boot] [PATCH] pinctrl: rockchip: Add 32bit writing function for rk3288 gpio0 pinctrl

2019-02-12 Thread David Wu
There are no higher 16 writing corresponding bits for pmu_gpio0's iomux/drive/pull at rk3288, need to read the value from register firstly. Add the flag to distinguish it from normal registers. Signed-off-by: David Wu --- drivers/pinctrl/rockchip/pinctrl-rk3288.c | 17 ++--

Re: [U-Boot] [RFC] efi_loader: EFI variables

2019-02-12 Thread Heinrich Schuchardt
On 2/12/19 10:49 AM, Alexander Graf wrote: > On 02/03/2019 07:32 PM, Heinrich Schuchardt wrote: >> Hello Alex, hello Takahiro, >> >> this morning I met Daniel Thompson of Linaro. He thinks it would be >> quite valuable if U-Boot would at least offer read access to EFI >> variables at runtime. >>

Re: [U-Boot] [linux-sunxi] [PATCH v2 0/4] sunxi: SPI: Add SUN6I generation SPI support

2019-02-12 Thread Jagan Teki
On Tue, Feb 12, 2019 at 4:11 PM Andre Przywara wrote: > > We already have a driver for the SPI devices in older Allwinner CPUs. > Newer SoCs (SUN6I generation) have a similar, but improved IP block. > This series adds support for that, so we can access the SPI flash that > some newer boards come

[U-Boot] [PATCH v4 3/3] stm32mp1: display board information

2019-02-12 Thread Patrick Delaunay
Implement checkboard() function to display - the boot chain used: basic or trusted - the board compatible in device tree - the board identifier and revision, saved in OTP59 for ST boards Signed-off-by: Patrick Delaunay --- Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v4 1/3] stm32mp1: add trusted boot with TF-A

2019-02-12 Thread Patrick Delaunay
Add support of trusted boot, using TF-A as first stage bootloader, The boot sequence is BootRom >=> TF-A.stm32 (clock & DDR) >=> U-Boot.stm32 The TF-A monitor provides secure monitor with support of SMC - proprietary to manage secure devices (BSEC for example) - PSCI for power The same device

[U-Boot] [PATCH v4 2/3] stm32mp1: bsec: access with SMC for trusted boot

2019-02-12 Thread Patrick Delaunay
As BSEC is secure aware, all register access need to be done by TF-A for TRUSTED boot chain, when U-Boot is executed in normal world. Signed-off-by: Patrick Delaunay --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-stm32mp/bsec.c | 28

[U-Boot] [PATCH v4 0/3] stm32mp1: add trusted boot with TF-A

2019-02-12 Thread Patrick Delaunay
This patch serie add a new configuration stm32mp15_trusted_defconfig to handle STM32MP157 boards with TF-A as secure first stage bootloader. TF-A code is available in GitHub https://github.com/ARM-software/arm-trusted-firmware With platform stm32mp1 platform

[U-Boot] [PATCH v2 2/4] clk: sunxi: Implement SPI gates clocks and reset

2019-02-12 Thread Andre Przywara
From: Jagan Teki In every SoC the SPI device requires an AHB clock, also the MOD clock needs to be toggled. Provide those as gate clocks for all SoCs as per the manual. The driver doesn't tinker with the actual SPI frequency, so we get away without a proper MOD clock implementation. Newer SoCs

[U-Boot] [PATCH v2 3/4] spi: sunxi: Add CLK support to Allwinner SPI driver

2019-02-12 Thread Andre Przywara
From: Jagan Teki Add support for DM_CLK driven clocks and reset gates. Signed-off-by: Jagan Teki Signed-off-by: Andre Przywara --- drivers/spi/sun4i_spi.c | 83 +++-- 1 file changed, 66 insertions(+), 17 deletions(-) diff --git

  1   2   >