Re: [U-Boot] [PATCH 1/2] ARMv7: Factor out reusable timer_wait from sunxi/psci.S

2015-05-12 Thread Chen-Yu Tsai
Hi, On Wed, May 13, 2015 at 1:59 PM, Dongsheng Wang wrote: > From: Wang Dongsheng > > timer_wait is moved from sunxi/psci.S, and it can be converted completely > into a reusable armv7 generic timer. LS1021A will use it as well. > > Signed-off-by: Wang Dongsheng > --- > This patch depend on Jan

[U-Boot] [PATCH 2/2] arm/ls102xa: Add PSCI support for ls102xa

2015-05-12 Thread Dongsheng Wang
From: Wang Dongsheng Base on PSCI services, implement CPU_ON/CPU_OFF for ls102xa platform. Tested on LS1021AQDS, LS1021ATWR. Test CPU hotplug times: 60K Test kernel boot times: 1.2K Signed-off-by: Wang Dongsheng --- This patch depend on Jan Kiszka patches. Jan Kiszka patches link: http://pat

[U-Boot] [PATCH 1/2] ARMv7: Factor out reusable timer_wait from sunxi/psci.S

2015-05-12 Thread Dongsheng Wang
From: Wang Dongsheng timer_wait is moved from sunxi/psci.S, and it can be converted completely into a reusable armv7 generic timer. LS1021A will use it as well. Signed-off-by: Wang Dongsheng --- This patch depend on Jan Kiszka patches. Jan Kiszka patches link: http://patchwork.ozlabs.org/proj

[U-Boot] [PATCH] i2c, mxc: rework i2c base address names for different SoCs

2015-05-12 Thread Heiko Schocher
rework and unify i2c address names for different SoCs, which use the mxc_i2c driver. Signed-off-by: Heiko Schocher --- arch/arm/include/asm/arch-imx/imx-regs.h | 2 +- arch/arm/include/asm/arch-mx25/imx-regs.h | 6 ++--- arch/arm/include/asm/arch-mx27/imx-regs.h | 4 +-- arch/arm/includ

[U-Boot] [PATCH v2] arm, imx6, i2c: add I2C4 for MX6DL

2015-05-12 Thread Heiko Schocher
add I2C4 modul for MX6DL based boards. Signed-off-by: Heiko Schocher --- checkpatch shows: WARNING: line over 80 characters +#define MXC_CCM_CCGR1_I2C4_SERIAL_MASK (3 << MXC_CCM_CCGR1_I2C4_SERIAL_OFFSET) but the hole file is full of lines longer than80 characters, so I let this

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

2015-05-12 Thread Heiko Schocher
Hello Simon, Am 13.05.2015 03:44, schrieb Simon Glass: Hi, On 12 May 2015 at 19:09, Fan Peng wrote: Hi, Is there any further comments? Or this patch will be applied? I can apply it if you like - Heiko what do you prefer? Yes, please. Thanks. bye, Heiko - Simon Regards, Peng.

Re: [U-Boot] [PATCH] serial: stm32: Automatically generate CR when LF is observed

2015-05-12 Thread Kunhua Huang
On Tue, May 12, 2015 at 05:56:36PM -0400, Tom Rini wrote: > On Tue, May 12, 2015 at 10:35:55PM +0200, Kamil Lulko wrote: > > > Strange, this was already posted by Kunhua Huang - then reverted in > > commit 698a12bef9e782dcd99c555a739c16eec8669f14. Anyway, yes this > > carriage return should be adde

Re: [U-Boot] [PATCH] Clean all defconfigs with savedefconfig

2015-05-12 Thread Joe Hershberger
Hi Masahiro-san, On Tue, May 12, 2015 at 8:24 PM, Masahiro Yamada wrote: > Hi. > > I was a little late... > > 2015-05-13 1:32 GMT+09:00 Tom Rini : >> On Tue, May 12, 2015 at 11:20:07AM -0500, Joe Hershberger wrote: >>> Hi Tom, >>> >>> On Tue, May 12, 2015 at 10:18 AM, Tom Rini wrote: >>> > On Mo

[U-Boot] Booting mx28 from battery

2015-05-12 Thread Fabio Estevam
Hi, Has anyone tested booting U-boot on mx28 powered by a battery only? >From a quick glance at arch/arm/cpu/arm926ejs/mxs/spl_power_init.c , it does appear to support it. I haven't tested it myself yet, but would like to hear if anyone has been successful with such configuration. Thanks, Fabi

Re: [U-Boot] [PATCH v2 2/7] moveconfig: Add a mapping for the arc cross-compiler

2015-05-12 Thread Masahiro Yamada
Hi Joe. 2015-05-12 2:23 GMT+09:00 Joe Hershberger : > The arc architecture is supported by U-Boot, so add a mapping here > for it as well. > > Signed-off-by: Joe Hershberger > --- > > Changes in v2: None > > tools/moveconfig.py | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/movec

Re: [U-Boot] [PATCH 09/12] sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator

2015-05-12 Thread Simon Glass
Hi Przemyslaw, On 12 May 2015 at 03:43, Przemyslaw Marczak wrote: > Hello Simon, > > On 05/10/2015 03:57 PM, Simon Glass wrote: >> >> Hi Przemyslaw, >> >> On 8 May 2015 at 10:20, Przemyslaw Marczak wrote: >>> >>> This commit adds emulation of sandbox PMIC device, which includes: >>> - PMIC I2C e

Re: [U-Boot] [PATCH v2 0/5] Introduce BIT and GENMASK

