[U-Boot] [REGRESSION] commit 3ef46a9 Fix hash verification breaks crc32 verify

2015-05-05 Thread Marcel Ziswiler
U-Boot SPL 2015.04-00631-gace97d2 (May 05 2015 - 13:32:44) U-Boot 2015.04-00631-gace97d2 (May 05 2015 - 13:32:44) TEGRA30 Model: Toradex Colibri T30 DRAM: 1 GiB iC: Tegra SD/MMC: 0, Tegra SD/MMC: 1 In:serial Out: serial Err: serial Net: Net Initialization Skipped No ethernet found.

Re: [U-Boot] [PATCH] fw_env.h: include autoconf.h

2015-05-05 Thread Marcel Ziswiler
On Thu, 2015-04-16 at 13:20 -0400, Tom Rini wrote: I'll let Masahiro comment on if this is the best way to fix the compile problem. What's the status on this one? ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] Please pull u-boot-marvell master

2015-05-05 Thread Luka Perkov
Hi Tom, please pull from marvell/master. The changes include Stefan's Armada 38x series which reached v3 on the mailing list and two more Marvell Armada related fixes. The following changes since commit ace97d26176a3ebc9ec07738450de93eea35975c: Merge branch 'zynq' of

[U-Boot] [PATCH 3/5] dm: usb: Do not scan companion busses if no devices where handed over

2015-05-05 Thread Hans de Goede
USB scanning is slow, and there is no need to scan the companion busses if no usb devices where handed over to the companinon controllers by any of the main controllers. This saves e.g. 2 seconds when booting a A10 OLinuxIno Lime with no USB-1 devices plugged into the root usb ports. The use of

[U-Boot] [PATCH 0/5] dm: usb: Add companion controller support + ehci fixes

2015-05-05 Thread Hans de Goede
Hi Simon, Marek, I'm making steady progress with adding ohci / companion controller support to the sunxi usb code. Things are progressing a bit slower then I would have liked as I've been hitting bugs in the usb-core, ehci and ohci code, but I've things mostly working now I just need to do some

[U-Boot] [PATCH 1/5] dm: usb: Move printing of usb scan status to usb_scan_bus()

2015-05-05 Thread Hans de Goede
Move printing of usb scan status to usb_scan_bus(). This is a preparation patch for adding companion controller support to the usb uclass. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/usb-uclass.c | 22 +- 1 file changed, 9 insertions(+), 13

[U-Boot] [PATCH 5/5] usb: ehci: Increase usb_companion_device_count when handing over devices

2015-05-05 Thread Hans de Goede
Increase usb_companion_device_count when handing over devices to the ehci's companion controller. usb_init() will use this to short-circuit companion bus scanning when no devices were handed over at all. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/ehci-hcd.c | 2 ++ 1

[U-Boot] [PATCH 4/5] usb: ehci: Fix handover of full-speed devices to companion

2015-05-05 Thread Hans de Goede
When after a reset the port status connection bit is still set and the enable bit is not then we're dealing with a full-speed device and should hand it over to the companion controller. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/ehci-hcd.c | 16 +--- 1 file

[U-Boot] [PATCH] common: hash: fix crc32 verify

2015-05-05 Thread Marcel Ziswiler
From: Marcel Ziswiler marc...@ziswiler.com did not work: Colibri T30 # crc32 0x8000 0x100 crc32 for 8000 ... 80ff == 9eb4f5ca Colibri T30 # crc32 -v 0x8000 0x100 c9a057b3 crc32 for 8000 ... 80ff == 9eb4f5ca != ** ERROR ** Colibri T30 # crc32 -v 0x8000 0x100

Re: [U-Boot] [PATCH 12/16] usb: ohci: Do not resubmit and leak urbs for interrupt packets

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:15 PM, Hans de Goede wrote: Auto-resubmission of interrupt packets does not match the u-boot usb model. Just a bit more verbose commit message would be helpful, really ;-) Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Marek Vasut ma...@denx.de

[U-Boot] [PATCH] fsl/sata: Replace sprintf() with snprintf()

2015-05-05 Thread Yuantian.Tang
From: Tang Yuantian yuantian.t...@freescale.com Function 'sprintf' does not check buffer boundaries but outputs to the buffer of fixed size which could cause buffer overflow. Use a safer function to replace it. Signed-off-by: Tang Yuantian yuantian.t...@freescale.com ---

Re: [U-Boot] [PATCH 00/16] usb core fixes + ohci fixes + ohci dm support

2015-05-05 Thread Simon Glass
Hi Hans, On 5 May 2015 at 16:50, Hans de Goede hdego...@redhat.com wrote: Hi, On 05/06/2015 12:23 AM, Marek Vasut wrote: On Tuesday, May 05, 2015 at 11:56:03 PM, Hans de Goede wrote: Hi Marek and Simon, Hi! Here is a series with a few usb core fixes, a lot of ohci fixes and ohci dm

Re: [U-Boot] [PATCH 00/16] usb core fixes + ohci fixes + ohci dm support

