Re: [U-Boot] [PATCH v6 00/25] Fix and extend i.MX HAB layer

2018-02-08 Thread Jagan Teki
On Thu, Feb 8, 2018 at 9:47 PM, Bryan O'Donoghue wrote: > >>> >>> I'm observing authentication issue while loading U-Boot proper, U-Boot >>> proper now have features like SPL DM and SPL FIT etc >>> >>> U-Boot SPL 2018.03-rc1-00182-gb81f7c9 (Feb 08 2018 - 17:19:03 +0530) >>> Trying to boot from MMC

Re: [U-Boot] [PATCH] block: Migrate SystemACE chip to Kconfig

2018-02-08 Thread Michal Simek
On 8.2.2018 19:51, Tom Rini wrote: > Migrate the base and sub-options to Kconfig. Note that we only enable > this in the base sandbox config now. > > Cc: Alexey Brodkin > Cc: Michal Simek > Signed-off-by: Tom Rini > --- > Is this driver still used anywhere? It's fishy that it's only enabled >

[U-Boot] [PATCH] arm/PSCI: support PSCI versions greater than 1.0

2018-02-08 Thread Andre Heider
ATF recently began announcing PSCI v1.1. Since that version is unknown to u-boot, the PSCI device nodes were not updated. Switch from the case statement to a greater/less-than comparison so that v1.1, as well as future versions, get at least the compatible nodes of known versions. PSCI v1.1 doesn

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-08 Thread Heinrich Schuchardt
On 02/09/2018 05:12 AM, Jonathan Gray wrote: On Fri, Feb 09, 2018 at 04:43:09AM +0100, Heinrich Schuchardt wrote: On 02/09/2018 12:55 AM, Jonathan Gray wrote: On Thu, Feb 08, 2018 at 03:44:32PM +0100, Heinrich Schuchardt wrote: On 02/08/2018 10:49 AM, Jonathan Gray wrote: On Thu, Feb 08, 2018

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-08 Thread Jonathan Gray
On Fri, Feb 09, 2018 at 04:43:09AM +0100, Heinrich Schuchardt wrote: > On 02/09/2018 12:55 AM, Jonathan Gray wrote: > > On Thu, Feb 08, 2018 at 03:44:32PM +0100, Heinrich Schuchardt wrote: > > > On 02/08/2018 10:49 AM, Jonathan Gray wrote: > > > > On Thu, Feb 08, 2018 at 08:10:47PM +1100, Jonathan

Re: [U-Boot] [PATCH v3 11/18] efi_loader: make efi_disk_create_partitions a global symbol

2018-02-08 Thread Heinrich Schuchardt
On 02/09/2018 01:15 AM, Jonathan Gray wrote: On Fri, Jan 19, 2018 at 08:24:47PM +0100, Heinrich Schuchardt wrote: Up to now we have been using efi_disk_create_partitions() to create partitions for block devices that existed before starting an EFI application. We need to call it for block device

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-08 Thread Heinrich Schuchardt
On 02/09/2018 12:55 AM, Jonathan Gray wrote: On Thu, Feb 08, 2018 at 03:44:32PM +0100, Heinrich Schuchardt wrote: On 02/08/2018 10:49 AM, Jonathan Gray wrote: On Thu, Feb 08, 2018 at 08:10:47PM +1100, Jonathan Gray wrote: On Thu, Feb 08, 2018 at 09:11:20AM +0100, Alexander Graf wrote: Am 0

[U-Boot] [PATCH 2/3] clk: at91: add PLLADIV driver

2018-02-08 Thread Wenyou Yang
As said in the SAMA5D2 datasheet, the PLLA clock must be divided by 2 by writing the PLLADIV2 bit in PMC_MCKR, if the ratio between PCK and MCK is 3 (MDIV = 3). This is the purpose of the driver. Signed-off-by: Wenyou Yang --- drivers/clk/at91/Makefile | 2 +- drivers/clk/at91/clk-plladiv

[U-Boot] [PATCH 3/3] clk: at91: clk-system: add set/get_rate operations

2018-02-08 Thread Wenyou Yang
To support set/get the clock rate, add set/get_rate operations. Signed-off-by: Wenyou Yang --- drivers/clk/at91/clk-system.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/clk/at91/clk-system.c b/drivers/clk/at91/clk-system.c index 24b271aa18..81fe47a9d7

[U-Boot] [PATCH 1/3] clk: at91: add USB Host clock driver

2018-02-08 Thread Wenyou Yang
Add USB clock driver to configure the input clock and the divider in the PMC_USB register to generate a 48MHz and a 12MHz signal to the USB Host OHCI. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/include/mach/at91_pmc.h | 6 ++ drivers/clk/at91/Kconfig | 8 ++ drivers

[U-Boot] [PATCH 0/3] clk: at91: add usb and plladiv drivers

2018-02-08 Thread Wenyou Yang
In order to provide the clocks UHP48MHz and UHP12MHz to the USB Host OHCI, add the USB clock and PLLADIV clock driver. Wenyou Yang (3): clk: at91: add USB Host clock driver clk: at91: add PLLADIV driver clk: at91: clk-system: add set/get_rate operations arch/arm/mach-at91/include/mach/at9

[U-Boot] [PATCH v2 2/2] pinctrl-uclass: convert to use live dt

2018-02-08 Thread Kever Yang
Use live dt interface for pinctrl_select_state_full() Signed-off-by: Kever Yang --- Changes in v2: None drivers/pinctrl/pinctrl-uclass.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c

[U-Boot] [PATCH v2 1/2] core: add uclass_get_device_by_phandle_id() api