2015-05-12 Thread Simon Glass
Hi, On 12 May 2015 at 09:23, Marek Vasut wrote: > On Tuesday, May 12, 2015 at 05:02:37 PM, Tom Rini wrote: >> On Tue, May 12, 2015 at 01:33:39PM +0200, Marek Vasut wrote: >> > On Tuesday, May 12, 2015 at 01:25:30 PM, Jagan Teki wrote: >> > > On 10 May 2015 at 20:52, Jagan Teki wrote: >> > > > I

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

2015-05-12 Thread Masahiro Yamada
Hi Tom Warren, 2015-05-13 6:49 GMT+09:00 Tom Warren : > Tom, > > Please pull u-boot-tegra/master into u-boot/master. ./MAKEALL -s tegra is > clean. Thanks. > > The following changes since commit b939689c7b87773c44275a578ffc8674a867e39d: > > Merge branch 'u-boot/master' into 'u-boot-arm/master' (

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

2015-05-12 Thread Simon Glass
Hi, On 12 May 2015 at 19:09, Fan Peng wrote: > > Hi, > > Is there any further comments? Or this patch will be applied? > I can apply it if you like - Heiko what do you prefer? - Simon > Regards, > Peng. > > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf O

Re: [U-Boot] [PATCH v1 1/4] Kconfig: Enable usage of escape char '\' in string values

2015-05-12 Thread Masahiro Yamada
Hi, Simon, Stefan, 2015-05-12 7:41 GMT+09:00 Simon Glass : > Hi Stefan, > > On 11 May 2015 at 07:27, Stefan Roese wrote: >> Hi Simon, Hi Masahiro, >> >> >> On 11.05.2015 09:58, Stefan Roese wrote: >>> >>> On 10.05.2015 16:48, Simon Glass wrote: On 7 May 2015 at 06:13, Stefan Roese wro

Re: [U-Boot] [PATCH] Clean all defconfigs with savedefconfig

2015-05-12 Thread Masahiro Yamada
Hi. I was a little late... 2015-05-13 1:32 GMT+09:00 Tom Rini : > On Tue, May 12, 2015 at 11:20:07AM -0500, Joe Hershberger wrote: >> Hi Tom, >> >> On Tue, May 12, 2015 at 10:18 AM, Tom Rini wrote: >> > On Mon, May 11, 2015 at 01:32:40PM -0500, Joe Hershberger wrote: >> >> Hi Tom, >> >> >> >> On

Re: [U-Boot] [PATCH v3 1/2] arch: Make board selection choices optional

2015-05-12 Thread Masahiro Yamada
Hi Joe, 2015-05-13 7:12 GMT+09:00 Tom Rini : > diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig > index c044ad4..85fddd2 100644 > --- a/arch/arc/Kconfig > +++ b/arch/arc/Kconfig > @@ -132,6 +132,7 @@ config ARC_CACHE_LINE_SHIFT > > choice > prompt "Target select" > + optional > >

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

2015-05-12 Thread Fan Peng
Hi, Is there any further comments? Or this patch will be applied? Regards, Peng. -Original Message- From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass Sent: Wednesday, May 06, 2015 4:56 AM To: Fan Peng-B51431 Cc: Stefano Babic; Heiko Schocher; Marek VaĊĦut; Nikita Kir

Re: [U-Boot] [PATCH 08/19] imx: ventana: config: use MMC SPL RAW support

2015-05-12 Thread Tim Harvey
On Fri, May 8, 2015 at 6:36 PM, Fabio Estevam wrote: > Hi Tim, > > On Fri, May 8, 2015 at 10:28 PM, Tim Harvey wrote: >> Switch to MMC RAW support for SPL. We will place the uboot.img at 69KB. >> >> Signed-off-by: Tim Harvey >> --- >> include/configs/gw_ventana.h | 6 ++ >> 1 file changed,

[U-Boot] [PATCH 0/4] arm: mvebu: Allow DB-88F6820-GP to boot Linux

2015-05-12 Thread Kevin Smith
Changes needed to allow the DB-88F6820-GP development board to successfully boot a Linux kernel. Kevin Smith (3): arm: mvebu: Update CBAR with SOC regs base mv-common.h: Include support for device trees db-88f6820-gp.h: Load data blobs into lower memory Stefan Roese (1): arm: mvebu: Disab

[U-Boot] [PATCH 4/4] db-88f6820-gp.h: Load data blobs into lower memory

2015-05-12 Thread Kevin Smith
By default on this platform, u-boot loads data into high memory in the range of 0x7Fxx, which generates a data abort when the kernel tries to read it. Config the u-boot environment to load the device tree and initrd image into lower memory to make them accessible to the kernel. Signed-off-by:

[U-Boot] [PATCH 2/4] arm: mvebu: Update CBAR with SOC regs base

2015-05-12 Thread Kevin Smith
SMP-enabled Linux kernels read the CBAR register in CP15 to find the address of the SCU registers. After remapping internal registers, also update the CBAR so the kernel can find them. Signed-off-by: Kevin Smith --- arch/arm/mach-mvebu/cpu.c | 7 +++ 1 file changed, 7 insertions(+) diff --

[U-Boot] [PATCH 1/4] arm: mvebu: Disable L2 cache before enabling d-cache

2015-05-12 Thread Kevin Smith
From: Stefan Roese L2 cache may still be enabled by the BootROM. We need to first disable it before enabling d-cache support. Signed-off-by: Stefan Roese Signed-off-by: Kevin Smith --- arch/arm/mach-mvebu/cpu.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-mvebu/cp

[U-Boot] [PATCH 0/4] arm: mvebu: Allow DB-88F6820-GP to boot Linux

2015-05-12 Thread Kevin Smith
Changes needed to allow the DB-88F6820-GP development board to successfully boot a Linux kernel. Kevin Smith (3): arm: mvebu: Update CBAR with SOC regs base mv-common.h: Include support for device trees db-88f6820-gp.h: Load data blobs into lower memory Stefan Roese (1): arm: mvebu: Disab

[U-Boot] [PATCH 3/4] mv-common.h: Include support for device trees

2015-05-12 Thread Kevin Smith
Signed-off-by: Kevin Smith --- include/configs/mv-common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/mv-common.h b/include/configs/mv-common.h index 51436da..03518b0 100644 --- a/include/configs/mv-common.h +++ b/include/configs/mv-common.h @@ -59,6 +59,8 @@ #define C

Re: [U-Boot] [PATCH 17/24] sandbox: spi: Add newline to printf() in sandbox_sf_probe

2015-05-12 Thread Simon Glass
On 7 May 2015 at 23:58, Jagan Teki wrote: > On 5 May 2015 at 02:36, Joe Hershberger wrote: >> Hi Simon, >> >> On Mon, May 4, 2015 at 12:31 PM, Simon Glass wrote: >>> This printf() should have a newline at the end. Add it. >>> >>> Signed-off-by: Simon Glass >>> --- >> Reviewed-by: Joe Hershberge

Re: [U-Boot] [PATCH 18/24] sandbox: Fix warning in display_options

2015-05-12 Thread Simon Glass
On 4 May 2015 at 15:45, Joe Hershberger wrote: > Hi Simon, > > On Mon, May 4, 2015 at 12:31 PM, Simon Glass wrote: >> This fixes a warning in the print_buffer() function with some toolchains. >> >> Signed-off-by: Simon Glass >> --- > Reviewed-by: Joe Hershberger Applied to u-boot-dm. _

Re: [U-Boot] [PATCH 19/24] sandbox: Support wide-screen LCD emulation

2015-05-12 Thread Simon Glass
On 4 May 2015 at 15:36, Simon Glass wrote: > Hi Joe, > > On 4 May 2015 at 15:27, Joe Hershberger wrote: >> Hi Simon, >> >> On Mon, May 4, 2015 at 12:31 PM, Simon Glass wrote: >>> Increase the LCD size to 1366x768. >>> >>> Signed-off-by: Simon Glass >>> --- >> >> Is this actually emulated someho

Re: [U-Boot] [PATCH 15/24] sandbox: Add missing errno.h includes in a few files

2015-05-12 Thread Simon Glass
On 4 May 2015 at 11:31, Simon Glass wrote: > These files use error numbering, so add the include. > > Signed-off-by: Simon Glass > --- > > arch/sandbox/cpu/start.c | 1 + > drivers/misc/i2c_eeprom_emul.c | 1 + > drivers/misc/swap_case.c | 1 + > 3 files changed, 3 insertions(+) App

Re: [U-Boot] [PATCH 16/24] sandbox: cros_ec: Support EC_CMD_ENTERING_MODE emulation

2015-05-12 Thread Simon Glass
On 4 May 2015 at 11:31, Simon Glass wrote: > Emualate this function which is used with Chrome OS verified boot. > > Signed-off-by: Simon Glass > --- > > drivers/misc/cros_ec_sandbox.c | 2 ++ > include/ec_commands.h | 15 +++ > 2 files changed, 17 insertions(+) > Applied t

Re: [U-Boot] [PATCH 14/24] sandbox: Correct error handling in state_read_file()

2015-05-12 Thread Simon Glass
On 4 May 2015 at 15:12, Joe Hershberger wrote: > Hi Simon, > > On Mon, May 4, 2015 at 12:31 PM, Simon Glass wrote: >> This function should return a useful error for U-Boot, rather than -1. >> >> Signed-off-by: Simon Glass >> --- > Reviewed-by: Joe Hershberger Applied to u-boot-dm.

Re: [U-Boot] [PATCH 09/24] arm: Include the .got section in the binary

2015-05-12 Thread Simon Glass
On 4 May 2015 at 11:31, Simon Glass wrote: > Commit 47ed5dd0 dropped the .got section from U-Boot binaries. This is needed > for some relocations, and causes failures if missing. Add it back. > > Signed-off-by: Simon Glass > --- > > arch/arm/config.mk | 3 ++- > 1 file changed, 2 insertions(+),

Re: [U-Boot] [PATCH 07/24] tpm: Rename Infineon TPM to slb9645tt

2015-05-12 Thread Simon Glass
On 4 May 2015 at 11:31, Simon Glass wrote: > This name is used in Linux, so use it in U-Boot. > > Signed-off-by: Simon Glass > --- > > arch/arm/dts/exynos5420-peach-pit.dts | 2 +- > arch/arm/dts/exynos5800-peach-pi.dts | 2 +- > lib/fdtdec.c | 2 +- > 3 files changed,

Re: [U-Boot] [PATCH 10/24] arm: Add a prototype for save_boot_params_ret()

2015-05-12 Thread Simon Glass
On 4 May 2015 at 15:09, Joe Hershberger wrote: > Hi Simon, > > On Mon, May 4, 2015 at 12:31 PM, Simon Glass wrote: >> It is convenient for some boards to implement save_boot_params() in C rather >> than assembler. Provide a way to return in this case. >> >> Signed-off-by: Simon Glass >> --- > Re

Re: [U-Boot] [PATCH 08/24] dm: gpio: Fix comment typo in GPIOD_IS_IN

2015-05-12 Thread Simon Glass
On 4 May 2015 at 11:31, Simon Glass wrote: > This should say 'in', not 'out'. > > Signed-off-by: Simon Glass > --- > > include/asm-generic/gpio.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm. ___ U-Boot mailing list U-B

Re: [U-Boot] [PATCH 06/24] tpm: Support using driver model with I2C

2015-05-12 Thread Simon Glass
On 4 May 2015 at 11:30, Simon Glass wrote: > As a first step towards converting the TPM system to driver model, allow it > to work with CONFIG_DM_I2C. > > Signed-off-by: Simon Glass > --- > > drivers/tpm/tpm.c | 89 +- > drivers/tpm/tpm_private.h | 3 ++ >

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

2015-05-12 Thread Simon Glass
On 5 May 2015 at 23:37, Heiko Schocher wrote: > 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 >> --- >> >> drivers/i2c/i2c-uclass.c | 7 +++ >> include/i2c.h

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

2015-05-12 Thread Simon Glass
On 6 May 2015 at 08:34, Simon Glass wrote: > Hi Heiko, > > On 5 May 2015 at 23:44, Heiko Schocher wrote: >> 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 >>> ---

Re: [U-Boot] [PATCH 03/24] bootstage: Add IDs for SPI flash reading and decompression

2015-05-12 Thread Simon Glass
On 7 May 2015 at 23:58, Jagan Teki wrote: > On 5 May 2015 at 02:27, Joe Hershberger wrote: >> Hi Simon, >> >> On Mon, May 4, 2015 at 12:30 PM, Simon Glass wrote: >>> We maintain an accumulator for time spent reading from SPI flash, since >>> this can be significant on some platforms. Also add on

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

2015-05-12 Thread Simon Glass
Hi Hans, On 12 May 2015 at 01:23, Hans de Goede wrote: > > Hi Simon, > > > On 12-05-15 00:37, Simon Glass wrote: >> >> On 10 May 2015 at 06:10, Hans de Goede wrote: >>> >>> This commit adds support for the OHCI companion controller, which makes >>> usb-1 devices directly plugged into to usb root

[U-Boot] [PATCH] board: add support for Vision System's Baltos Industrial PC

2015-05-12 Thread Felipe Balbi
From: Yegor Yefremov Vision Systems's Baltos is based on AM335x SoC from Texas Instruments. This patch adds support such Industrial PCs in mainline u-boot. [ ba...@ti.com: updated original patch to current u-boot ] Signed-off-by: Yegor Yefremov Signed-off-by: Felipe Balbi --- This is a respi

Re: [U-Boot] [PATCH v3 2/2] Clean all defconfigs with savedefconfig

2015-05-12 Thread Tom Rini
On Tue, May 12, 2015 at 02:46:24PM -0500, Joe Hershberger wrote: > In order to reduce merge conflicts and to maintain the simplest possible > defconfig files, we should be using the savedefconfig feature of Kconfig > every time a new feature is added. This keeps the defconfig settings to > a minim

Re: [U-Boot] [PATCH v3 1/2] arch: Make board selection choices optional

2015-05-12 Thread Tom Rini
On Tue, May 12, 2015 at 02:46:23PM -0500, Joe Hershberger wrote: > By making the board selections optional, every defconfig will include > the board selection when running savedefconfig so if a new board is > added to the top of the list of choices the former top's defconfig will > still be correc

Re: [U-Boot] [PATCH v3 1/2] arch: Make board selection choices optional

2015-05-12 Thread Joe Hershberger
Hi Tom, On Tue, May 12, 2015 at 4:55 PM, Stephen Warren wrote: > On 05/12/2015 01:46 PM, Joe Hershberger wrote: >> >> By making the board selections optional, every defconfig will include >> the board selection when running savedefconfig so if a new board is >> added to the top of the list of cho

Re: [U-Boot] [PATCH v3 1/2] arch: Make board selection choices optional

2015-05-12 Thread Stephen Warren
On 05/12/2015 01:46 PM, Joe Hershberger wrote: By making the board selections optional, every defconfig will include the board selection when running savedefconfig so if a new board is added to the top of the list of choices the former top's defconfig will still be correct. The series, Acked-by

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

2015-05-12 Thread Tom Warren
Tom, Please pull u-boot-tegra/master into u-boot/master. ./MAKEALL -s tegra is clean. Thanks. The following changes since commit b939689c7b87773c44275a578ffc8674a867e39d: Merge branch 'u-boot/master' into 'u-boot-arm/master' (2015-05-05 10:09:06 +0200) are available in the git repository at:

Re: [U-Boot] [PATCH] serial: stm32: Automatically generate CR when LF is observed

2015-05-12 Thread Tom Rini
On Tue, May 12, 2015 at 10:35:55PM +0200, Kamil Lulko wrote: > Strange, this was already posted by Kunhua Huang - then reverted in > commit 698a12bef9e782dcd99c555a739c16eec8669f14. Anyway, yes this > carriage return should be added there. I simply forgot it since I had > implicit CR for each LF t

Re: [U-Boot] U-Boot 2015.04 failing to build with GCC 5.1

2015-05-12 Thread Otavio Salvador
On Tue, May 12, 2015 at 6:13 PM, Peter Robinson wrote: > On Tue, May 12, 2015 at 10:00 PM, Otavio Salvador > wrote: >> Hello, >> >> We are working at enabling GCC 5.1 at the Yocto Project and we found a >> build error: > > On Fedora we've been building with gcc5 for some time, Hans added > suppor

Re: [U-Boot] U-Boot 2015.04 failing to build with GCC 5.1

2015-05-12 Thread Peter Robinson
Hi, On Tue, May 12, 2015 at 10:00 PM, Otavio Salvador wrote: > Hello, > > We are working at enabling GCC 5.1 at the Yocto Project and we found a > build error: On Fedora we've been building with gcc5 for some time, Hans added support for it in the following commit http://git.denx.de/?p=u-boot.g

[U-Boot] [PATCH v2 11/18] dm: Reduce SPL device tree size

2015-05-12 Thread Simon Glass
The SPL device tree size must be minimised to save memory. Only include properties that are needed by SPL - this is determined by the presence of the "u-boot,dm-pre-reloc" property. Also remove a predefined list of unused properties from the nodes that remain. Signed-off-by: Simon Glass --- Chan

[U-Boot] [PATCH v2 10/18] fdt: Add fdtgrep tool

2015-05-12 Thread Simon Glass
This tool allows us to extract subsets of a device tree file. It is used by the SPL vuild, which needs to cut down the device tree size for use in limited memory. This tool was originally written for libfdt but it has not been accepted upstream, so for now, include it in U-Boot. Several utilfdt li

[U-Boot] [PATCH v2 09/18] fdt: Add fdt_first/next_region() functions

2015-05-12 Thread Simon Glass
These have been sent upstream but not accessed to libfdt. For now, bring these into U-Boot to enable fdtgrep to operate. We will use fdtgrep to cut device tree files down for SPL. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch with fdt_first/next_region() functions include/libfd

[U-Boot] [PATCH] tools: use pkg-config when available to get SSL flags

2015-05-12 Thread Thomas Petazzoni
Instead of hardcoding -lssl -lcrypto as the flags needed to build mkimage with FIT signature enabled, use pkg-config when available. This allows to properly support cases where static linking is used, which requires linking with -lz, since OpenSSL uses zlib internally. We gracefully fallback on th

[U-Boot] U-Boot 2015.04 failing to build with GCC 5.1

2015-05-12 Thread Otavio Salvador
Hello, We are working at enabling GCC 5.1 at the Yocto Project and we found a build error: make -f ../scripts/Makefile.build obj=examples/standalone arm-oel-linux-gnueabi-ld.bfd -pie --gc-sections -Bstatic -Ttext 0x40002000 -o u-boot -T u-boot.lds arch/arm/cpu/arm926ejs/start.o --start-group

[U-Boot] [PATCH v2 00/18] dm: Introduce device tree support in SPL (for Rockchip)

2015-05-12 Thread Simon Glass
With driver model SPL support in place the remaining driver difference between U-Boot proper and SPL is that SPL does not support device tree. This series adds this support, using a Rockchip board as an example. One problem with device tree is that U-Boot has no way of dropping features it does no

[U-Boot] [PATCH v2 15/18] rockchip: Add basic support for firefly-rk3288

2015-05-12 Thread Simon Glass
The Firefly RK3288 is a suitable target board for initial mainline Rockchip support. It includes a good set of peripherals, a recent SoC and it is readily available. This adds only some basic files required to allow the baord to display a serial message in SPL and hang. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 18/18] rockchip: Add basic support for jerry