2015-05-05 Thread Simon Glass
On 5 May 2015 at 16:52, Marek Vasut ma...@denx.de wrote: On Wednesday, May 06, 2015 at 12:50:08 AM, Hans de Goede wrote: Hi, Hi! On 05/06/2015 12:23 AM, Marek Vasut wrote: On Tuesday, May 05, 2015 at 11:56:03 PM, Hans de Goede wrote: Hi Marek and Simon, Hi! Here is a series with

Re: [U-Boot] [PATCH 4/4] ARM: bcm283x: Switch to generic timer

2015-05-05 Thread Marek Vasut
On Wednesday, May 06, 2015 at 12:57:54 AM, Stephen Warren wrote: On 05/05/2015 04:42 PM, Marek Vasut wrote: On Wednesday, May 06, 2015 at 12:37:38 AM, Stephen Warren wrote: On 05/05/2015 04:17 PM, Marek Vasut wrote: On Tuesday, May 05, 2015 at 11:46:56 PM, Stephen Warren wrote: On

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

2015-05-05 Thread Tom Rini
On Mon, May 04, 2015 at 05:21:29PM +0200, Hans de Goede wrote: Hi Tom, Please pull u-boot-sunxi/master into master for the second round of sunxi work, highlights: -A33 SoC support (full support including otg display) -Move ALL sunxi boards over to the driver-model for serial, gpio and

Re: [U-Boot] [PATCH v2] dm: sf: Update default name of spi flash in structure udevice

2015-05-05 Thread Simon Glass
On 5 May 2015 at 20:37, Haikun Wang haikun.w...@freescale.com wrote: Default name of spi flash like this 0:0, update it to spi_flash@0:0. Signed-off-by: Haikun Wang haikun.w...@freescale.com --- Changes in v2: - Increase the size of array name to 30 Changes in v1: None

Re: [U-Boot] [PATCH v3 18/26] test: dm: eth: Handle failed test env cleanup

2015-05-05 Thread Joe Hershberger
Hi Simon, On Tue, May 5, 2015 at 3:56 PM, Simon Glass s...@chromium.org wrote: Hi Joe, On 3 May 2015 at 14:12, Joe Hershberger joe.hershber...@ni.com wrote: Make sure that the env gets cleaned up after a test fails so that other tests aren't affected. Signed-off-by: Joe Hershberger

Re: [U-Boot] [PATCH 09/16] usb: ohci: Fix ctrl in messages with a data-len of 0

2015-05-05 Thread Marek Vasut
On Wednesday, May 06, 2015 at 01:25:29 AM, Hans de Goede wrote: Hi, On 05/06/2015 12:59 AM, Marek Vasut wrote: On Tuesday, May 05, 2015 at 11:56:12 PM, Hans de Goede wrote: Fix taken from the Linux kernel ohci driver. Commit ID from Linux where this came from would be nice to have

Re: [U-Boot] [PATCH 11/16] usb: ohci: Don't log an error on interrupt packet timeout

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:14 PM, Hans de Goede wrote: Interrupts transfers timing out is normal, so do not log an error for this. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Marek Vasut ma...@denx.de Best regards, Marek Vasut

Re: [U-Boot] [PATCH 1/2] Fix inconsistency of VERIFY defines in cmd_mem

2015-05-05 Thread Joe Hershberger
Hi Simon, On Tue, May 5, 2015 at 4:37 PM, Simon Glass s...@chromium.org wrote: Hi Joe, On 5 May 2015 at 11:23, Joe Hershberger joe.hershber...@ni.com wrote: Introduced in change d20a40de9db07de1f1f06a79a4da1cdda5379b75 Roll crc32 into hash infrastructure Use a consistent define to enable

[U-Boot] [ANN] U-Boot v2015.07-rc1 released

2015-05-05 Thread Tom Rini
Hey all, I've pushed v2015.07-rc1 out to the repository and tarballs should exist soon. The merge window is now closed. I'm going to continue todo my best to keep to the every two weeks we do an RC thing, with probably a few days slip here and there. I think it's gone well so far relying on

Re: [U-Boot] Pull request: u-boot-mmc 05052015

2015-05-05 Thread Tom Rini
On Tue, May 05, 2015 at 12:44:10PM +0300, Pantelis Antoniou wrote: Hi Tom, The following changes since commit ace97d26176a3ebc9ec07738450de93eea35975c: Merge branch 'zynq' of git://www.denx.de/git/u-boot-microblaze (2015-04-29 06:46:33 -0400) are available in the git repository at:

Re: [U-Boot] Pull request: u-boot-arm/master

2015-05-05 Thread Tom Rini
On Tue, May 05, 2015 at 11:30:11AM +0200, Albert ARIBAUD wrote: Hello Tom, The following changes since commit ace97d26176a3ebc9ec07738450de93eea35975c: Merge branch 'zynq' of git://www.denx.de/git/u-boot-microblaze (2015-04-29 06:46:33 -0400) are available in the git repository at:

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

2015-05-05 Thread Tom Rini
On Fri, May 01, 2015 at 02:39:03PM -0600, Simon Glass wrote: Hi Tom, This includes PIRQ routing support for a few platforms, the beginnings of better GPIO/pinmux support and multi-core + SFI support. The following changes since commit ace97d26176a3ebc9ec07738450de93eea35975c: Merge

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