2018-02-08 Thread Kever Yang
Add api for who can not get phandle from a device property. Signed-off-by: Kever Yang --- Changes in v2: - use uint instead of int for phandle - address comment from Philipp drivers/core/uclass.c | 26 ++ include/dm/uclass.h | 16 2 files changed, 42

Re: [U-Boot] Move most CONFIG_HAVE_BLOCK_DEVICE to Kconfig

2018-02-08 Thread Tom Rini
On Tue, Feb 06, 2018 at 12:43:56PM -0600, Adam Ford wrote: > config_fallbacks.h has some logic that sets HAVE_BLOCK_DEVICE > based on a list of enabled options. Moving HAVE_BLOCK_DEIVCE to > Kconfig allows us to drastically shrink the logic in > config_fallbacks.h > > Signed-off-by: Adam Ford

Re: [U-Boot] Convert LIB_UUID to Kconfig

2018-02-08 Thread Tom Rini
On Tue, Feb 06, 2018 at 12:14:28PM -0600, Adam Ford wrote: > config_fallback.h has some logic that checks a variety of options > and selects LIB_UUID if it hasn't already been selected. This > will all LIB_UUID in Kconfig and select this option for the list > of options to allow us to remove the

Re: [U-Boot] [PATCH] block: Migrate SystemACE chip to Kconfig

2018-02-08 Thread Tom Rini
On Thu, Feb 08, 2018 at 01:51:54PM -0500, Tom Rini wrote: > Migrate the base and sub-options to Kconfig. Note that we only enable > this in the base sandbox config now. > > Cc: Alexey Brodkin > Cc: Michal Simek > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom

[U-Boot] [PATCH] pwm-backlight: make power-supply as option

2018-02-08 Thread Kever Yang
Some pwm backlight may not need 'power-supply', let's make it as option in pwm-backlight driver. Signed-off-by: Kever Yang --- drivers/video/pwm_backlight.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/video/pwm_backlight.c b/drivers/vid

Re: [U-Boot] TCP & Overrrun

2018-02-08 Thread Duncan Hare
On Thu, 8 Feb 2018 22:15:44 + (UTC) Duncan Hare wrote: >  Duncan Hare > > 714 931 7952 > > > - Forwarded Message - > From: Joe Hershberger > To: Duncan Hare > Cc: u-boot ; Joe Hershberger > Sent: Thursday, February 8, 2018 11:40 AM > Subject: Re: [U-Boot] TCP & Overrrun

[U-Boot] [PATCH v2 3/7] net: sun8i-emac: add support for new EMAC DT binding

2018-02-08 Thread Andre Przywara
The Ethernet MAC used in newer Allwinner SoCs (H3, A64, H5) got an upstream Linux driver in v4.15. This one uses a slightly different binding from the original one used by the U-Boot driver. The differences to the old binding are: - The "syscon" address is held in a separate node, referenced via a

[U-Boot] [PATCH v2 6/7] arm: dts: sunxi: update H5 to new EMAC binding

2018-02-08 Thread Andre Przywara
The U-Boot driver for the sun8i-emac was using some preliminary DT binding. Now since Linux got its own driver in v4.15 and our driver can now cope with both bindings, let's convert the DT nodes used by the OrangePi PC2 over to the new bindings used by the kernel. Signed-off-by: Andre Przywara --

[U-Boot] [PATCH v2 5/7] arm: dts: sunxi: update H3 to new EMAC binding

2018-02-08 Thread Andre Przywara
The U-Boot driver for the sun8i-emac was using some preliminary DT binding. Now since Linux got its own driver in v4.15 and our driver can now cope with both bindings, let's convert the DT nodes used by the various H3 boards over to the new bindings used by the kernel. Signed-off-by: Andre Przywar

[U-Boot] [PATCH v2 7/7] net: sun8i-emac: remove support for old binding

2018-02-08 Thread Andre Przywara
The original DT binding used by U-Boot's sun8i-emac driver was not really agreed upon, and deviated from the "official" binding now used by the kernel. Since now all U-Boot users have been converted to the new binding, we can remove support for the old DT nodes from the driver. Signed-off-by: Andr

[U-Boot] [PATCH v2 4/7] arm: dts: sunxi: update A64 to new EMAC binding

2018-02-08 Thread Andre Przywara
The U-Boot driver for the sun8i-emac was using some preliminary DT binding. Now since Linux got its own driver in v4.15 and our driver can now cope with both bindings, let's convert the DT nodes used for the Pine64+ board over to the new bindings used by the kernel. Signed-off-by: Andre Przywara

[U-Boot] [PATCH v2 1/7] sunxi: gpio: add missing compatible strings

2018-02-08 Thread Andre Przywara
The sunxi GPIO driver is missing some compatible strings for recent SoCs. While most of the sunxi GPIO code seems to not rely on this (and so works anyway), the sunxi_name_to_gpio() function does and fails at the moment (for instance when resolving the MMC CD pin name). Add the compatible strings f

[U-Boot] [PATCH v2 2/7] net: sun8i-emac: support new pinctrl DT bindings

2018-02-08 Thread Andre Przywara
The Linux kernel driver for the Allwinner pin controller gained support for generic properties, which are now also used in the DTs. The sun8i-emac Ethernet driver for new Allwinner MACs reads the pins from the DT, but so far only supported the old binding. Update the parsing routine to cope with bo

[U-Boot] [PATCH v2 0/7] sunxi: sun8i-emac: Update DT bindings