2015-05-12 Thread Simon Glass
This builds and displays an SPL message, but does not function beyond that. Signed-off-by: Simon Glass --- Changes in v2: - Tidy up license headers and remove SPL #ifdefs arch/arm/dts/Makefile | 3 +- arch/arm/dts/cros-ec-sbs.dtsi | 16 + arch/arm/dts/rk328

[U-Boot] [PATCH v2 12/18] dm: rockchip: Add serial support

2015-05-12 Thread Simon Glass
Add support for the Rockchip serial device using the ns16550 driver. This uses driver model and device tree for both SPL and U-Boot proper. Signed-off-by: Simon Glass --- Changes in v2: None drivers/serial/Kconfig | 9 + drivers/serial/Makefile | 1 + drivers/seria

[U-Boot] [PATCH v2 08/18] fdt: Add a function to remove unused strings from a device tree

2015-05-12 Thread Simon Glass
Property names are stored in a string table. When a node property is removed, the string table is not updated since other nodes may have a property with the same name. Thus it is possible for the string table to build up a number of unused strings. Add a function to remove these. This works by bui

[U-Boot] [PATCH v2 16/18] rockchip: Add the beginnings of an image tool

2015-05-12 Thread Simon Glass
Rockchip SoCs require certain formats for code that they execute, The simplest format is a 4-byte header at the start of a binary file. Add support for this intiially. Signed-off-by: Simon Glass --- Changes in v2: None common/image.c | 1 + include/image.h | 3 ++- tools/Makefile | 1 + t

