Re: [U-Boot] [PATCH] arm64: zynqmp: fail SPL build if no psu_init found

2017-04-02 Thread Michal Simek
Hi, On 3.4.2017 02:51, Jean-Francois Dagenais wrote: > When doing the SPL build, not finding the psu_init files yields an > unuseable spl binary. Time is wasted as the build is carried through dev > ops all the way to trying to boot the DUD build. > > A failure immediately alerts developers that

Re: [U-Boot] [PATCH v2] net: eth_common: Don't use %pM when USE_TINY_PRINTF is enabled

2017-04-02 Thread Wolfgang Denk
Dear Vignesh, In message <20170403054659.32553-1-vigne...@ti.com> you wrote: > Tiny printf doesn't support %pM, so when CONFIG_USE_TINY_PRINTF is > enabled use %x to manually print MAC address. ... > net/eth_common.c | 7 +++ > 1 file changed, 7 insertions(+) I wonder if this is sufficient.

Re: [U-Boot] [PATCH 8/8] dm: led: Add a new 'led' command

2017-04-02 Thread Stefan Roese
On 31.03.2017 19:55, Simon Glass wrote: When driver model is used for LEDs, provide a command to allow LED access. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese One minor comment below. --- cmd/Kconfig | 9 cmd/Makefile | 1 + cmd/led.c| 133

Re: [U-Boot] [PATCH v3 01/19] arm: socfpga: Restructure clock manager driver

2017-04-02 Thread Ley Foon Tan
On Fri, Mar 31, 2017 at 4:53 AM, Dinh Nguyen wrote: > On Thu, Mar 30, 2017 at 8:08 AM, Ley Foon Tan wrote: >> Restructure clock manager driver in the preparation to support A10. >> Move the Gen5 specific code to _gen5 files. No functional change. >> >> Change all uint32_t to u32 and change to use

Re: [U-Boot] [PATCH 7/8] led: Mark existing driver as legacy

2017-04-02 Thread Stefan Roese
On 31.03.2017 19:55, Simon Glass wrote: The existing 'led' command does not support driver model. Rename it to indicate that it is legacy code. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@list

Re: [U-Boot] [PATCH 13/16] powerpc: Move setup_board_extra() into a PPC file

2017-04-02 Thread Stefan Roese
On 31.03.2017 16:40, Simon Glass wrote: We don't need this PPC-specific function in generic code. Move it to the powerpc directory. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de ht

Re: [U-Boot] [PATCH 16/16] board_f: powerpc: Drop unused headers

2017-04-02 Thread Stefan Roese
On 31.03.2017 16:40, Simon Glass wrote: These includes don't seem to be needed now. Drop them. Reserve the mp.h header for PowerPC for now. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.de

Re: [U-Boot] [EXT] Re: [PATCH 7/7] scsi: dts: a3700: add scsi node

2017-04-02 Thread Stefan Roese
Hi Simon, Hi Ken, On 01.04.2017 06:22, Simon Glass wrote: On 27 March 2017 at 02:28, Ken Ma wrote: Hi Stefan Thanks a lot for your kind reply. But I still do not think it's very good to change sata's uclass id from "UCLASS_AHCI" to "UCLASS_SCSI". If we do such change, UCLASS_AHCI is los

Re: [U-Boot] [PATCH v3 02/19] arm: socfpga: Restructure reset manager driver

2017-04-02 Thread Ley Foon Tan
On Fri, Mar 31, 2017 at 5:19 AM, Dinh Nguyen wrote: > On Thu, Mar 30, 2017 at 8:08 AM, Ley Foon Tan wrote: >> Restructure reset manager driver in the preparation to support A10. >> Move the Gen5 specific code to gen5 files. Minor update in >> socfpga_per_reset(). >> No functional change. >> >> S

Re: [U-Boot] [PATCH v3 04/19] arm: socfpga: Restructure misc driver

2017-04-02 Thread Ley Foon Tan
On Fri, Mar 31, 2017 at 5:33 AM, Dinh Nguyen wrote: > On Thu, Mar 30, 2017 at 8:08 AM, Ley Foon Tan wrote: >> Restructure misc driver in the preparation to support A10. >> Move the Gen5 specific code to gen5 file. No functional change. >> >> Change all uint32_t_to u32. >> >> Signed-off-by: Ley Fo

Re: [U-Boot] [PATCH] net: eth_common: Don't use %pM when USE_TINY_PRINTF is enabled