2018-02-08 Thread Andre Przywara
Compared to the last post, this converts U-Boot's DTs over to use the new binding, so that the final patch can remove support for the old binding from U-Boot EMAC driver. The Linux DTs can be synced in later once we solved the size problem. The exis

Re: [U-Boot] [PATCH v3 11/18] efi_loader: make efi_disk_create_partitions a global symbol

2018-02-08 Thread Jonathan Gray
On Fri, Jan 19, 2018 at 08:24:47PM +0100, Heinrich Schuchardt wrote: > Up to now we have been using efi_disk_create_partitions() to create > partitions for block devices that existed before starting an EFI > application. > > We need to call it for block devices created by EFI > applications at run

Re: [U-Boot] [PATCH v2 10/26] mmc: refactor SD startup to make it easier to support new modes

2018-02-08 Thread Jonathan Gray
On Thu, Sep 21, 2017 at 04:29:57PM +0200, Jean-Jacques Hiblot wrote: > The SDcard startup process currently handles only 2 modes. To make it > easier to add support for more modes, let's make the process more generic > and use a list of the modes to try. > The major functional change is that when a

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-08 Thread Jonathan Gray
On Thu, Feb 08, 2018 at 03:44:32PM +0100, Heinrich Schuchardt wrote: > On 02/08/2018 10:49 AM, Jonathan Gray wrote: > > On Thu, Feb 08, 2018 at 08:10:47PM +1100, Jonathan Gray wrote: > >> On Thu, Feb 08, 2018 at 09:11:20AM +0100, Alexander Graf wrote: > >>> > >>> > Am 08.02.2018 um 06:49 schri

Re: [U-Boot] [PATCH 2/5] arch-stm32: Move gpio.h for STM32 SoCs in include/asm/

2018-02-08 Thread Vikas Manocha
Hi Patrice, On 02/08/2018 05:35 AM, Patrice CHOTARD wrote: > Hi Vikas > > On 02/07/2018 08:28 PM, Vikas Manocha wrote: >> Hi Patrice, >> >> On 02/07/2018 07:50 AM, patrice.chot...@st.com wrote: >>> From: Patrice Chotard >>> >>> Instead to have 3 identical gpio.h for all STM32 SoCs, >>> migrate t

Re: [U-Boot] TCP & Overrrun

2018-02-08 Thread dh
On Thu, 8 Feb 2018 22:15:44 + (UTC) Duncan Hare wrote: >  Duncan Hare > > 714 931 7952 > > > - Forwarded Message - > From: Joe Hershberger > To: Duncan Hare > Cc: u-boot ; Joe Hershberger > Sent: Thursday, February 8, 2018 11:40 AM > Subject: Re: [U-Boot] TCP & Overrrun

Re: [U-Boot] [PATCH 2/2] env: Add back default action of get_char in env_get_char()

2018-02-08 Thread Maxime Ripard
On Thu, Feb 08, 2018 at 10:52:20AM +0100, Simon Goldschmidt wrote: > On 08.02.2018 09:47, Maxime Ripard wrote: > > On Wed, Feb 07, 2018 at 02:17:12PM -0800, York Sun wrote: > > > Commit 8a3a7e2270b3 ("env: Pass additional parameters to the env > > > lookup function") dropped the default action if d

[U-Boot] [PATCH v4 3/4] dm: video: use constants to refer to colors

2018-02-08 Thread Heinrich Schuchardt
Use constants to refer to colors. Adjust initialization of foreground and background color to avoid setting reserved bits. Consistently u32 instead of unsigned for color bit mask. Signed-off-by: Heinrich Schuchardt --- v4 Fix a build warning, that was treated as an error in Travis testing

[U-Boot] [PATCH v4 2/4] dm: video: correctly clean background in 16bit mode

2018-02-08 Thread Heinrich Schuchardt
In 16 bit mode we have to copy two bytes per pixels repeatedly and not four. Otherwise we will see a striped pattern. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- v4 no change v3 no change v2 no change --- drivers/video/video-uclass.c | 16

[U-Boot] [PATCH v4 4/4] dm: video: support increased intensity (bold)

2018-02-08 Thread Heinrich Schuchardt
Support special rendition code 0 - reset attributes. Support special rendition code 1 - increased intensity (bold). Signed-off-by: Heinrich Schuchardt --- v4 Rename priv->fg to priv->fg_col_idx. v3 Add color constants. v2 SGR 0 should reset the colors and the attributes. -

[U-Boot] [PATCH v4 0/4] dm: video: Correct color ANSI escape sequence support

2018-02-08 Thread Heinrich Schuchardt
Support special rendition code 0 - reset attributes. Support special rendition code 1 - increased intensity (bold). Get RGB sequence in pixels right (swap blue and red). Do not set reserved bits. Use u32 instead of unsigned for color bit mask. qemu-system-i386 -display sdl -vga virtio and qemu-sys

[U-Boot] [PATCH v4 1/4] dm: video: show correct colors in graphical console

2018-02-08 Thread Heinrich Schuchardt
Get RGB sequence in pixels right (swap blue and red). Do not set reserved bits. qemu-system-i386 -display sdl -vga virtio and qemu-system-i386 -display sdl -vga cirrus now display the similar colors (highlighting still missing) as qemu-system-i386 -nographic Testing is possible via seten

[U-Boot] [PATCH] video: ivybridge: FIx defined but not used warning

2018-02-08 Thread Tom Rini
The struct ivb_pm_gt2 is defined but never used, only the _17w and _35w variants. Cc: Anatolij Gustschin Cc: Bin Meng Signed-off-by: Tom Rini --- The code that uses ivb_pm_gt2_17w/ivb_pm_gt2_35w/ivb_pm_gt2_35w maybe is supposed to use this instead at one point? Or maybe it's a bring-up artifac