[U-Boot] [PATCH v2 14/18] rockchip: Add base SoC files

2015-05-12 Thread Simon Glass
Add some basic files required to allow the SoC to start up. This is a minimal set, enough only to display a serial message in SPL and hang. Signed-off-by: Simon Glass --- Changes in v2: - Tidy up license headers arch/arm/Kconfig | 16 +++ arch/arm/Makefile

[U-Boot] [PATCH v2 17/18] rockchip: Add a simple README

2015-05-12 Thread Simon Glass
Add a few notes on how to try out the Rockchip support so far. Signed-off-by: Simon Glass --- Changes in v2: None doc/README.rockchip | 83 + 1 file changed, 83 insertions(+) create mode 100644 doc/README.rockchip diff --git a/doc/README.ro

[U-Boot] [PATCH v2 05/18] Add a simple version of memalign()

2015-05-12 Thread Simon Glass
This is used when the full malloc() is not available. Signed-off-by: Simon Glass --- Changes in v2: - Add a new patch for memalign_simple() common/malloc_simple.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/common/malloc_simple.c b/common/malloc_simple.c index d445199..

[U-Boot] [PATCH v2 07/18] mkimage: Display a better list of available image types

2015-05-12 Thread Simon Glass
Offer to display the available image types in help. Also, rather than hacking the genimg_get_type_id() function to display a list of types, do this in the tool. Also, sort the list. The list of image types is quite long, and hard to discover. Print it out when we show help information. Signed-off

