Re: [U-Boot] [PATCH v2 10/13] cmd: bootvx: Always get VxWorks bootline from env

2015-09-28 Thread Hannes Schmelzer
Tested-by: Hannes Schmelzer on B&R kwb board. On 28.09.2015 11:12, Bin Meng wrote: So far VxWorks bootline can be contructed from various environment variables, but when these variables do not exist we get these from corresponding config macros. This is not helpful as it requires rebuilding U-B

Re: [U-Boot] [PATCH v2 07/13] cmd: Clean up cmd_elf a little bit

2015-09-28 Thread Hannes Schmelzer
Tested-by: Hannes Schmelzer on B&R kwb board. On 28.09.2015 11:12, Bin Meng wrote: This commit cleans up cmd_elf.c per U-Boot coding convention, and removes the unnecessary DECLARE_GLOBAL_DATA_PTR and out-of-date powerpc comments (it actually supports not only powerpc targets). Signed-off-by:

Re: [U-Boot] [PATCH v2 06/13] cmd: Convert CONFIG_CMD_ELF to Kconfig

2015-09-28 Thread Hannes Schmelzer
Tested-by: Hannes Schmelzer on B&R kwb board. On 28.09.2015 11:12, Bin Meng wrote: Convert CONFIG_CMD_ELF to Kconfig and tidy up affected boards. Signed-off-by: Bin Meng --- Changes in v2: - Split the defconfig reorder to another patch, making this patch as CONFIG_CMD_ELF mods only - Upd

[U-Boot] [PATCH v2] board/BuR/kwb: use bootvx(...) (with bootline feature) instead go(...)

2015-09-28 Thread Hannes Schmelzer
Since we don't have for sure a valid IP-setup during board_late_init(...) because it maybe allready stored in environment or not, we cannot form a proper vxWorks bootline at this place. So we move to the way, forming the bootline just before executing/launching vxWorks. To do this we use the bootv

Re: [U-Boot] [ANN] U-Boot v2015.10-rc4 released

2015-09-28 Thread Wolfgang Denk
Dear Tom, In message <20150928210901.GH22966@bill-the-cat> you wrote: > > I've pushed v2015.10-rc4 out to the repository and tarballs should exist > soon. Tarballs are both on the FTP server [1] and the ACD [2]. [1] ftp://ftp.denx.de/pub/u-boot/ [2] https://www.amazon.com/clouddrive/share/9JvN

Re: [U-Boot] [PATCH] board/BuR/kwb: implement board-specific do_go_exec to form vxWorks bootline

2015-09-28 Thread Bin Meng
Hi Hannes, On Tue, Sep 29, 2015 at 1:58 PM, Hannes Schmelzer wrote: > Hi Bin, > > works now well. > Also the thing with bootvx and the bootline works fine. Great to hear! Maybe you can add a 'Tested-by' tag to my series if you like. > > I will send some v2 of my patch today. > > many thanks and

Re: [U-Boot] [PATCH] board/BuR/kwb: implement board-specific do_go_exec to form vxWorks bootline

2015-09-28 Thread Hannes Schmelzer
Hi Bin, works now well. Also the thing with bootvx and the bootline works fine. I will send some v2 of my patch today. many thanks and best regards, Hannes On 29.09.2015 04:46, Bin Meng wrote: Hi Hannes, On Mon, Sep 28, 2015 at 8:01 PM, Bin Meng wrote: Hi Hannes, On Mon, Sep 28, 2015 at

[U-Boot] [PATCH 1/6] dm: Rename dev_get_parentdata() to dev_get_parent_priv()

2015-09-28 Thread Simon Glass
The current name is inconsistent with other driver model data access functions. Rename it and fix up all users. Signed-off-by: Simon Glass --- common/cmd_usb.c | 10 +- common/usb_hub.c | 4 ++-- common/usb_storage.c | 2 +- doc/driver-mo

[U-Boot] [PATCH 5/6] dm: core: Remove a comment about dropping per_child_auto_alloc_size

2015-09-28 Thread Simon Glass
This has proven useful and we no-longer intend to remove it. Drop the comment. Signed-off-by: Simon Glass --- include/dm/device.h | 4 1 file changed, 4 deletions(-) diff --git a/include/dm/device.h b/include/dm/device.h index f60d153..0e40aaf 100644 --- a/include/dm/device.h +++ b/includ

[U-Boot] [PATCH 4/6] dm: core: Tidy up devres comments

2015-09-28 Thread Simon Glass
Adjust the devres comments to be consistent with the rest of the file, and add one for the struct udevice member. Also rename the 'p' parameter to 'ptr' to avoid single-character names. Signed-off-by: Simon Glass --- include/dm/device.h | 50 -- 1

[U-Boot] [PATCH 6/6] dm: core: Tidy up comments in device.h

2015-09-28 Thread Simon Glass
Correct a few nits found in a recent review. Expand the comments in dev_get_driver_data() to make it clearer. Signed-off-by: Simon Glass --- include/dm/device.h | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/include/dm/device.h b/include/dm/device.h ind

[U-Boot] [PATCH 2/6] dm: core: Adjust device.h header file order

2015-09-28 Thread Simon Glass
Move a few functions around so that the ordering is consistent. Signed-off-by: Simon Glass --- include/dm/device.h | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/dm/device.h b/include/dm/device.h index f152008..e09f897 100644 --- a/inclu

[U-Boot] [PATCH 3/6] dm: core: Fix device flag whitespace

2015-09-28 Thread Simon Glass
Line up the flag values in the code for easier readability. Signed-off-by: Simon Glass --- include/dm/device.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/dm/device.h b/include/dm/device.h index e09f897..286a702 100644 --- a/include/dm/device.h +++ b/i