[U-Boot] efi_loader: patches for v2018.03-rc2

2018-02-08 Thread Heinrich Schuchardt
Hello Alex, could you, please, review the following patches and select them for your pull request for v2018.03-rc2. https://github.com/xypron2/u-boot.git, branch v2018.03-rc2 up to commit 55e90f0e97a846113518eab71757740051cd9d4b. Travis ran without errors: https://travis-ci.org/xypron2/u-boot/b

Re: [U-Boot] TCP & Overrrun

2018-02-08 Thread Joe Hershberger
Hi Duncan, On Wed, Feb 7, 2018 at 8:40 PM, Duncan Hare wrote: > I'm gettin overrun on the raspberry pi. > > Which ethernet drived does it use? You didn't specify which one you are talking about, but here's how to find out... Assuming rpi3, find the config first... configs/rpi_3_defconfig says:

Re: [U-Boot] [PATCH 1/2] env: Fix env_load_location

2018-02-08 Thread York Sun
On 02/08/2018 02:05 AM, Simon Goldschmidt wrote: > On 08.02.2018 09:38, Maxime Ripard wrote: >> Hi, >> >> Thanks for your patch >> >> On Wed, Feb 07, 2018 at 02:17:11PM -0800, York Sun wrote: >>> Commit 7d714a24d725 ("env: Support multiple environments") added >>> static variable env_load_location.

Re: [U-Boot] [PATCH v3 1/2] i.MX6: nand: add nandbcb update command

2018-02-08 Thread Fabio Estevam
Hi Stefan, On Wed, Feb 7, 2018 at 3:02 PM, wrote: > Thanks for working on that! We carry a similar command since a while > downstream and I hoped since quite a while to get some time to upstream > it: > > http://git.toradex.com/cgit/u-boot-toradex.git/tree/arch/arm/imx-common/cmd_writebcb_mx7.c

[U-Boot] [PATCH] block: Migrate SystemACE chip to Kconfig

2018-02-08 Thread Tom Rini
Migrate the base and sub-options to Kconfig. Note that we only enable this in the base sandbox config now. Cc: Alexey Brodkin Cc: Michal Simek Signed-off-by: Tom Rini --- Is this driver still used anywhere? It's fishy that it's only enabled in sandbox anymore. --- README|

Re: [U-Boot] omap4: sdp4430: Enable CONFIG_NET for this platform

2018-02-08 Thread Tom Rini
On Thu, Feb 08, 2018 at 08:58:59AM +0100, Michal Simek wrote: > Distro default configuration contains also dhcp and pxe setting which > can't working without enabling CONFIG_NET. > EFI is not required that's why it is not enabled. > > Signed-off-by: Michal Simek Applied to u-boot/master, thanks

Re: [U-Boot] Kconfig: net: phylib: Phylib should depends on NET

2018-02-08 Thread Tom Rini
On Tue, Feb 06, 2018 at 01:23:52PM +0100, Michal Simek wrote: > There is no value to enable phylib without networking support. > > Signed-off-by: Michal Simek > Acked-by: Joe Hershberger Applied to u-boot/master, thanks! -- Tom ___ U-Boot mailing l

Re: [U-Boot] [U-Boot,V3] Convert CONFIG_APBH_DMA et al to Kconfig

2018-02-08 Thread Tom Rini
On Tue, Feb 06, 2018 at 08:34:45AM -0600, Adam Ford wrote: > This converts the following to Kconfig: >CONFIG_APBH_DMA >CONFIG_APBH_DMA_BURST >CONFIG_APBH_DMA_BURST8 > > Signed-off-by: Adam Ford > Reviewed-by: Stefan Agner Applied to u-boot/master, thanks! -- Tom _

Re: [U-Boot] [U-Boot, v2, 2/4] arm: imx: mx28: Move MX28 selection to Kconfig

2018-02-08 Thread Tom Rini
On Tue, Feb 06, 2018 at 09:44:35AM +0100, Stefan Agner wrote: > From: Stefan Agner > > The motivation for moving MX28 selection to Kconfig is to be able > to better handle NAND MXS selection through Kconfig. > > This selection method also aligns with the way other i.MX SoCs are > selected in U-

Re: [U-Boot] configs: imx6q_logic: Move CONFIG_MXC_UART to Kconfig

2018-02-08 Thread Tom Rini
On Sun, Feb 04, 2018 at 08:54:13AM -0600, Adam Ford wrote: > Since CONFIG_MXC_UART is already in Kconfig, move this from > the header to imx6q_logic_defconfig > > Signed-off-by: Adam Ford > Reviewed-by: Stefano Babic > > diff --git a/configs/imx6q_logic_defconfig b/configs/imx6q_logic_defconfi

Re: [U-Boot] [U-Boot, v2] Kconfig: Select networking commands only when NET is enabled

2018-02-08 Thread Tom Rini
On Tue, Feb 06, 2018 at 01:28:36PM +0100, Michal Simek wrote: > There is no reason to unconditially select network commands as distro > defaults without networking enable. > > Signed-off-by: Michal Simek Applied to u-boot/master, thanks! -- Tom ___

Re: [U-Boot] [U-Boot, v2, 3/4] spl: use ARCH_MX23/28 to specify SPL_LDSCRIPT

2018-02-08 Thread Tom Rini
On Tue, Feb 06, 2018 at 09:44:36AM +0100, Stefan Agner wrote: > From: Stefan Agner > > Simplify SPL_LDSCRIPT config by using the new arch Kconfig > configurations ARCH_MX23 and ARCH_MX28. > > Signed-off-by: Stefan Agner Applied to u-boot/master, thanks! -- Tom __