[U-Boot] [PATCH v2 13/18] rockchip: Bring in RK3288 device tree file includes and bindings

2015-05-12 Thread Simon Glass
Bring in required device tree files from Linux. Since mainline Linux is somewhat behind, use the files from the Chromium tree. We can re-sync once further code is acccepted upstream. Signed-off-by: Simon Glass --- Changes in v2: - Tidy up license headers and remove SPL #ifdefs arch/arm/dts/rk3

[U-Boot] [PATCH v2 04/18] dm: serial: Don't support CONFIG_CONS_INDEX with device tree

2015-05-12 Thread Simon Glass
This feature should be deprecated for new boards, and significantly adds to SPL code size. Drop it. Instead, we can use stdout-path in the /chosen node. Signed-off-by: Simon Glass --- Changes in v2: None drivers/serial/serial-uclass.c | 69 ++ 1 file cha

[U-Boot] [PATCH v2 06/18] Remove SPL undefine of CONFIG_OF_CONTROL

2015-05-12 Thread Simon Glass
Allow SPL to be built with this option so that we can support device tree control. Disable the simple bus for now in SPL. It may be needed later. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/Makefile | 2 ++ include/config_uncmd_spl.h | 2 ++ scripts/Makefile.uncmd_spl

[U-Boot] [PATCH v2 01/18] dm: ns16550: Support CONFIG_SYS_NS16550_MEM32 with driver model