Re: [U-Boot] [PATCH] serial: rockchip: make ROCKCHIP_SERIAL depend on ARCH_ROCKCHIP

2015-09-28 Thread Simon Glass
On 28 September 2015 at 21:32, Masahiro Yamada wrote: > It looks like this line was copy-pasted, but not modified. > > Signed-off-by: Masahiro Yamada > --- > > drivers/serial/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks! Acked-by: Simon Glass

Re: [U-Boot] [PATCH v2 02/13] x86: fsp: Report correct number of E820 table entries

2015-09-28 Thread Simon Glass
On 28 September 2015 at 03:11, Bin Meng wrote: > The logic to calculate the number of E820 table entries is wrong > when walking through the FSP HOB tables. Fix it. > > Signed-off-by: Bin Meng > Tested-by: Jian Luo > > --- > Simon, I think we need get this fix in v2015.10 release. > > Changes in

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

2015-09-28 Thread Simon Glass
Hi Bin, On 28 September 2015 at 22:48, Bin Meng wrote: > Hi Simon, > > On Tue, Sep 29, 2015 at 12:46 PM, Simon Glass wrote: >> Hi, >> >> A little bug fix, >> >> The following changes since commit 1f8836396de8215b7f460616926052b32597bb29: >> >> Prepare v2015.10-rc4 (2015-09-28 16:57:42 -0400) >

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

2015-09-28 Thread Bin Meng
Hi Simon, On Tue, Sep 29, 2015 at 12:46 PM, Simon Glass wrote: > Hi, > > A little bug fix, > > The following changes since commit 1f8836396de8215b7f460616926052b32597bb29: > > Prepare v2015.10-rc4 (2015-09-28 16:57:42 -0400) > > are available in the git repository at: > > git://git.denx.de/u-

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

2015-09-28 Thread Simon Glass
Hi, A little bug fix, The following changes since commit 1f8836396de8215b7f460616926052b32597bb29: Prepare v2015.10-rc4 (2015-09-28 16:57:42 -0400) are available in the git repository at: git://git.denx.de/u-boot-x86.git for you to fetch changes up to c1446ac6c11dab19490a552f16ab39df8d5b3

Re: [U-Boot] [PATCH 2/3] fix: s5p_gpio: call: dev_get_addr() instead of fdtdec_get_addr()

2015-09-28 Thread Simon Glass
On 25 September 2015 at 09:48, Stephen Warren wrote: > On 09/25/2015 02:36 AM, Przemyslaw Marczak wrote: >> >> Hello Stephen, >> >> On 09/24/2015 07:29 PM, Stephen Warren wrote: >>> >>> On 09/24/2015 09:29 AM, Przemyslaw Marczak wrote: After rework in lib/fdtdec.c, the function fdtdec_ge

Re: [U-Boot] [PATCH V2 3/3] mach-exynos: clock: restore calling dead exynos4_get_mmc_clk()

2015-09-28 Thread Simon Glass
Hi, On 28 September 2015 at 06:17, Przemyslaw Marczak wrote: > After rework of code by: > > commit: d952796 Exynos5: Use clock_get_periph_rate generic API > > function get_mmc_clk() always returns -1 for Exynos 4. > > This was caused by omitting, that SDHCI driver for Exynos 4, > calls get_mmc_cl

Re: [U-Boot] [PATCH V2 1/3] fdtdec: fix parsing 'reg' property with zero value in '#size-cells'

2015-09-28 Thread Simon Glass
On 28 September 2015 at 06:17, Przemyslaw Marczak wrote: > After rework of lib/fdtdec.c by: > > commit: 02464e3 fdt: add new fdt address parsing functions > > the function fdtdec_get_addr() doesn't work as previous, > because the implementation assumes that properties '#address-cells' > and '#size

Re: [U-Boot] PCI issues for bringing up ACPI support on QEMU and Minnowmax target

2015-09-28 Thread Bin Meng
Hi Saket, Changing email format to plain text, not sure if the mailing list allows HTML .. On Tue, Sep 29, 2015 at 12:36 PM, Saket Sinha wrote: > > Hi, > > This is regarding the PCI configuration issue I am facing for bringing up > ACPI Support on QEMU and Minnowmax. > > Please find below my o

[U-Boot] PCI issues for bringing up ACPI support on QEMU and Minnowmax target

2015-09-28 Thread Saket Sinha
Hi, This is regarding the PCI configuration issue I am facing for bringing up ACPI Support on QEMU and Minnowmax. Please find below my observations for the QEMU architecture. I am comparing arch/x86/cpu/qemu/acpi/pci-crs.asl and arch/x86/dts/qemu-x86_q35.dts and we find there are different ran

Re: [U-Boot] [PATCH] fdt: fix fdtdec_get_addr_size not to require any size cells

2015-09-28 Thread Simon Glass
On 28 September 2015 at 04:41, Przemyslaw Marczak wrote: > Hello Stephen, > > > On 09/25/2015 06:11 PM, Stephen Warren wrote: >> >> From: Stephen Warren >> >> fdtdec_get_addr_size() may be used in two cases: >> a) With sizep supplied, in which case both an address and a size are >> parsed from DT

Re: [U-Boot] [PATCH 01/10] x86: chromebook_link: Expand early malloc() memory

2015-09-28 Thread Simon Glass
On 14 September 2015 at 06:15, Bin Meng wrote: > > On Wed, Sep 9, 2015 at 7:52 AM, Simon Glass wrote: > > Now that PCI bridges are probed before relocation we need additional memory. > > Each PCI bridge takes 240 bytes at present since it uses the same uclass as > > the PCI controller. Probably w

Re: [U-Boot] [PATCH v2] nios2: convert nios2 cpu to driver model