2015-05-05 Thread Tom Rini
On Tue, May 05, 2015 at 09:55:43AM -0700, York Sun wrote: Tom, The following changes since commit ace97d26176a3ebc9ec07738450de93eea35975c: Merge branch 'zynq' of git://www.denx.de/git/u-boot-microblaze (2015-04-29 06:46:33 -0400) are available in the git repository at:

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

2015-05-05 Thread Tom Rini
On Tue, May 05, 2015 at 12:50:01PM +, Luka Perkov wrote: Hi Tom, please pull from marvell/master. The changes include Stefan's Armada 38x series which reached v3 on the mailing list and two more Marvell Armada related fixes. The following changes since commit

Re: [U-Boot] fw_env.h: include autoconf.h

2015-05-05 Thread Tom Rini
On Tue, Apr 14, 2015 at 09:50:47PM +0200, Marcel Ziswiler wrote: From: Max Krummenacher max.krummenac...@toradex.com Without this, when CONFIG_ENV_VARS_UBOOT_CONFIG is active we get a compile time error when doing 'make env'. In file included from tools/env/fw_env.c:117:0:

[U-Boot] [PATCH] fsl/sata: Replace sprintf() with snprintf()

2015-05-05 Thread Yuantian.Tang
From: Tang Yuantian yuantian.t...@freescale.com Function 'sprintf' does not check buffer boundaries but outputs to the buffer of fixed size which could potentially cause buffer overflow. Use a safer function to replace it. Signed-off-by: Tang Yuantian yuantian.t...@freescale.com ---

Re: [U-Boot] [PATCH 14/16] usb: ohci: Skip unnecessary mdelay(1) calls in various places

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:17 PM, Hans de Goede wrote: For some reason the ohci code is full with: pkt_print(...) mdelay(1); AFAICT there is no reason for the mdelay(1) calls. This commit disables them when building the ohci code for new driver-model

Re: [U-Boot] [PATCH 13/16] usb: ohci: Remove unnecessary delays from hc_start and power power-on paths

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:16 PM, Hans de Goede wrote: The common usb_hub code already waits a full second after powering up ports, so there is no need for additional delays inside the hcd code. Signed-off-by: Hans de Goede hdego...@redhat.com This makes a driver depend on the

Re: [U-Boot] [PATCH 09/16] usb: ohci: Fix ctrl in messages with a data-len of 0

2015-05-05 Thread Hans de Goede
Hi, On 05/06/2015 12:59 AM, Marek Vasut wrote: On Tuesday, May 05, 2015 at 11:56:12 PM, Hans de Goede wrote: Fix taken from the Linux kernel ohci driver. Commit ID from Linux where this came from would be nice to have in the commit message, but that's a minor thing. I did not take this

Re: [U-Boot] [PATCH 15/16] usb: ohci: Add dm support

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:18 PM, Hans de Goede wrote: Add driver-model support to the ohci code. Signed-off-by: Hans de Goede hdego...@redhat.com I'll leave thorough review of this to Simon, but a brief skim tells me to add Reviewed-by: Marek Vasut ma...@denx.de The todo in

Re: [U-Boot] [PATCH 02/16] usb: Stop reset procedure when a dev is handed over to a companion hcd

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:05 PM, Hans de Goede wrote: Do not try to reset a device 5 times when it is handed over to a companion controller, also do not print an error when it has been handed over. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Marek Vasut ma...@denx.de

Re: [U-Boot] [PATCH 01/16] usb: Fix maxpacketsize for first descriptor read for low-speed usb devs

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:04 PM, Hans de Goede wrote: This fixes descriptor reading of lowspeed devices through ohci not working. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Marek Vasut ma...@denx.de Best regards, Marek Vasut

Re: [U-Boot] [PATCH 03/16] usb: ohci: Remove unused devgone global variable

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:06 PM, Hans de Goede wrote: devgone is never assigned a value, so the one comparisson reading it will never be true, and devgone can be completely removed. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Marek Vasut ma...@denx.de Best regards,

Re: [U-Boot] [PATCH 04/16] usb: ohci: Pass around a pointer to ohci_t rather then accessing global vars

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:07 PM, Hans de Goede wrote: This is a preparation patch for adding driver-model support. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Marek Vasut ma...@denx.de Best regards, Marek Vasut ___ U-Boot

Re: [U-Boot] [PATCH 08/16] usb: ohci: Move static func and var declarations from ohci.h to ohci-hcd.c

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:11 PM, Hans de Goede wrote: Non static function and variable declarations do not belong in a .h file. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Marek Vasut ma...@denx.de Best regards, Marek Vasut

Re: [U-Boot] [PATCH 05/16] usb: ohci: Move the ohci_dev struct to inside the main ohci struct

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:08 PM, Hans de Goede wrote: This is a preparation patch for adding driver-model support. Note we do keep ohci_dev as a separate struct so that we can later add support for interrupt-queues which requires allocating a separate ohci_dev per interrupt-queue.

Re: [U-Boot] [PATCH 07/16] usb: ohci: Remove unnecessary phcca variable

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:10 PM, Hans de Goede wrote: This is a preparation patch for adding driver-model support. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Marek Vasut ma...@denx.de Best regards, Marek Vasut ___ U-Boot

