Re: [U-Boot] [PATCH] fsl/deepsleep: avoid the DDR restore from being optimized out

2015-05-05 Thread York Sun
On 04/19/2015 08:16 PM, yuantian.t...@freescale.com wrote: > From: Tang Yuantian > > Function dp_ddr_restore is to restore the first 128-byte space > of DDR. However those codes may be optimized out by compiler > since the destination address is at 0x0. In order to avoid > compiler optimization

Re: [U-Boot] [PATCH] board/t2080rdb: reset cs4315 phy

2015-05-05 Thread York Sun
On 04/21/2015 07:59 PM, Shengzhou Liu wrote: > CS4315 PHY doesn't support phy-reset by software, it > needs to reset it by hardware via CPLD control. > > Signed-off-by: Shengzhou Liu > --- > board/freescale/t208xrdb/cpld.h | 3 +++ > board/freescale/t208xrdb/t208xrdb.c | 7 +++ > 2 fil

Re: [U-Boot] [PATCH v3 1/4] mmc: fsl_esdhc: Add adapter card type identification support

2015-05-05 Thread York Sun
On 04/21/2015 10:57 PM, Yangbo Lu wrote: > Add adapter card type identification support by reading > FPGA STAT_PRES1 register SDHC Card ID[0:2] bits. To use this function, > define CONFIG_FSL_ESDHC_ADAPTER_IDENT. > > Signed-off-by: Yangbo Lu > Cc: York Sun > Cc: Pantelis Antoniou > --- > Chan

Re: [U-Boot] [PATCH v3 2/4] powerpc/t2080qds: enable eSDHC adapter card type identification

2015-05-05 Thread York Sun
On 04/21/2015 10:57 PM, Yangbo Lu wrote: > Enable eSDHC adapter card type identification and this will do > some corresponding operations and set 'adapter-type' property > for device tree according SDHC Card ID. > > Signed-off-by: Yangbo Lu > Cc: York Sun > Cc: Pantelis Antoniou > --- > Chang

Re: [U-Boot] [PATCH v3 4/4] powerpc/t2080qds: enable eSDHC peripheral clock support

2015-05-05 Thread York Sun
On 04/21/2015 10:57 PM, Yangbo Lu wrote: > Enable eSDHC peripheral clock support. u-boot and linux will > use SD clock generated by peripheral clock instead of platform > clock. > > Signed-off-by: Yangbo Lu > Cc: York Sun > Cc: Pantelis Antoniou > --- > Changes for v3: > - Add Pantelis

Re: [U-Boot] [PATCH v3 3/4] mmc: fsl_esdhc: Add peripheral clock support

2015-05-05 Thread York Sun
On 04/21/2015 10:57 PM, Yangbo Lu wrote: > The SD clock could be generated by platform clock or peripheral > clock for some platforms. This patch adds peripheral clock > support for T1024/T1040/T2080. To enable it, define > CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK. > > Signed-off-by: Yangbo Lu > Cc:

Re: [U-Boot] [PATCH] t2080rdb/rcw: update ddr frequency from 1600MT/s to 1867MT/s

2015-05-05 Thread York Sun
On 04/22/2015 02:54 AM, Shengzhou Liu wrote: > T2080RDB RevC uses new SODIMM 1867MT/s instead of previous 1600MT/s. > So update RCW to support new DDR frequency 1867MT/s by default. > Reserve the old 1600MT/s in comment for users in needed. > > Signed-off-by: Shengzhou Liu > --- > board/freesc

Re: [U-Boot] [PATCH] t4240qds: apply some updates

2015-05-05 Thread York Sun
On 04/29/2015 07:03 PM, Xie Shaohui-B21989 wrote: >> On 04/27/2015 12:28 AM, shh@gmail.com wrote: >>> From: Shaohui Xie >>> >>> 1. board/freescale/t4qds/t4_rcw.cfg >>> 1.8GHz support is requested as default frequency, so update the rcw. >>> >>> 2. remove un-used configs >>> configs/T4160QDS_