2015-09-28 Thread Marek Vasut
On Tuesday, September 29, 2015 at 03:28:01 AM, Thomas Chou wrote: > Convert nios2 cpu to driver model. The cpu parameters are > extracted from device tree and saved to global data structure. > We will use them to replace the custom_fpga.h . > > Signed-off-by: Thomas Chou Hi! Minor nitpicks belo

[U-Boot] [PATCH] serial: rockchip: make ROCKCHIP_SERIAL depend on ARCH_ROCKCHIP

2015-09-28 Thread Masahiro Yamada
It looks like this line was copy-pasted, but not modified. Signed-off-by: Masahiro Yamada --- drivers/serial/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index ccb80d2..ddb725d 100644 --- a/drivers/serial/Kconfig +++

Re: [U-Boot] [PATCH v2 5/5] cgtqmx6eval: Protect the manufacturing information in SPI NOR

2015-09-28 Thread Fabio Estevam
Hi Jagan, On Sat, Sep 26, 2015 at 12:47 AM, Jagan Teki wrote: > [1] https://patchwork.ozlabs.org/patch/513041/ Thanks for your suggestion. I have implemented the SPI NOR protection support based on Brian's patch for the kernel as you suggested. Please let me know your thoughts. Thanks __

[U-Boot] [PATCH 1/2] bitops: Add support for order_base_2()

2015-09-28 Thread Fabio Estevam
From: Fabio Estevam Add support for the order_base_2() macro from the Linux kernel. This is useful for the SPI NOR unlock function. Signed-off-by: Fabio Estevam --- arch/arm/include/asm/bitops.h | 56 +++ 1 file changed, 56 insertions(+) diff --git a/a

[U-Boot] [PATCH 2/2] spi: Add SPI NOR protection mechanism

2015-09-28 Thread Fabio Estevam
From: Fabio Estevam Many SPI flashes have protection bits (BP2, BP1 and BP0) in the status register that can protect selected regions of the SPI NOR. Take these bits into account when performing erase operations, making sure that the protected areas are skipped. Introduce the CONFIG_SF_STM_PROT

Re: [U-Boot] [PATCH 1/2] dm: implement a Timer uclass

2015-09-28 Thread Thomas Chou
On 09/28/2015 09:19 PM, Thomas Chou wrote: diff --git a/drivers/timer/timer.c b/drivers/timer/timer.c new file mode 100644 index 000..648fd06 --- /dev/null +++ b/drivers/timer/timer.c @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2015 Thomas Chou + * + * SPDX-License-Identifier:GPL-2.0+ + */

[U-Boot] [PATCH v2] nios2: convert nios2 cpu to driver model

2015-09-28 Thread Thomas Chou
Convert nios2 cpu to driver model. The cpu parameters are extracted from device tree and saved to global data structure. We will use them to replace the custom_fpga.h . Signed-off-by: Thomas Chou --- v2 move cpu param setup to arch_cpu_init_dm, remove probe. arch/Kconfig

Re: [U-Boot] [PATCH 03/11] Kconfig: add CONFIG_SYS_BOOTM_LEN

2015-09-28 Thread Tom Rini
On Mon, Sep 28, 2015 at 09:22:35PM +0200, Hans de Goede wrote: > Hi, > > On 28-09-15 17:10, Tom Rini wrote: > >On Wed, Sep 23, 2015 at 10:25:35AM -0700, Ryan Harkin wrote: > > > >>As config migrates from board config files to Kconfig, when adding > >>CONFIG_SYS_BOOTM_LEN to a platform, I decided t

Re: [U-Boot] am437x_evm: increase phy autoneg timeout

2015-09-28 Thread Tom Rini
On Mon, Sep 28, 2015 at 03:58:15PM +0530, Sekhar Nori wrote: > When AM437x EVM is connected to Gigabit switch, it takes > more time to finish auto-negotiation than on a 10/100 switch. > > The default 4 second limit times-out more often than not. This is > observed when testing with a D-Link DGS-1

[U-Boot] [ANN] U-Boot v2015.10-rc4 released

2015-09-28 Thread Tom Rini
Hey all, I've pushed v2015.10-rc4 out to the repository and tarballs should exist soon. We're coming up on the release date and I think things are in reasonable shape overall. Please speak up if there's some fixes I'm still overlooking, I thought I grabbed them all by now but I may have still mi

Re: [U-Boot] [U-Boot, v2] tools: gen_eth_addr: add getpid() to time(0) to avoid duplicated seed

2015-09-28 Thread Tom Rini
On Wed, Sep 16, 2015 at 06:21:04PM +0800, Josh Wu wrote: > As 'time(0) | getpid()' will have a lot of duplicated value. It is not a > expected behavior. We expect different value for the seed when when run > it in many times. > > So this patch will left shift the getpid() and add to time(0). That

Re: [U-Boot] [PATCH] mmc: dw_mmc: Increase timeout to 4 minutes (as in Linux kernel)

2015-09-28 Thread Tom Rini
On Mon, Sep 28, 2015 at 03:43:50PM +0200, Przemyslaw Marczak wrote: > Hi Lukasz, > > On 09/25/2015 06:25 PM, Lukasz Majewski wrote: > >The commit: d9dbb97be0e4a550457aec5f11afefb446169c90 > >"mmc: dw_mmc: Zap endless timeout" removed endless loop waiting for end > >of dw mmc transfer. > > > >For s

Re: [U-Boot] [U-Boot,4/6] arm: Drop old non-generic-board code

2015-09-28 Thread Tom Rini
On Sat, Sep 12, 2015 at 11:50:10AM -0600, Simon Glass wrote: > This code is no-longer used. Drop it. > > Signed-off-by: Simon Glass > Acked-by: Andreas Bießmann Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] tools: moveconfig: Update the URL for nds32 toolchain

