Re: [U-Boot] [PATCH] fdt: fix fdtdec_get_pci_addr() for CONFIG_PHYS_64BIT

2015-10-06 Thread Thierry Reding
On Fri, Oct 02, 2015 at 05:44:06PM -0600, Stephen Warren wrote: > From: Stephen Warren > > PCI addresses are always represented as 3 cells in DT. (one cell for bus > and device, and two cells for a 64-bit addres). This does not vary based > on either the physical address size

Re: [U-Boot] [PATCH 2/6] ARM: tegra: create common XUSB padctl driver file

2015-10-06 Thread Thierry Reding
On Mon, Oct 05, 2015 at 04:59:17PM -0600, Stephen Warren wrote: [...] > It'd be nice if "git format-patch -C" recognized this as a copy, since > that's why I created a separate patch, but it doesn't seem to:-( Have you tried tuning the behaviour by passing the similarity index to -C? I've had

[U-Boot] Inconsistencies in commands regarding load_addr

2015-10-06 Thread Benoît Thébaudeau
Hi all, I've just noticed that before the commit 045fa1e1142552799ad3203e9e0bc22a11e866ea, ext2load and ext4load were setting the load_addr global variable, but not fatload. Since then, none of these commands set load_addr (initially derived from the loadaddr environment variable). ubifsload

Re: [U-Boot] [PATCH v3 2/4] dm: tpm: Add Driver Model support for tpm_atmel_twi driver

2015-10-06 Thread Simon Glass
Hi Christophe, On 6 October 2015 at 16:18, Christophe Ricard wrote: > Hi Simon, > > This error is coming from the fact that no driver model is available for > powerpc and the config file mention in the error log > (controlcenterd_36BIT_SDCARD,

Re: [U-Boot] [PATCH 5/5] sbc8641d: enable and test CONFIG_SYS_GENERIC_BOARD

2015-10-06 Thread Paul Gortmaker
On 2015-10-05 08:53 PM, Paul Gortmaker wrote: > [Re: [U-Boot] [PATCH 5/5] sbc8641d: enable and test CONFIG_SYS_GENERIC_BOARD] > On 04/10/2015 (Sun 01:45) Masahiro Yamada wrote: > [...] > >> >> Any plan about this patch? >> >> I think this is the last non-generic board for PowerPC

Re: [U-Boot] [PATCH] nios2: convert do_reset to use dm cpu data

2015-10-06 Thread Simon Glass
Hi Thomas, On 5 October 2015 at 04:00, Thomas Chou wrote: > Convert do_reset to use dm cpu data. > > Signed-off-by: Thomas Chou > --- > arch/nios2/cpu/cpu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH] dm: core: Enable optional use of fdt_translate_address()

2015-10-06 Thread Simon Glass
Hi Stephen, On 5 October 2015 at 02:22, Stephen Warren wrote: > On 10/03/2015 07:02 PM, Simon Glass wrote: >> Hi Stephen, >> >> On 3 October 2015 at 20:17, Stephen Warren wrote: >>> On 10/03/2015 06:50 AM, Simon Glass wrote: Hi Stephen,

Re: [U-Boot] [PATCH v3 2/4] dm: tpm: Add Driver Model support for tpm_atmel_twi driver

2015-10-06 Thread Christophe Ricard
Hi Simon, This error is coming from the fact that no driver model is available for powerpc and the config file mention in the error log (controlcenterd_36BIT_SDCARD, controlcenterd_36BIT_SDCARD_DEVELOP, controlcenterd_TRAILBLAZER, controlcenterd_TRAILBLAZER_DEVELOP). Do you think converting

Re: [U-Boot] [PATCH 1/1] imximage: header.length of 4 is valid

2015-10-06 Thread Troy Kisky
On 10/6/2015 4:30 AM, stefano babic wrote: > Hi Troy, > > Am 06.10.2015 um 00:17 schrieb Troy Kisky: >> On 9/21/2015 2:02 PM, Troy Kisky wrote: >>> Signed-off-by: Troy Kisky >>> --- >>> tools/imximage.c | 4 ++-- >>> 1 file changed, 2 insertions(+), 2

Re: [U-Boot] Inconsistencies in commands regarding load_addr

2015-10-06 Thread Stephen Warren
On 10/06/2015 09:00 AM, Benoît Thébaudeau wrote: Hi all, I've just noticed that before the commit 045fa1e1142552799ad3203e9e0bc22a11e866ea, ext2load and ext4load were setting the load_addr global variable, but not fatload. Since then, none of these commands set load_addr (initially derived from

