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

2019-04-23 Thread Jagan Teki
On Tue, Apr 23, 2019 at 4:17 PM Chuanhua Han wrote: > > 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

Re: [U-Boot] [PATCH v3] spi: Zap mxs_spi driver-related code

2019-04-23 Thread Jagan Teki
On Mon, Apr 22, 2019 at 12:11 AM Tom Rini wrote: > > On Fri, Apr 19, 2019 at 03:32:55PM +0200, Michael Nazzareno Trimarchi wrote: > > Hi Tom > > > > On Fri, Apr 19, 2019 at 2:42 PM Tom Rini wrote: > > > > > > On Fri, Apr 19, 2019 at 11:25:47AM +0200, Marek Vasut wrote: > > > > On 4/19/19 8:55 AM,

Re: [U-Boot] [PATCH] spi: Zap lpc32xx_ssp driver-related code

2019-04-23 Thread Jagan Teki
On Tue, Apr 23, 2019 at 2:20 AM Vladimir Zapolskiy wrote: > > Hi Jagan, Tom, > > On 04/19/2019 09:48 AM, Jagan Teki wrote: > > Dropped > > - lpc32xx_ssp driver > > - CONFIG_LPC32XX_SSP, LPC32XX_SSP_TIMEOUT items > > > > Dropped due to: > > - no active updates > > - no dm conversion > > - multiple

[U-Boot] [PATCH v2 4/4] riscv: configs: AE350 will use CONFIG_OF_PRIOR_STAGE when booting from ram

2019-04-23 Thread Andes
From: Rick Chen When AE350 was booting from ram, use CONFIG_OF_PRIOR_STAGE instead of CONFIG_OF_BOARD. Signed-off-by: Rick Chen Cc: Greentime Hu --- configs/ae350_rv32_defconfig | 2 +- configs/ae350_rv64_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs

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

2019-04-23 Thread Andes
From: Rick Chen Add two defconfigs to support AE350 SMP booting from flash. Signed-off-by: Rick Chen Cc: Greentime Hu --- configs/ae350_rv32_xip_defconfig | 36 configs/ae350_rv64_xip_defconfig | 37 + 2 files changed, 7

[U-Boot] [PATCH v2 3/4] riscv: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE is enabled

2019-04-23 Thread Andes
From: Rick Chen This patch will fix prior_stage_fdt_address write failure problem, when AE350 was booting from flash. When AE350 was booting from falsh, prior_stage_fdt_address will be in flash address, we shall avoid it to be written. Signed-off-by: Rick Chen Cc: Greentime Hu --- arch/riscv

[U-Boot] [PATCH v2 1/4] riscv: hart_lottery and available harts features can be selectable

2019-04-23 Thread Andes
From: Rick Chen In smp flow these two features only can be enabled when U-Boot booting from ram. It shall be disabled when U-Boot booting from flash. Add CONFIG_XIP to NOT select this two features. It's default value will say NO for booting from ram. AE350 will encounter the the write failure p

[U-Boot] [PATCH v2 0/4] AE350 support SMP boot from flash

2019-04-23 Thread Andes
From: Rick Chen In current RISC-V SMP flow, AE350 will encounter the the write failure problem since hart_lottery and available_harts_lock was not in ram address but in flash address when booing from flash. This patch can help to fix the failure problem when AE350 was booting from flash by disab

Re: [U-Boot] [linux-sunxi] [PATCH v4] sun50i: a64: Add Olimex A64-Teres-I board initial support

2019-04-23 Thread Jagan Teki
On Sat, Apr 20, 2019 at 3:54 PM Icenowy Zheng wrote: > > From: Jonas Smedegaard > > Olimex A64-Teres-I board is a mainboard (the only one so far) > for Olimex Teres-I DIY laptop kit. > > Key features: > - Allwinner A64 Cortex-A53 > - Mali-400MP2 GPU > - AXP803 PMIC > - 2GB DDR3 RAM > - MicroSD Sl