2015-09-28 Thread Tom Rini
On Fri, Sep 25, 2015 at 01:22:39AM -0700, Bin Meng wrote: > Give a full URL for a working nds32 toolchain for U-Boot. > > Signed-off-by: Bin Meng > Reviewed-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] mmc: dw_mmc: Increase timeout to 4 minutes (as in Linux kernel)

2015-09-28 Thread Tom Rini
On Fri, Sep 25, 2015 at 06:25:25PM +0200, Łukasz Majewski wrote: > The commit: d9dbb97be0e4a550457aec5f11afefb446169c90 > "mmc: dw_mmc: Zap endless timeout" removed endless loop waiting for end > of dw mmc transfer. > > For some workloads - dfu test @ Odroid XU3 (sending 8MiB file) - > and SD car

Re: [U-Boot] [U-Boot,3/6] arm: Remove wireless_space board

2015-09-28 Thread Tom Rini
On Sat, Sep 12, 2015 at 11:50:09AM -0600, Simon Glass wrote: > This board has not been converted to generic board by the deadline. > Remove it. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [U-Boot,2/6] arm: Remove da830evm board

2015-09-28 Thread Tom Rini
On Sat, Sep 12, 2015 at 11:50:08AM -0600, Simon Glass wrote: > This board has not been converted to generic board by the deadline. > Remove it. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [U-Boot, v2, 8/8] ARM: hikey: Adjust SDRAM_1_SIZE to 0x3EFFFFFF

2015-09-28 Thread Tom Rini
On Thu, Sep 10, 2015 at 09:55:18PM +0100, Peter Griffin wrote: > DRAM region 0x3f00 - 0x3fff is reserved for OP-TEE. Touching > 0x3f00 memory location from unsecure world causes the board > to hang. > > Signed-off-by: Peter Griffin > Reviewed-by: Simon Glass Applied to u-boot/maste

Re: [U-Boot] [U-Boot, v2, 5/8] ARM: hikey: Remove resetting gd->flags in board_init()

2015-09-28 Thread Tom Rini
On Thu, Sep 10, 2015 at 09:55:15PM +0100, Peter Griffin wrote: > This causes exceptions and other strange behaviour > when enabling CONFIG_SYS_MALLOC_F_LEN which is required to > migrate the serial driver over to DM_SERIAL. > > As GD_FLG_FULL_MALLOC_INIT flag gets reset, after relocation > we don

Re: [U-Boot] [U-Boot, v2, 2/8] ARM: hikey: Add ATF makefile referenced by README

2015-09-28 Thread Tom Rini
On Thu, Sep 10, 2015 at 09:55:12PM +0100, Peter Griffin wrote: > Rather than relying on an external URL in the README > include the Makefile in the hikey directory. > > Signed-off-by: Peter Griffin Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [U-Boot, v2, 7/8] ARM: hikey: hi6220: Migrate over to DM_SERIAL and use UART3 by default.

2015-09-28 Thread Tom Rini
On Thu, Sep 10, 2015 at 09:55:17PM +0100, Peter Griffin wrote: > Use DM for the pl01x serial driver on hikey. Also allow UART0 or > UART3 to be chosen via Kconfig. > > By default we now output to UART3 as the latest version of ATF outputs > to this UART. Also UART3 comes out on the LS connector,

Re: [U-Boot] [U-Boot, v2, 6/8] ARM: hikey: Select DM, DM_GPIO from Kconfig

2015-09-28 Thread Tom Rini
On Thu, Sep 10, 2015 at 09:55:16PM +0100, Peter Griffin wrote: > Most platforms enable these options from Kconfig rather > than the configs header file. > > Signed-off-by: Peter Griffin > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital s

Re: [U-Boot] [U-Boot, v2, 4/8] ARM: hi6220: Add UART0 and UART3 base addresses

2015-09-28 Thread Tom Rini
On Thu, Sep 10, 2015 at 09:55:14PM +0100, Peter Griffin wrote: > Signed-off-by: Peter Griffin > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.den

Re: [U-Boot] [U-Boot, v2, 3/8] ARM: hikey: Use linux/sizes.h for malloc size

2015-09-28 Thread Tom Rini
On Thu, Sep 10, 2015 at 09:55:13PM +0100, Peter Griffin wrote: > Use the #defines in linux/sizes for malloc size as it is > more readable. > > Signed-off-by: Peter Griffin > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [U-Boot, v2, 1/8] ARM: hikey: Update README with various corrections

2015-09-28 Thread Tom Rini
On Thu, Sep 10, 2015 at 09:55:11PM +0100, Peter Griffin wrote: > The README had a few mistakes, and one of the URL's > had changed. Also update the boot log with the latest > boot trace from ATF, which now includes the mcuimage.bin. > > Signed-off-by: Peter Griffin Applied to u-boot/master, tha

Re: [U-Boot] [U-Boot, 02/10] Kconfig: fix typo in CONFIG_FIT description

2015-09-28 Thread Tom Rini
On Wed, Aug 26, 2015 at 05:54:45PM +0300, Igor Grinberg wrote: > Fix typo in CONFIG_FIT description - remove the accidentially added > redundand 'the'. > > Signed-off-by: Igor Grinberg > Cc: Masahiro Yamada > Cc: Simon Glass > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- T

Re: [U-Boot] Please pull u-boot-ubi master

2015-09-28 Thread Tom Rini
On Mon, Sep 28, 2015 at 08:31:06AM +0200, Heiko Schocher wrote: > Hello Tom, > > Please pull from u-boot-ubi master > > The following changes since commit 1a9c229bf754c89f42b085451ad506693f326427: > > Merge branch 'master' of git://www.denx.de/git/u-boot-imx (2015-09-24 > 12:28:10 -0400) >