2015-05-12 Thread Simon Glass
This option is used by some boards, so support it with driver model. This is really ugly - we should rewrite this driver once all users are moved to driver model. Signed-off-by: Simon Glass --- Changes in v2: - Simplify the support for CONFIG_SYS_NS16550_MEM32 drivers/serial/ns16550.c | 4

[U-Boot] [PATCH v2 02/18] fdt: arm: Drop device tree padding

2015-05-12 Thread Simon Glass
The 4KB padding doesn't seem necessary since we don't normally adjust the control device tree file within U-Boot. Also drop the memory table space. Signed-off-by: Simon Glass --- Changes in v2: - Also drop the memory table space arch/arm/dts/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1

[U-Boot] [PATCH v2 03/18] dts: Disable device tree for SPL on all boards

2015-05-12 Thread Simon Glass
We plan to enable device tree in SPL by default. Before doing this, explicitly disable it for all boards. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/Kconfig | 2 ++ arch/arm/cpu/armv7/exynos/Kconfig| 8 arch/arm/cpu/armv7/s5pc1xx/Kconfi

Re: [U-Boot] [RFC] FIT: use default configuration, if given configuration is not found

2015-05-12 Thread Joe Hershberger
Hi Yegor, On Tue, May 12, 2015 at 3:41 PM, Yegor Yefremov wrote: > Hi Joe, > > On Tue, May 12, 2015 at 10:18 PM, Joe Hershberger > wrote: >> Hi Yegor, >> >> On Tue, May 12, 2015 at 1:43 AM, Yegor Yefremov >> wrote: >>> Hi Joe, >>> >>> On Mon, May 4, 2015 at 8:16 PM, Joe Hershberger >>> wrote:

Re: [U-Boot] [RFC] FIT: use default configuration, if given configuration is not found

2015-05-12 Thread Yegor Yefremov
Hi Joe, On Tue, May 12, 2015 at 10:18 PM, Joe Hershberger wrote: > Hi Yegor, > > On Tue, May 12, 2015 at 1:43 AM, Yegor Yefremov > wrote: >> Hi Joe, >> >> On Mon, May 4, 2015 at 8:16 PM, Joe Hershberger >> wrote: >>> Hi Yegor, >>> >>> On Mon, May 4, 2015 at 2:53 AM, wrote: From: Yegor Ye

Re: [U-Boot] [PATCH] serial: stm32: Automatically generate CR when LF is observed

2015-05-12 Thread Kamil Lulko
Strange, this was already posted by Kunhua Huang - then reverted in commit 698a12bef9e782dcd99c555a739c16eec8669f14. Anyway, yes this carriage return should be added there. I simply forgot it since I had implicit CR for each LF turned on in my terminal. Never thought this would cause so much havoc

Re: [U-Boot] [RFC] FIT: use default configuration, if given configuration is not found

2015-05-12 Thread Joe Hershberger
Hi Yegor, On Tue, May 12, 2015 at 1:43 AM, Yegor Yefremov wrote: > Hi Joe, > > On Mon, May 4, 2015 at 8:16 PM, Joe Hershberger > wrote: >> Hi Yegor, >> >> On Mon, May 4, 2015 at 2:53 AM, wrote: >>> From: Yegor Yefremov >>> >>> Signed-off-by: Yegor Yefremov >>> --- >>> common/image-fit.c |

[U-Boot] [PATCH v3 1/2] arch: Make board selection choices optional

2015-05-12 Thread Joe Hershberger
By making the board selections optional, every defconfig will include the board selection when running savedefconfig so if a new board is added to the top of the list of choices the former top's defconfig will still be correct. Signed-off-by: Joe Hershberger Cc: Masahiro Yamada Cc: Stephen Warre

Re: [U-Boot] [PATCH v2 1/2] kconfig: Make board selection choices optional

2015-05-12 Thread Joe Hershberger
Hi Stephen, On Tue, May 12, 2015 at 2:31 PM, Stephen Warren wrote: > On 05/12/2015 12:01 PM, Joe Hershberger wrote: >> >> By making the board selections optional, every defconfig will include >> the board selection when running savedefconfig so if a new board is >> added to the top of the list of