[U-Boot] [PATCH v2 05/11] env: save UEFI non-volatile variables in dedicated storage

2019-04-23 Thread AKASHI Takahiro
We need a variant of env_save()/env_load() to handle dedicated storage for UEFI variables. It is assumed that env_efi_load() will be called only ince at init and that env_efi_save() will be called at every SetVariable. In this patch, new parameters will be expected to be configured: CONFIG_ENV_E

[U-Boot] [PATCH v2 06/11] efi_loader: variable: support non-volatile attribute

2019-04-23 Thread AKASHI Takahiro
The attribute, EFI_VARIABLE_NON_VOLATILE, should be encoded as "nv" flag in U-Boot variable if specified. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_variable.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_load

[U-Boot] [PATCH v2 08/11] efi_loader: load saved non-volatile variables at init

2019-04-23 Thread AKASHI Takahiro
Data cache will be read in from persistent storage after (re)boot to restore UEFI non-volatile variables. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_setup.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_setup.c index 05d8d754f4

[U-Boot] [PATCH v2 09/11] efi_loader: bootmgr: handle BootNext as non-volatile

2019-04-23 Thread AKASHI Takahiro
Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_bootmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c index 4ccba2287572..e8f48684257f 100644 --- a/lib/efi_loader/efi_bootmgr.c +++ b/lib/efi_loader/efi_boo

[U-Boot] [PATCH v2 10/11] cmd: env: add -nv option for UEFI non-volatile variable

2019-04-23 Thread AKASHI Takahiro
With this option, -nv, at "setenv -e" command, a variable will be defined as non-volatile. Signed-off-by: AKASHI Takahiro --- cmd/nvedit.c | 3 ++- cmd/nvedit_efi.c | 15 --- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/cmd/nvedit.c b/cmd/nvedit.c index 24a6cf

[U-Boot] [PATCH v2 11/11] cmd: efidebug: make some boot variables non-volatile

2019-04-23 Thread AKASHI Takahiro
Boot, BootOrder and BootNext should be non-volatile. Signed-off-by: AKASHI Takahiro --- cmd/efidebug.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/efidebug.c b/cmd/efidebug.c index 8890dd7268f1..ff3cad53f1b7 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -554,6 +554,7 @@

[U-Boot] [PATCH v2 07/11] efi_loader: variable: split UEFI variables from U-Boot environment

2019-04-23 Thread AKASHI Takahiro
UEFI volatile variables are managed in efi_var_htab while UEFI non-volatile variables are in efi_nv_var_htab. At every SetVariable API, env_efi_save() will also be called to save data cache (hash table) to persistent storage. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_variable.c | 162

[U-Boot] [PATCH v2 02/11] lib: charset: add u16_strncmp()

2019-04-23 Thread AKASHI Takahiro
u16_strncmp() works like u16_strcmp() but only at most n characters (in u16) are compared. This function will be used in a later patch. Signed-off-by: AKASHI Takahiro --- include/charset.h | 5 + lib/charset.c | 13 + 2 files changed, 18 insertions(+) diff --git a/include/c

[U-Boot] [PATCH v2 01/11] lib: charset: add u16_strcmp()

2019-04-23 Thread AKASHI Takahiro
u16 version of strcmp() AUTHER: Patrick Wildt Signed-off-by: AKASHI Takahiro --- include/charset.h | 5 + lib/charset.c | 10 ++ 2 files changed, 15 insertions(+) diff --git a/include/charset.h b/include/charset.h index 65087f76d1fc..747a9b376c03 100644 --- a/include/charset.h

[U-Boot] [PATCH v2 03/11] cmd: efidebug: rework "boot dump" sub-command using GetNextVariableName()

2019-04-23 Thread AKASHI Takahiro
Efidebug command should be implemented using well-defined EFI interfaces, rather than using internal functions/data. This change will be needed in a later patch where UEFI variables are re-implemented. Signed-off-by: AKASHI Takahiro --- cmd/efidebug.c | 92 ---

