Re: [U-Boot] [PATCH 07/20] dm: rtc: Rename to_tm() to rtc_to_tm() and add error code

2015-04-21 Thread Heiko Schocher
Hello Simon, Am 20.04.2015 20:37, schrieb Simon Glass: Rename this function so that it is clear that it is provided by the RTC. Also return an error when it cannot function as expected. This is unlikely to occur since it works for dates since 1752 and many RTCs do not support such old dates.

Re: [U-Boot] [PATCH v2 2/3] ARM: zynq: use separate configuration for ZC702 and ZC706

2015-04-21 Thread Sören Brinkmann
On Fri, 2015-04-17 at 10:38AM +0900, Masahiro Yamada wrote: Hi Sören, 2015-04-15 1:03 GMT+09:00 Sören Brinkmann soren.brinkm...@xilinx.com: On Tue, 2015-04-14 at 04:50PM +0900, Masahiro Yamada wrote: Separate CONFIG_TARGET_ZYNQ_{ZC702,ZC706} which is necessary for the next commit.

[U-Boot] Question regarding MLO size

2015-04-21 Thread Arun Bharadwaj
Hi all, I am using a Gumstix Overo (omap3), running the u-boot v2015.04 and have the following issue: I have made a few modifications to the misc_init_r() routine in the board/overo/overo.c file; the resulting MLO file is 61,220 bytes and the console hangs at reading u-boot.img during the boot