Re: [U-Boot] [PATCH 06/16] usb: ohci: Move the td array struct to inside the ohci_dev struct

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:09 PM, Hans de Goede wrote: This is a preparation patch for adding driver-model support. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Marek Vasut ma...@denx.de Best regards, Marek Vasut ___ U-Boot

Re: [U-Boot] [PATCH 09/16] usb: ohci: Fix ctrl in messages with a data-len of 0

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:12 PM, Hans de Goede wrote: Fix taken from the Linux kernel ohci driver. Commit ID from Linux where this came from would be nice to have in the commit message, but that's a minor thing. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Marek Vasut

Re: [U-Boot] [PATCH 00/16] usb core fixes + ohci fixes + ohci dm support

2015-05-05 Thread Marek Vasut
On Wednesday, May 06, 2015 at 12:53:31 AM, Simon Glass wrote: On 5 May 2015 at 16:52, Marek Vasut ma...@denx.de wrote: On Wednesday, May 06, 2015 at 12:50:08 AM, Hans de Goede wrote: Hi, Hi! On 05/06/2015 12:23 AM, Marek Vasut wrote: On Tuesday, May 05, 2015 at 11:56:03 PM, Hans

Re: [U-Boot] [PATCH 16/16] sunxi: ohci: Add ohci usb host controller support

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:19 PM, Hans de Goede wrote: This commit adds support for the OHCI companionen controller, which makes usb-1 devices directly plugged into to usb root port work. Note for now this switches usb-keyboard support for sunxi back from int-queue support to the old

Re: [U-Boot] [PATCH 10/16] usb: ohci: Add proper cache flushing / invalidating for non cache coherent cpus

2015-05-05 Thread Marek Vasut
On Tuesday, May 05, 2015 at 11:56:13 PM, Hans de Goede wrote: Add proper cache flushing / invalidating for non cache coherent cpus, for now only enable this for new (driver-model) usb code to avoid regressions. Signed-off-by: Hans de Goede hdego...@redhat.com Reviewed-by: Marek Vasut

Re: [U-Boot] [PATCH 2/5] x86: Make QEMU the default vendor

2015-05-05 Thread Simon Glass
On 5 May 2015 at 09:24, Bin Meng bmeng...@gmail.com wrote: Now that we have QEMU support, make it the default vendor in the 'make menuconfig' screen. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH 4/5] x86: Change coreboot default build configuration to QEMU

2015-05-05 Thread Simon Glass
On 5 May 2015 at 09:24, Bin Meng bmeng...@gmail.com wrote: QEMU is much easier for us test booting U-Boot as a coreboot payload than having a real board like chromebook_link. Signed-off-by: Bin Meng bmeng...@gmail.com --- board/coreboot/coreboot/Kconfig | 6 +++---

Re: [U-Boot] [PATCH 1/5] x86: Support QEMU x86 targets

2015-05-05 Thread Simon Glass
Hi Bin, On 5 May 2015 at 09:24, Bin Meng bmeng...@gmail.com wrote: This commit introduces the initial U-Boot support for QEMU x86 targets. U-Boot can boot from coreboot as a payload, or directly without coreboot. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/Kconfig

Re: [U-Boot] [PATCH 5/5] x86: Update README.x86 for QEMU support

2015-05-05 Thread Simon Glass
On 5 May 2015 at 09:24, Bin Meng bmeng...@gmail.com wrote: Document how to build and test U-Boot with QEMU. Signed-off-by: Bin Meng bmeng...@gmail.com --- doc/README.x86 | 65 +++--- 1 file changed, 48 insertions(+), 17 deletions(-)

Re: [U-Boot] Add spi nand support in u-boot

2015-05-05 Thread peterpandong
On 5 May 2015 at 16:105, Jagan Tek On 4 May 2015 at 06:19, Peter Pan 潘栋 (peterpandong) peterpand...@micron.com wrote: Hi All, I’d like to add spi nand support in u-boot. But I don’t know where should the spi nand drivers put in and how to define the architecture. I find that

Re: [U-Boot] [PATCH 04/24] dm: i2c: Implement 'i2c bus' command for driver model

2015-05-05 Thread Heiko Schocher
Hello Simon, Am 04.05.2015 19:30, schrieb Simon Glass: This command was missed in the conversion. Add it back for driver model. Signed-off-by: Simon Glass s...@chromium.org --- common/cmd_i2c.c | 63 +--- 1 file changed, 55 insertions(+),

Re: [U-Boot] [PATCH 4/4] ARM: bcm283x: Switch to generic timer

2015-05-05 Thread Stephen Warren
On 05/05/2015 04:42 PM, Marek Vasut wrote: On Wednesday, May 06, 2015 at 12:37:38 AM, Stephen Warren wrote: On 05/05/2015 04:17 PM, Marek Vasut wrote: On Tuesday, May 05, 2015 at 11:46:56 PM, Stephen Warren wrote: On 05/04/2015 02:54 PM, Marek Vasut wrote: Switch to generic timer

Re: [U-Boot] [PATCH 2/2] qe: use strncpy instead of strcpy