[U-Boot] [PATCH v2 04/11] efi_loader: set OsIndicationsSupported at init

2019-04-23 Thread AKASHI Takahiro
UEFI variable should be installed using well-defined API. Currently we don't support much, but the value fo OsIndicationsSupported will be updated once some features are added in the future. Signed-off-by: AKASHI Takahiro --- cmd/bootefi.c | 4 lib/efi_loader/efi_setup.c | 9 ++

[U-Boot] [PATCH v2 00/11] efi_loader: non-volatile variables support

2019-04-23 Thread AKASHI Takahiro
This patch set is an attempt to implement non-volatile attribute for UEFI variables. Under the current implementation, * SetVariable API doesn't recognize non-volatile attribute * While some variables are defined non-volatile in UEFI specification, they are NOT marked as non-volatile in the code.

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

2019-04-23 Thread Jun Nie
Peng Fan 于2019年4月24日周三 下午1:15写道: > > > > Subject: [PATCH v3 4/9] pico-imx7d: Correct uart clock root > > > > Correct uart clock root ID. Incorrect ID may result the clock is gated > > because > > rate value 0 is returned in > > imx_get_uartclk() > > Yes. hardcoding to UART1_ROOT_CLK in imx_get_ua

[U-Boot] [PATCH v2] arm: socfpga: Move Stratix 10 SDRAM driver to DM

2019-04-23 Thread Ley Foon Tan
Convert Stratix 10 SDRAM driver to device model. Get rid of call to socfpga_per_reset() and use reset framework. SPL is changed from calling function in SDRAM driver directly to just probing UCLASS_RAM. Move sdram_s10.h from arch to driver/ddr/altera directory. Signed-off-by: Ley Foon Tan ---

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

2019-04-23 Thread Jan Kiszka
[prolonging the CCs with the efibootguard mailing list] On 24.04.19 03:23, daniel.sangor...@toshiba.co.jp wrote: Hello Francois, Jan, Christian, and all EFI Boot Guard is now shipped in quite a few devices, to my knowledge not only at Sorry for the late reply, I was waiting for the administrat

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

2019-04-23 Thread Vaittinen, Matti
Thanks for looking at this Simon! On Tue, 2019-04-23 at 21:54 -0600, Simon Glass wrote: > 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

Re: [U-Boot] [PATCH] sunxi: set PIO voltage to hardware-detected value on startup on H6

2019-04-23 Thread Icenowy Zheng
在 2019-04-24三的 13:44 +0800,Icenowy Zheng写道: > The Allwinner H6 SoC has a register to set the PIO banks' voltage. > When > it mismatches the real voltage supplied to the VCC to the PIO supply, > the PIO will work improperly. > > The PIO controller also has a register that contains the status of > e

Re: [U-Boot] [RFC PATCH v1 2/2] power: regulator: support ROHM BD71837 PMIC

2019-04-23 Thread Vaittinen, Matti
Hello Simon, Thanks a bunch for taking the time and reviewing this! I do appreciate! On Tue, 2019-04-23 at 21:54 -0600, Simon Glass wrote: > Hi Matti, > > On Wed, 27 Mar 2019 at 06:40, Matti Vaittinen > wrote: > > > > Add regulator driver for ROHM BD71837 PMIC. BD71837 contains > > 8 bucks and

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

2019-04-23 Thread Padmarao Begari
Hi Bin, On Tue, Apr 23, 2019 at 6:42 PM Bin Meng wrote: > 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. > Ok > > For now, NS16550 serial driver is

[U-Boot] [PATCH] sunxi: set PIO voltage to hardware-detected value on startup on H6

2019-04-23 Thread Icenowy Zheng
The Allwinner H6 SoC has a register to set the PIO banks' voltage. When it mismatches the real voltage supplied to the VCC to the PIO supply, the PIO will work improperly. The PIO controller also has a register that contains the status of each VCC rail of the PIO supplies, and it has the same defi