Re: [U-Boot] malloc_simple: fix malloc_ptr calculation

2015-09-28 Thread Tom Rini
On Tue, Sep 08, 2015 at 12:41:24PM +0200, Philipp Rosenberger wrote: > The gd->malloc_ptr and the gd->malloc_limit are offsets to gd->malloc_base. > But the addr variable contains the absolute address. The new_ptr must be: > addr + bytes - gd->malloc_base. > > Signed-off-by: Philipp Rosenberger

Re: [U-Boot] [U-Boot, 01/10] configs: remove remnants of CONFIG_SYS_NAND_QUIET_TEST

2015-09-28 Thread Tom Rini
On Wed, Aug 26, 2015 at 05:54:44PM +0300, Igor Grinberg wrote: > The config option has been removed by one of the syncs with the Linux > mainline MTD subsystem: > ff94bc40af (mtd, ubi, ubifs: resync with Linux-3.14) > It has been left inside the config files. Currently does not look to > serve any

Re: [U-Boot] [PATCH 03/11] Kconfig: add CONFIG_SYS_BOOTM_LEN

2015-09-28 Thread Hans de Goede
Hi, On 28-09-15 17:10, Tom Rini wrote: On Wed, Sep 23, 2015 at 10:25:35AM -0700, Ryan Harkin wrote: As config migrates from board config files to Kconfig, when adding CONFIG_SYS_BOOTM_LEN to a platform, I decided to add Kconfig support for CONFIG_SYS_BOOTM_LEN. Signed-off-by: Ryan Harkin Rev

Re: [U-Boot] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH

2015-09-28 Thread Siarhei Siamashka
On Thu, 24 Sep 2015 09:05:10 -0700 Vagrant Cascadian wrote: > On 2015-07-26, Paul Kocialkowski wrote: > > In order to achieve reproducible builds in U-Boot, timestamps that are > > defined > > at build-time have to be somewhat eliminated. The SOURCE_DATE_EPOCH > > environment > > variable allow

Re: [U-Boot] Reproducible U-Boot build support, using SOURCE_DATE_EPOCH

2015-09-28 Thread Paul Kocialkowski
Le jeudi 24 septembre 2015 à 09:05 -0700, Vagrant Cascadian a écrit : > On 2015-07-26, Paul Kocialkowski wrote: > > In order to achieve reproducible builds in U-Boot, timestamps that are > > defined > > at build-time have to be somewhat eliminated. The SOURCE_DATE_EPOCH > > environment > > variab

Re: [U-Boot] [PATCH v2 4/4] exynos: more debug and cleanup in do_sdhci_init()

2015-09-28 Thread Przemyslaw Marczak
Hello, On 09/25/2015 07:18 PM, Tobias Jakobi wrote: Add more debug printfs in do_sdhci_init() for calls that can potentially fail. Signed-off-by: Tobias Jakobi --- drivers/mmc/s5p_sdhci.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/s

Re: [U-Boot] [PATCH v2 3/4] exynos: be more verbose in process_nodes()

2015-09-28 Thread Przemyslaw Marczak
Hello Tobias, On 09/25/2015 07:18 PM, Tobias Jakobi wrote: In case sdhci_get_config() or do_sdhci_init() fail, show the error code that was returned. Signed-off-by: Tobias Jakobi --- drivers/mmc/s5p_sdhci.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dri

Re: [U-Boot] [PATCH v2 2/4] exynos: Fix passing of errors in exynos_mmc_init()

2015-09-28 Thread Przemyslaw Marczak
Hello Tobias, On 09/25/2015 07:18 PM, Tobias Jakobi wrote: exynos_mmc_init() always returns zero, so for the caller it looks like it never fails. Correct this by returning the error code of process_nodes(). For process_nodes() do something similar and return early when do_sdhci_init() fails. v

Re: [U-Boot] [PATCH v2 1/4] exynos: Properly initialize host_caps in s5p_sdhci_core_init()

2015-09-28 Thread Przemyslaw Marczak
Hello Tobias, On 09/25/2015 07:18 PM, Tobias Jakobi wrote: The sdhci_host struct is allocated in s5p_sdhci_init() but the fields are not initialized. Acked-by: Lukasz Majewski Signed-off-by: Tobias Jakobi --- drivers/mmc/s5p_sdhci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drive

Re: [U-Boot] [PATCH v6 8/9] armv8: cavium: Add an implementation of ATF calling functions

2015-09-28 Thread Tom Rini
On Mon, Sep 28, 2015 at 07:27:57PM +0300, Sergei Temerkhanov wrote: > On Mon, Sep 28, 2015 at 5:47 PM, Tom Rini wrote: > > On Fri, Sep 25, 2015 at 07:17:18PM +0300, Sergey Temerkhanov wrote: > > > >> This commit adds functions issuing calls to the product-specific ATF > >> services > >> > >> Signe

Re: [U-Boot] [PATCH v6 8/9] armv8: cavium: Add an implementation of ATF calling functions

2015-09-28 Thread Sergei Temerkhanov
On Mon, Sep 28, 2015 at 5:47 PM, Tom Rini wrote: > On Fri, Sep 25, 2015 at 07:17:18PM +0300, Sergey Temerkhanov wrote: > >> This commit adds functions issuing calls to the product-specific ATF >> services >> >> Signed-off-by: Sergey Temerkhanov >> Signed-off-by: Radha Mohan Chintakuntla > > OK,

Re: [U-Boot] [PATCH 03/11] Kconfig: add CONFIG_SYS_BOOTM_LEN