Re: [U-Boot] [PATCH] powerpc/mpc85xx: Fix compiling error for common/cmd_gpio.c

2015-05-05 Thread York Sun
On 04/28/2015 10:59 AM, Oleksandr G Zhadan wrote: > To replicate: > 1. add to include/configs/p1_p2_rdb_pc.h "#define CONFIG_CMD_GPIO" > 2. run `make P1020RDB-PC_defconfig` > 3. run CROSS_COMPILE=powerpc-linux- make > > and you will get: > common/built-in.o: In function `do_gpio': > u-boot/commo

Re: [U-Boot] [PATCH] powerpc/mpc85xx: Add board support for ucp1020

2015-05-05 Thread York Sun
On 04/29/2015 01:57 PM, Oleksandr G Zhadan wrote: > New QorIQ p1020 based board support from Arcturus Networks Inc. > http://www.arcturusnetworks.com/products/ucp1020/ > > Signed-off-by: Michael Durrant > Signed-off-by: Oleksandr G Zhadan > > Series-version: 2 > > Series-changes: 2 > W

Re: [U-Boot] [PATCH] powerpc/mpc85xx: Add board support for ucp1020

2015-05-05 Thread Oleksandr G Zhadan
Thank you. Oleks On 05/05/2015 12:42 PM, York Sun wrote: On 04/29/2015 01:57 PM, Oleksandr G Zhadan wrote: New QorIQ p1020 based board support from Arcturus Networks Inc. http://www.arcturusnetworks.com/products/ucp1020/ Signed-off-by: Michael Durrant Signed-off-by: Oleksandr G Zhadan Ser

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

2015-05-05 Thread York Sun
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: git://git.denx.de/u-boot-mpc85xx.git master for you to fetch changes up to 8

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

2015-05-05 Thread Joe Hershberger
Hi Marcel, On Tue, May 5, 2015 at 7:36 AM, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > 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 !=

[U-Boot] [PATCH 2/2] Fix broken verify functionality in crc32 command

2015-05-05 Thread Joe Hershberger
Introduced in change d20a40de9db07de1f1f06a79a4da1cdda5379b75 "Roll crc32 into hash infrastructure" The crc32 command with no -v expects an optional 3rd argument to be an address to store the result in. With the -v switch, the last argument is a crc, not an address. In the case where -v is set, we

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

2015-05-05 Thread Joe Hershberger
Introduced in change d20a40de9db07de1f1f06a79a4da1cdda5379b75 "Roll crc32 into hash infrastructure" Use a consistent define to enable the verify feature in crc32 command. Signed-off-by: Joe Hershberger --- common/cmd_mem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [U-Boot] [PATCH 3/3] net: Remove all calls to net_random_ethaddr()

2015-05-05 Thread Joe Hershberger
Hi Michael, On Tue, May 5, 2015 at 3:25 AM, Michael Walle wrote: > Hi Joe, > > Am 2015-05-04 21:55, schrieb Joe Hershberger: >> >> diff --git a/board/buffalo/lsxl/lsxl.c b/board/buffalo/lsxl/lsxl.c >> index 487875c..45dd788 100644 >> --- a/board/buffalo/lsxl/lsxl.c >> +++ b/board/buffalo/lsxl/lsx

Re: [U-Boot] [PATCH v4 1/9] dm: usb: Make usb_get_bus easier to use for callers

2015-05-05 Thread Simon Glass
On 5 May 2015 at 03:54, Hans de Goede wrote: > Make usb_get_bus easier to use for callers, by directly returning the bus > rather then returning it via a pass-by-ref argument. > > This also removes the error checking from the current callers, as > we already have an assert() for bus not being NULL

Re: [U-Boot] [PATCH v4 4/9] dm: usb: Fix finding of first upstream usb-2 hub in the ehci dm code

2015-05-05 Thread Simon Glass
On 5 May 2015 at 03:54, Hans de Goede wrote: > The ehci driver model code for finding the first upstream usb-2 hub before > this commit has a number of issues: > > 1) "if (!ttdev->speed != USB_SPEED_HIGH)" does not work because the '!' >takes presedence over the '!=' this should simply be >

Re: [U-Boot] [PATCH v4 5/9] dm: usb: Set desc_before_addr from ehci dm code

2015-05-05 Thread Simon Glass
On 5 May 2015 at 03:54, Hans de Goede wrote: > Without this usb-1 device descriptors do not get read properly. > > Signed-off-by: Hans de Goede > Acked-by: Simon Glass > --- > drivers/usb/host/ehci-hcd.c | 3 +++ > 1 file changed, 3 insertions(+) Applied to u-boot-dm, thanks! _

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

2015-05-05 Thread Simon Glass
On 5 May 2015 at 03:54, Hans de Goede wrote: > Interrupt endpoints typically are polled for a long time by the usb > controller before they return anything, so calls to submit_int_msg() can > take a long time to complete this. > > To avoid this the u-boot code has the an interrupt queue mechanism

Re: [U-Boot] [PATCH v4 7/9] dm: usb: Prefix ehci interrupt-queue functions with _ehci_

2015-05-05 Thread Simon Glass
On 5 May 2015 at 03:54, Hans de Goede wrote: > This is a preparation patch for adding interrupt-queue support to the > ehci dm code. > > Signed-off-by: Hans de Goede > Acked-by: Simon Glass > --- > drivers/usb/host/ehci-hcd.c | 31 +-- > 1 file changed, 25 insertions

Re: [U-Boot] [PATCH v4 9/9] sunxi: ehci: Convert to the driver-model

2015-05-05 Thread Simon Glass
On 5 May 2015 at 03:54, Hans de Goede wrote: > Convert sunxi-boards which use the sunxi-ehci code to the driver-model. > > Signed-off-by: Hans de Goede > Acked-by: Simon Glass > --- > Changes in v4: > -Add a comment to document the setting of some priv-data members based on > the controller bas

Re: [U-Boot] Compile x86 minnowboard max got error

2015-05-05 Thread Andrew Bradford
Hi Li, On 04/01/2015 02:36 AM, li yuqian wrote: > gcc --version shows following: > gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 > Copyright (C) 2013 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS

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 09:31, Simon Glass wrote: > On 5 May 2015 at 03:54, Hans de Goede 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_pro

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 wrote: > Add support for interrupt queues to the dm ehci code. > > Signed-off-by: Hans de Goede > Acked-by: Simon Glass > --- > drivers/usb/host/ehci-hcd.c | 26 ++ > 1 file changed, 26 insertions(+) Applied to u-boot-dm, thanks! __

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 wrote: > Use usb_get_bus in dm ehci code rather then re-implementing it. > > Signed-off-by: Hans de Goede > Acked-by: Simon Glass > --- > Changes in v2: > -New patch in v2 of this patch-set > --- > drivers/usb/host/ehci-hcd.c | 9 + > 1 file changed

[U-Boot] [PATCH 3/3] crypto/fsl - enable raw data instead of von Neumann data

2015-05-05 Thread Alex Porosanu
The sampling of the oscillator can be done in multiple modes for generating the entropy value. By default, this is set to von Neumann. This patch changes the sampling to raw data, since it has been discovered that the generated entropy has a better 'quality'. Signed-off-by: Alex Porosanu --- dri

[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

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

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

Re: [U-Boot] [PATCH 2/3] net: Remove all references to CONFIG_ETHADDR and friends

2015-05-05 Thread Simon Glass
Hi Albert, On 5 May 2015 at 01:17, Albert ARIBAUD wrote: > Bonjour Simon, > > Le Mon, 4 May 2015 15:37:22 -0600, Simon Glass a > écrit : > >> On 4 May 2015 at 13:55, Joe Hershberger wrote: >> > We really don't want boards defining fixed MAC addresses in their config >> > so we just remove the o

[U-Boot] Command to Assign a RAM value to a variable

2015-05-05 Thread Davide BONFANTI
In order to perform a crc32 integrity check of a zImage, I would like to read the zImage length from its header (offset 0x2C). To perform this I would need a command letting me to set an environment variable to the value of a certain RAM address. If this command is not available (maybe I'm just

Re: [U-Boot] [PATCH 2/3] net: Remove all references to CONFIG_ETHADDR and friends

2015-05-05 Thread Joe Hershberger
Hi Albert, On Tue, May 5, 2015 at 2:17 AM, Albert ARIBAUD wrote: > Bonjour Simon, > > Le Mon, 4 May 2015 15:37:22 -0600, Simon Glass a > écrit : > >> On 4 May 2015 at 13:55, Joe Hershberger wrote: >> > We really don't want boards defining fixed MAC addresses in their config >> > so we just remo

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 wrote: On 05/05/2015 10:02 AM, Simon Glass wrote: Hi Stephen, On 5 May 2015 at 09:54, Stephen Warren wrote: On 05/04/2015 11:31 AM, Simon Glass wrote: Add an implementation of this function f

Re: [U-Boot] Command to Assign a RAM value to a variable

2015-05-05 Thread Joe Hershberger
Hi Davide, On Tue, May 5, 2015 at 9:35 AM, Davide BONFANTI wrote: > In order to perform a crc32 integrity check of a zImage, I would like to read > the zImage length from its header (offset 0x2C). > To perform this I would need a command letting me to set an environment > variable to the value

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 wrote: On 05/05/2015 10:03 AM, Simon Glass wrote: Hi Stephen, On 5 May 2015 at 09:59, Stephen Warren wrote: On 05/04/2015 11:31 AM, Simon Glass wrote: We are getting very close to running out

[U-Boot] [PATCH v3 1/6] image: fix build when CONFIG_NR_DRAM_BANKS is disabled on ARM

2015-05-05 Thread Matt Porter
common/image.c currently implicitly depends on CONFIG_NR_DRAM_BANKS when CONFIG_ARM is enabled. Make this requirement explicit. Signed-off-by: Matt Porter --- common/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/image.c b/common/image.c index 162b682..73c24f5

[U-Boot] [PATCH v3 2/6] common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

2015-05-05 Thread Matt Porter
On ARM v7M, the processor will return to ARM mode when executing a blx instruction with bit 0 of the address == 0. Always set it to 1 to stay in thumb mode. Signed-off-by: Matt Porter --- v3: - Implement using an override of the weak do_go_exec() when building for ARMv7-M. arc

[U-Boot] [PATCH v3 0/6] Add ARMv7M STM32F1 and STM3210E-EVAL board support

2015-05-05 Thread Matt Porter
This series adds support for the STM32F1 SoC family and the STM3210E-EVAL board on top of the STM32F4 SoC family support [1]. Since this board has no DRAM the first patch fixes the build when CONFIG_NR_DRAM_BANKS is not set. A patch is also required to force the processor to stay in Thumb mode whe

[U-Boot] [PATCH v3 3/6] ARMv7M: add STM32F1 support

2015-05-05 Thread Matt Porter
Add ARMv7M STM32F1 support including clocks, timer, gpio, and flash. Signed-off-by: Matt Porter --- v3: - Update copyright notices arch/arm/cpu/armv7m/Makefile | 1 + arch/arm/cpu/armv7m/stm32f1/Makefile | 14 +++ arch/arm/cpu/armv7m/stm32f1/clock.c | 196

[U-Boot] [PATCH v3 4/6] gpio: stm32: add stm32f1 support

2015-05-05 Thread Matt Porter
Add support for the STM32F1 family to the STM32 gpio driver. Signed-off-by: Matt Porter --- v3: - Update copyright notice v2: - Explicitly check for F4/F1 family and error if not set to a supported STM32 family. drivers/gpio/stm32_gpio.c | 110 +

[U-Boot] [PATCH v3 6/6] board: add stm3210e-eval board support

2015-05-05 Thread Matt Porter
Add support for the STM32F1-based stm3210e-eval boards from ST. UART, Flash, GPIO, and LEDs are supported. Signed-off-by: Matt Porter --- v3: - Update copyright notices arch/arm/Kconfig | 5 ++ board/st/stm3210e-eval/Kconfig | 19 ++ board/st/stm3210

[U-Boot] [PATCH v3 5/6] serial: stm32: add stm32f1 support

2015-05-05 Thread Matt Porter
Add support for the STM32F1 famly to the STM32 serial driver. Signed-off-by: Matt Porter --- v3: - Update copyright notice v2: - Explicitly check for F4/F1 family and error if not set to a supported STM32 family. drivers/serial/serial_stm32.c | 10 ++ 1 file ch

Re: [U-Boot] [PATCH v3 15/26] test: Add a common unit test command

2015-05-05 Thread Simon Glass
On 3 May 2015 at 14:12, Joe Hershberger wrote: > Add a command that all other unit tests should be a sub-command of. > Also include a command that will run all tests. > > Signed-off-by: Joe Hershberger > --- > > Changes in v3: > -New for version 3 > > Changes in v2: None > > include/test/suites.

Re: [U-Boot] [PATCH v3 16/26] test: Move the unit tests to their own menu

2015-05-05 Thread Simon Glass
On 3 May 2015 at 14:12, Joe Hershberger wrote: > Make all unit tests selectable as a menu of test suites instead of just > sitting in the top-level menu individually. > > Signed-off-by: Joe Hershberger > --- > > Changes in v3: > -New for version 3 > > Changes in v2: None > > test/Kconfig| 7

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

2015-05-05 Thread Simon Glass
Hi Joe, On 3 May 2015 at 14:12, Joe Hershberger 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 > --- > > Changes in v3: > -New for version 3 > > Changes in v2: None > > test/dm/eth.c | 79 > ++

Re: [U-Boot] [PATCH V3] i2c: mxc: refactor i2c driver and support dm

2015-05-05 Thread Simon Glass
On 27 April 2015 at 07:36, Peng Fan wrote: > > 1. Introduce a new structure `struct mxc_i2c_bus`, this structure will >used for non-DM and DM. > 2. Remove `struct mxc_i2c_regs` structure, but use register offset to access >registers based on `base` entry of `struct mxc_i2c_bus`. > 3. Remov

Re: [U-Boot] [PATCH v3 20/26] test: dm: Recover the driver model tree after tests

2015-05-05 Thread Simon Glass
On 3 May 2015 at 14:12, Joe Hershberger wrote: > Put the driver model for the system back into a good state after > completing the DM testing. > > Signed-off-by: Joe Hershberger > --- > > Changes in v3: > -New for version 3 > > Changes in v2: None > > test/dm/test-main.c | 5 + > 1 file chan

Re: [U-Boot] [PATCH v3 24/26] test: dm: Move the dm tests over to the ut command

2015-05-05 Thread Simon Glass
On 3 May 2015 at 14:13, Joe Hershberger wrote: > Unify the command for running unit tests further by moving the "dm test" > command over to "ut dm". > > Signed-off-by: Joe Hershberger > --- > > Changes in v3: > -New for version 3 > > Changes in v2: None > > arch/sandbox/Kconfig | 5 - > in

Re: [U-Boot] [PATCH v1 1/2] cmd_sf: Add command "sf info" to show current device info

2015-05-05 Thread Simon Glass
On 5 May 2015 at 05:37, haikun.w...@freescale.com wrote: > On 5/1/2015 9:54 AM, Simon Glass wrote: >> Hi, >> >> On 29 April 2015 at 04:40, Haikun Wang wrote: >>> Add command "sf info" to show the information of the current SPI flash >>> device. >>> >>> Signed-off-by: Haikun Wang >>> --- >>> In

Re: [U-Boot] [PATCH v4 9/9] sunxi: ehci: Convert to the driver-model

2015-05-05 Thread Simon Glass
Hi Hans, On 5 May 2015 at 11:42, Simon Glass wrote: > On 5 May 2015 at 03:54, Hans de Goede wrote: >> Convert sunxi-boards which use the sunxi-ehci code to the driver-model. >> >> Signed-off-by: Hans de Goede >> Acked-by: Simon Glass >> --- >> Changes in v4: >> -Add a comment to document the s

[U-Boot] [PATCH 1/5] tbs2910: support for usb otg host mode

2015-05-05 Thread Soeren Moch
Add support for USB OTG host mode. Only high speed devices supported so far (e.g. usb 2.0 hub required to connect a keyboard). Signed-off-by: Soeren Moch --- Cc: Stefano Babic --- board/tbs/tbs2910/tbs2910.c | 10 ++ include/configs/tbs2910.h | 1 + 2 files changed, 11 insertions(+)

[U-Boot] [PATCH 5/5] tbs2910: add ext4 write support

2015-05-05 Thread Soeren Moch
Add CONFIG_CMD_EXT4_WRITE to enable ext4 write support. Signed-off-by: Soeren Moch --- Cc: Stefano Babic --- include/configs/tbs2910.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h index 1f3c3d8..d0d6a30 100644 --- a/include/configs/tb

[U-Boot] [PATCH 3/5] tbs2910: use default CONFIG_SYS_PBSIZE

2015-05-05 Thread Soeren Moch
Since there is a default CONFIG_SYS_PBSIZE definition in config_fallbacks.h, this setting is no longer required in board configurations. Signed-off-by: Soeren Moch --- Cc: Stefano Babic --- include/configs/tbs2910.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/tbs2910.h

[U-Boot] [PATCH 2/5] tbs2910: only enable vga output for stdout/stderr when hdmi detected

2015-05-05 Thread Soeren Moch
Only enable graphical output for stdout/stderr (and a usb keyboard for stdin) when a hdmi device is detected. Serial console is always enabled for stdin/stdout/stderr. Signed-off-by: Soeren Moch --- Cc: Stefano Babic --- include/configs/tbs2910.h | 17 + 1 file changed, 13 inser

[U-Boot] [PATCH 4/5] tbs2910: add CONFIG_SUPPORT_EMMC_BOOT

2015-05-05 Thread Soeren Moch
Add emmc boot partition commands to be able to select the boot partition. Signed-off-by: Soeren Moch --- Cc: Stefano Babic --- include/configs/tbs2910.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h index 9efb8c2..1f3c3d8 100644 --- a/

Re: [U-Boot] [PATCH 2/2] Fix broken verify functionality in crc32 command

2015-05-05 Thread Simon Glass
On 5 May 2015 at 11:23, Joe Hershberger wrote: > Introduced in change d20a40de9db07de1f1f06a79a4da1cdda5379b75 > "Roll crc32 into hash infrastructure" > > The crc32 command with no -v expects an optional 3rd argument to be an > address to store the result in. With the -v switch, the last argument

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

2015-05-05 Thread Simon Glass
Hi Joe, On 5 May 2015 at 11:23, Joe Hershberger wrote: > > Introduced in change d20a40de9db07de1f1f06a79a4da1cdda5379b75 > "Roll crc32 into hash infrastructure" > > Use a consistent define to enable the verify feature in crc32 command. > > Signed-off-by: Joe Hershberger > --- > > common/cmd_mem

Re: [U-Boot] [PATCH v4 9/9] sunxi: ehci: Convert to the driver-model

2015-05-05 Thread Hans de Goede
Hi, On 05/05/2015 11:06 PM, Simon Glass wrote: Hi Hans, On 5 May 2015 at 11:42, Simon Glass wrote: On 5 May 2015 at 03:54, Hans de Goede wrote: Convert sunxi-boards which use the sunxi-ehci code to the driver-model. Signed-off-by: Hans de Goede Acked-by: Simon Glass --- Changes in v4: -A

Re: [U-Boot] [PATCH v4 9/9] sunxi: ehci: Convert to the driver-model

2015-05-05 Thread Simon Glass
Hi Hans, On 5 May 2015 at 15:37, Hans de Goede wrote: > Hi, > > > On 05/05/2015 11:06 PM, Simon Glass wrote: >> >> Hi Hans, >> >> On 5 May 2015 at 11:42, Simon Glass wrote: >>> >>> On 5 May 2015 at 03:54, Hans de Goede wrote: Convert sunxi-boards which use the sunxi-ehci code to the d

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

2015-05-05 Thread Simon Glass
Hi Hans, On 5 May 2015 at 07:28, Hans de Goede wrote: > 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 > --- > drivers/usb/host/usb-uclass.c | 22 +-

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 07:28, Hans de Goede wrote: > 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 wit

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

2015-05-05 Thread Simon Glass
Hi Hans, On 5 May 2015 at 07:28, Hans de Goede wrote: > 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

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

2015-05-05 Thread Stephen Warren
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 explain that a bit more? -void __udelay(unsigned long usec) -{ - ulong endtime; - signed long diff;

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

2015-05-05 Thread Hans de Goede
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. Signed-off-by: Hans de Goede --- drivers/usb/host/ohci-hcd.c | 22 +

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

2015-05-05 Thread Hans de Goede
This is a preparation patch for adding driver-model support. Signed-off-by: Hans de Goede --- drivers/usb/host/ohci-hcd.c | 124 +++- 1 file changed, 64 insertions(+), 60 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c

[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 --- drivers/usb/host/ohci-hcd.c | 10 ++ drivers/usb/host/ohci.h | 19 +++ 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/u

[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 --- common/usb_hub.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/common/usb_hub.c b/c

[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 --- 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 --- a/common/usb.c +++ b/comm

[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 --- 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 b5676ab..07e0848 100644 --- a/dri

[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 --- drivers/usb/host/ohci-hcd.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/o

[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 08/16] usb: ohci: Move static func and var declarations from ohci.h to ohci-hcd.c

2015-05-05 Thread Hans de Goede
Non static function and variable declarations do not belong in a .h file. Signed-off-by: Hans de Goede --- drivers/usb/host/ohci-hcd.c | 86 + drivers/usb/host/ohci.h | 93 - 2 files changed, 86 insertions(+)

[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 --- drivers/usb/host/ohci-hcd.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/us

[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 --- 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 b/drivers/usb/host/ohci-h

[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 --- 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 --- a/drivers/usb/host/ohci-hcd.c

[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 --- drivers/usb/host/ohci-hcd.c | 67 + drivers/usb/host/ohci.h | 22 +

[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 --- drivers/usb/host/ohci-hcd.c | 41 ++--- 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/o

[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 --- 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 3744658..494b760 100644 -

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

2015-05-05 Thread Hans de Goede
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 using boards. It leaves the mdelay(1) calls in place when building fo

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

2015-05-05 Thread Hans de Goede
Hi Simon, On 05/05/2015 11:46 PM, Simon Glass wrote: Hi Hans, On 5 May 2015 at 07:28, Hans de Goede wrote: 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

Re: [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
Hi, On 05/05/2015 11:46 PM, Simon Glass wrote: Hi Hans, On 5 May 2015 at 07:28, Hans de Goede wrote: 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 sec

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

2015-05-05 Thread Marek Vasut
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 explain that a bit more? > > > -vo

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

2015-05-05 Thread Marek Vasut
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 support (tested on sunxi). This series sits on top of the series adding > companion controller support to the dm usb code and 2 e

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

2015-05-05 Thread Simon Glass
Hi Marek, On 5 May 2015 at 16:23, 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 support (tested on sunxi). This series sits on top of the series

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 wrote: > Hi, > > > On 05/05/2015 11:46 PM, Simon Glass wrote: >> >> Hi Hans, >> >> On 5 May 2015 at 07:28, Hans de Goede wrote: >>> >>> USB scanning is slow, and there is no need to scan the companion busses >>> if no usb devices where handed over t

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 expla

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

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

2015-05-05 Thread Hans de Goede
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 support (tested on sunxi). This series sits on top of the series adding companion

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

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

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

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 Acked-by: Marek Vasut Best regards, Marek Vasut ___

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 Acked-by: Marek Vasut Best regards, Marek Vasut ___ U-Boot mailing list U-Boo

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 Acked-by: Marek Vasut Best regards, Marek Vasut ___

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 implementati

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 Acked-by: Marek Vasut Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de

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 Acked-by: Marek Vasut Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de

<    1   2   3   >