Re: [U-Boot] Inconsistencies in commands regarding load_addr

2015-10-06 Thread Benoît Thébaudeau
On Tue, Oct 6, 2015 at 8:09 PM, Stephen Warren wrote: > On 10/06/2015 09:00 AM, Benoît Thébaudeau wrote: >> >> Hi all, >> >> I've just noticed that before the commit >> 045fa1e1142552799ad3203e9e0bc22a11e866ea, ext2load and ext4load were >> setting the >> load_addr global

[U-Boot] [PATCH] nios2: clean up comments style in start.S

2015-10-06 Thread Thomas Chou
Clean up comments style in start.S. Signed-off-by: Thomas Chou --- arch/nios2/cpu/start.S | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/arch/nios2/cpu/start.S b/arch/nios2/cpu/start.S index 90e0310..00cec40 100644 ---

[U-Boot] [PATCH v2] nios2: convert dma_alloc_coherent to use memalign

2015-10-06 Thread Thomas Chou
Convert dma_alloc_coherent to use memalign. Signed-off-by: Thomas Chou --- v2 use memalign. arch/nios2/include/asm/dma-mapping.h | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/arch/nios2/include/asm/dma-mapping.h

Re: [U-Boot] [PATCHv2] Add support for LZ4 decompression algorithm

2015-10-06 Thread Julius Werner
> You can build U-Boot with NO_SDL=1 Ah, thanks... that was the important magic flag I needed! > Actually you should enable the option in configs/sandbox_defconfig, > not lib/Kconfig. See the condition used by compression.c: > > obj-$(CONFIG_SANDBOX) += compression.o Okay, makes sense. I looked

[U-Boot] [PATCH v2] nios2: convert copy_exception_trampoline to use dm cpu data

2015-10-06 Thread Thomas Chou
Convert copy_exception_trampoline() to use dm cpu data. Signed-off-by: Thomas Chou --- v2 fix exception address references. arch/nios2/cpu/cpu.c | 24 arch/nios2/cpu/start.S | 24 +--- 2 files changed, 25 insertions(+), 23

Re: [U-Boot] [PATCH] net: Increase the size of the net_boot_file_name buffer

2015-10-06 Thread Jacob Stiffler
On Sat, Oct 3, 2015 at 11:13 AM, Stefan Bruens wrote: > On Thursday 01 October 2015 16:27:11 Wolfgang Denk wrote: >> Dear Jacob, >> >> In message <1443622325-30792-1-git-send-email-j-stiff...@ti.com> you wrote: >> > The net_boot_file_name buffer is used as storage

[U-Boot] [PATCH v4 4/4] dm: tpm: Every TPM drivers should depends on DM_TPM

2015-10-06 Thread Christophe Ricard
Every TPM drivers should now depends on DM_TPM and not only TPM. Signed-off-by: Christophe Ricard Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/tpm/Kconfig | 6 +++--- 1 file changed, 3

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

2015-10-06 Thread Christophe Ricard
Hi Simon, This patch serie move tpm_tis_i2c driver to tpm_tis_infineon. It also convert the latest tpm driver tpm_atmel_twi to DM_TPM. In v4, i am fixing compilation errors you reported on patch 2 and 3. On patch 2 i chose to convert tpm_atmel_twi to DM_TPM without using DM_I2C as a first step

[U-Boot] [PATCH v4 3/4] dm: tpm: Remove every compilation switch for TPM driver model

2015-10-06 Thread Christophe Ricard
As every TPM drivers support UCLASS_TPM, we can only rely on DM_TPM functions. This simplify a bit the code. Signed-off-by: Christophe Ricard Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v4 2/4] dm: tpm: Add Driver Model support for tpm_atmel_twi driver

2015-10-06 Thread Christophe Ricard
tpm_atmel_twi can fit perfectly to the new UCLASS_TPM class. Signed-off-by: Christophe Ricard Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None .../controlcenterd_36BIT_SDCARD_DEVELOP_defconfig | 2 +

[U-Boot] [PATCH v4 1/4] dm: tpm: Move tpm_tis_i2c to tpm_i2c_infineon

2015-10-06 Thread Christophe Ricard
As there is no TCG specification or recommendation for i2c TPM 1.2, move tpm_tis_i2c driver to tpm_i2c_infineon. Other tpm vendors like Atmel or STMicroelectronics may have a different transport protocol for i2c. Signed-off-by: Christophe Ricard Reviewed-by: Tom Rini

[U-Boot] [PATCH] ts4800: add CONFIG_OF_LIBFDT