2015-05-05 Thread qiang.z...@freescale.com
On Tue, May 5, 2015 at 5:41 PM, Michael Trimarchi wrote: -Original Message- From: Michael Trimarchi [mailto:mich...@amarulasolutions.com] Sent: Tuesday, May 05, 2015 5:41 PM To: Zhao Qiang-B45475 Cc: u-boot@lists.denx.de; Sun York-R58495 Subject: Re: [U-Boot] [PATCH 2/2] qe: use

[U-Boot] [PATCH v2] dm: sf: Update default name of spi flash in structure udevice

2015-05-05 Thread Haikun Wang
Default name of spi flash like this 0:0, update it to spi_flash@0:0. Signed-off-by: Haikun Wang haikun.w...@freescale.com --- Changes in v2: - Increase the size of array name to 30 Changes in v1: None drivers/mtd/spi/sf-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [U-Boot] [PATCH v3] dm: sf: Add Atmel DataFlash spi flash driver

2015-05-05 Thread Simon Glass
Hi, On 5 May 2015 at 05:10, Haikun Wang haikun.w...@freescale.com wrote: Atmel DataFlash chips have commands different from common spi flash commands. Atmel DataFlash also have special page-size. This driver add support for accessing Atmel DataFlash. It is based on the Driver Model.

Re: [U-Boot] [PATCH 05/24] dm: i2c: Add a function to find out the chip offset length

2015-05-05 Thread Heiko Schocher
Hello Simon, Am 04.05.2015 19:30, schrieb Simon Glass: We can currently set this but there is no API function to get it. Add one. Signed-off-by: Simon Glass s...@chromium.org --- drivers/i2c/i2c-uclass.c | 7 +++ include/i2c.h| 9 - 2 files changed, 15

Re: [U-Boot] [RFC PATCH v1] Makefile: Add U_BOOT_TZ and include in version

2015-05-05 Thread Chris Packham
Hi, On Thu, Apr 30, 2015 at 12:38 PM, Chris Packham judge.pack...@gmail.com wrote: Define U_BOOT_TZ alongside U_BOOT_TIME and U_BOOT_DATE and use it to include the timezone in the version output. Signed-off-by: Chris Packham judge.pack...@gmail.com --- Makefile | 3 ++-

Re: [U-Boot] [PATCH 1/5] x86: Support QEMU x86 targets

2015-05-05 Thread Bin Meng
Hi Simon, On Wed, May 6, 2015 at 12:01 PM, Simon Glass s...@chromium.org wrote: Hi Bin, On 5 May 2015 at 09:24, Bin Meng bmeng...@gmail.com wrote: This commit introduces the initial U-Boot support for QEMU x86 targets. U-Boot can boot from coreboot as a payload, or directly without coreboot.

Re: [U-Boot] [PATCH 2/2] qe: use strncpy instead of strcpy

2015-05-05 Thread Michael Trimarchi
Hi On Wed, May 6, 2015 at 9:40 AM, qiang.z...@freescale.com qiang.z...@freescale.com wrote: On Tue, May 5, 2015 at 5:41 PM, Michael Trimarchi wrote: -Original Message- From: Michael Trimarchi [mailto:mich...@amarulasolutions.com] Sent: Tuesday, May 05, 2015 5:41 PM To: Zhao

Re: [U-Boot] bringing up u-boot on qemu-x86

2015-05-05 Thread Bin Meng
Hi Saket, On Tue, May 5, 2015 at 2:05 AM, Saket Sinha saket.sinh...@gmail.com wrote: Hi Bin, I am one of the students working on adding ACPI support to u-boot for Minnowboard as a part of GSOC-2015. Good to know you will be working on U-Boot ACPI support! In this endeavor, I have been

Re: [U-Boot] [PATCH] bugfix i.mx6 pwm: prevent overflow of period_c * duty_ns by casting duty_ns to ull first. This bug came up when trying to create a 200 Hz PWM.

2015-05-05 Thread Fabio Estevam
Hi Brecht, On Mon, Apr 27, 2015 at 9:11 AM, Brecht Neyrinck b...@psicontrol.com wrote: --- drivers/pwm/pwm-imx-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 = 100755 drivers/pwm/pwm-imx-util.c diff --git a/drivers/pwm/pwm-imx-util.c

Re: [U-Boot] [PATCH v4 2/9] dm: usb: Copy over usb_device values from usb_scan_device() to final usb_device

2015-05-05 Thread Simon Glass
On 5 May 2015 at 03:54, Hans de Goede hdego...@redhat.com wrote: Currently we copy over a number of usb_device values stored in the on stack struct usb_device probed in usb_scan_device() to the final driver-model managed struct usb_device in usb_child_pre_probe() through usb_device_platdata,

Re: [U-Boot] [PATCH] autoboot.c: Add feature to stop autobooting via SHA256 encrypted password

2015-05-05 Thread Simon Glass
Hi Stefan, On 5 May 2015 at 09:06, Stefan Roese s...@denx.de wrote: Hi Simon, On 23.03.2015 21:28, Simon Glass wrote: Hi Stefan, On 13 March 2015 at 01:15, Stefan Roese s...@denx.de wrote: Hi Simon, On 13.03.2015 03:48, Simon Glass wrote: This patch adds the feature to only stop the

[U-Boot] [PATCH 5/5] x86: Update README.x86 for QEMU support