2017-04-02 Thread Vignesh R
On Sunday 02 April 2017 11:17 PM, Joe Hershberger wrote: > On Fri, Mar 31, 2017 at 4:47 AM, Vignesh R wrote: >> Tiny printf doesn't support %pM, so when CONFIG_USE_TINY_PRINTF is >> enabled use %x to manually print MAC address. >> >> Signed-off-by: Vignesh R >> --- >> net/eth_common.c | 7

[U-Boot] [PATCH v2] net: eth_common: Don't use %pM when USE_TINY_PRINTF is enabled

2017-04-02 Thread Vignesh R
Tiny printf doesn't support %pM, so when CONFIG_USE_TINY_PRINTF is enabled use %x to manually print MAC address. Signed-off-by: Vignesh R --- v2: use positive logic. net/eth_common.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/net/eth_common.c b/net/eth_common.c index 58fa2957710

Re: [U-Boot] [PATCH v3 07/19] arm: socfpga: Add clock driver for Arria 10

2017-04-02 Thread Ley Foon Tan
On Fri, Mar 31, 2017 at 6:30 PM, Marek Vasut wrote: > On 03/30/2017 03:08 PM, Ley Foon Tan wrote: >> Add clock driver support for Arria 10. >> >> Signed-off-by: Tien Fong Chee >> Signed-off-by: Ley Foon Tan >> >> Conflicts: >> arch/arm/mach-socfpga/clock_manager.c > > ^ what's this "confli

Re: [U-Boot] [PATCH v3 16/19] arm: socfpga: Convert Altera DDR SDRAM driver to use Kconfig

2017-04-02 Thread Ley Foon Tan
On Fri, Mar 31, 2017 at 6:33 PM, Marek Vasut wrote: > On 03/30/2017 03:08 PM, Ley Foon Tan wrote: >> Convert Altera DDR SDRAM driver to use Kconfig method. >> Enable ALTERA_SDRAM by default if it is on Gen5 target. >> Arria 10 will have different driver. >> >> Signed-off-by: Tien Fong Chee >> Sig

Re: [U-Boot] [PATCH 5/7] igep003x: UBIize

2017-04-02 Thread Heiko Schocher
Hello Ladislav, Am 01.04.2017 um 17:17 schrieb Ladislav Michl: Convert IGEP board to use UBI volumes for U-Boot, its environment and kernel. With exception of first four sectors read by SoC BootROM whole NAND is UBI managed. Signed-off-by: Ladislav Michl --- board/isee/igep003x/board.c

Re: [U-Boot] [PATCH 2/7] Enable i2c for rk3399

2017-04-02 Thread Heiko Schocher
Hello Eric, Am 01.04.2017 um 16:42 schrieb eric@rock-chips.com: From: "eric.gao" Signed-off-by: eric.gao --- arch/arm/dts/rk3399.dtsi | 16 configs/evb-rk3399_defconfig | 1 + drivers/i2c/rk_i2c.c | 1 + 3 files changed, 18 insertions(+) Reviewed-by:

Re: [U-Boot] [PATCH] fdtgrep: Copy with the /aliases node being last

2017-04-02 Thread Simon Glass
Hi Masahiro, On 2 April 2017 at 18:33, Masahiro Yamada wrote: > Hi Simon, > > > 2017-04-03 3:26 GMT+09:00 Simon Glass : >> With skeleton.dtsi being dropped it is more likely that the /aliases node >> will be last in the device tree. Update fdtgrep to handle this. >> >> Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH] fdtgrep: Copy with the /aliases node being last

2017-04-02 Thread Masahiro Yamada
Hi Simon, 2017-04-03 3:26 GMT+09:00 Simon Glass : > With skeleton.dtsi being dropped it is more likely that the /aliases node > will be last in the device tree. Update fdtgrep to handle this. > > Signed-off-by: Simon Glass > --- Thank you for fixing this! Tested-by: Masahiro Yamada -- Best

Re: [U-Boot] [PATCH] ARM: dts: uniphier: move aliases node up to make fdtgrep happy

2017-04-02 Thread Simon Glass
Hi Masahiro, On 27 February 2017 at 05:50, Masahiro Yamada wrote: > Hi Simon, > > > 2016-04-19 2:48 GMT+09:00 Simon Glass : >> HI Masahiro, >> >> On 18 April 2016 at 00:50, Masahiro Yamada >> wrote: >>> >>> Hi Simon, >>> >>> No news about fdtgrep? >>> >>> I will apply this patch in a few days, t

Re: [U-Boot] [PATCH v2 03/63] spl: Makefile: Define SPL_ earlier