Re: [U-Boot] [PATCH v2 1/2] kconfig: Make board selection choices optional

2015-05-12 Thread Stephen Warren
On 05/12/2015 12:01 PM, Joe Hershberger wrote: By making the board selections optional, every defconfig will include the board selection when running savedefconfig so if a new board is added to the top of the list of choices the former top's defconfig will still be correct. From a Tegra perspec

Re: [U-Boot] [PATCH] usb: kbd: Fix key repeat not always using

2015-05-12 Thread Marek Vasut
On Tuesday, May 12, 2015 at 06:58:23 PM, Hans de Goede wrote: > The usb-kbd key repeat code assumes that reports get repeated every 40 ms, > this is never true when using CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP, and > does not always works for CONFIG_SYS_USB_EVENT_POLL and > CONFIG_SYS_USB_EVENT_P

[U-Boot] [PATCH] serial: stm32: Automatically generate CR when LF is observed

2015-05-12 Thread Daniel Thompson
Currently the u-boot output looks rather odd when running the minicom terminal emulator in its default mode (just a string of "random" looking text down the right hand side of the screen). This is caused by a combination of minicom not automatically wrapping lines and the stm32 serial driver never

[U-Boot] [PATCH] beagle-xm: gpio_63 fix wrong pin initialization

2015-05-12 Thread Evgeniy Dushistov
DM3730 CPU used on beagleboard-xm doesn't have any gpio multiplexed with wait0 pin, but gpio_63 multiplexed with wait1, so it looks like typo. At current form it has no sense, because of wait0 have no function "4". Signed-off-by: Evgneiy A. Dushistov --- board/ti/beagle/beagle.h | 2 +- 1 file

Re: [U-Boot] [PATCH 2/6] dm: gpio: hi6220: Add a hi6220 GPIO driver model driver.

2015-05-12 Thread Tom Rini
On Tue, May 12, 2015 at 08:36:30PM +0200, Marek Vasut wrote: > On Tuesday, May 12, 2015 at 03:38:28 PM, Peter Griffin wrote: [snip] > > +#define BIT(x) (1 << (x)) > > This macro should be placed into common header files. We'll fix that once Jagan's series comes in which gives

Re: [U-Boot] [PATCH] ppc: xilinx: Remove ancient ppc405 and ppc440 platform

2015-05-12 Thread Georg Schardt
Hello, yes, we have still some fx12mm in use and i can try to compile and run the newest u-boot in the next few days. regards Georg Am 12.05.2015 um 16:19 schrieb Ricardo Ribalda Delgado: > Hello > > I have followed doc/README.generic-board and simply adding > CONFIG_SYS_GENERIC_BOARD does the

[U-Boot] Patch to enable LEDs on sunxi/Cubietruck

2015-05-12 Thread Prof. Dr. Gundolf Kiefer
Dear developers, the attached patch adds LED support for the Cubietruck board. I found that the support for the onboard leds is missing for sunxi-based boards in the latest Debian unstable and perhaps upstream version of U-Boot. IMHO LEDs are very helpful for headless systems. Perhaps the patch c

Re: [U-Boot] [PATCH 5/6] mmc: hi6220_dw_mmc: Add hi6220 glue code for dw_mmc controller.

2015-05-12 Thread Marek Vasut
On Tuesday, May 12, 2015 at 03:38:31 PM, Peter Griffin wrote: > This patch adds the glue code for hi6220 SoC which has 2x synopsis > dw_mmc controllers. This will be used by the hikey board support > in subsequent patches. > > Signed-off-by: Peter Griffin [...] > diff --git a/drivers/mmc/hi6220

Re: [U-Boot] [PATCH 1/6] usb: dwc2: Add support for v3 snpsid value

2015-05-12 Thread Marek Vasut
On Tuesday, May 12, 2015 at 03:38:27 PM, Peter Griffin wrote: > This has been tested to the extent that I can enumerate > a asix usb networking adapter and boot a kernel over usb > on the 96boards hikey u-boot port I'm currently doing. > > Signed-off-by: Peter Griffin > --- > drivers/usb/host/dw

Re: [U-Boot] [PATCH 2/6] dm: gpio: hi6220: Add a hi6220 GPIO driver model driver.

2015-05-12 Thread Marek Vasut
On Tuesday, May 12, 2015 at 03:38:28 PM, Peter Griffin wrote: Hi! > This patch adds support for the GPIO perif found on hi6220 > SoC. > > Signed-off-by: Peter Griffin > --- > arch/arm/include/asm/arch-armv8/gpio.h | 47 + > drivers/gpio/Makefile | 2 + > drive

Re: [U-Boot] [PATCH 6/6] ARM64: HiKey: hi6220: Add u-boot support for the 96boards CE HiKey board.

2015-05-12 Thread Rob Herring
On Tue, May 12, 2015 at 8:25 AM, Peter Griffin wrote: > HiKey is the first 96boards consumer edition compliant board. It features a > hi6220 > SoC which has eight ARM A53 cpu's. > > This initial port adds support for: - > 1) Serial > 2) eMMC / sd card > 3) USB > 4) GPIO > > It has been tested wit

[U-Boot] [PATCH v2 1/2] kconfig: Make board selection choices optional

2015-05-12 Thread Joe Hershberger
By making the board selections optional, every defconfig will include the board selection when running savedefconfig so if a new board is added to the top of the list of choices the former top's defconfig will still be correct. Signed-off-by: Joe Hershberger Cc: Masahiro Yamada Cc: Stephen Warre

Re: [U-Boot] [PATCH] usb: kbd: Fix key repeat not always using