2015-05-05 Thread Bin Meng
Document how to build and test U-Boot with QEMU. Signed-off-by: Bin Meng bmeng...@gmail.com --- doc/README.x86 | 65 +++--- 1 file changed, 48 insertions(+), 17 deletions(-) diff --git a/doc/README.x86 b/doc/README.x86 index ef13fb4..4a30f68

[U-Boot] [PATCH 4/5] x86: Change coreboot default build configuration to QEMU

2015-05-05 Thread Bin Meng
QEMU is much easier for us test booting U-Boot as a coreboot payload than having a real board like chromebook_link. Signed-off-by: Bin Meng bmeng...@gmail.com --- board/coreboot/coreboot/Kconfig | 6 +++--- configs/coreboot-x86_defconfig | 1 + 2 files changed, 4 insertions(+), 3 deletions(-)

Re: [U-Boot] [PATCH 3/5] nand: sunxi: Add secondary U-Boot offset on second syndrome partition

2015-05-05 Thread Tim Harvey
On Wed, Apr 29, 2015 at 8:02 AM, Daniel Kochmański dkochman...@turtle-solutions.eu wrote: Introduces CONFIG_SYS_NAND_U_BOOT_BACKUP_OFFS, pointing to backup U-Boot instance in nand memory. In case if first header doesn't match, tries to load bootloader from this offset. In case of both failing,

Re: [U-Boot] [PATCH 2/3] arm: mx6: tqma6: Update to optionally configure an alternative SPI setup

2015-05-05 Thread Stefano Babic
On 05/05/2015 11:37, Stefan Roese wrote: Hi Stefano, On 12.03.2015 13:34, Stefan Roese wrote: By making the tqma6_iomuxc_spi() weak, this patch adds the possibility to add a different function for this SPI configuration. This can be used by other baseboards, that might have a different SPI

Re: [U-Boot] [PATCH 1/3] arm: mx6: tqma6: Fix USB and add other filesystems

2015-05-05 Thread Stefano Babic
On 12/03/2015 13:34, Stefan Roese wrote: This patch fixes the USB EHCI support on the TQMa6 SoM. Additionally some filesystems are added, included the generic FS commands (e.g. ls...). Signed-off-by: Stefan Roese s...@denx.de Cc: Markus Niebel markus.nie...@tq-group.com Cc: Stefano Babic

Re: [U-Boot] [PATCH 3/5] x86: qemu: Wrap E1000 driver only when DM_PCI is not used

2015-05-05 Thread Simon Glass
Hi Bin, On 5 May 2015 at 09:35, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Tue, May 5, 2015 at 11:24 PM, Bin Meng bmeng...@gmail.com wrote: E1000 driver has not been converted to driver model, so wrap it only when DM_PCI is not used. Signed-off-by: Bin Meng bmeng...@gmail.com ---

[U-Boot] [PATCH 2/5] dm: usb: Add support for companion controllers

2015-05-05 Thread Hans de Goede
USB companion controllers must be scanned after the main controller has been scanned, so that any devices which the main controller which to hand over to the companion have actually been handed over before we scan the companion. As there are no guarantees that this will magically happen in the

Re: [U-Boot] [PATCH] autoboot.c: Add feature to stop autobooting via SHA256 encrypted password

2015-05-05 Thread Stefan Roese
Hi Simon, On 23.03.2015 21:28, Simon Glass wrote: Hi Stefan, On 13 March 2015 at 01:15, Stefan Roese s...@denx.de wrote: Hi Simon, On 13.03.2015 03:48, Simon Glass wrote: This patch adds the feature to only stop the autobooting, and therefor boot into the U-Boot prompt, when the input

[U-Boot] [PATCH 1/5] x86: Support QEMU x86 targets

2015-05-05 Thread Bin Meng
This commit introduces the initial U-Boot support for QEMU x86 targets. U-Boot can boot from coreboot as a payload, or directly without coreboot. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/Kconfig | 5 +++ arch/x86/cpu/Makefile | 1 +

[U-Boot] [PATCH 2/5] x86: Make QEMU the default vendor

2015-05-05 Thread Bin Meng
Now that we have QEMU support, make it the default vendor in the 'make menuconfig' screen. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 3d02620..0b78f10 100644 ---

[U-Boot] [PATCH 3/5] x86: qemu: Wrap E1000 driver only when DM_PCI is not used

2015-05-05 Thread Bin Meng
E1000 driver has not been converted to driver model, so wrap it only when DM_PCI is not used. Signed-off-by: Bin Meng bmeng...@gmail.com --- include/configs/qemu-x86.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/qemu-x86.h b/include/configs/qemu-x86.h index

Re: [U-Boot] [PATCH 3/5] x86: qemu: Wrap E1000 driver only when DM_PCI is not used

2015-05-05 Thread Bin Meng
Hi Simon, On Tue, May 5, 2015 at 11:24 PM, Bin Meng bmeng...@gmail.com wrote: E1000 driver has not been converted to driver model, so wrap it only when DM_PCI is not used. Signed-off-by: Bin Meng bmeng...@gmail.com --- include/configs/qemu-x86.h | 2 ++ 1 file changed, 2 insertions(+)

Re: [U-Boot] loading environment from SATA