2015-09-28 Thread Tom Rini
On Mon, Sep 28, 2015 at 04:35:09PM +0100, Ryan Harkin wrote: > Thanks Tom. > > On 28 September 2015 at 16:10, Tom Rini wrote: > > > On Wed, Sep 23, 2015 at 10:25:35AM -0700, Ryan Harkin wrote: > > > > > As config migrates from board config files to Kconfig, when adding > > > CONFIG_SYS_BOOTM_LEN

Re: [U-Boot] [PATCH 03/11] Kconfig: add CONFIG_SYS_BOOTM_LEN

2015-09-28 Thread Ryan Harkin
Thanks Tom. On 28 September 2015 at 16:10, Tom Rini wrote: > On Wed, Sep 23, 2015 at 10:25:35AM -0700, Ryan Harkin wrote: > > > As config migrates from board config files to Kconfig, when adding > > CONFIG_SYS_BOOTM_LEN to a platform, I decided to add > > Kconfig support for CONFIG_SYS_BOOTM_LEN

Re: [U-Boot] [PATCH 05/11] vexpress64: fvp dram: add DRAM configuration

2015-09-28 Thread Ryan Harkin
On 28 September 2015 at 16:14, Tom Rini wrote: > On Wed, Sep 23, 2015 at 10:25:37AM -0700, Ryan Harkin wrote: > > > Create an additional FVP configuration to boot images pre-loaded into > > DRAM. > > > > Sometimes it's preferential to boot the model by loading the files > > directly into DRAM via

Re: [U-Boot] [PATCH v6 7/9] armv8: cavium: Add ThunderX 88xx board definition

2015-09-28 Thread Sergei Temerkhanov
On Mon, Sep 28, 2015 at 5:47 PM, Tom Rini wrote: > On Fri, Sep 25, 2015 at 07:17:17PM +0300, Sergey Temerkhanov wrote: > >> This commit adds basic Cavium ThunderX 88xx board definitions and support. >> >> Signed-off-by: Sergey Temerkhanov >> Signed-off-by: Radha Mohan Chintakuntla > [snip] >> c

Re: [U-Boot] [PATCH 1/5] fs/fat/fat_write: Fix buffer alignments

2015-09-28 Thread Tom Rini
On Mon, Sep 28, 2015 at 03:45:28PM +0200, Benoît Thébaudeau wrote: > set_cluster() was using a temporary buffer without enforcing its > alignment for DMA and cache. Moreover, it did not check the alignment of > the passed buffer, which can come directly from applicative code or from > the user. >

Re: [U-Boot] [PATCH 05/11] vexpress64: fvp dram: add DRAM configuration

2015-09-28 Thread Tom Rini
On Wed, Sep 23, 2015 at 10:25:37AM -0700, Ryan Harkin wrote: > Create an additional FVP configuration to boot images pre-loaded into > DRAM. > > Sometimes it's preferential to boot the model by loading the files > directly into DRAM via model parameters, rather than using > SemiHosting. > > An e

Re: [U-Boot] [PATCH 04/11] vexpress64: Kconfig: add CONFIG_SYS_BOOTM_LEN

2015-09-28 Thread Tom Rini
On Wed, Sep 23, 2015 at 10:25:36AM -0700, Ryan Harkin wrote: > vexpress64 kernels are usually over 8 MBytes in length, so setting the > max uImage length to 0x400 (64 Mbytes) should give us plenty of > scope for expansion. > > I mostly chose this length to match other board configs that use >

Re: [U-Boot] [PATCH 03/11] Kconfig: add CONFIG_SYS_BOOTM_LEN

2015-09-28 Thread Tom Rini
On Wed, Sep 23, 2015 at 10:25:35AM -0700, Ryan Harkin wrote: > As config migrates from board config files to Kconfig, when adding > CONFIG_SYS_BOOTM_LEN to a platform, I decided to add > Kconfig support for CONFIG_SYS_BOOTM_LEN. > > Signed-off-by: Ryan Harkin > Reviewed-by: Linus Walleij > CC:

Re: [U-Boot] [PATCH v6 7/9] armv8: cavium: Add ThunderX 88xx board definition

2015-09-28 Thread Tom Rini
On Fri, Sep 25, 2015 at 07:17:17PM +0300, Sergey Temerkhanov wrote: > This commit adds basic Cavium ThunderX 88xx board definitions and support. > > Signed-off-by: Sergey Temerkhanov > Signed-off-by: Radha Mohan Chintakuntla [snip] > configs/thunderx_88xx_defconfig | 29 This is no

Re: [U-Boot] [PATCH v6 8/9] armv8: cavium: Add an implementation of ATF calling functions

2015-09-28 Thread Tom Rini
On Fri, Sep 25, 2015 at 07:17:18PM +0300, Sergey Temerkhanov wrote: > This commit adds functions issuing calls to the product-specific ATF > services > > Signed-off-by: Sergey Temerkhanov > Signed-off-by: Radha Mohan Chintakuntla OK, problem: > +#ifdef CONFIG_CMD_ATF > + > +static void atf_pr

[U-Boot] [PATCH 3/5] fs/fat/fat_write: Fix curclust/newclust mix-up

2015-09-28 Thread Benoît Thébaudeau
curclust was used instead of newclust in the debug() calls and in one CHECK_CLUST() call, which could skip a failure case. Signed-off-by: Benoît Thébaudeau --- fs/fat/fat_write.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c ind

[U-Boot] [PATCH 1/5] fs/fat/fat_write: Fix buffer alignments

2015-09-28 Thread Benoît Thébaudeau
set_cluster() was using a temporary buffer without enforcing its alignment for DMA and cache. Moreover, it did not check the alignment of the passed buffer, which can come directly from applicative code or from the user. This could cause random data corruption, which has been observed on i.MX25 wr

[U-Boot] [PATCH 4/5] fs/fat/fat_write: Factor out duplicate code