[U-Boot] [PATCH v2 1/1] common: fdt_support: Check mtdparts cell size

2019-04-23 Thread Stefan Mavrodiev
When using fdt_fixup_mtdparts() offset and length cell sizes are limited to 4 bytes (1 cell). However if the mtd device is bigger then 4GiB, then #address-cells and #size-cells are 8 bytes (2 cells) [1]. This patch read #size-cells and uses either fdt32_t or fdt64_t cell size. The default is fdt32

Re: [U-Boot] [PATCH v4] arm: socfpga: mailbox: Fix off-by-one error on command length checking

2019-04-23 Thread Simon Goldschmidt
Ley Foon Tan schrieb am Mi., 24. Apr. 2019, 07:21: > A mailbox command contains 1-u32 header + arguments. The "len" variable > only contains the length of the arguments, but not the 1-u32 header. > Include the length of header when checking the ring buffer space to > prevent off-by-one error. > >

[U-Boot] [PATCH v4] arm: socfpga: mailbox: Fix off-by-one error on command length checking

2019-04-23 Thread Ley Foon Tan
A mailbox command contains 1-u32 header + arguments. The "len" variable only contains the length of the arguments, but not the 1-u32 header. Include the length of header when checking the ring buffer space to prevent off-by-one error. Signed-off-by: Ley Foon Tan Signed-off-by: Chee Hong Ang ---

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