2015-10-06 Thread Damien Riegel
Linux only boots IMX.51-based boards with device tree, so this board would benefit from supporting it. Signed-off-by: Damien Riegel Cc: Stefano Babic --- include/configs/ts4800.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[U-Boot] [PATCH 2/3] mx7: psci: add basic psci support

2015-10-06 Thread Frank Li
add basic psci support for imx7 chip. support cpu_on and cpu_off. linux kernel boot at nosecure mode. set csu allow nosecure mode kernel to access all peripherial register Signed-off-by: Frank Li --- arch/arm/cpu/armv7/mx7/Makefile | 4 ++

[U-Boot] [PATCH 1/3] ARM: relocate: fix hang when CONFIG_ARMV7_SECURE_BASE

2015-10-06 Thread Frank Li
When added above configuration, iram fix up plus relocate offset may locate in invalidate space. Write back fix up value will cause data abort. Add address check, skip psci code. Signed-off-by: Frank Li --- arch/arm/lib/relocate.S | 4 1 file changed, 4

[U-Boot] [PATCH 3/3] imx: config: default enable nosec mode

2015-10-06 Thread Frank Li
Enable psci and nosec linux boot. So second core can boot at community 4.13 kernel. Signed-off-by: Frank Li --- include/configs/mx7_common.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index

[U-Boot] [PATCH] nios2: convert cache flush to use dm cpu data

2015-10-06 Thread Thomas Chou
Convert cache flush to use dm cpu data. The cacheflush.c of Linux nios2 arch is copied to arch/nios2/lib/cache.c to replace the cache.S. The cache related functions in cpu.c is moved to cache.c. Both flush_dcache() and flush_icache() are replaced and removed. The flush_dcache_all() now flush

[U-Boot] [PATCH] nios2: set default cache configuration in start.S

2015-10-06 Thread Thomas Chou
Set default icache and dcache configuration for start.S. The values are chosen so that it will work for most configurations. During initialization, cpu information will be extracted from device tree. Then cache flush operations will have correct cache configurations. Signed-off-by: Thomas Chou

Re: [U-Boot] [PATCH v4 2/2] nios2: convert altera sysid to driver model

2015-10-06 Thread Chin Liang See
Hi Thomas, On Mon, 2015-10-05 at 10:18 +0800, tho...@wytron.com.tw wrote: > Convert altera sysid to driver model with misc uclass. > > Signed-off-by: Thomas Chou > --- > v2 > remove trailing whitespace in altera_sysid.c. > v3 > fix coding style as suggested by Stefan.

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

2015-10-06 Thread Chin Liang See
Hi, On Sun, 2015-10-04 at 21:56 +0800, tho...@wytron.com.tw wrote: > Convert altera timer to driver model. > > Signed-off-by: Thomas Chou > --- > v2 > fix coding style. > v3 > doc dts binding. > v4 > no change. > > arch/nios2/cpu/Makefile |

Re: [U-Boot] [PATCH 1/2] arm: socfpga: mmc: Enable calibration for drvsel and smpsel

2015-10-06 Thread Chin Liang See
Hi Marek, > On Tuesday, September 08, 2015 at 03:32:33 AM, Chin Liang See wrote: > > Hi, > > Hi, > > > On Mon, 2015-09-07 at 03:33 +, Jaehoon Chung wrote: > > > Hi, > > > > > > On 09/04/2015 07:41 PM, Pavel Machek wrote: > > > > Hi! > > > > > > > >>> How is this SMPLSEL and DRVSEL

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

2015-10-06 Thread Simon Glass
On 5 October 2015 at 03:18, Thomas Chou wrote: > Implement a Miscellaneous uclass with generic read or > write operations. This class is used only for those > do not fit other more general classes. > > Signed-off-by: Thomas Chou > --- > v2 > add

Re: [U-Boot] [PATCH V2 3/3] fs-test.sh: fix pre-requisite detection

2015-10-06 Thread Simon Glass
On 3 October 2015 at 20:56, Stephen Warren wrote: > In the following snippet: > > if [ ! -x `which $prereq` ]; then > > When $prereq does not exist, `which $prereq` evaluates to the empty string, > which results in *no* argument being passed to the -x operator, which then >

Re: [U-Boot] [PATCH V2 2/3] test: fat: add test of non-contiguous file reads

2015-10-06 Thread Simon Glass
On 3 October 2015 at 20:56, Stephen Warren wrote: > In my patch series to replace fs/fat with "ff.c", I enhanced ff.c to > optimize file reading, so that reads of contiguous clusters are submitted > to the IO device as a single read. This test attempts to torture-test >