2017-04-02 Thread Simon Glass
Hi Masahiro, On 19 December 2016 at 00:43, Masahiro Yamada wrote: > Hi Simon, > > > 2016-11-20 5:24 GMT+09:00 Simon Glass : >> This Makefile variable can be used in the architecture's main Makefile but >> at present it is not set up until later. Set it just before this Makefile is >> included. >>

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-02 Thread Simon Glass
Hi Stefan, On 2 April 2017 at 15:34, Stefan Bruens wrote: > On Sonntag, 2. April 2017 17:43:38 CEST Simon Glass wrote: >> Hi Stefan, >> >> On 2 April 2017 at 07:10, Stefan Bruens > wrote: >> > On Sonntag, 2. April 2017 05:01:41 CEST Marek Vasut wrote: >> >> On 04/02/2017 01:40 AM, Simon Glass wr

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-02 Thread Stefan Bruens
On Sonntag, 2. April 2017 17:43:38 CEST Simon Glass wrote: > Hi Stefan, > > On 2 April 2017 at 07:10, Stefan Bruens wrote: > > On Sonntag, 2. April 2017 05:01:41 CEST Marek Vasut wrote: > >> On 04/02/2017 01:40 AM, Simon Glass wrote: > >> > Hi Marek, > >> > > >> > On 1 April 2017 at 14:15, Mare

Re: [U-Boot] u-boot atags help

2017-04-02 Thread Andy Ng
i will use fdt commands to pass down the serial version of the board.. On Sun, Apr 2, 2017 at 6:07 PM, Andy Ng wrote: > Hi, > > I am using u-boot 2016-07 for imx6. My linux kernel is 4.1.20. I am > using a board from Freescale SabreSD with the big screen. > The problem i noticed is that in the k

[U-Boot] [PATCH v2] pci: Add a command to show PCI regions

2017-04-02 Thread Simon Glass
Add 'pci regions' which lists the I/O and memory regions accessible from the PCI controller. Signed-off-by: Simon Glass --- Changes in v2: - Drop duplicate PCI_REGION_IO line cmd/pci.c | 48 ++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff

[U-Boot] [PATCH] fdtgrep: Copy with the /aliases node being last

2017-04-02 Thread Simon Glass
With skeleton.dtsi being dropped it is more likely that the /aliases node will be last in the device tree. Update fdtgrep to handle this. Signed-off-by: Simon Glass --- lib/libfdt/fdt_region.c | 40 +++- tools/fdtgrep.c | 3 --- 2 files changed, 35 i

Re: [U-Boot] [PATCH] net: eth_common: Don't use %pM when USE_TINY_PRINTF is enabled

2017-04-02 Thread Joe Hershberger
On Fri, Mar 31, 2017 at 4:47 AM, Vignesh R wrote: > Tiny printf doesn't support %pM, so when CONFIG_USE_TINY_PRINTF is > enabled use %x to manually print MAC address. > > Signed-off-by: Vignesh R > --- > net/eth_common.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/net/eth_com

Re: [U-Boot] [PATCH v5 01/19] net: smsc95xx: Correct free_pkt() implementation

2017-04-02 Thread Joe Hershberger
On Sat, Apr 1, 2017 at 1:05 PM, Simon Glass wrote: > On further review this returns the wrong packet length from the driver. > It may not be noticed since protocols will take care of it. Fix it by > subtracting the header length from the packet length returned. > > Signed-off-by: Simon Glass Ack

[U-Boot] u-boot atags help

2017-04-02 Thread Andy Ng
Hi, I am using u-boot 2016-07 for imx6. My linux kernel is 4.1.20. I am using a board from Freescale SabreSD with the big screen. The problem i noticed is that in the kernel /proc/cpuinfo the "Revision" and Serial " comes up with "0" The kernel gets those values from atags, but when FDT is used

[U-Boot] [PATCH v2 5/5] dm: serial: Allow driver-model serial to be disabled for TPL

2017-04-02 Thread Simon Glass
Add separate enable/disable controls for driver-model serial. While this is generally enabled in SPL it may not be in TPL, since serial output can be obtained with the debug UART with minimal code size. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to allow driver-model serial to

[U-Boot] [PATCH v2 3/5] Makefile: Provide an option to select SPL or TPL

2017-04-02 Thread Simon Glass
At present we have SPL_ which can be used in Makefiles to select between normal and SPL CONFIGs like this: obj-$(CONFIG_$(SPL_)DM) += core/ When TPL is being built, SPL_ has the value 'SPL' which is generally a good idea since they tend to follow each other. But in extreme situati

[U-Boot] [PATCH v2 4/5] dm: core: Allow driver model to be disabled for TPL

2017-04-02 Thread Simon Glass
Since TPL often needs to be very very small it may not make sense to enable driver model. Add an option for this. This changes brings the 'rock' board under the TPL limit with gcc 4.9. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to allow driver model to be disabled for TPL d