2019-04-23 Thread Peng Fan
> Subject: [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d > > Copy device tree files from Linux directly. Please describe which specific commit from Linux kernel upstream Regards, Peng. > > Signed-off-by: Jun Nie > --- > arch/arm/dts/Makefile | 1 + > arch/arm/dts/imx7

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

2019-04-23 Thread Peng Fan
> Subject: [PATCH v3 5/9] pico-imx7d: Reserve region of memory to OPTEE > > 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

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

2019-04-23 Thread Peng Fan
> Subject: [PATCH v3 4/9] pico-imx7d: Correct uart clock root > > Correct uart clock root ID. Incorrect ID may result the clock is gated because > rate value 0 is returned in > imx_get_uartclk() Yes. hardcoding to UART1_ROOT_CLK in imx_get_uartclk is not good. But actually init_clk_uart configur

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

2019-04-23 Thread Peng Fan
Hi Jun > Subject: [PATCH v3 3/9] imx: mx7: Add empty arch_cpu_init if skipped > > 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

[U-Boot] [PATCH v3 9/9] pico-imx7d: README: Add BL33 usage case

2019-04-23 Thread Jun Nie
Add Documentation of BL33 usage case. U-boot is in non-secure world in this case. Signed-off-by: Jun Nie --- board/technexion/pico-imx7d/README.pico-imx7d_BL33 | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 board/technexion/pico-imx7d/README.pico-imx7d_BL33 di

[U-Boot] [PATCH v3 8/9] pico-imx7d: Add bl33 config

2019-04-23 Thread Jun Nie
Add default configuration to run u-boot as BL33 in the boot flow case of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. Signed-off-by: Jun Nie --- configs/pico-imx7d_bl33_defconfig | 63 +++ 1 file changed, 63 insertions(+) create mode 100644 configs/pico-imx7

[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 +++ arch/arm/mach-imx/mx7/clock.c

[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 d

[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 + doc/device-tree-bind

[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 b/arch/ar

[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 doc/device-tree-bindings/sound/nvidia,tegra-audio

[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 --- board/technexion/pico-i

[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 support.

[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 arch

[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 --gi

[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 w

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(-) > Reviewe

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 ++-- > drivers/pinctrl/rockchip/pinctrl

[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 - inclu

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 C201

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 V2] mmc: dw_mmc: Calculate timeout from transfer length

2019-04-23 Thread Simon Glass
On Mon, 1 Apr 2019 at 21:39, Marek Vasut wrote: > > The current 4-minute data transfer timeout is misleading and broken. > Instead of such a long wait, calculate the timeout duration based on > the length of the data transfer. The current formula is the transfer > length in bits, divided by a mult

Re: [U-Boot] [PATCH 2/2] disk: efi: ignore 'IGNOREME' GPT header found on cros eMMCs

2019-04-23 Thread Simon Glass
Hi Urja, On Wed, 3 Apr 2019 at 06:25, Urja Rannikko wrote: > > Some ChromeOS devices (atleast veyron speedy) have the first 8MiB of > the eMMC write protected and equipped with a dummy 'IGNOREME' GPT > header - instead of spewing error messages about it, just silently > try the backup GPT. > > No

Re: [U-Boot] [PATCH 3/3] configs: update rk3288 veyron defconfigs

2019-04-23 Thread Simon Glass
On Wed, 3 Apr 2019 at 03:34, Urja Rannikko wrote: > > Updates jerry, mickey, minnie and speedy defconfigs to: > - fit the SPL in 32k > - boot from SPI (only) > - remove gadget support (these have no OTG port) > > Signed-off-by: Urja Rannikko > --- > configs/chromebit_mickey_defconfig | 26 +

Re: [U-Boot] [PATCH 1/1] test: env: Enable env unit tests by default

2019-04-23 Thread Simon Glass
On Sun, 7 Apr 2019 at 09:58, Heinrich Schuchardt wrote: > > If CONFIG_UNIT_TEST is enabled we should enable the individual tests by > default to ensure good test coverage. > > Signed-off-by: Heinrich Schuchardt > --- > Tests ok on Travis CI: > https://travis-ci.org/xypron2/u-boot/builds/516825681

Re: [U-Boot] [PATCH 1/3] configs: Move CONFIG_SPI_FLASH_GIGADEVICE properly into Kconfig

2019-04-23 Thread Simon Glass
On Wed, 3 Apr 2019 at 03:34, Urja Rannikko wrote: > > Affects rk3288 veyrons and rk3036, this was mostly done by > moveconfig.py. > > Signed-off-by: Urja Rannikko > --- > configs/chromebit_mickey_defconfig | 1 + > configs/chromebook_jerry_defconfig | 1 + > configs/chromebook_minnie_defconfig

Re: [U-Boot] [RFC PATCH v1 2/2] power: regulator: support ROHM BD71837 PMIC

2019-04-23 Thread Simon Glass
Hi Matti, On Wed, 27 Mar 2019 at 06:40, Matti Vaittinen wrote: > > Add regulator driver for ROHM BD71837 PMIC. BD71837 contains > 8 bucks and 7 LDOS. Voltages for bucks 1-4 can be adjusted > when regulators are enabled. For other bucks and LDOs we may > have over- or undershooting if voltage is a

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 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 's

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 at

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 > > Chang

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 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 fe

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] [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 CONFIG

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 w

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 CONFIG_HART_

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] pin

Re: [U-Boot] [PATCH 0/4] AE350 support SMP boot from flash

2019-04-23 Thread Rick Chen
Hi Lukas Auer, Lukas 於 2019年4月24日 週三 上午3:58寫道: > > Hi Rick, > > On Tue, 2019-04-23 at 13:42 +0800, Andes wrote: > > From: Rick Chen > > > > In current RISC-V SMP flow, AE350 will encounter the the write > > failure problem since hart_lottery and available_harts_lock was > > not in ram address bu

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 the

[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 output.

[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 CONFIG_OPT

[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 change

[U-Boot] [PATCH 0/4] Tidy up some dangling OP-TEE gotchas

2019-04-23 Thread Bryan O'Donoghue
Rober P Day rightly pointed out that some odd OP-TEE specific defines were appearing in his defconfig, despite not having CONFIG_OPTEE=y set in his defconfig. Looking into this with a small bit of restructure we can fix this corner case. - Make sure OP-TEE CONFIG options only appear when you are

[U-Boot] [PATCH 1/4] optee: Make TZDRAM config options contingent on CONFIG_OPTEE

2019-04-23 Thread Bryan O'Donoghue
Commit c7b3a7ee5351 ("optee: adjust dependencies and default values for dram") makes the TZDRAM defines for OPTEE show up for all configs as a side-effect. While not harmful its not what we really want. This patch makes the following defines contingent on CONFIG_OPTEE=y CONFIG_OPTEE_TZDRAM_BASE C

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. > > https://patchwork.kernel.org/patch/10913869/

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

2019-04-23 Thread Atish Patra
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. https://patchwork.kernel.org/patch/10913869/ Tested on HiFive Unleashed and QEMU. Currently, com

Re: [U-Boot] [PATCHv5 0/6] dm: cache: add dm cache driver

2019-04-23 Thread Tom Rini
On Tue, Apr 23, 2019 at 04:55:00PM -0500, Dinh Nguyen wrote: > Hi, > > This is V4 of the series to add a UCLASS_CACHE dm driver to handling > the configuration of cache settings. Place this new driver under > /drivers/cache. In this initial revision, the driver is only configuring > what I think a

[U-Boot] [PATCHv5 4/6] dm: cache: add the pl310 cache controller driver

2019-04-23 Thread Dinh Nguyen
Add a PL310 cache controller driver that is usually found on ARMv7(32-bit) devices. The driver configures the cache settings that can be found in the device tree files. This initial revision only configures basic settings(data & instruction prefetch, shared-override, data & tag latency). I believe

[U-Boot] [PATCHv5 6/6] configs: socfpga: add imply pl310 cache controller

2019-04-23 Thread Dinh Nguyen
Select the PL310 UCLASS_CACHE driver for SoCFPGA. Reviewed-by: Marek Vasut Reviewed-by: Simon Glass Signed-off-by: Dinh Nguyen --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f58f8fb235..f5132d8174 100644 --- a/arch/arm/Kconfig

[U-Boot] [PATCHv5 3/6] dm: cache: Create a uclass for cache

2019-04-23 Thread Dinh Nguyen
The cache UCLASS will be used for configure settings that can be found in a CPU's L2 cache controller. Add a uclass and a test for cache. Reviewed-by: Simon Glass Signed-off-by: Dinh Nguyen --- v5: fix compile error for sandbox_cache.c v4: re-order includes and add Reviewed-by: v3: Add cache_ge

[U-Boot] [PATCHv5 5/6] ARM: socfpga: use the pl310 driver to configure the cache

2019-04-23 Thread Dinh Nguyen
Find the UCLASS_CACHE driver to configure the cache controller's settings. Reviewed-by: Marek Vasut Reviewed-by: Simon Glass Signed-off-by: Dinh Nguyen --- arch/arm/mach-socfpga/misc.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-socfpga/m

[U-Boot] [PATCHv5 2/6] ARM: pl310: Add macro's for handling tag and data latency mask

2019-04-23 Thread Dinh Nguyen
Add the PL310 macros for latency control setup, read and write bits. Reviewed-by: Marek Vasut Reviewed-by: Simon Glass Signed-off-by: Dinh Nguyen --- arch/arm/include/asm/pl310.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/include/asm/pl310.h b/arch/arm/include/asm/pl310.h

[U-Boot] [PATCHv5 1/6] Documentation: dts: Add pl310 cache controller dts documentation

2019-04-23 Thread Dinh Nguyen
Linux commit 8ecd7f5970c5 ("ARM: 8483/1: Documentation: l2c: Rename l2cc to l2c2x0") Linux docs: Documentation/devicetree/bindings/arm/l2c2x0.txt Copied from Linux kernel v5.0. "The documentation in the l2cc.txt is specific to the L2 cache controllers L2C210/L2C220/L2C310 (also known as PL210/PL

[U-Boot] [PATCHv5 0/6] dm: cache: add dm cache driver

2019-04-23 Thread Dinh Nguyen
Hi, This is V4 of the series to add a UCLASS_CACHE dm driver to handling the configuration of cache settings. Place this new driver under /drivers/cache. In this initial revision, the driver is only configuring what I think are essential cache settings. The more comprehensive cache settings can be

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

2019-04-23 Thread Marek Vasut
On 4/23/19 10:51 PM, Simon Goldschmidt wrote: > > > Marek Vasut mailto:ma...@denx.de>> schrieb am Di., 23. > Apr. 2019, 22:43: > > On 4/23/19 9:36 PM, Simon Goldschmidt wrote: > > This series cleans up the include/configs/socfpga_common.h file a bit. > > > > It removes some defin

Re: [U-Boot] [U-Boot, PATCHv4, 3/6] dm: cache: Create a uclass for cache

2019-04-23 Thread Dinh Nguyen
On 4/22/19 12:48 PM, Tom Rini wrote: > On Mon, Apr 01, 2019 at 05:32:17PM -0500, Dinh Nguyen wrote: > >> The cache UCLASS will be used for configure settings that can be found >> in a CPU's L2 cache controller. >> >> Add a uclass and a test for cache. >> >> Reviewed-by: Simon Glass >> Signed-of

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

2019-04-23 Thread Simon Goldschmidt
Marek Vasut schrieb am Di., 23. Apr. 2019, 22:43: > On 4/23/19 9:36 PM, Simon Goldschmidt wrote: > > This series cleans up the include/configs/socfpga_common.h file a bit. > > > > It removes some defines that are used nowhere and cleans up some > > leftovers after various subsystems have been con

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

2019-04-23 Thread Marek Vasut
On 4/23/19 9:36 PM, Simon Goldschmidt wrote: > This series cleans up the include/configs/socfpga_common.h file a bit. > > It removes some defines that are used nowhere and cleans up some > leftovers after various subsystems have been converted to use DM. > > Changes in v4: > - fix DM_I2C case: do

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

2019-04-23 Thread Lukasz Majewski
Hi Simon, > 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. Reviewed-by: Lukasz Majewski > > Signed-off-by: Simon Goldschmidt > Reviewed-b

Re: [U-Boot] [PATCH 0/4] AE350 support SMP boot from flash

2019-04-23 Thread Auer, Lukas
Hi Rick, On Tue, 2019-04-23 at 13:42 +0800, Andes wrote: > From: Rick Chen > > In current RISC-V SMP flow, AE350 will encounter the the write > failure problem since hart_lottery and available_harts_lock was > not in ram address but in flash address when booing from flash. > > This patch can he

[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 incl

[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 bo

[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 fi

[U-Boot] [PATCH v4 1/4] arm: socfpga: move vining_fpga to DM_I2C

2019-04-23 Thread Simon Goldschmidt
All socfpga boards except for vining_fpga use DM_I2C. Enable DM_I2C for this board and set the EEPROM defines via Kconfig (enabling CONFIG_I2C_EEPROM from MISC). Signed-off-by: Simon Goldschmidt --- Changes in v4: - fix DM_I2C case: don't call i2c_set_bus_num() since this is done in cmd/eeprom

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

2019-04-23 Thread Simon Goldschmidt
This series cleans up the include/configs/socfpga_common.h file a bit. It removes some defines that are used nowhere and cleans up some leftovers after various subsystems have been converted to use DM. Changes in v4: - fix DM_I2C case: don't call i2c_set_bus_num() since this is done in cmd/eepr

[U-Boot] [PATCH v3 2/2] Revert "cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT"

2019-04-23 Thread Simon Goldschmidt
This reverts commit 65a97e7fcf54feb7c4ebe1aee8a572830af4cf51. The 'eeprom' command has been converted to work with DM_I2C in a patch submitted around the same time as this commit: commit 0c07a9b4078d ("eeprom: Add device model based I2C support to eeprom command") Signed-off-by: Simon Goldschmid

  1   2   >