2015-09-28 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- fs/fat/fat_write.c | 72 +- 1 file changed, 22 insertions(+), 50 deletions(-) diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index 2399844..2d032ee 100644 --- a/fs/fat/fat_write.c +++ b/fs/fat/fat_writ

[U-Boot] [PATCH 2/5] fs/fat/fat_write: Merge calls to set_cluster()

2015-09-28 Thread Benoît Thébaudeau
set_contents() had uselessly split calls to set_cluster(). Merge these calls, which removes some cases of set_cluster() being called with a size of zero. Signed-off-by: Benoît Thébaudeau --- fs/fat/fat_write.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/fs/f

[U-Boot] [PATCH 5/5] fs/fat/fat_write: Fix management of empty files

2015-09-28 Thread Benoît Thébaudeau
Overwriting an empty file not created by U-Boot did not work, and it could even corrupt the FAT. Moreover, creating empty files or emptying existing files allocated a cluster, which is not standard. Fix this by always keeping empty files clusterless as specified by Microsoft (the start cluster mus

[U-Boot] [PATCH] am437x_evm: increase phy autoneg timeout

2015-09-28 Thread Sekhar Nori
When AM437x EVM is connected to Gigabit switch, it takes more time to finish auto-negotiation than on a 10/100 switch. The default 4 second limit times-out more often than not. This is observed when testing with a D-Link DGS-1008A desktop switch. Increase the auto-negotiation time-out for AM437x

Re: [U-Boot] [PATCH] mmc: dw_mmc: Increase timeout to 4 minutes (as in Linux kernel)

2015-09-28 Thread Przemyslaw Marczak
Hi Lukasz, On 09/25/2015 06:25 PM, Lukasz Majewski wrote: The commit: d9dbb97be0e4a550457aec5f11afefb446169c90 "mmc: dw_mmc: Zap endless timeout" removed endless loop waiting for end of dw mmc transfer. For some workloads - dfu test @ Odroid XU3 (sending 8MiB file) - and SD cards (e.g. MicroSD

Re: [U-Boot] [PATCH v3 0/4] Move tpm_tis_i2c to tpm_tis_infineon and convert last tpm driver to use DM_TPM

2015-09-28 Thread Simon Glass
Hi Christophe, On 27 September 2015 at 14:11, Christophe Ricard wrote: > Hi Simon, > > Any news on this patch serie ? > I think we need to wait until the merge window opens in a few weeks to apply it. > Best Regards > Christophe > > > On 20/09/2015 22:00, Christophe Ricard wrote: >> >> Hi Simon

Re: [U-Boot] DWMMC crontroller in Exynos4412

2015-09-28 Thread Humberto López León
Hi Przemyslaw, With the information you gave me I managed to implement an important part of SDHCI controller. Currently the driver detects the SD card correctly but I have a problem with writing operations. With the help of linux command dd I found that the driver reads correctly but fails whe

Re: [U-Boot] [PATCH] spi : convert altera_spi to driver model

2015-09-28 Thread Thomas Chou
On 09/21/2015 08:58 PM, Thomas Chou wrote: Convert altera_spi to driver model Signed-off-by: Thomas Chou --- drivers/spi/Kconfig | 8 ++ drivers/spi/altera_spi.c | 197 ++- 2 files changed, 119 insertions(+), 86 deletions(-) Applied to

[U-Boot] [PATCH 1/2] dm: implement a Timer uclass

2015-09-28 Thread Thomas Chou
Implement a Timer uclass to work with lib/time.c. Signed-off-by: Thomas Chou --- common/board_r.c | 2 +- drivers/Kconfig | 2 ++ drivers/Makefile | 1 + drivers/timer/Kconfig| 9 drivers/timer/Makefile | 7 ++ drivers/timer/ti

[U-Boot] [PATCH 2/2] nios2: convert altera timer to driver model

2015-09-28 Thread Thomas Chou
Convert altera timer to driver model. Signed-off-by: Thomas Chou --- arch/nios2/cpu/Makefile | 2 +- arch/nios2/cpu/timer.c | 65 common/board_f.c| 3 +- configs/nios2-generic_defconfig | 2 + drivers/timer/Kconfig | 7

Re: [U-Boot] [PATCH RESPIN v2 01/13] Reorder defconfigs with 'savedefconfig'

2015-09-28 Thread Bin Meng
Hi Tom, On Mon, Sep 28, 2015 at 9:07 PM, Tom Rini wrote: > On Mon, Sep 28, 2015 at 05:14:15AM -0700, Bin Meng wrote: > >> Some boards' defconfigs are disordered. Reorder them. >> >> Signed-off-by: Bin Meng > > Applied to u-boot/master, thanks! > Thank you. As I don't see it shows up on patchwor

Re: [U-Boot] [PATCH 2/8] cmd: Convert CONFIG_CMD_ELF to Kconfig

2015-09-28 Thread Bin Meng
Hi Tom, On Mon, Sep 28, 2015 at 6:21 PM, Bin Meng wrote: > Hi Tom, > > On Sun, Sep 27, 2015 at 4:13 AM, Tom Rini wrote: >> On Sun, Sep 27, 2015 at 12:51:14AM +0800, Bin Meng wrote: >>> Hi Tom, >>> >>> On Sat, Sep 26, 2015 at 2:36 AM, Tom Rini wrote: >>> > On Thu, Sep 24, 2015 at 02:21:18AM -070

Re: [U-Boot] [PATCH RESPIN v2 01/13] Reorder defconfigs with 'savedefconfig'

2015-09-28 Thread Tom Rini
On Mon, Sep 28, 2015 at 05:14:15AM -0700, Bin Meng wrote: > Some boards' defconfigs are disordered. Reorder them. > > Signed-off-by: Bin Meng Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing

[U-Boot] [PATCH V2 0/3] Fix fdt 'reg' parsing and unbreak few Exynos4 boards

2015-09-28 Thread Przemyslaw Marczak
Booting of Odroid U3 with SD card, ends with error: MMC: EXYNOS DWMMC: 0 Card did not respond to voltage select! *** Warning - MMC init failed, using default environment Generally this was broken, because of wrong addresses, assigned to GPIOs. The source of the problem was in rework of lib/fdtd

[U-Boot] [PATCH V2 2/3] gpio: s5p: call: dev_get_addr() instead of fdtdec_get_addr()

2015-09-28 Thread Przemyslaw Marczak
After rework in lib/fdtdec.c, the function fdtdec_get_addr() doesn't work for nodes with #size-cells property set to 0. To get GPIO's 'reg' property, the code should use one of: fdtdec_get_addr_size_auto_no/parent() function. Fortunately dm core provides a function to get the property. This comm

[U-Boot] [PATCH V2 3/3] mach-exynos: clock: restore calling dead exynos4_get_mmc_clk()

2015-09-28 Thread Przemyslaw Marczak
After rework of code by: commit: d952796 Exynos5: Use clock_get_periph_rate generic API function get_mmc_clk() always returns -1 for Exynos 4. This was caused by omitting, that SDHCI driver for Exynos 4, calls get_mmc_clk(), with mmc device number as argument, instead of pinmux peripheral id, li

[U-Boot] [PATCH V2 1/3] fdtdec: fix parsing 'reg' property with zero value in '#size-cells'

2015-09-28 Thread Przemyslaw Marczak
After rework of lib/fdtdec.c by: commit: 02464e3 fdt: add new fdt address parsing functions the function fdtdec_get_addr() doesn't work as previous, because the implementation assumes that properties '#address-cells' and '#size-cells' are equal to 1, which can be not true sometimes. The new API

Re: [U-Boot] [PATCH] common: add CMD_GPIO to Kconfig

2015-09-28 Thread Marek Vasut
On Monday, September 28, 2015 at 02:34:39 AM, Thomas Chou wrote: > Hi Marek, Hi Thomas, > On 09/26/2015 04:16 PM, Marek Vasut wrote: > > If you ever figure out how to use buildman for your tests, I'd be glad > > > > if you share that information -- something like "buildman, the warstory". > > I

Re: [U-Boot] [PATCH 5/6] am437x: Add am437x_gp_evm_defconfig using CONFIG_DM

2015-09-28 Thread Lokesh Vutla
On Monday 28 September 2015 04:17 PM, Mugunthan V N wrote: > Import various DT files for am4372, an43xx pinctrl and > am437x-gp-evm from Linux Kernel v4.2 > Add config file for this board, enable DM, DM_GPIO, DM_SERIAL > and DM_MMC. Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > > S

Re: [U-Boot] [PATCH 6/6] am437x: Add am437x_sk_evm_defconfig using CONFIG_DM

2015-09-28 Thread Lokesh Vutla
On Monday 28 September 2015 04:17 PM, Mugunthan V N wrote: > Import various DT files for am437x-sk-evm from Linux Kernel v4.2 > Add config file for this board, enable DM, DM_GPIO, DM_SERIAL > and DM_MMC. Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > > Signed-off-by: Mugunthan V N >

Re: [U-Boot] [PATCH 3/6] am43xx_evm.h: : switch to CONFIG_OMAP_SERIAL for non-SPL DM_SERIAL

2015-09-28 Thread Mugunthan V N
On Monday 28 September 2015 04:25 PM, Lokesh Vutla wrote: > > On Monday 28 September 2015 04:17 PM, Mugunthan V N wrote: >> > Tested on am437x gp evm and am437x sk evm >> > >> > Signed-off-by: Mugunthan V N >> > --- >> > include/configs/am43xx_evm.h | 6 +- >> > 1 file changed, 5 insertions

Re: [U-Boot] [PATCH 3/6] am43xx_evm.h: : switch to CONFIG_OMAP_SERIAL for non-SPL DM_SERIAL

2015-09-28 Thread Lokesh Vutla
On Monday 28 September 2015 04:17 PM, Mugunthan V N wrote: > Tested on am437x gp evm and am437x sk evm > > Signed-off-by: Mugunthan V N > --- > include/configs/am43xx_evm.h | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/include/configs/am43xx_evm.h b/include/con

Re: [U-Boot] [PATCH 1/6] drivers: serial: serial_omap: populate default clock frequency when not found in dt

2015-09-28 Thread Lokesh Vutla
On Monday 28 September 2015 04:17 PM, Mugunthan V N wrote: > In some platforms like am437x, serial node is not populated with > clock-frequency node. So in that case have a default clock-clock > frequency. Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > > Signed-off-by: Mugunthan V N >

Re: [U-Boot] [PATCH 2/6] drivers: serial: serial_omap: add comaptibles for all ti platforms

2015-09-28 Thread Lokesh Vutla
On Monday 28 September 2015 04:17 PM, Mugunthan V N wrote: > Adding compatibles for am335x, am437x and dra7 platforms. Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > > Signed-off-by: Mugunthan V N > --- > drivers/serial/serial_omap.c | 4 > 1 file changed, 4 insertions(+) > >

[U-Boot] [PATCH 6/6] am437x: Add am437x_sk_evm_defconfig using CONFIG_DM

2015-09-28 Thread Mugunthan V N
Import various DT files for am437x-sk-evm from Linux Kernel v4.2 Add config file for this board, enable DM, DM_GPIO, DM_SERIAL and DM_MMC. Signed-off-by: Mugunthan V N --- arch/arm/dts/Makefile | 2 +- arch/arm/dts/am437x-sk-evm.dts | 704 co

  1   2   >