Re: [U-Boot] [PATCH v4 2/2] nios2: convert altera sysid to driver model

2015-10-06 Thread Simon Glass
Hi Thomas, On 5 October 2015 at 03:18, Thomas Chou wrote: > Convert altera sysid to driver model with misc uclass. > > Signed-off-by: Thomas Chou > --- > v2 > remove trailing whitespace in altera_sysid.c. > v3 > fix coding style as suggested by

Re: [U-Boot] [PATCH] serial: remove altera serial initializations

2015-10-06 Thread Simon Glass
On 5 October 2015 at 01:51, Thomas Chou wrote: > Both altera_jtag_serial_initialize() and > altera_serial_initialize() are no longer used after > they are converted to driver model. > > Signed-off-by: Thomas Chou > --- > drivers/serial/serial.c | 4

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

2015-10-06 Thread Simon Glass
Hi Tom, This fixes the driver model tests including the sandbox reset command. The following changes since commit 996ec1dcc58a34b53891acde0ec5df9141b5fcc2: Merge branch 'master' of git://git.denx.de/u-boot-fdt (2015-10-03 10:48:06 -0400) are available in the git repository at:

[U-Boot] [PATCH 2/2] armv8: ls2085a: Add support of random MAC address for QDS and RDB

2015-10-06 Thread Prabhakar Kushwaha
Add support of setting RANDOM MAC address if env variable not available. Signed-off-by: Prabhakar Kushwaha --- include/configs/ls2085a_common.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/ls2085a_common.h b/include/configs/ls2085a_common.h

[U-Boot] [PATCH 1/2] driver: net: ldpaa_eth: Set MAC address during interface open

2015-10-06 Thread Prabhakar Kushwaha
Currently ldpaa ethernet driver rely on DPL file to statically configure mac address for the DPNIs. It is not a correct approach. Add support setting MAC address from env variable or Random MAC address. Signed-off-by: Prabhakar Kushwaha ---

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

2015-10-06 Thread Simon Glass
Hi Thomas, On 4 October 2015 at 14:56, Thomas Chou wrote: > Implement a Timer uclass to work with lib/time.c. > > Signed-off-by: Thomas Chou > Reviewed-by: Simon Glass Sorry, after a lot of consideration I'd like to retract that

Re: [U-Boot] [PATCHv2] Add support for LZ4 decompression algorithm

2015-10-06 Thread Simon Glass
Hi Julius, On 5 October 2015 at 19:09, Julius Werner wrote: > > > You can build U-Boot with NO_SDL=1 > > Ah, thanks... that was the important magic flag I needed! > > > Actually you should enable the option in configs/sandbox_defconfig, > > not lib/Kconfig. See the

Re: [U-Boot] [PATCH 1/1] imximage: header.length of 4 is valid

2015-10-06 Thread stefano babic
Hi Troy, Am 06.10.2015 um 00:17 schrieb Troy Kisky: > On 9/21/2015 2:02 PM, Troy Kisky wrote: >> Signed-off-by: Troy Kisky >> --- >> tools/imximage.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/tools/imximage.c

Re: [U-Boot] Relocation issue - need help!

2015-10-06 Thread Joakim Tjernlund
On Thu, 2015-10-01 at 08:57 +, Joakim Tjernlund wrote: > On Wed, 2015-09-30 at 21:35 +0200, Marek Vasut wrote: > > On Wednesday, September 30, 2015 at 08:24:10 PM, Andy Fleming wrote: > > > > Hi! > > > > > On Thu, Oct 23, 2014 at 8:10 AM, Wolfgang Denk wrote: > > > > Dear

Re: [U-Boot] [PATCH 2/6] ARM: tegra: create common XUSB padctl driver file

2015-10-06 Thread Stephen Warren
On 10/06/2015 04:15 AM, Thierry Reding wrote: On Mon, Oct 05, 2015 at 04:59:17PM -0600, Stephen Warren wrote: [...] It'd be nice if "git format-patch -C" recognized this as a copy, since that's why I created a separate patch, but it doesn't seem to:-( Have you tried tuning the behaviour by

Re: [U-Boot] [PATCH 4/5] pci: tegra: call tegra_pcie_board_init() earlier

2015-10-06 Thread Simon Glass
Hi Stephen, On 6 October 2015 at 00:00, Stephen Warren wrote: > From: Stephen Warren > > The board PCI setup code may control regulators that are required simply > to bring up the PCI controller itself (or PLLs, IOs, ... it uses). Move > the call to