2015-05-05 Thread Fabio Estevam
Hi Ben, On Thu, Apr 30, 2015 at 9:57 AM, Ben Hewson b...@frazer-nash.com wrote: booting from SATA works very well on my iMX6 based board, however if I do #define CONFIG_ENV_IS_IN_FAT #if defined(CONFIG_ENV_IS_IN_FAT) #define CONFIG_FAT_WRITE #define FAT_ENV_INTERFACE

Re: [U-Boot] [PATCH 3/5] dm: usb: Do not scan companion busses if no devices where handed over

2015-05-05 Thread Simon Glass
Hi Hans, On 5 May 2015 at 16:14, Hans de Goede hdego...@redhat.com wrote: Hi, On 05/05/2015 11:46 PM, Simon Glass wrote: Hi Hans, On 5 May 2015 at 07:28, Hans de Goede hdego...@redhat.com wrote: USB scanning is slow, and there is no need to scan the companion busses if no usb devices

Re: [U-Boot] [PATCH 4/4] ARM: bcm283x: Switch to generic timer

2015-05-05 Thread Stephen Warren
On 05/05/2015 04:17 PM, Marek Vasut wrote: On Tuesday, May 05, 2015 at 11:46:56 PM, Stephen Warren wrote: On 05/04/2015 02:54 PM, Marek Vasut wrote: Switch to generic timer implementation from lib/time.c . This also fixes a signed overflow which was in __udelay() implementation. Can you

Re: [U-Boot] [PATCH 4/4] ARM: bcm283x: Switch to generic timer

2015-05-05 Thread Marek Vasut
On Wednesday, May 06, 2015 at 12:37:38 AM, Stephen Warren wrote: On 05/05/2015 04:17 PM, Marek Vasut wrote: On Tuesday, May 05, 2015 at 11:46:56 PM, Stephen Warren wrote: On 05/04/2015 02:54 PM, Marek Vasut wrote: Switch to generic timer implementation from lib/time.c . This also fixes a

Re: [U-Boot] [PATCH 00/16] usb core fixes + ohci fixes + ohci dm support

2015-05-05 Thread Marek Vasut
On Wednesday, May 06, 2015 at 12:50:08 AM, Hans de Goede wrote: Hi, Hi! On 05/06/2015 12:23 AM, Marek Vasut wrote: On Tuesday, May 05, 2015 at 11:56:03 PM, Hans de Goede wrote: Hi Marek and Simon, Hi! Here is a series with a few usb core fixes, a lot of ohci fixes and ohci dm

Re: [U-Boot] [PATCH v4 8/9] dm: usb: Add support for interrupt queues to the dm ehci code

2015-05-05 Thread Simon Glass
On 5 May 2015 at 03:54, Hans de Goede hdego...@redhat.com wrote: Add support for interrupt queues to the dm ehci code. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Simon Glass s...@chromium.org --- drivers/usb/host/ehci-hcd.c | 26 ++ 1 file changed,

Re: [U-Boot] [PATCH v4 3/9] dm: usb: Use usb_get_bus in dm ehci code

2015-05-05 Thread Simon Glass
On 5 May 2015 at 03:54, Hans de Goede hdego...@redhat.com wrote: Use usb_get_bus in dm ehci code rather then re-implementing it. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Simon Glass s...@chromium.org --- Changes in v2: -New patch in v2 of this patch-set ---

[U-Boot] [PATCH 2/3] crypto/fsl - change starting entropy delay value

2015-05-05 Thread Alex Porosanu
The entropy delay (the length in system clocks of each entropy sample) for the RNG4 block of CAAM is dependent on the frequency of the SoC. By elaborate methods, it has been determined that a good starting value for all platforms integrating the CAAM IP is 3200. Using a higher value has additional

Re: [U-Boot] [PATCH 3/5] nand: sunxi: Add secondary U-Boot offset on second syndrome partition

2015-05-05 Thread Daniel Kochmański
Hi, Tim Harvey writes: On Wed, Apr 29, 2015 at 8:02 AM, Daniel Kochmański dkochman...@turtle-solutions.eu wrote: Introduces CONFIG_SYS_NAND_U_BOOT_BACKUP_OFFS, pointing to backup U-Boot instance in nand memory. In case if first header doesn't match, tries to load bootloader from this

[U-Boot] [PATCH 0/3] CAAM RNG fixes

2015-05-05 Thread Alex Porosanu
This set of patches fixes some issues identified with the usage of the RNG block of the CAAM in newer SoCs e.g. T2080. Alex Porosanu (3): crypto/fsl - disable RNG oscillator maximum frequency check crypto/fsl - change starting entropy delay value crypto/fsl - enable raw data instead of von

[U-Boot] [PATCH 1/3] crypto/fsl - disable RNG oscillator maximum frequency check

2015-05-05 Thread Alex Porosanu
The rtfrqmax rtfrqmin set the bounds of the expected frequency of the oscillator, when SEC runs at its maximum frequency. For certain platforms (f.i. T2080), the oscillator is very fast and thus if the SEC runs at a lower than normal frequency, the ring oscillator is incorrectly detected as being

Re: [U-Boot] [PATCH 21/24] tegra124: Implement spl_was_boot_source()