Re: [U-Boot] Convert CONFIG LIB_HW_RAND to Kconfig

2018-02-08 Thread Tom Rini
On Tue, Feb 06, 2018 at 10:18:18AM -0600, Adam Ford wrote: > config_fallbacks.h had some logic to automatically select > LIB_RAND if RANDOM_UUID or CMD_UUID were set if LIB_HW_RAND wasn't > already selected. By migrating LIB_HW_RAND to Kconfig, we can > remove this check from config_fallbacks.h a

Re: [U-Boot] configs: stm32: Enable CONFIG_ENV_VARS_UBOOT_CONFIG

2018-02-08 Thread Tom Rini
On Tue, Feb 06, 2018 at 10:47:59AM +0100, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Enable CONFIG_ENV_VARS_UBOOT_CONFIG for all STM32 boards > It allows to retrieve the SoC name into the "soc" environment > variable. > > Signed-off-by: Christophe Priouzeau > Signed-off-by: Patr

Re: [U-Boot] configs: imx6q_logic: Move CONFIG_PHY_SMSC to defconfig

2018-02-08 Thread Tom Rini
On Sun, Feb 04, 2018 at 09:07:01AM -0600, Adam Ford wrote: > Since CONFIG_PHY_SMSC was already in Kconfig, move this from > header filet to defconfig > > Signed-off-by: Adam Ford > > diff --git a/configs/imx6q_logic_defconfig b/configs/imx6q_logic_defconfig > index 23eff91..92a8561 100644 Appl

Re: [U-Boot] [U-Boot,v2,4/4] Convert CONFIG_NAND_MXS to Kconfig

2018-02-08 Thread Tom Rini
On Tue, Feb 06, 2018 at 09:44:37AM +0100, Stefan Agner wrote: > From: Stefan Agner > > This converts CONFIG_NAND_MXS to Kconfig. > > Signed-off-by: Stefan Agner Applied to u-boot/master, thanks! -- Tom ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [U-Boot, v2, 1/4] arm: imx: mx23: Move MX23 selection to Kconfig

2018-02-08 Thread Tom Rini
On Tue, Feb 06, 2018 at 09:44:34AM +0100, Stefan Agner wrote: > From: Stefan Agner > > The motivation for moving MX23 selection to Kconfig is to be able > to better handle NAND MXS selection through Kconfig. > > This selection method also aligns with the way other i.MX SoCs are > selected in U-

Re: [U-Boot] Convert CONFIG_MXC_GPIO to Kconfig

2018-02-08 Thread Tom Rini
On Sun, Feb 04, 2018 at 09:32:43AM -0600, Adam Ford wrote: > This converts the following to Kconfig: >CONFIG_MXC_GPIO > > Signed-off-by: Adam Ford Applied to u-boot/master, thanks! -- Tom ___ U-Boot mailing list U-Boot@lists.denx.de https://list

Re: [U-Boot] [PATCH] am335x_evm: Consolidate eMMC partitions with DFU info

2018-02-08 Thread Tom Rini
On Wed, Feb 07, 2018 at 08:41:32PM +0200, Sam Protsenko wrote: > From DFU_ALT_INFO_EMMC (include/environment/ti/dfu.h) we can see that > rootfs will be flashed to second partition on eMMC. But at the moment we > have only one partition in $partitions environment variable. Let's add > "bootloader"

Re: [U-Boot] [RESEND PATCH v3 1/2] drivers/crypto/fsl: assign job-rings to non-TrustZone

2018-02-08 Thread Ruchika Gupta
>-Original Message- >From: Bryan O'Donoghue [mailto:bryan.odonog...@linaro.org] >Sent: Friday, January 26, 2018 5:55 PM >To: u-boot@lists.denx.de; tr...@konsulko.com >Cc: Peng Fan ; Fabio Estevam ; >lukas.a...@aisec.fraunhofer.de; Bryan O'Donoghue >; Alexandru Porosanu >; Ruchika Gupta ; >

Re: [U-Boot] [PATCH] Fix --noheader on fw_printenv

2018-02-08 Thread Alex Kiernan
On Thu, Feb 8, 2018 at 4:40 PM, Stefan Agner wrote: > On 08.02.2018 17:17, Alex Kiernan wrote: >> On Thu, Feb 8, 2018 at 3:37 PM, wrote: >>> On 08.02.2018 10:35, Alex Kiernan wrote: Using fw_printenv with --noheader fails: root@nrr-922:~# fw_printenv --noheader arch ## Er

Re: [U-Boot] [PATCH] Fix --noheader on fw_printenv

2018-02-08 Thread Stefan Agner
On 08.02.2018 17:17, Alex Kiernan wrote: > On Thu, Feb 8, 2018 at 3:37 PM, wrote: >> On 08.02.2018 10:35, Alex Kiernan wrote: >>> Using fw_printenv with --noheader fails: >>> >>> root@nrr-922:~# fw_printenv --noheader arch >>> ## Error: `-n' option requires exactly one argument >> >> I think

[U-Boot] [PATCH] ARM: dts: stm32: limit sdio frequency to 14Mhz for stm32f429i-eval

2018-02-08 Thread patrice.chotard
From: Patrice Chotard This avoids the following errors while reading on mmc: Read data bytes CRC error: 0x2 switch to partitions #0, OK mmc0 is current device Read data bytes CRC error: 0x82002 ** Unrecognized filesystem type ** Signed-off-by: Patrice Chotard --- arch/arm/dts/stm3242