[U-Boot] [PATCH v2 2/5] rockchip: rock: Enable CONFIG_SPL_TINY_MEMSET

2017-04-02 Thread Simon Glass
Enable this option to shrink memset() a little. This is needed for TPL. Signed-off-by: Simon Glass --- Changes in v2: - Add a new patch to enable CONFIG_SPL_TINY_MEMSET configs/rock_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/rock_defconfig b/configs/rock_defconfig in

[U-Boot] [PATCH v2 1/5] string: Provide a slimmed-down memset()

2017-04-02 Thread Simon Glass
Most of the time the optimised memset() is what we want. For extreme situations such as TPL it may be too large. For example on the 'rock' board, using a simple loop saves a useful 48 bytes. With gcc 4.9 and the rodata bug, this patch is enough to reduce the TPL image below the limit. Signed-off-b

[U-Boot] [PATCH v2 0/5] Patches to reduce TPL code size

2017-04-02 Thread Simon Glass
With the rockchip 'rock' board some build and code size problems have come to light with TPL. This series provides a few ideas to improve things. Changes in v2: - Adjust the option to be SPL-only - Change the option to default to off (name it CONFIG_SPL_TINY_MEMSET) - Add a new patch to enable CON

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-02 Thread Simon Glass
Hi Stefan, On 2 April 2017 at 07:10, Stefan Bruens wrote: > On Sonntag, 2. April 2017 05:01:41 CEST Marek Vasut wrote: >> On 04/02/2017 01:40 AM, Simon Glass wrote: >> > Hi Marek, >> > >> > On 1 April 2017 at 14:15, Marek Vasut wrote: >> >> On 04/01/2017 08:05 PM, Simon Glass wrote: >> >>> On Ra

Re: [U-Boot] [PATCH v5 02/19] usb: dwc2: Use separate input and output buffers

2017-04-02 Thread Stefan Bruens
On Sonntag, 2. April 2017 05:01:41 CEST Marek Vasut wrote: > On 04/02/2017 01:40 AM, Simon Glass wrote: > > Hi Marek, > > > > On 1 April 2017 at 14:15, Marek Vasut wrote: > >> On 04/01/2017 08:05 PM, Simon Glass wrote: > >>> On Raspberry Pi 2 and 3 a problem was noticed when enabling driver model

Re: [U-Boot] [PATCH 4/7] Enable rkclk init function

2017-04-02 Thread Heiko Stuebner
Hi Eric, Am Samstag, 1. April 2017, 22:42:54 CEST schrieb eric@rock-chips.com: > From: "eric.gao" > > Signed-off-by: eric.gao > --- > > drivers/clk/rockchip/clk_rk3399.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/clk/rockchip/clk_rk3399.c > b/drivers/clk/rockch

Re: [U-Boot] [EXT] Re: [PATCH 1/3] arm64: mvebu: Trigger PCI devices scan at early init stage