2015-05-05 Thread Stephen Warren
On 05/05/2015 10:19 AM, Simon Glass wrote: Hi Stephen, On 5 May 2015 at 10:10, Stephen Warren swar...@wwwdotorg.org wrote: On 05/05/2015 10:02 AM, Simon Glass wrote: Hi Stephen, On 5 May 2015 at 09:54, Stephen Warren swar...@wwwdotorg.org wrote: On 05/04/2015 11:31 AM, Simon Glass wrote:

Re: [U-Boot] [PATCH 24/24] tegra124: Expand SPL space by 8KB

2015-05-05 Thread Stephen Warren
On 05/05/2015 10:26 AM, Simon Glass wrote: Hi Stephen, On 5 May 2015 at 10:12, Stephen Warren swar...@wwwdotorg.org wrote: On 05/05/2015 10:03 AM, Simon Glass wrote: Hi Stephen, On 5 May 2015 at 09:59, Stephen Warren swar...@wwwdotorg.org wrote: On 05/04/2015 11:31 AM, Simon Glass wrote:

[U-Boot] [PATCH 07/16] usb: ohci: Remove unnecessary phcca variable

2015-05-05 Thread Hans de Goede
This is a preparation patch for adding driver-model support. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/ohci-hcd.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index

[U-Boot] [PATCH 03/16] usb: ohci: Remove unused devgone global variable

2015-05-05 Thread Hans de Goede
devgone is never assigned a value, so the one comparisson reading it will never be true, and devgone can be completely removed. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/ohci-hcd.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c

[U-Boot] [PATCH 00/16] usb core fixes + ohci fixes + ohci dm support

2015-05-05 Thread Hans de Goede
Hi Marek and Simon, Here is a series with a few usb core fixes, a lot of ohci fixes and ohci dm support (tested on sunxi). This series sits on top of the series adding companion controller support to the dm usb code and 2 ehci fixes which I send earlier today. Regards, Hans

[U-Boot] [PATCH 02/16] usb: Stop reset procedure when a dev is handed over to a companion hcd

2015-05-05 Thread Hans de Goede
Do not try to reset a device 5 times when it is handed over to a companion controller, also do not print an error when it has been handed over. Signed-off-by: Hans de Goede hdego...@redhat.com --- common/usb_hub.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 01/16] usb: Fix maxpacketsize for first descriptor read for low-speed usb devs

2015-05-05 Thread Hans de Goede
This fixes descriptor reading of lowspeed devices through ohci not working. Signed-off-by: Hans de Goede hdego...@redhat.com --- common/usb.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/common/usb.c b/common/usb.c index 48f0780..4a09583 100644 ---

[U-Boot] [PATCH 06/16] usb: ohci: Move the td array struct to inside the ohci_dev struct

2015-05-05 Thread Hans de Goede
This is a preparation patch for adding driver-model support. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/ohci-hcd.c | 10 ++ drivers/usb/host/ohci.h | 19 +++ 2 files changed, 9 insertions(+), 20 deletions(-) diff --git

[U-Boot] [PATCH 16/16] sunxi: ohci: Add ohci usb host controller support

2015-05-05 Thread Hans de Goede
This commit adds support for the OHCI companionen controller, which makes usb-1 devices directly plugged into to usb root port work. Note for now this switches usb-keyboard support for sunxi back from int-queue support to the old interrupt polling method. Adding int-queue support to the ohci code

[U-Boot] [PATCH 10/16] usb: ohci: Add proper cache flushing / invalidating for non cache coherent cpus

2015-05-05 Thread Hans de Goede
Add proper cache flushing / invalidating for non cache coherent cpus, for now only enable this for new (driver-model) usb code to avoid regressions. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/ohci-hcd.c | 67 +

[U-Boot] [PATCH 12/16] usb: ohci: Do not resubmit and leak urbs for interrupt packets

2015-05-05 Thread Hans de Goede
Auto-resubmission of interrupt packets does not match the u-boot usb model. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/ohci-hcd.c | 41 ++--- 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c

[U-Boot] [PATCH 11/16] usb: ohci: Don't log an error on interrupt packet timeout

2015-05-05 Thread Hans de Goede
Interrupts transfers timing out is normal, so do not log an error for this. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/ohci-hcd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index

[U-Boot] [PATCH 13/16] usb: ohci: Remove unnecessary delays from hc_start and power power-on paths

2015-05-05 Thread Hans de Goede
The common usb_hub code already waits a full second after powering up ports, so there is no need for additional delays inside the hcd code. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/ohci-hcd.c | 4 1 file changed, 4 deletions(-) diff --git

[U-Boot] [PATCH 15/16] usb: ohci: Add dm support

2015-05-05 Thread Hans de Goede
Add driver-model support to the ohci code. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/ohci-hcd.c | 84 + drivers/usb/host/ohci.h | 7 2 files changed, 91 insertions(+) diff --git a/drivers/usb/host/ohci-hcd.c

[U-Boot] [PATCH 09/16] usb: ohci: Fix ctrl in messages with a data-len of 0

2015-05-05 Thread Hans de Goede
Fix taken from the Linux kernel ohci driver. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/usb/host/ohci-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 15aea98..02aa7f3 100644 ---

  1   2   3   >