[U-Boot] [PATCH 7/7] clk: clk_stm32f: Add DSI clock support

2018-02-08 Thread patrice.chotard
From: Patrice Chotard DSI clock is available on STM32F769-disco and STM32F469-disco board. Signed-off-by: Yannick Fertre Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32f.c | 2 +- include/dt-bindings/mfd/stm32f7-rcc.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-

[U-Boot] [PATCH 5/7] clk: clk_stm32f: Configure SAI PLL to generate LTDC pixel clock

2018-02-08 Thread patrice.chotard
From: Patrice Chotard Configure SAI PLL configuration to generate LTDC pixel clock on the PLLSAIR output. PLLSAI is enabled only if CONFIG_VIDEO_STM32 flag is set. Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32f.c | 37 - 1 file changed, 36 insert

[U-Boot] [PATCH 6/7] clk: clk_stm32f: Add set_rate for LTDC clock

2018-02-08 Thread patrice.chotard
From: Patrice Chotard Implement set_rate() for LTDC clock only, set_rate for other clocks will be added if needed. This is needed by future LTDC driver improvements. Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32f.c | 100 +++ 1 file change

[U-Boot] [PATCH 3/7] clk: clk_stm32f: No more need of 48Mhz from PLL_SAI

2018-02-08 Thread patrice.chotard
From: Patrice Chotard Initially, 48Mhz for SDIO clock was generated from SAI pll for STM32F469 and STM32F746 SoCs, but this solution was not suitable for STM32F429 SoCs. A generic solution is to used the PLL_Q output as 48Mhz clock for all STM32F SOCs family. Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH 1/7] clk: clk_stm32f: Fix stm32_clk_get_rate()

2018-02-08 Thread patrice.chotard
From: Patrice Chotard Wrong parameter was passed to stm32_clk_pll48clk_rate(). sysclk (PLL_p output value) was passed instead of VCO value. Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32f.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/clk/c

[U-Boot] [PATCH 4/7] clk: clk_stm32f: Rework SDMMC stm32_clk_get_rate() part

2018-02-08 Thread patrice.chotard
From: Patrice Chotard Rework the way SDMMC clock get rate is done in a more generic way : _ Add stm32_clk_get_pllsai_rate() which give the PLLSAI indicated output rate. _ Add stm32_clk_get_pllsai_vco_rate() which give the VCO internal rate. Signed-off-by: Patrice Chotard --- drivers/clk/

[U-Boot] [PATCH 2/7] clk: clk_stm32f: Fix RCC_PLLSAICFGR mask defines

2018-02-08 Thread patrice.chotard
From: Patrice Chotard Use the correct name for RCC_PLLSAICFGR_PLLSAIx_MASK masks. Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32f.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/clk_stm32f.c b/drivers/clk/clk_stm32f.c index 41d8b5e5c88a..7d89

[U-Boot] [PATCH 0/7] clk: clk_stm32f: update and fixes

2018-02-08 Thread patrice.chotard
From: Patrice Chotard This series : _ Fixes one issue stm32_clk_get_rate() _ Update the SDMMC clock generation across all STM32F SoCs _ Adds LTDC clock generation from PLLSAI _ Adds set_rate() for LTDC clock _ Adds DSI clock support Patrice Chotard (7): clk: clk_stm32f: Fix stm32_clk

Re: [U-Boot] [PATCH v6 00/25] Fix and extend i.MX HAB layer

2018-02-08 Thread Bryan O'Donoghue
I'm observing authentication issue while loading U-Boot proper, U-Boot proper now have features like SPL DM and SPL FIT etc U-Boot SPL 2018.03-rc1-00182-gb81f7c9 (Feb 08 2018 - 17:19:03 +0530) Trying to boot from MMC1 Expected Linux image is not found. Trying to start U-boot Authenticate imag

Re: [U-Boot] [PATCH] Fix --noheader on fw_printenv

2018-02-08 Thread Alex Kiernan
On Thu, Feb 8, 2018 at 3:37 PM, wrote: > On 08.02.2018 10:35, Alex Kiernan wrote: >> Using fw_printenv with --noheader fails: >> >> root@nrr-922:~# fw_printenv --noheader arch >> ## Error: `-n' option requires exactly one argument > > I think it would work with --noheader=arch > It doesn't:

Re: [U-Boot] [PATCH] Fix --noheader on fw_printenv

2018-02-08 Thread stefan
On 08.02.2018 10:35, Alex Kiernan wrote: > Using fw_printenv with --noheader fails: > > root@nrr-922:~# fw_printenv --noheader arch > ## Error: `-n' option requires exactly one argument I think it would work with --noheader=arch > > Whereas -n works: > > root@nrr-922:~# fw_printenv -n ar

Re: [U-Boot] [PATCH v6 00/25] Fix and extend i.MX HAB layer

2018-02-08 Thread Breno Matheus Lima
Hi Jagan, 2018-02-08 10:43 GMT-02:00 Jagan Teki : > On Fri, Jan 12, 2018 at 6:09 PM, Bryan O'Donoghue > wrote: >> v6: >> - Added patch 21/25 return zero on open (unlocked) board when >> calling authenticate_image() - Breno >> >> - Added Tested-by: Breno Matheus Lima >> as indicated for remai

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-08 Thread Heinrich Schuchardt
On 02/08/2018 10:49 AM, Jonathan Gray wrote: > On Thu, Feb 08, 2018 at 08:10:47PM +1100, Jonathan Gray wrote: >> On Thu, Feb 08, 2018 at 09:11:20AM +0100, Alexander Graf wrote: >>> >>> Am 08.02.2018 um 06:49 schrieb Jonathan Gray : On Mon, Feb 05, 2018 at 11:31:42AM +0100, Mark Kette