2017-04-02 Thread Konstantin Porotchkin
Hi, Simon, On 04/01/2017 07:23 AM, Simon Glass wrote: External Email -- Hi Konstanitin, On 30 March 2017 at 07:58, Konstantin Porotchkin wrote: On 03/30/2017 04:31 PM, Stefan Roese wrote: (adding Simon to Cc for PCI rela

[U-Boot] [PATCH v3 9/9] sunxi: Convert CONS_INDEX to Kconfig

2017-04-02 Thread Mylène Josserand
Convert the CONS_INDEX configuration to Kconfig. Update sunxi's defconfigs to remove SYS_EXTRA_OPTIONS variable not needed anymore. Default value is 1 except for sun5i (equals 2) and sun8i (equals 5). Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- configs/A13-OLinuXinoM_defconfig

[U-Boot] [PATCH v3 7/9] sunxi: Convert CONFIG_SATAPWR to Kconfig

2017-04-02 Thread Mylène Josserand
Convert the CONFIG_SATAPWR into kconfig. Thanks to that, many SYS_EXTRA_OPTIONS can be removed from some defconfigs. Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- board/sunxi/Kconfig| 7 +++ board/sunxi/board.c| 7 --- config

[U-Boot] [PATCH v3 8/9] sunxi: Convert CONFIG_MACPWR to Kconfig

2017-04-02 Thread Mylène Josserand
Convert the CONFIG_MACPWR to Kconfig and update all the sunxi defconfigs that used it in SYS_EXTRA_OPTIONS. Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- board/sunxi/Kconfig | 7 +++ board/sunxi/board.c | 7 --- configs/Bananapi_defconfig

[U-Boot] [PATCH v3 6/9] sunxi: Convert CONFIG_RGMII to Kconfig

2017-04-02 Thread Mylène Josserand
Convert CONFIG_RGMII to Kconfig. Thanks to that, it is possible to update defconfig files of SYS_EXTRA_OPTIONS accordingly and remove it when it is possible. Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- configs/A20-OLinuXino-Lime2_defconfig | 3 ++- configs/A20-Olimex-SOM-EV

[U-Boot] [PATCH v3 1/9] sunxi: Move SUNXI_GMAC to Kconfig

2017-04-02 Thread Mylène Josserand
Move the SUNXI_GMAC config option to Kconfig, remove it from SYS_EXTRA_OPTIONS and rename it into SUN7I_GMAC. Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- configs/A20-OLinuXino-Lime2_defconfig | 3 ++- configs/A20-OLinuXino-Lime_defconfig | 3 ++- configs/A20-OLinuXino

[U-Boot] [PATCH v3 5/9] sunxi: Convert SUNXI_EMAC to Kconfig

2017-04-02 Thread Mylène Josserand
Convert the SUNXI_EMAC config to Kconfig. Remove it from SYS_EXTRA_OPTIONS from many sunxi defconfig and renamed it into SUN4I_EMAC to not confuse it with SUN8I_EMAC. Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- configs/A10-OLinuXino-Lime_defconfig | 3 ++- configs/A10s-OLinuXino

[U-Boot] [PATCH v3 3/9] sunxi: icnova-a20-swac_defconfig: Remove CMD_BMP from

2017-04-02 Thread Mylène Josserand
This configuration is not necessary in a defconfig file so it is removed from the SYS_EXTRA_OPTIONS. Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- configs/icnova-a20-swac_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/icnova-a20-swac_defconfig b/configs/icno

[U-Boot] [PATCH v3 2/9] sunxi: icnova-a20-swac_defconfig: Remove AXP209_POWER

2017-04-02 Thread Mylène Josserand
Remove the AXP209_POWER option from SYS_EXTRA_OPTIONS. As this configuration already exists on Kconfig, we just need to remove it from defconfig. Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- configs/icnova-a20-swac_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[U-Boot] [PATCH v3 4/9] sunxi: mk802_defconfig: Remove SYS_EXTRA_OPTIONS

2017-04-02 Thread Mylène Josserand
The USB_EHCI configuration is already set in this defconfig using kconfig's config. This configuration in SYS_EXTRA_OPTIONS must be removed and so the SYS_EXTRA_OPTIONS. Signed-off-by: Mylène Josserand Acked-by: Maxime Ripard --- configs/mk802_defconfig | 1 - 1 file changed, 1 deletion(-) dif

[U-Boot] [PATCH v3 0/9] sunxi: Remove SYS_EXTRA_OPTIONS

2017-04-02 Thread Mylène Josserand
Hello everyone, This a V3 for my patchset that removes the SYS_EXTRA_OPTIONS from all sunxi defconfigs. The values in this variable are converted to Kconfig or simply removed. Based on u-boot sunxi repository: git://git.denx.de/u-boot-sunxi.git "master" branch, from last commit: 6f72a951cdd07e3f9

Re: [U-Boot] [PATCH] Add 8 and 16-bit single register pin controller support

2017-04-02 Thread Felix Brack
Hello James, hello Simon, On 01.04.2017 06:22, Simon Glass wrote: > Hi James, > > On 26 March 2017 at 23:55, James Balean wrote: >> Enables the pinctrl-single driver to support 8 and 16-bit registers. >> Only 32-bit registers were supported previously. > > Can you explain in your commit message

Re: [U-Boot] [PATCH] rpi: Support both UART interfaces.

2017-04-02 Thread Fabian Vogt
Hi, Am Sonntag, 2. April 2017, 09:20:06 CEST schrieb Alex Deymo: > The Raspberry Pi 3 has two UART interfaces that can be pinmuxed to the > header pins. The PL011 is by default muxed to the Bluetooth chip and > the mini-UART can be muxed to the pin headers passing "enabled_uart=1" > in the config.

Re: [U-Boot] [PATCH] common, kconfig: Fix defaut value of BOOTSTAGE_STASH_SIZE

2017-04-02 Thread Wolfgang Denk
Dear Nobuhiro, In message <20170401224812.11646-1-iwama...@nigauri.org> you wrote: > The default value of BOOTSTAGE_STASH_SIZE should be set to hexadecimal, > but an integer value is set. This fixes the BOOTSTAGE_STASH_SIZE number > from hexadecimal to integer. ... > - default 4096 > + def