2015-05-12 Thread Michael Trimarchi
Hi On Tue, May 12, 2015 at 6:58 PM, Hans de Goede wrote: > The usb-kbd key repeat code assumes that reports get repeated every 40 ms, > this is never true when using CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP, and > does not always works for CONFIG_SYS_USB_EVENT_POLL and > CONFIG_SYS_USB_EVENT_POLL

[U-Boot] [PATCH] usb: kbd: Fix key repeat not always using

2015-05-12 Thread Hans de Goede
The usb-kbd key repeat code assumes that reports get repeated every 40 ms, this is never true when using CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP, and does not always works for CONFIG_SYS_USB_EVENT_POLL and CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE since not all usb keyboards honor the usb_set_idle()

Re: [U-Boot] [PATCH] Clean all defconfigs with savedefconfig

2015-05-12 Thread Tom Rini
On Tue, May 12, 2015 at 11:20:07AM -0500, Joe Hershberger wrote: > Hi Tom, > > On Tue, May 12, 2015 at 10:18 AM, Tom Rini wrote: > > On Mon, May 11, 2015 at 01:32:40PM -0500, Joe Hershberger wrote: > >> Hi Tom, > >> > >> On Mon, May 11, 2015 at 12:08 PM, Joe Hershberger > >> wrote: > >> > In ord

Re: [U-Boot] [PATCH] Clean all defconfigs with savedefconfig

2015-05-12 Thread Joe Hershberger
Hi Tom, On Tue, May 12, 2015 at 10:18 AM, Tom Rini wrote: > On Mon, May 11, 2015 at 01:32:40PM -0500, Joe Hershberger wrote: >> Hi Tom, >> >> On Mon, May 11, 2015 at 12:08 PM, Joe Hershberger >> wrote: >> > In order to reduce merge conflicts and to maintain the simplest possible >> > defconfig f

[U-Boot] [PATCH] warp: README: Fix typo

2015-05-12 Thread Fabio Estevam
Fix the spelling of 'successful'. Signed-off-by: Fabio Estevam --- board/warp/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/warp/README b/board/warp/README index 0e1f076..db3100e 100644 --- a/board/warp/README +++ b/board/warp/README @@ -43,8 +43,8 @@ Trans

Re: [U-Boot] [PATCH v2 0/5] Introduce BIT and GENMASK

2015-05-12 Thread Marek Vasut
On Tuesday, May 12, 2015 at 05:02:37 PM, Tom Rini wrote: > On Tue, May 12, 2015 at 01:33:39PM +0200, Marek Vasut wrote: > > On Tuesday, May 12, 2015 at 01:25:30 PM, Jagan Teki wrote: > > > On 10 May 2015 at 20:52, Jagan Teki wrote: > > > > I have sent one v1 for BIT macro change for entire u-boot,

Re: [U-Boot] [PATCH] Clean all defconfigs with savedefconfig

2015-05-12 Thread Tom Rini
On Mon, May 11, 2015 at 01:32:40PM -0500, Joe Hershberger wrote: > Hi Tom, > > On Mon, May 11, 2015 at 12:08 PM, Joe Hershberger > wrote: > > In order to reduce merge conflicts and to maintain the simplest possible > > defconfig files, we should be using the savedefconfig feature of Kconfig > > e

Re: [U-Boot] Patch to enable LEDs on sunxi/Cubietruck

2015-05-12 Thread Hans de Goede
Hi, On 05/12/2015 03:39 PM, Prof. Dr. Gundolf Kiefer wrote: Dear developers, the attached patch adds LED support for the Cubietruck board. I found that the support for the onboard leds is missing for sunxi-based boards in the latest Debian unstable and perhaps upstream version of U-Boot. IMHO

Re: [U-Boot] [PATCH] env_mmc: avoid stack allocation for env

2015-05-12 Thread Tom Rini
On Mon, May 11, 2015 at 12:08:25PM -0700, Tim Harvey wrote: > On Fri, May 8, 2015 at 4:14 PM, Tom Rini wrote: > > On Sat, May 09, 2015 at 12:15:37AM +0200, Marek Vasut wrote: > >> On Friday, May 08, 2015 at 11:51:36 PM, Tim Harvey wrote: > >> > Allocating space for temporary env on the stack makes

Re: [U-Boot] [PATCH] ppc: xilinx: Remove ancient ppc405 and ppc440 platform

2015-05-12 Thread Tom Rini
On Tue, May 12, 2015 at 04:19:52PM +0200, Ricardo Ribalda Delgado wrote: > Hello > > I have followed doc/README.generic-board and simply adding > CONFIG_SYS_GENERIC_BOARD does the trick. > > So far it has build with no warnings for: > > ml507 > ml507_flash > xilinx-ppc440-generic > v5fx30teval

Re: [U-Boot] [PATCH v2 0/5] Introduce BIT and GENMASK

2015-05-12 Thread Tom Rini
On Tue, May 12, 2015 at 01:33:39PM +0200, Marek Vasut wrote: > On Tuesday, May 12, 2015 at 01:25:30 PM, Jagan Teki wrote: > > On 10 May 2015 at 20:52, Jagan Teki wrote: > > > I have sent one v1 for BIT macro change for entire u-boot, > > > but this time I'm just introduce by changing this with spi

Re: [U-Boot] [PATCH] ppc: xilinx: Remove ancient ppc405 and ppc440 platform

2015-05-12 Thread Ricardo Ribalda Delgado
Hello Georg Please make sure this patch is applied: http://lists.denx.de/pipermail/u-boot/2015-May/214017.html when you test it. Thanks! On Tue, May 12, 2015 at 4:27 PM, Georg Schardt wrote: > Hello, > > yes, we have still some fx12mm in use and i can try to compile and run > the newest u-b

  1   2   >