Re: [U-Boot] [PATCH v6 00/25] Fix and extend i.MX HAB layer

2018-02-08 Thread Bryan O'Donoghue
On 08/02/18 12:43, Jagan Teki wrote: On Fri, Jan 12, 2018 at 6:09 PM, Bryan O'Donoghue wrote: v6: - Added patch 21/25 return zero on open (unlocked) board when calling authenticate_image() - Breno - Added Tested-by: Breno Matheus Lima as indicated for remainder 24/25 patches - Added

Re: [U-Boot] [PATCH] env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it

2018-02-08 Thread Faiz Abbas
Hi Wolfgang, On Wednesday 07 February 2018 02:22 PM, Wolfgang Denk wrote: > Dear Faiz Abbas, > > In message <1517564875-10237-1-git-send-email-faiz_ab...@ti.com> you wrote: >> When booting from a non-MMC device, the MMC sub-system may not be >> initialized when the environment is first accessed.

[U-Boot] [PATCH] core: add ofnode_get_by_phandle() api

2018-02-08 Thread Kever Yang
We need to get ofnode from a phandle, add interface to support both live dt and fdt. Signed-off-by: Kever Yang --- drivers/core/ofnode.c | 13 + include/dm/ofnode.h | 8 2 files changed, 21 insertions(+) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index 0

Re: [U-Boot] [PATCH 2/5] arch-stm32: Move gpio.h for STM32 SoCs in include/asm/

2018-02-08 Thread Patrice CHOTARD
Hi Vikas On 02/07/2018 08:28 PM, Vikas Manocha wrote: > Hi Patrice, > > On 02/07/2018 07:50 AM, patrice.chot...@st.com wrote: >> From: Patrice Chotard >> >> Instead to have 3 identical gpio.h for all STM32 SoCs, >> migrate them in one file in include/asm. > > good move to consolidate these head

Re: [U-Boot] [RESENT PATCH 1/2] core: add uclass_get_device_by_phandle_id() api

2018-02-08 Thread Dr. Philipp Tomsich
> On 8 Feb 2018, at 14:13, Kever Yang wrote: > > Add api for who can not get phandle from a device property. > > Signed-off-by: Kever Yang Reviewed-by: Philipp Tomsich See below for comments. > --- > > drivers/core/uclass.c | 28 > include/dm/uclass.h | 16 ++

Re: [U-Boot] [PATCH] rockchip: pwm: convert to use live dt

2018-02-08 Thread Dr. Philipp Tomsich
> On 8 Feb 2018, at 14:15, Kever Yang wrote: > > use live dt api to get base addr > > Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-b

[U-Boot] [PATCH] rockchip: pwm: convert to use live dt

2018-02-08 Thread Kever Yang
use live dt api to get base addr Signed-off-by: Kever Yang --- drivers/pwm/rk_pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 2364c2d..7d3e11d 100644 --- a/drivers/pwm/rk_pwm.c +++ b/drivers/pwm/rk_pwm.c @@ -76,7 +76,7

[U-Boot] [RESENT PATCH 2/2] pinctrl-uclass: convert to use live dt

2018-02-08 Thread Kever Yang
Use live dt interface for pinctrl_select_state_full() Signed-off-by: Kever Yang --- drivers/pinctrl/pinctrl-uclass.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c index 114952a..5abfe

[U-Boot] [RESENT PATCH 1/2] core: add uclass_get_device_by_phandle_id() api

2018-02-08 Thread Kever Yang
Add api for who can not get phandle from a device property. Signed-off-by: Kever Yang --- drivers/core/uclass.c | 28 include/dm/uclass.h | 16 2 files changed, 44 insertions(+) diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index f5e

[U-Boot] [PATCH 2/2] pinctrl-uclass: convert to use live dt

2018-02-08 Thread Kever Yang
Use live dt interface for pinctrl_select_state_full() Signed-off-by: Kever Yang --- drivers/pinctrl/pinctrl-uclass.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c index 114952a..5498

[U-Boot] [PATCH 1/2] core: add uclass_get_device_by_phandle_id() api

2018-02-08 Thread Kever Yang
Add api for who can not get phandle from a device property. Signed-off-by: Kever Yang --- drivers/core/uclass.c | 28 include/dm/uclass.h | 16 2 files changed, 44 insertions(+) diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index f5e

Re: [U-Boot] [PATCH v6 00/25] Fix and extend i.MX HAB layer

2018-02-08 Thread Jagan Teki
On Fri, Jan 12, 2018 at 6:09 PM, Bryan O'Donoghue wrote: > v6: > - Added patch 21/25 return zero on open (unlocked) board when > calling authenticate_image() - Breno > > - Added Tested-by: Breno Matheus Lima > as indicated for remainder 24/25 patches > > - Added Reviewed-by: Fabio Estevam >

Re: [U-Boot] [U-Boot, v2] spl: eMMC/SD: Provide one __weak spl_boot_mode() function

2018-02-08 Thread Tom Rini
On Sat, Feb 03, 2018 at 08:29:52AM +0100, Lukasz Majewski wrote: > The goal of this patch is to clean up the code related to choosing SPL > MMC boot mode. > > The spl_boot_mode() now is called only in spl_mmc_load_image() function, > which is only compiled in if CONFIG_SPL_MMC_SUPPORT is enabled.

Re: [U-Boot] [U-Boot, 1/2] ARM: k2g: Add pinmux data for QSPI on K2G ICE