Re: [U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-21 Thread Joe Hershberger
Hi Bin Meng, On Tue, Apr 21, 2015 at 8:54 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 20 April 2015 at 23:05, Bin Meng bmeng...@gmail.com wrote: Not like other x86 chipset, there is no EEPROM for the ethernet controller on the Intel Quark SoC to retreive the mac address after power

[U-Boot] [U-Boot PATCH 4/8] spi: Zap oc_tiny_spi driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
Zap oc_tiny_spi driver since the boards used this driver is no longer been active. Signed-off-by: Jagannadha Sutradharudu Teki jagannadh.t...@gmail.com Cc: Thomas Chou tho...@wytron.com.tw --- drivers/spi/Makefile | 1 - drivers/spi/oc_tiny_spi.c | 245

[U-Boot] [U-Boot PATCH 6/8] spi: xilinx_spi: Driver clean-up

2015-04-21 Thread Jagannadha Sutradharudu Teki
- Zap unneeded macros - Re-arrange the code - Removed __attribute__((weak)) - Replace __func__ macro with func names to save macro transition. - Re-arranged comment lines. - Arrange driver code in more readable format[1] [1] http://lists.denx.de/pipermail/u-boot/2013-August/160473.html

[U-Boot] [U-Boot PATCH 3/8] spi: Zap ftssp010_spi driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
Zap ftssp010_spi driver since the boards used this driver is no longer been active. Signed-off-by: Jagannadha Sutradharudu Teki jagannadh.t...@gmail.com Cc: Kuo-Jung Su dant...@faraday-tech.com Cc: Axel Lin axel@ingics.com --- drivers/spi/Makefile | 1 - drivers/spi/ftssp010_spi.c |

[U-Boot] [U-Boot PATCH 2/8] spi: Zap andes_spi driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
Zap andes_spi driver since the boards used this driver is no longer been active. Signed-off-by: Jagannadha Sutradharudu Teki jagannadh.t...@gmail.com Cc: Macpaul Lin macp...@andestech.com --- drivers/spi/Makefile| 1 - drivers/spi/andes_spi.c | 284

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

2015-04-21 Thread Matt Porter
Add ARMv7M STM32F1 support including clocks, timer, gpio, and flash. Signed-off-by: Matt Porter mpor...@konsulko.com --- arch/arm/cpu/armv7m/Makefile | 1 + arch/arm/cpu/armv7m/stm32f1/Makefile | 13 ++ arch/arm/cpu/armv7m/stm32f1/clock.c | 195

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

2015-04-21 Thread Matt Porter
Add support for the STM32F1 family to the STM32 gpio driver. Signed-off-by: Matt Porter mpor...@konsulko.com --- Since v1: - Explicitly check for F4/F1 family and error if not set to a supported STM32 family. drivers/gpio/stm32_gpio.c | 109

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

2015-04-21 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

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

2015-04-21 Thread Matt Porter
Add support for the STM32F1 famly to the STM32 serial driver. Signed-off-by: Matt Porter mpor...@konsulko.com --- Since v1: - Explicitly check for F4/F1 family and error if not set to a supported STM32 family. drivers/serial/serial_stm32.c | 9 + 1 file changed, 9

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

2015-04-21 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 mpor...@konsulko.com --- arch/arm/Kconfig | 5 ++ board/st/stm3210e-eval/Kconfig | 19 ++ board/st/stm3210e-eval/MAINTAINERS

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

2015-04-21 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 mpor...@konsulko.com --- common/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/image.c b/common/image.c

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

2015-04-21 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 mpor...@konsulko.com --- common/cmd_boot.c | 4 1 file changed, 4 insertions(+) diff --git

Re: [U-Boot] [PATCH v7 17/17] jetson-tk1: Add PSCI configuration options and reserve secure code

2015-04-21 Thread Jan Kiszka
On 2015-04-21 19:58, Ian Campbell wrote: On Tue, 2015-04-21 at 07:18 +0200, Jan Kiszka wrote: From: Ian Campbell i...@hellion.org.uk The secure world code is relocated to the MB just below the top of 4G, we reserve it in the FDT (by setting CONFIG_ARMV7_SECURE_RESERVE_SIZE) but it is not

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

2015-04-21 Thread Matt Porter
On Tue, Apr 21, 2015 at 01:05:24PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 02:01:31PM -0400, Matt Porter wrote: On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: On ARM v7M, the processor will return to

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

2015-04-21 Thread Felipe Balbi
On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: 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 but that's what the 'x' is for, right

Re: [U-Boot] [PATCH] spl: descend into lib/ for all the SPL boards

2015-04-21 Thread York Sun
On 04/20/2015 08:37 PM, Masahiro Yamada wrote: Currently, CONFIG_SPL_LIBGENERIC_SUPPORT must be defined to build under lib/ directory for SPL. This directory contains very basic functions such as memcpy, memset in lib/string.c, so it should be very useful for all the boards. Because SPL

[U-Boot] [U-Boot PATCH] linux/bitops.h: Add BIT macro

2015-04-21 Thread Jagannadha Sutradharudu Teki
Updated in spi relevent files. Signed-off-by: Jagannadha Sutradharudu Teki jagannadh.t...@gmail.com --- drivers/mtd/spi/sandbox.c | 4 +-- drivers/mtd/spi/sf_internal.h | 10 +++ drivers/spi/altera_spi.c | 26 - drivers/spi/atmel_spi.h| 52

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

2015-04-21 Thread Felipe Balbi
On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: 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 but that's what the 'x' is for, right ? eXchange the CPU mode. to 1 to stay in thumb mode.

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

2015-04-21 Thread Matt Porter
On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: 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 but that's what the 'x' is for, right

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

2015-04-21 Thread Matt Porter
On Tue, Apr 21, 2015 at 12:57:09PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 12:54:26PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: On ARM v7M, the processor will return to

[U-Boot] [U-Boot PATCH 8/8] spi: davinci_spi: Driver cleanup

2015-04-21 Thread Jagannadha Sutradharudu Teki
Arrange driver code in more readable format[1] for easy accessing and readable. [1] http://lists.denx.de/pipermail/u-boot/2013-August/160473.html Signed-off-by: Jagannadha Sutradharudu Teki jagannadh.t...@gmail.com Cc: Rex Chang rch...@ti.com Cc: Murali Karicheri m-kariche...@ti.com ---

[U-Boot] [U-Boot PATCH 5/8] spi: xilinx_spi: Move header code to driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
Move the header code into driver for more readable and easy to access it. Signed-off-by: Jagannadha Sutradharudu Teki jagannadh.t...@gmail.com Cc: Michal Simek michal.si...@xilinx.com --- drivers/spi/xilinx_spi.c | 113 +- drivers/spi/xilinx_spi.h | 138

[U-Boot] [U-Boot PATCH 7/8] spi: davinci_spi: Move header code to driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
Move the header code into driver for more readable and easy to access it. Signed-off-by: Jagannadha Sutradharudu Teki jagannadh.t...@gmail.com Cc: Rex Chang rch...@ti.com Cc: Murali Karicheri m-kariche...@ti.com --- drivers/spi/davinci_spi.c | 110 -

[U-Boot] [U-Boot PATCH 0/8] spi: Driver cleanup series

2015-04-21 Thread Jagannadha Sutradharudu Teki
Driver cleanup series list - Minor code cleanups - tab space, comments etc - Zapping unneeded drivers - Moving header code into driver .c files for easy accessing - Arranged the driver code format to [1] for more readable [1] http://lists.denx.de/pipermail/u-boot/2013-August/160473.html thanks!

[U-Boot] [U-Boot PATCH 1/8] sf: Adjust tab space's

2015-04-21 Thread Jagannadha Sutradharudu Teki
Tab space's got adjusted on relevent files. Signed-off-by: Jagannadha Sutradharudu Teki jagannadh.t...@gmail.com --- drivers/mtd/spi/sf_internal.h | 20 ++-- include/spi.h | 12 ++-- include/spi_flash.h | 8 3 files changed, 20

[U-Boot] [PATCH 3/3] test: dm: eth: Skip timeouts on ping tests

2015-04-21 Thread Joe Hershberger
Indicate to the emulated sandbox Ethernet driver when we expect a timeout and tell it to leap forward. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- test/dm/eth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/dm/eth.c b/test/dm/eth.c index 4891f3a..196eba8 100644 ---

[U-Boot] [PATCH 2/3] sandbox: eth: Add a function to skip ping timeouts

2015-04-21 Thread Joe Hershberger
When called, the next call to receive will trigger a 10-second leap forward in time to avoid waiting for time to pass when tests are evaluating timeout behavior. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- arch/sandbox/include/asm/eth.h | 2 ++ drivers/net/sandbox.c | 17

[U-Boot] [PATCH 0/3] test: Speed up test timeouts by advancing time

2015-04-21 Thread Joe Hershberger
Add support for advancing time in sandbox and make use of the new API to speed up the existing dm/eth tests that wait for timeouts. This series is based on u-boot-dm/test-working Joe Hershberger (3): sandbox: Add test function to advance time sandbox: eth: Add a function to skip ping

[U-Boot] [PATCH 1/3] sandbox: Add test function to advance time

2015-04-21 Thread Joe Hershberger
Add a function that maintains an offset to include in the system timer values returned from the lib/time.c APIs. This will allow timeouts to be skipped instantly in tests Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- arch/sandbox/cpu/cpu.c | 5 -

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

2015-04-21 Thread Tom Rini
On Tue, Apr 21, 2015 at 01:05:24PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 02:01:31PM -0400, Matt Porter wrote: On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: On ARM v7M, the processor will return to

Re: [U-Boot] [PATCH v7 17/17] jetson-tk1: Add PSCI configuration options and reserve secure code

2015-04-21 Thread Ian Campbell
On Tue, 2015-04-21 at 07:18 +0200, Jan Kiszka wrote: From: Ian Campbell i...@hellion.org.uk The secure world code is relocated to the MB just below the top of 4G, we reserve it in the FDT (by setting CONFIG_ARMV7_SECURE_RESERVE_SIZE) but it is not protected in h/w. See next patch. Next

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

2015-04-21 Thread Felipe Balbi
On Tue, Apr 21, 2015 at 12:54:26PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: On ARM v7M, the processor will return to ARM mode when executing a blx instruction with bit 0 of the

Re: [U-Boot] [PATCH v2 0/6] ARM: socfpga: refactoring, move files to arch/arm/mach-socfpga

2015-04-21 Thread Marek Vasut
On Tuesday, April 21, 2015 at 01:38:17 PM, Masahiro Yamada wrote: Changes in v2: - Rebase on the top of u-boot-socfpga/master (commit b284d268a) Masahiro Yamada (6): ARM: socfpga: do not add board directory to header search path ARM: socfpga: remove redundant config.mk ARM:

Re: [U-Boot] Question regarding MLO size

2015-04-21 Thread Tom Rini
On Tue, Apr 21, 2015 at 11:56:05AM -0700, Arun Bharadwaj wrote: Hi all, I am using a Gumstix Overo (omap3), running the u-boot v2015.04 and have the following issue: I have made a few modifications to the misc_init_r() routine in the board/overo/overo.c file; the resulting MLO file is

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

2015-04-21 Thread Felipe Balbi
On Tue, Apr 21, 2015 at 02:01:31PM -0400, Matt Porter wrote: On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 01:36:54PM -0400, Matt Porter wrote: On ARM v7M, the processor will return to ARM mode when executing a blx instruction with bit 0 of the

Re: [U-Boot] [PATCH v4 9/9] sandbox: add config_distro_defaults and config_distro_bootcmd

2015-04-21 Thread Sjoerd Simons
Hey Joe, On Mon, 2015-04-20 at 23:31 -0500, Joe Hershberger wrote: Hi Sjoerd, On Mon, Apr 13, 2015 at 3:54 PM, Sjoerd Simons sjoerd.sim...@collabora.co.uk wrote: Make the sandbox setup more generic/examplary by including config_distro_defaults.h and config_distro_bootcmd.h. Among

[U-Boot] [PATCH] spi flash: fix trivial problems

2015-04-21 Thread Pavel Machek
Fix typos and too big #ifdef. Signed-off-by: Pavel Machek pa...@denx.de diff --git a/include/spi_flash.h b/include/spi_flash.h index 5913b39..5e94e41 100644 --- a/include/spi_flash.h +++ b/include/spi_flash.h @@ -62,11 +62,9 @@ struct spi_slave; * return 0 - Success, 1 - Failure */

Re: [U-Boot] [PATCH] spi flash: fix trivial problems

2015-04-21 Thread Marek Vasut
On Tuesday, April 21, 2015 at 10:37:45 AM, Pavel Machek wrote: Fix typos and too big #ifdef. Signed-off-by: Pavel Machek pa...@denx.de Reviewed-by: Marek Vasut ma...@denx.de Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [patch] socfpga: move configuration options to config file

2015-04-21 Thread Masahiro Yamada
2015-04-21 6:32 GMT+09:00 Marek Vasut ma...@denx.de: On Monday, April 20, 2015 at 10:27:02 PM, Pavel Machek wrote: On Mon 2015-04-20 21:23:23, Marek Vasut wrote: On Monday, April 20, 2015 at 02:30:48 PM, Pavel Machek wrote: Setting configuration options in header file leads to incosistency

Re: [U-Boot] spi and block bits

2015-04-21 Thread Jagan Teki
On 17 April 2015 at 12:45, Michael Walle mich...@walle.cc wrote: Am 2015-04-16 20:32, schrieb Jagan Teki: On 9 February 2015 at 04:57, Michael Walle mich...@walle.cc wrote: Hi there, I stumbled across a situation where the SPI flash on my board was write protected and i could not unlock it

[U-Boot] [PATCH v2 3/5] ARM: integrator: split board select into AP/CP select and CM select

2015-04-21 Thread Masahiro Yamada
Select integrator boards by the combination of platform select (AP/CP) and core module select (CM720T, CM920T, ...). This allows us to remove CONFIG_SYS_EXTRA_OPTIONS and make Kconfig much cleaner. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Cc: Linus Walleij

[U-Boot] [PATCH v2 0/5] ARM: integrator: Kconfig Clean up

2015-04-21 Thread Masahiro Yamada
Masahiro Yamada (5): ARM: ARM720t: remove empty asm/arch/hardware.h ARM: integrator: move board select into mach-integrator/Kconfig ARM: integrator: split board select into AP/CP select and CM select ARM: integrator: abolish CONFIG_INTEGRATOR ARM: integrator: move

[U-Boot] [PATCH v2 1/5] ARM: ARM720t: remove empty asm/arch/hardware.h

2015-04-21 Thread Masahiro Yamada
arch/arm/cpu/arm720t/start.S includes asm/arch/hardware.h, but the hardware.h headers of ARM720T boards are all empty. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Cc: Linus Walleij linus.wall...@linaro.org Cc: Stephen Warren swar...@nvidia.com Cc: Tom Warren twar...@nvidia.com

[U-Boot] [PATCH v2 5/5] ARM: integrator: move CONFIG_ARCH_CINTEGRATOR to Kconfig

2015-04-21 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Cc: Linus Walleij linus.wall...@linaro.org --- Changes in v2: - Move this macro, not delete arch/arm/mach-integrator/Kconfig | 4 include/configs/integratorcp.h | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff

Re: [U-Boot] [PATCH 2/3 v2] arm: ls102xa: Enable Driver Model SPI for ls1021aqds

2015-04-21 Thread Jagan Teki
On 21 April 2015 at 16:55, Haikun Wang haikun.w...@freescale.com wrote: Enable Driver Model SPI for ls1021aqds board. DSPI and QSPI is enabled only when boot from QSPI. DSPI and QSPI are compatible under Driver Model SPI. Signed-off-by: Haikun Wang haikun.w...@freescale.com --- Reviewed-by:

Re: [U-Boot] [PATCH 3/3 v2] arm: ls102xa: Enable Driver Model SPI for ls1021atwr

2015-04-21 Thread Jagan Teki
On 21 April 2015 at 16:56, Haikun Wang haikun.w...@freescale.com wrote: Enable Driver Model SPI for ls1021atwr board. DSPI and QSPI only be enabled when boot from QSPI. DSPI and QSPI are compatible under Driver Model SPI. Signed-off-by: Haikun Wang haikun.w...@freescale.com --- Reviewed-by:

Re: [U-Boot] [PATCH v3 1/9] sf: Update SST flash params

2015-04-21 Thread Jagan Teki
Hi Bin, On 20 April 2015 at 15:02, Bin Meng bmeng...@gmail.com wrote: Hi Jagan, On Fri, Apr 17, 2015 at 4:48 PM, Jagan Teki jagannadh.t...@gmail.com wrote: Hi Bin, On 17 April 2015 at 07:14, Bin Meng bmeng...@gmail.com wrote: Hi Jagan, On Fri, Apr 17, 2015 at 2:09 AM, Jagan Teki

[U-Boot] [PATCH] ti: am335x/am437x/omap5 devices: Unify network environment variables

2015-04-21 Thread Franklin S Cooper Jr
Across several devices network environment variables are duplicated. Move these variables to a common include file which insures the environment variables are reused and insures devices across product lines share the same values. Signed-off-by: Franklin S Cooper Jr fcoo...@ti.com ---

Re: [U-Boot] [PATCH 5/5] ARM: integrator: remove CONFIG_ARCH_CINTEGRATOR

2015-04-21 Thread Masahiro Yamada
2015-04-21 21:06 GMT+09:00 Linus Walleij linus.wall...@linaro.org: On Tue, Apr 21, 2015 at 5:12 AM, Masahiro Yamada yamada.masah...@socionext.com wrote: This macro is not referenced at all. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Cc: Linus Walleij

[U-Boot] [PATCH v2 2/5] ARM: integrator: move board select into mach-integrator/Kconfig

2015-04-21 Thread Masahiro Yamada
The board/SoC select menu in arch/arm/Kconfig is still cluttered. Add ARCH_INTEGRATOR into arch/arm/Kconfig and move the board select under arch/arm/mach-integrator. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Cc: Linus Walleij linus.wall...@linaro.org --- Changes in v2: None

[U-Boot] [PATCH v2 4/5] ARM: integrator: abolish CONFIG_INTEGRATOR

2015-04-21 Thread Masahiro Yamada
Switch to CONFIG_ARCH_INTEGRATOR defined by Kconfig. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Cc: Linus Walleij linus.wall...@linaro.org --- Changes in v2: None arch/arm/cpu/arm946es/cpu.c | 4 ++-- include/configs/integrator-common.h | 2 -- 2 files changed, 2

[U-Boot] [PATCH] serial: pl01x: fix PL010 regression

2015-04-21 Thread Linus Walleij
commit aed2fbef5e9a0ab5a7cd01e742039a962f0b24ef dm: serial: Tidy up the pl01x driver caused a regression on (real hardware) PL010 by omitting to update the line control register when switching baudrate. Fix this by inlining the missing write to the baud control register. Also renaming the

Re: [U-Boot] [PATCH v2 77/80] dm: usb: Add tests for the USB uclass

2015-04-21 Thread Simon Glass
Hi Joe, On 20 April 2015 at 23:24, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Simon, On Wed, Mar 25, 2015 at 1:23 PM, Simon Glass s...@chromium.org wrote: This adds a simple test for probing and a functional test using the flash stick emulator, which tests a large chunk of the USB

Re: [U-Boot] [patch] socfpga: move configuration options to config file

2015-04-21 Thread Marek Vasut
On Monday, April 20, 2015 at 11:54:34 PM, Pavel Machek wrote: On Mon 2015-04-20 23:32:33, Marek Vasut wrote: On Monday, April 20, 2015 at 10:27:02 PM, Pavel Machek wrote: On Mon 2015-04-20 21:23:23, Marek Vasut wrote: On Monday, April 20, 2015 at 02:30:48 PM, Pavel Machek wrote:

Re: [U-Boot] [patch] socfpga: move configuration options to config file

2015-04-21 Thread Masahiro Yamada
2015-04-20 21:30 GMT+09:00 Pavel Machek pa...@denx.de: Setting configuration options in header file leads to incosistency between .config user sees, and .config he has. What is worse, a lot of compile warnings is presented for any such config option user sets in .config. Signed-off-by: Pavel

Re: [U-Boot] [PATCH 0/4] ARM: zynq: move sources to mach-zynq

2015-04-21 Thread Michal Simek
Hi Masahiro, On 04/21/2015 06:07 AM, Masahiro Yamada wrote: Hi Michal, 2015-03-16 16:43 GMT+09:00 Masahiro Yamada yamada.masah...@socionext.com: Masahiro Yamada (4): ARM: zynq: pass -mfpu=neon only to lowlevel_init.S ARM: zynq: move SoC sources to mach-zynq ARM: zynq: move SoC

[U-Boot] [PATCH] arm: ls102xa: Adjust the load address of U-Boot for NOR boot

2015-04-21 Thread Alison Wang
The original load address of U-Boot is 0x67f8. The address space of NOR flash is 0x6000 to 0x67ff. It will cause the size of u-boot couldn't be larger than 512K. As more features are supported in u-boot, the size of u-boot is larger than 512K. To fix this issue, the load address of

[U-Boot] Ethernet problem on A20 Lime2

2015-04-21 Thread Tom Rini
Hey, I've run into a problem with ethernet on the A20 Lime2: sunxi# setenv autoload no sunxi# dhcp Speed: 1000, full duplex BOOTP broadcast 1 DHCP client bound to address 192.168.0.185 (13 ms) sunxi# tftp test/u-boot-sunxi-with-spl.bin Speed: 1000, full duplex Using dwmac.1c5 device TFTP from

Re: [U-Boot] [PATCH] serial: pl01x: fix PL010 regression

2015-04-21 Thread Tom Rini
On Tue, Apr 21, 2015 at 03:10:06PM +0200, Linus Walleij wrote: commit aed2fbef5e9a0ab5a7cd01e742039a962f0b24ef dm: serial: Tidy up the pl01x driver caused a regression on (real hardware) PL010 by omitting to update the line control register when switching baudrate. Fix this by inlining the

Re: [U-Boot] Pull request: u-boot-net.git master

2015-04-21 Thread Tom Rini
On Mon, Apr 20, 2015 at 06:08:44PM -0500, Joe Hershberger wrote: The following changes since commit 1733259d25015c28c47990ec11af99b3f62f811c: Merge branch 'master' of git://git.denx.de/u-boot-video (2015-04-20 09:13:52 -0400) are available in the git repository at:

Re: [U-Boot] [PATCH 0/6] ARM: socfpga: refactoring, move files to arch/arm/mach-socfpga

2015-04-21 Thread Marek Vasut
On Tuesday, April 21, 2015 at 01:40:32 PM, Masahiro Yamada wrote: Hi Marek, Hi! 2015-04-21 19:56 GMT+09:00 Marek Vasut ma...@denx.de: On Tuesday, April 21, 2015 at 04:09:52 AM, Masahiro Yamada wrote: Masahiro Yamada (6): ARM: socfpga: do not add board directory to header search path

Re: [U-Boot] Ethernet problem on A20 Lime2

2015-04-21 Thread Tom Rini
On Tue, Apr 21, 2015 at 04:11:34PM +0200, Hans de Goede wrote: Hi Tom, On 21-04-15 16:03, Tom Rini wrote: Hey, I've run into a problem with ethernet on the A20 Lime2: sunxi# setenv autoload no sunxi# dhcp Speed: 1000, full duplex BOOTP broadcast 1 DHCP client bound to address

[U-Boot] [PATCH 1/2] integrator: stop zeroing the gd flags

2015-04-21 Thread Linus Walleij
This assignment conflicts with code that add flags with gd-flags |= FOO prior to the execution of this function. Seems like a historical artifact and creates bugs with early alloc(). Cc: Masahiro Yamada yamada.masah...@socionext.com Signed-off-by: Linus Walleij linus.wall...@linaro.org ---

[U-Boot] [PATCH 2/2] integrator: switch to DM serial port

2015-04-21 Thread Linus Walleij
This switches the Integrator boards over to using the device model for its serial ports. Cc: Masahiro Yamada yamada.masah...@socionext.com Signed-off-by: Linus Walleij linus.wall...@linaro.org --- board/armltd/integrator/integrator.c | 18 ++ include/configs/integrator-common.h

Re: [U-Boot] Ethernet problem on A20 Lime2

2015-04-21 Thread Hans de Goede
Hi Tom, On 21-04-15 16:03, Tom Rini wrote: Hey, I've run into a problem with ethernet on the A20 Lime2: sunxi# setenv autoload no sunxi# dhcp Speed: 1000, full duplex BOOTP broadcast 1 DHCP client bound to address 192.168.0.185 (13 ms) sunxi# tftp test/u-boot-sunxi-with-spl.bin Speed: 1000,

Re: [U-Boot] [PATCH 1/2] spl: spl_mmc: Clearer structure in spl_mmc_load_image and cosmetics

2015-04-21 Thread Tom Rini
On Sun, Apr 19, 2015 at 09:30:08PM +0200, Paul Kocialkowski wrote: This refactors spl_mmc_load_image to use a switch/case structure and easier to understand spl_start_uboot checks. It also drops fallbacks on boot devices that were not selected in the first place. I don't like the dropping

Re: [U-Boot] [PATCH 2/2] x86: Install a default e820 table in the __weak install_e820_map()

2015-04-21 Thread Simon Glass
Hi Bin, On 20 April 2015 at 22:21, Bin Meng bmeng...@gmail.com wrote: Create a default e820 table with 3 entries which is enough to boot a Linux kernel. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/lib/zimage.c | 29 ++--- 1 file changed, 22

Re: [U-Boot] [PATCH 1/2] x86: Clean up arch/x86/include/asm/e820.h

2015-04-21 Thread Simon Glass
On 20 April 2015 at 22:21, Bin Meng bmeng...@gmail.com wrote: There are lots of unused codes defined in e820.h, clean it up. Signed-off-by: Bin Meng bmeng...@gmail.com --- arch/x86/include/asm/e820.h | 133 +--- 1 file changed, 2 insertions(+), 131

Re: [U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-21 Thread Simon Glass
Hi Bin, On 20 April 2015 at 23:05, Bin Meng bmeng...@gmail.com wrote: Not like other x86 chipset, there is no EEPROM for the ethernet controller on the Intel Quark SoC to retreive the mac address after power up. With pre-defined mac addresses, U-Boot boots up and will not show Error:

Re: [U-Boot] [PATCH] kconfig: remove duplicated CMD_DNS option

2015-04-21 Thread Tom Rini
On Sun, Apr 19, 2015 at 02:58:43PM +0300, Andrey Skvortsov wrote: two CMD_DNS options were added by commit 60296a835cb17 (commands: add more command entries in Kconfig) Signed-off-by: Andrey Skvortsov andrej.skvort...@gmail.com Acked-by: Masahiro Yamada yamada.masah...@socionext.com

Re: [U-Boot] [PATCH 5/5] ARM: integrator: remove CONFIG_ARCH_CINTEGRATOR

2015-04-21 Thread Linus Walleij
On Tue, Apr 21, 2015 at 5:12 AM, Masahiro Yamada yamada.masah...@socionext.com wrote: This macro is not referenced at all. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Cc: Linus Walleij linus.wall...@linaro.org NACK sorry what happened here? $ git grep

Re: [U-Boot] [PATCH 4/5] dm: usb: Add more debugging in ehci-hcd.c

2015-04-21 Thread Marek Vasut
On Saturday, April 18, 2015 at 07:33:46 PM, Simon Glass wrote: Add some debugging to detect init failure. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Marek Vasut ma...@denx.de Best regards, Marek Vasut ___ U-Boot mailing list

Re: [U-Boot] [PATCH] spi flash: fix trivial problems

2015-04-21 Thread Jagan Teki
On 21 April 2015 at 14:15, Marek Vasut ma...@denx.de wrote: On Tuesday, April 21, 2015 at 10:37:45 AM, Pavel Machek wrote: Fix typos and too big #ifdef. Signed-off-by: Pavel Machek pa...@denx.de Reviewed-by: Marek Vasut ma...@denx.de Applied to u-boot-spi/master thanks! -- Jagan.

[U-Boot] [PATCH v2 1/6] ARM: socfpga: do not add board directory to header search path

2015-04-21 Thread Masahiro Yamada
The compiler option -Iboard/$(VENDOR)/$(BOARD) just exists here for iocsr_config.c to be able to include iocsr_config.h. Use ... instead of ... to include a header in the same directory. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- Changes in v2: None

Re: [U-Boot] [PATCH 2/4] dm: serial: Tidy up the pl01x driver

2015-04-21 Thread Linus Walleij
On Tue, Apr 21, 2015 at 1:56 PM, Linus Walleij linus.wall...@linaro.org wrote: On Tue, Sep 23, 2014 at 1:30 AM, Simon Glass s...@chromium.org wrote: Adjust the driver so that leaf functions take a pointer to the serial port register base. Put all the global configuration in the init function,

Re: [U-Boot] [PATCH 2/5] dm: usb: Add a terminator to the string destructor list

2015-04-21 Thread Joe Hershberger
Hi Simon, On Sun, Apr 19, 2015 at 8:20 AM, Simon Glass s...@chromium.org wrote: The terminator is missing. Add it for completeness. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Joe Hershberger joe.hershber...@ni.com Tested-by: Joe Hershberger joe.hershber...@ni.com

Re: [U-Boot] [PATCH 19/20] dm: test: dts: Sort the aliases in the test device tree file

2015-04-21 Thread Joe Hershberger
Hi Simon, On Mon, Apr 20, 2015 at 1:37 PM, Simon Glass s...@chromium.org wrote: Sort these aliases to avoid confusion as to what is present. Signed-off-by: Simon Glass s...@chromium.org --- Reviewed-by: Joe Hershberger joe.hershber...@ni.com ___

Re: [U-Boot] [PATCH 4/5] dm: Update the README to reflect the current test output

2015-04-21 Thread Joe Hershberger
Hi Simon, On Sun, Apr 19, 2015 at 8:21 AM, Simon Glass s...@chromium.org wrote: There are a lot more tests now. To avoid confusion add the updated test output to the driver model README. Signed-off-by: Simon Glass s...@chromium.org --- Reviewed-by: Joe Hershberger joe.hershber...@ni.com

Re: [U-Boot] [PATCH 5/5] dm: test: Don't clear global_data in dm_test_uclass_before_ready()

2015-04-21 Thread Joe Hershberger
Hi Simon, On Sun, Apr 19, 2015 at 8:21 AM, Simon Glass s...@chromium.org wrote: We must not clear global_data even in tests, since the ram_buffer (which is used by malloc()) will also be lost, and subsequent tests will fail. Zero only the global_data fields that are required for the test to

Re: [U-Boot] [PATCH v2 77/80] dm: usb: Add tests for the USB uclass

2015-04-21 Thread Joe Hershberger
Hi Simon, On Tue, Apr 21, 2015 at 8:14 AM, Simon Glass s...@chromium.org wrote: Hi Joe, On 20 April 2015 at 23:24, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Simon, On Wed, Mar 25, 2015 at 1:23 PM, Simon Glass s...@chromium.org wrote: This adds a simple test for probing and a

Re: [U-Boot] [PATCH 1/5] dm: core: Handle recursive unbinding of uclass devices

2015-04-21 Thread Joe Hershberger
Hi Simon, On Sun, Apr 19, 2015 at 8:20 AM, Simon Glass s...@chromium.org wrote: Since a device can have children in the same uclass as itself, we need to handle unbinding carefully: we must allow that unbinding a device in a uclass may cause another device in the same uclass to be unbound.

Re: [U-Boot] [PATCH v7 00/17] Add PSCI support for Jetson TK1/Tegra124 + CNTFRQ fix

2015-04-21 Thread Stephen Warren
On 04/20/2015 11:18 PM, Jan Kiszka wrote: Changes in v7: - rebased over master - fixed issue that prevented secure boot with all cores = replace ap_pm_init with psci_board_init hook - enable CONFIG_ARMV7_BOOT_SEC_DEFAULT for tegra to avoid problems with default config of current

Re: [U-Boot] Question regarding MLO size

2015-04-21 Thread Tom Rini
On Tue, Apr 21, 2015 at 01:12:37PM -0700, Ash Charles wrote: On Tue, Apr 21, 2015 at 12:23 PM, Tom Rini tr...@konsulko.com wrote: Sadly it may make sense to move some SPL-only functions out into a file that is only built/linked for SPL due to this bug. Ah---that is a funky bug. Is it

[U-Boot] [PATCH 10/11] net: Use env callbacks for net variables

2015-04-21 Thread Joe Hershberger
Instead of checking for changes to the env each time we enter the net_loop, use the env callbacks to update the values of the variables. Don't update the variables when the source was programmatic, since the variables were the source of the new value. Signed-off-by: Joe Hershberger

[U-Boot] [PATCH 04/11] env: Fix return values in env_attr_lookup()

2015-04-21 Thread Joe Hershberger
This function returned numbers for error codes. Change them to error codes. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/env_attr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/env_attr.c b/common/env_attr.c index 64baca5..e791f44 100644

[U-Boot] [PATCH 09/11] net: Apply default format rules to all ethaddr

2015-04-21 Thread Joe Hershberger
Use a regular expression to apply the default formatting flags for all ethaddr env vars. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- include/env_flags.h | 11 --- test/dm/eth.c | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/env_flags.h

[U-Boot] [PATCH 05/11] env: Simplify the reverse_strstr() interface

2015-04-21 Thread Joe Hershberger
The logic to find the whole matching name was split needlessly between the reverse_strstr function and its caller. Fully contain it to make the interface for calling it more consistent. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/env_attr.c | 79

[U-Boot] [PATCH 03/11] sandbox: Enable regex support

2015-04-21 Thread Joe Hershberger
Enable regex support on sandbox. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 5de7fbe..340f5eb 100644 --- a/configs/sandbox_defconfig +++

[U-Boot] [PATCH 11/11] net: Add default flags for common net env vars

2015-04-21 Thread Joe Hershberger
Check that the common network stack's env vars conform to the proper format for IP addresses. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- include/env_flags.h | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/env_flags.h b/include/env_flags.h

[U-Boot] [PATCH 08/11] env: Distinguish finer between source of env change

2015-04-21 Thread Joe Hershberger
We already could tell the difference in the callback between an import and other which we called interactive. Now add further distinction between interactive (i.e. running env set / env edit / env ask / etc. from the U-Boot command line) and programmatic (i.e. when u-boot source calls any variant

[U-Boot] [PATCH 07/11] env: Add regex support to env_attrs

2015-04-21 Thread Joe Hershberger
Allow the features that use env_attrs to specify regexs for the name Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/env_attr.c | 85 ++ include/env_callback.h | 10 -- 2 files changed, 93 insertions(+), 2 deletions(-)

[U-Boot] [PATCH 06/11] env: Allow env_attr_walk to pass a priv * to callback

2015-04-21 Thread Joe Hershberger
In some cases it can be helpful to have context in the callback about the calling situation. This is needed for following patches. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/cmd_nvedit.c | 10 ++ common/env_attr.c | 15 ++- common/env_callback.c |

Re: [U-Boot] [PATCH v2 77/80] dm: usb: Add tests for the USB uclass

2015-04-21 Thread Simon Glass
Hi Joe, On 21 April 2015 at 14:10, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Simon, On Tue, Apr 21, 2015 at 12:00 PM, Simon Glass s...@chromium.org wrote: Hi Joe, On 21 April 2015 at 10:57, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Simon, On Tue, Apr 21, 2015 at 11:19

Re: [U-Boot] [PATCH v2 77/80] dm: usb: Add tests for the USB uclass

2015-04-21 Thread Joe Hershberger
Hi Simon, On Tue, Apr 21, 2015 at 12:00 PM, Simon Glass s...@chromium.org wrote: Hi Joe, On 21 April 2015 at 10:57, Joe Hershberger joe.hershber...@gmail.com wrote: Hi Simon, On Tue, Apr 21, 2015 at 11:19 AM, Simon Glass s...@chromium.org wrote: Hi Joe, On 21 April 2015 at 10:05, Joe

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

2015-04-21 Thread Felipe Balbi
Hi, On Tue, Apr 21, 2015 at 03:07:48PM -0400, Tom Rini wrote: On Tue, Apr 21, 2015 at 01:05:24PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 02:01:31PM -0400, Matt Porter wrote: On Tue, Apr 21, 2015 at 12:47:24PM -0500, Felipe Balbi wrote: On Tue, Apr 21, 2015 at 01:36:54PM

Re: [U-Boot] Question regarding MLO size

2015-04-21 Thread Ash Charles
On Tue, Apr 21, 2015 at 12:23 PM, Tom Rini tr...@konsulko.com wrote: Sadly it may make sense to move some SPL-only functions out into a file that is only built/linked for SPL due to this bug. Ah---that is a funky bug. Is it reasonable to wrap the offending lines in a #ifndef CONFIG_SPL_BUILD

Re: [U-Boot] [PATCH 2/2] integrator: switch to DM serial port

2015-04-21 Thread Simon Glass
Hi Linus, On 21 April 2015 at 07:36, Linus Walleij linus.wall...@linaro.org wrote: This switches the Integrator boards over to using the device model for its serial ports. Cc: Masahiro Yamada yamada.masah...@socionext.com Signed-off-by: Linus Walleij linus.wall...@linaro.org ---

  1   2   >