2018-02-08 Thread Tom Rini
On Wed, Jan 31, 2018 at 09:08:26PM +0530, Vignesh R wrote: > Add pinmux for QSPI pins on K2G ICE board. > > Signed-off-by: Vignesh R Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@l

Re: [U-Boot] [U-Boot, 2/2] ARM: omap3: evm: Remove CONFIG_SYS_NS16550_REG_SIZE undefine

2018-02-08 Thread Tom Rini
On Sun, Feb 04, 2018 at 07:04:50PM -0600, Derald D. Woods wrote: > This commit removes an attempt to workaround a previous compilation > warning that is is now fixed in "include/configs/ti_omap3_common.h". > > Signed-off-by: Derald D. Woods > Reviewed-by: Tom Rini Applied to u-boot/master, tha

Re: [U-Boot] doc: watchdog: Remove Blackfin related documentation entry

2018-02-08 Thread Tom Rini
On Mon, Feb 05, 2018 at 11:42:57PM +0100, Lukasz Majewski wrote: > This commit cleans up the README.watchdog by removing the reminescent of > ADI's Blackfin architecture removed some time ago. > > Signed-off-by: Lukasz Majewski Applied to u-boot/master, thanks! -- Tom signature.asc Descript

Re: [U-Boot] [U-Boot, 1/2] ARM: omap3: ti_omap3_common: Fix CONFIG_SYS_NS16550_REG_SIZE compiler warning

2018-02-08 Thread Tom Rini
On Sun, Feb 04, 2018 at 07:04:49PM -0600, Derald D. Woods wrote: > This commit fixes the following compiler warnings when DM_SERIAL is > enabled. > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing

Re: [U-Boot] [U-Boot, 2/2] ARM: dts: keystone-k2g-ice: Add support for QSPI

2018-02-08 Thread Tom Rini
On Wed, Jan 31, 2018 at 09:08:27PM +0530, Vignesh R wrote: > K2G ICE has a s25fl256s1 QSPI NOR flash connected to QSPI at CS0. Add DT > entries for the same. > > Signed-off-by: Vignesh R Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] part: Allocate only one legacy_mbr buffer

2018-02-08 Thread Tom Rini
On Mon, Jan 29, 2018 at 10:58:24PM +0300, Alexey Brodkin wrote: > Commit ff98cb90514d ("part: extract MBR signature from partitions") > blindly switched allocated by ALLOC_CACHE_ALIGN_BUFFER buffer type from > "unsigned char" to "legacy_mbr" which caused allocation of size = > (typeof(legacy_mbr)

Re: [U-Boot] [U-Boot,2/2] move booti_setup to arch/arm/lig/image.c

2018-02-08 Thread Tom Rini
On Sat, Jan 27, 2018 at 04:59:09PM +1100, Bin Chen wrote: > Follow bootz's pattern by moving the booti_setup to arch/arm/lib. > This allows to use booti_setup in other paths, e.g booting > an Android image containing Image format. > > Note that kernel relocation is move out of booti_setup and it

Re: [U-Boot] [U-Boot, 1/1] atcspi200: avoid possible NULL dereference

2018-02-08 Thread Tom Rini
On Wed, Jan 31, 2018 at 01:05:54AM +0100, Heinrich Schuchardt wrote: > Check if ns before and not after dereferencing it. > > Indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot,1/2] parse the second area of android image

2018-02-08 Thread Tom Rini
On Sat, Jan 27, 2018 at 04:59:08PM +1100, Bin Chen wrote: > The second area of android image was intended to put a 2nd stage > bootloader but in practice were rarely used (in my knowledge). > > An proposal was made to the AOSP to (re)use the second area as the dtb[1], > This patch itself doesn't

[U-Boot] UART

2018-02-08 Thread Mariano Coromac
Hello, I'm using a sama5d27 SoC and I've already port at91bootloader but now I'm having trouble with u-boot. When u-boot.bin finishes loading SD/MMC: Done to load image But then it says No serial driver found resetting In my device tree I already defined my usart using FLEXCOM1. How do I redir

Re: [U-Boot] [PATCH v3 1/2] i.MX6: nand: add nandbcb update command

2018-02-08 Thread Shyam Saini
> Writing/updating boot image in nand device is not > straight forward in i.MX6 platform and it requires > boot control block(BCB) to be configured. > > It becomes difficult to use uboot 'nand' command to > write BCB since it requires platform specific attributes > need to be taken care of. > > It

Re: [U-Boot] [PATCH v3 2/2] arm: i.MX: Add CMD_NANDBCB Kconfig entry

2018-02-08 Thread Shyam Saini
> Add Kconfig entry for CMD_NANDBCB, and default y on i.MX6 > platform with NAND_MXS defined. > > Signed-off-by: Jagan Teki > --- > Changes for v3: > - Fixed Typo 'seprate' > Changes for v2: > - New patch > > arch/arm/mach-imx/Kconfig | 11 +++ > 1 file changed, 11 insertions(+) > > diff

Re: [U-Boot] [PATCH v4 2/2] Enable test case with A20-OLinuXino-Lime2

2018-02-08 Thread Stefan Mavrodiev
On 02/08/2018 09:03 AM, Jagan Teki wrote: On Thu, Feb 8, 2018 at 11:54 AM, Stefan Mavrodiev wrote: On 02/07/2018 07:19 PM, Maxime Ripard wrote: On Wed, Feb 07, 2018 at 12:55:54PM +0530, Jagan Teki wrote: +&spi0 { + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pins_b>, <&spi0_cs

  1   2   >